genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and VIEW_CONVERT{0,1,2}.
[gcc.git] / gcc / ChangeLog
1 2019-12-06 Richard Biener <rguenther@suse.de>
2
3 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
4 VIEW_CONVERT{0,1,2}.
5 (expr::opt_grp): Add and initialize.
6 (lower_opt_convert): Rename to ...
7 (lower_opt): ... and work on opt_grp, simply switching operations
8 from being optional to being present or not.
9 (has_opt_convert): Rename to ...
10 (has_opt): ... and adjust.
11 (parser::parse_operation): Return the optional opt_grp,
12 remove special-casing of conditional operations and more generally
13 parse [digit]'?'.
14 (parser::parse_expr): Stick on the parsed opt_grp and perform
15 rough verification.
16 (parser::parse_for): Remove now unnecessary code.
17 (main): Likewise.
18 * doc/match-and-simplify.texi: Mention ? now works on all
19 unary operations and also match predicates.
20
21 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
22
23 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
24 functions, not inline clones.
25
26 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
27
28 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
29
30 2019-12-06 Richard Biener <rguenther@suse.de>
31
32 * genmatch.c (c_expr::gen_transform): Emit newlines from line
33 number changes rather than after every semicolon.
34
35 2019-12-06 Richard Biener <rguenther@suse.de>
36
37 PR tree-optimization/92819
38 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
39 into the last lane. For two-element vectors try inserting
40 into the last lane when inserting into the first fails.
41
42 2019-12-06 Jakub Jelinek <jakub@redhat.com>
43
44 * common.opt (fprofile-partial-training): Terminate description with
45 full stop.
46
47 2019-12-05 Martin Sebor <msebor@redhat.com>
48
49 PR middle-end/92622
50 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
51 left uninitialized by get_addr_base_and_unit_offset on failure.
52
53 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
54
55 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
56 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
57 (detect_type_change): Likewise.
58 (detect_type_change_ssa): Likewise.
59 (ipa_analyze_virtual_call_uses): Update.
60
61 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
62
63 * config/nios2/linux.h (LINK_EH_SPEC): Define.
64
65 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
66
67 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
68
69 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
70
71 * cgraphclones.c (localize_profile): New function.
72 (cgraph_node::create_clone): Use it for partial profiles.
73 * common.opt (fprofile-partial-training): New flag.
74 * doc/invoke.texi (-fprofile-partial-training): Document.
75 * ipa-cp.c (update_profiling_info): For partial profiles do not
76 set function profile to zero.
77 * profile.c (compute_branch_probabilities): With partial profile
78 watch if edge count is zero and turn all probabilities to guessed.
79 (compute_branch_probabilities): For partial profiles do not apply
80 profile when entry count is zero.
81 * tree-profile.c (tree_profiling): Only do value_profile_transformations
82 when profile is read.
83
84 2019-12-05 Sudakshina Das <sudi.das@arm.com>
85
86 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
87 check from if condition.
88
89 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
90
91 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
92 and Fortran's optional arguments, unconditionally add the is-present
93 condition before the libgomp call.
94
95 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
96
97 PR middle-end/92768
98 * tree-core.h (OEP_BITWISE): New flag.
99 * fold-const.c (operand_compare::operand_equal_p): Handle it.
100 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
101
102 2019-12-05 Richard Biener <rguenther@suse.de>
103
104 PR middle-end/92818
105 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
106 heuristics on what don't care element to choose.
107 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
108
109 2019-12-05 Martin Liska <mliska@suse.cz>
110
111 PR gcov-profile/92817
112 * coverage.c (build_gcov_exit_decl): Remove superfluous
113 void_type_node.
114
115 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
116
117 * config/msp430/msp430.md (cbranch<mode>4): Use
118 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
119 dest operand of CMP instruction.
120 (cbranchpsi4_real): Likewise.
121 (cbranchqi4_real): Likewise.
122 (cbranchhi4_real): Likewise.
123 (cbranchpsi4_reversed): Likewise.
124 (cbranchqi4_reversed): Likewise.
125 (cbranchhi4_reversed): Likewise.
126
127 2019-12-05 Richard Biener <rguenther@suse.de>
128
129 PR tree-optimization/92803
130 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
131 invariant vector construction.
132
133 2019-12-05 Martin Liska <mliska@suse.cz>
134
135 PR gcov-profile/91971
136 * coverage.c (coverage_init): Mangle full path
137 only when -fprofile-dir is used.
138
139 2019-12-05 Jakub Jelinek <jakub@redhat.com>
140
141 PR target/92791
142 * config/i386/i386.md (movstrict<mode>): Move test for
143 TARGET_PARTIAL_REG_STALL and not optimizing for size from
144 expander's condition to the body - FAIL; in that case.
145
146 2019-12-03 Martin Sebor <msebor@redhat.com>
147
148 PR middle-end/91582
149 * builtins.c (gimple_call_alloc_size): New function.
150 (compute_objsize): Add argument. Call gimple_call_alloc_size.
151 Handle variable offsets and indices.
152 * builtins.h (gimple_call_alloc_size): Declare.
153 (compute_objsize): Add argument.
154 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
155 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
156
157 2019-12-04 Julian Brown <julian@codesourcery.com>
158
159 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
160
161 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
162
163 PR bootstrap/92661
164 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
165 rs6000.h.
166 (altivec_overloaded_builtins): Move to rs6000-call.c.
167 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
168 rs6000-c.c.
169 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
170 (altivec_overloaded_builtins): Moved from rs6000-c.c.
171 (rs6000_common_init_builtins): Do no define builtins that overload
172 builtins that have been disabled.
173
174 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
175
176 * config/arm/arm.c (arm_option_override_internal):
177 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
178
179 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
180
181 * config/aarch64/aarch64.c
182 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
183 (thunderx_tunings): Likewise.
184 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
185 (thunderx2t99_tunings): Likewise.
186 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
187 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
188
189 2019-12-04 Richard Biener <rguenther@suse.de>
190
191 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
192 empty CTOR and memset partial-def registering. Take advantage
193 of fancy offset analysis in memset handling.
194
195 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
196
197 * fold-const.c (native_encode_vector_part): Handle
198 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
199 (native_decode_vector_tree): Delete, moving the bulk of the code to...
200 (native_interpret_vector_part): ...this new function. Use a pointer
201 and length instead of a vec<> and start index.
202 (native_interpret_vector): Use native_interpret_vector_part.
203 (fold_view_convert_vector_encoding): Likewise.
204
205 2019-12-04 Richard Biener <rguenther@suse.de>
206
207 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
208 non-constant defs in the most trivial way.
209 (vn_reference_lookup_3): Also push down SSA partial defs.
210
211 2019-12-04 Martin Liska <mliska@suse.cz>
212
213 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
214 Initialize count of newly created BB.
215
216 2019-12-04 Jakub Jelinek <jakub@redhat.com>
217
218 PR tree-optimization/92734
219 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
220 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
221
222 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
223
224 PR target/92760
225 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
226 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
227
228 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
229
230 * ipa-fnsummary.c: Include tree-into-ssa.h.
231 (compute_fn_summary): Call update_ssa.
232
233 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
234
235 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
236 is set only for symbol in comdat group.
237 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
238
239 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
240
241 * cgraph.c: Include tree-into-ssa.h
242 (cgraph_node::get_body): Call update_ssa.
243 * cgraphunit.c (cgraph_node::expand): Likewise.
244 * lto-streamer-in.c (input_function): Do not call update_ssa.
245
246 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
247
248 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
249 an array element size if array_element_size is already an invariant.
250 Similarly don't gimplify and install a field offset if
251 component_ref_field_offset is already an invariant.
252
253 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
254
255 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
256 with POLY_INT_CST size is made to a fixed-size object, force the
257 object to live in memory.
258
259 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
260
261 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
262 for the data mode.
263
264 2019-12-03 Richard Biener <rguenther@suse.de>
265
266 PR tree-optimization/92758
267 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
268 operation on uniform vectors.
269
270 2019-12-03 Richard Biener <rguenther@suse.de>
271
272 PR tree-optimization/92645
273 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
274 from or to a properly aligned register variable.
275
276 2019-12-03 Matthias Klose <doko@ubuntu.com>
277
278 * Makefile.in (SOURCES): Add doc/lto-dump.1.
279 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
280 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
281
282 2019-12-03 Richard Biener <rguenther@suse.de>
283
284 PR tree-optimization/92751
285 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
286 when a clobber ends up in the partial-def vector.
287 (vn_reference_lookup_3): Let clobbers be handled by the
288 assignment from CTOR handling.
289
290 2019-12-03 Jakub Jelinek <jakub@redhat.com>
291
292 PR tree-optimization/92734
293 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
294 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
295 inner subtraction.
296
297 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
298 Jakub Jelinek <jakub@redhat.com>
299
300 PR target/92744
301 * config/i386/i386.md (peephole2 for *swap<mode>): Use
302 general_reg_operand predicates instead of register_operand.
303
304 2019-12-03 Richard Biener <rguenther@suse.de>
305
306 PR tree-optimization/92645
307 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
308 a full def of a vector via a BIT_INSERT_EXPR.
309
310 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
311
312 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
313 static.
314 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
315 decl.
316
317 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
318
319 PR middle-end/92741
320 * fold-const.c (fold_convertible_p): Check vector types more
321 thoroughly.
322
323 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
324
325 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
326 (aarch64_expand_mov_immediate): Use it when attempting to measure
327 the length of an SVE vector.
328 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
329 SVE is enabled.
330
331 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
332
333 * config/aarch64/aarch64-sve-builtins.h
334 (gimple_folder::force_vector): Declare.
335 * config/aarch64/aarch64-sve-builtins.cc
336 (gimple_folder::force_vector): New function.
337 * config/aarch64/aarch64-sve-builtins-base.cc
338 (svcmp_impl::fold): Likewise.
339 (svdup_impl::fold): Handle svdup_z too.
340
341 2019-12-02 Martin Liska <mliska@suse.cz>
342
343 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
344 function.
345 (debug_tree_odr_name): New.
346 * ipa-utils.h (get_odr_name_for_type): New.
347
348 2019-12-02 Richard Biener <rguenther@suse.de>
349
350 PR tree-optimization/92742
351 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
352 touch the def-type but verify it is consistent with the
353 original stmts.
354
355 2019-12-02 Jakub Jelinek <jakub@redhat.com>
356
357 PR tree-optimization/92712
358 * match.pd ((A * B) +- A -> (B +- 1) * A,
359 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
360 even when we don't know anything about range of A, but do know
361 something about range of B and the simplification won't introduce
362 new UB.
363
364 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
365
366 PR ipa/92133
367 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
368 (ipa-cp-min-recursive-probability): Likewise.
369 * params.opt (ipa-cp-max-recursive-depth): New.
370 (ipa-cp-min-recursive-probability): Likewise.
371 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
372 val_p and unlimited.
373 (self_recursively_generated_p): New function.
374 (get_val_across_arith_op): Likewise.
375 (propagate_vals_across_arith_jfunc): Add constant propagation for
376 self-recursive function.
377 (incorporate_penalties): Do not penalize pure self-recursive function.
378 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
379 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
380 (get_info_about_necessary_edges): Relax hotness check for edge to
381 self-recursive function.
382 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
383
384 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
385
386 PR target/92499
387
388 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
389 objects of flexible types to be small if they have internal linkage
390 or are declared extern.
391 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
392 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
393 instead of the size of the object initializer.
394 * tree.c (flexible_array_type_p): Move from C front end, and
395 generalize to handle fields in non-C structures.
396 * tree.h (flexible_array_type_p): Declare.
397
398 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
399
400 * profile-count.h (profile_count::operator<): Use IPA value for
401 comparsion.
402 (profile_count::operator>): Likewise.
403 (profile_count::operator<=): Likewise.
404 (profile_count::operator>=): Likewise.
405 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
406
407 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
408
409 * ipa-inline.c (compute_max_insns): Return int64_t.
410 (inline_small_functions): Simplify.
411
412 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
413
414 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
415 scaling happen.
416
417 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
418
419 * cgraph.h (symtab_node): Add symver flag.
420 * cgraphunit.c (process_symver_attribute): New.
421 (process_common_attributes): Use process_symver_attribute.
422 * lto-cgraph.c (lto_output_node): Stream symver.
423 (lto_output_varpool_node): Stream symver.
424 (input_overwrite_node): Stream symver.
425 (input_varpool_node): Stream symver.
426 * output.h (do_assemble_symver): Decalre.
427 * symtab.c (symtab_node::dump_base): Dump symver.
428 (symtab_node::verify_base): Verify symver.
429 (symtab_node::resolve_alias): Handle symver.
430 * varasm.c (do_assemble_symver): New function.
431 * varpool.c (varpool_node::assemble_aliases): Use it.
432 * doc/extend.texi: (symver attribute): Document.
433 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
434
435 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
436
437 * target.h (type_context_kind): New enum.
438 (verify_type_context): Declare.
439 * target.def (verify_type_context): New target hook.
440 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
441 * doc/tm.texi: Regenerate.
442 * tree.c (verify_type_context): New function.
443 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
444 Declare.
445 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
446 New function.
447 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
448 (TARGET_VERIFY_TYPE_CONTEXT): Define.
449
450 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
451
452 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
453 * cgraph.h (cgraph_node): Add unit_id and
454 merged_extern_inline.
455 (symbol_table): Add max_unit.
456 (symbol_table::symbol_table): Initialize it.
457 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
458 merged_comdat, merged_extern_inline.
459 (cgraph_node::create_clone): Likewise.
460 (cgraph_node::create_version_clone): Likewise.
461 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
462 calls.
463 * ipa-fnsummary.h (cross_module_call_p): New inline function.
464 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
465 * ipa-inline.c (inline_small_functions): Likewise.
466 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
467 copy merged_comdat and merged_extern_inline.
468 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
469 merged_extern_inline and unit_id.
470 (input_overwrite_node): Stream in these.
471 (input_cgraph_1): Set unit_base.
472 * lto-streamer.h (lto_file_decl_data): Add unit_base.
473 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
474
475 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
476
477 * gcc.c (process_command): Only warn about an ineffective `-x'
478 option if any input files have actually been supplied.
479
480 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
481
482 * doc/install.texi (Options specification): Remove the list of
483 target library subdirectories supporting
484 `--enable-version-specific-runtime-libs'. Document defaults for
485 the option.
486
487 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
488
489 PR rtl-optimization/92283
490 * lra.c (lra): Update reg notes after inheritance sub-pass and
491 before constraint sub-pass.
492
493 2019-11-29 Richard Biener <rguenther@suse.de>
494
495 PR tree-optimization/91003
496 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
497 operand number, avoid handling the non-condition operands of
498 COND_EXPRs as comparisons.
499 (vect_get_constant_vectors): Pass down the operand number.
500 (vect_get_slp_defs): Likewise.
501
502 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
503
504 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
505 generic_expr_could_trap_p to check if the condition of COND_EXPR or
506 VEC_COND_EXPR can trap.
507
508 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
509
510 PR tree-optimization/92677
511 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
512 to zero when dissolving a group of strided accesses.
513
514 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
515
516 PR tree-optimization/92596
517 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
518 operations.
519 (vectorizable_operation): Likewise, instead of relying on
520 vect_get_mask_type_for_stmt to do this.
521 (vect_get_vector_types_for_stmt): Always return a vector type
522 immediately, rather than deferring the choice for boolean results.
523 Use a vector mask type instead of a normal vector if
524 vect_use_mask_type_p.
525 (vect_get_mask_type_for_stmt): Delete.
526 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
527 mask_producers argument and special boolean_type_node handling.
528 (vect_determine_vf_for_stmt): Remove mask_producers argument and
529 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
530 (vect_determine_vectorization_factor): Update call accordingly.
531 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
532 boolean_type_node handling.
533 (vect_slp_analyze_node_operations_1): Likewise.
534
535 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
536
537 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
538 (vect_use_mask_type_p): New function.
539 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
540 mask precision to the pattern statement.
541 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
542 and use it to initialize the new stmt's mask precision.
543 (search_type_for_mask_1): Delete.
544 (search_type_for_mask): Replace with...
545 (integer_type_for_mask): ...this new function. Use the information
546 cached in the stmt_vec_info.
547 (vect_recog_bool_pattern): Update accordingly.
548 (build_mask_conversion): Pass the scalar type associated with the
549 mask type to append_pattern_def_seq.
550 (vect_recog_mask_conversion_pattern): Likewise. Call
551 integer_type_for_mask instead of search_type_for_mask.
552 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
553 of search_type_for_mask.
554 (possible_vector_mask_operation_p): New function.
555 (vect_determine_mask_precision): Likewise.
556 (vect_determine_stmt_precisions): Call it.
557
558 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
559
560 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
561 the slp_tree parameter with a group size parameter.
562 (vect_get_mask_type_for_stmt): Likewise.
563 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
564 (vect_get_mask_type_for_stmt): Likewise.
565 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
566 call accordingly.
567
568 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
569
570 * tree-vect-stmts.c (vectorizable_operation): Punt early
571 on codes that are handled elsewhere.
572
573 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
574
575 * doc/sourcebuild.texi (vect_bool_cmp): Document.
576 * tree-vect-patterns.c (search_type_for_mask_1): If neither
577 operand to a boolean comparison is a natural vector mask,
578 handle both operands like normal integers instead.
579
580 2019-11-29 Richard Biener <rguenther@suse.de>
581
582 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
583 out early for too large objects.
584
585 2019-11-29 Martin Jambor <mjambor@suse.cz>
586
587 PR ipa/92476
588 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
589 the summary only if the summary exists.
590 (find_more_scalar_values_for_callers_subset): Check node_dead in
591 the summary only if the summary exists.
592 (ipcp_store_bits_results): Ignore nodes without lattices.
593 (ipcp_store_vr_results): Likewise.
594 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
595 header files required by them.
596 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
597
598 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
599
600 PR tree-optimization/92710
601 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
602 vector mask arguments.
603
604 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
605
606 * profile-count.c (profile_count::to_cgraph_frequency,
607 profile_count::to_sreal_scale): Check for compaibility of counts.
608 * profile-count.h (compatible_p): Make public; add checking for
609 global0 versus global types.
610 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
611
612 2019-11-29 Richard Biener <rguenther@suse.de>
613
614 PR tree-optimization/92715
615 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
616 out for uniform vectors and source vectors with less elements
617 than the destination.
618
619 2019-11-29 Martin Liska <mliska@suse.cz>
620
621 PR lto/91574
622 * ipa-devirt.c (types_same_for_odr): Check for existence
623 of TYPE_NAMEs first.
624
625 2019-11-29 Richard Biener <rguenther@suse.de>
626
627 PR tree-optimization/92704
628 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
629 in loops performing only loads.
630
631 2019-11-29 Julian Brown <julian@codesourcery.com>
632
633 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
634 BT_DFLOAT128_PTR) Remove.
635 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
636 TI_DFLOAT128_PTR_TYPE): Remove.
637 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
638 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
639 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
640 dfloat128_ptr_type_node): Remove macros.
641
642 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
643
644 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
645 formatting.
646 (*movdi_internal64): Ditto.
647
648 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
649
650 PR target/92602
651 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
652 indexed_or_indirect_operand to be memory_operand.
653 (bswap<mode>2_store for HSI): Ditto.
654 (bswapdi2_load): Ditto.
655 (bswapdi2_store): Ditto.
656
657 2019-11-28 Martin Liska <mliska@suse.cz>
658
659 PR debug/46558
660 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
661 headers for translation.
662
663 2019-11-28 Martin Liska <mliska@suse.cz>
664
665 PR lto/92609
666 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
667 consistently.
668
669 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
670
671 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
672 checks.
673
674 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
675
676 * profile-count.c (profile_count::combine_with_ipa_count): Return
677 uninitialized count if called on ininitialized count.
678
679 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
680
681 * ipa-inline-transform.c (inline_transform): Scale profile before
682 redirecting.
683
684 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
685
686 * profile-count.h (profile_count::max): Work on profiles of different
687 type.
688 (profile_count::apply_scale): Be sure that ret is not local or global0
689 type if num is global.
690
691 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
692
693 * profile-count.h (profile_count::max): Work on profiles of different
694 type.
695 (profile_count::apply_scale): Be sure that ret is not local or global0
696 type if num is global.
697
698 2019-11-28 Martin Jambor <mjambor@suse.cz>
699
700 PR ipa/92697
701 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
702 ifunc_resolvers.
703 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
704 Removed trailig whitespace.
705
706 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
707
708 * profile-count.h (profile_count::combine_with_ipa_count_within):
709 Declare.
710 * profile-count.c (profile_count::combine_with_ipa_count_within):
711 New.
712 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
713 it.
714
715 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
716
717 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
718 of counters are done same way.
719
720 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
721
722 * ipa-cp.c (update_profiling_info): Fix scaling.
723
724 2019-11-28 Richard Biener <rguenther@suse.de>
725
726 PR tree-optimization/92645
727 * tree-inline.c (remap_gimple_stmt): When the return value
728 is not wanted, elide GIMPLE_RETURN.
729
730 2019-11-28 Richard Biener <rguenther@suse.de>
731
732 PR tree-optimization/92645
733 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
734 conversions inside a mode class. Remove restriction on
735 preserving the element size.
736 (simplify_vector_constructor): Deal with the above and for
737 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
738 and VEC_PACK_TRUNC_EXPR.
739
740 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
741
742 Must use push insn to pass varargs arguments of DFmode because
743 otherwise the middle-end generates wrong code.
744
745 PR target/92055
746 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
747
748 2019-11-28 Jakub Jelinek <jakub@redhat.com>
749
750 PR tree-optimization/92691
751 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
752 in function comment.
753 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
754 calls, return !handle_printf_call rather than always returning true.
755 (check_and_optimize_stmt): Describe return value meaning in function
756 comment. Formatting fix.
757
758 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
759
760 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
761 combination of globa0 and global counters..
762
763 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
764
765 PR target/92566
766 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
767 by VECTOR_UNIT_NONE_P instead.
768
769 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
770
771 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
772 Refine VF to VF_AVX512VL.
773
774 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
775
776 * config/rs6000/rs6000.md (movsi_internal): Reformat.
777 (movdi_internal64): Reformat.
778
779 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
780
781 PR bootstrap/92661
782 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
783 builtin if we don't have an actual type.
784 (builtin_function_type): If the builtin function uses a DFP type
785 and decimal float has been disabled, then return NULL_TREE.
786
787 2019-11-27 Jakub Jelinek <jakub@redhat.com>
788
789 PR rtl-optimization/92510
790 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
791 of comparison into a comparison with different mode if both imode and
792 omode are scalar integral modes.
793
794 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
795
796 PR rtl-optimization/90007
797 * recog.c (constrain_operands): Permit hard registers too for
798 memory when LRA is used.
799
800 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
801
802 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
803 between Coldfire and regular m68k.
804 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
805
806 2019-11-27 Richard Biener <rguenther@suse.de>
807
808 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
809 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
810 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
811 * optabs-tree.c (supportable_convert_operation): Do not call
812 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
813 * optabs-tree.h (supportable_convert_operation): Adjust.
814 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
815 * doc/tm.texi: Regenerate.
816 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
817 * tree-vect-generic.c (expand_vector_conversion): Likewise.
818 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
819 unused decl parameter and adjust.
820 (vect_create_vectorized_promotion_stmts): Likewise.
821 (vectorizable_conversion): Adjust.
822
823 2019-11-27 Richard Biener <rguenther@suse.de>
824
825 PR tree-optimization/92690
826 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
827 converting elements not originally converted.
828
829 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
830
831 PR middle-end/92463
832 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
833 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
834 mpfr_rnd_t instead of mp_rnd_t.
835 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
836 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
837 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
838 Use mpfr_exp_t instead of mp_exp_t.
839 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
840 MPFR_RNDx instead of GMP_RNDx.
841 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
842 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
843 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
844 of mp_rnd_t and remove MPFR_RNDx poisoning.
845 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
846
847 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
848
849 PR tree-optimization/91790
850 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
851 DR for vect_setup_realignment when first_stmt_info is different
852 from first_stmt_info_for_drptr.
853
854 2019-11-27 Richard Biener <rguenther@suse.de>
855
856 PR tree-optimization/92645
857 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
858 CTORs with just a subset of the original vectors.
859
860 2019-11-27 Richard Biener <rguenther@suse.de>
861
862 PR middle-end/92674
863 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
864 edges and instead record blocks in bitmap.
865 (gimple_expand_calls_inline): Adjust.
866 (fold_marked_statements): Delay EH cleanup until all folding is
867 done.
868 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
869 inlining finished.
870
871 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
872
873 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
874 LRA is enabled.
875 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
876 disabled.
877
878 2019-11-27 Jakub Jelinek <jakub@redhat.com>
879
880 PR debug/92664
881 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
882
883 2019-11-26 Martin Sebor <msebor@redhat.com>
884
885 PR tree-optimization/92683
886 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
887 inadvertently removed in a previous change. Rename local variable
888 for clarity.
889
890 2019-11-26 Richard Biener <rguenther@suse.de>
891
892 PR middle-end/92669
893 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
894 NULL pre_order.
895
896 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
897
898 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
899
900 2019-11-26 Jakub Jelinek <jakub@redhat.com>
901
902 PR tree-optimization/92644
903 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
904 next to INTEGER_CST checks.
905
906 2019-11-26 Richard Biener <rguenther@suse.de>
907
908 PR tree-optimization/92645
909 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
910 do not build the operation from scalars if the operand is.
911
912 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
913
914 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
915 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
916 definitions.
917
918 2019-11-25 Martin Liska <mliska@suse.cz>
919
920 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
921 up used dump message.
922
923 2019-11-25 Martin Liska <mliska@suse.cz>
924
925 PR bootstrap/92653
926 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
927 too strict checking assert.
928
929 2019-11-25 Joseph Myers <joseph@codesourcery.com>
930
931 PR c/91985
932 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
933 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
934 error_mark_node if corresponding global tree node is NULL.
935 * tree.c (build_common_tree_nodes): Do not initialize
936 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
937 decimal floating-point not supported.
938
939 2019-11-25 Joseph Myers <joseph@codesourcery.com>
940
941 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
942 types.
943
944 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
945
946 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
947 Replace code for non-CONST_INT constants with gcc_unreachable.
948 * config/m68k/m68k.md (cbranchdi): Don't generate individual
949 compare and test.
950 (CMPMODE): New mode_iterator.
951 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
952 cbranch<mode>4.
953 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
954 cstore<mode>4.
955 (cmp<mode>_68881): Remove 'F' constraint from first comparison
956 operand.
957 (bit test insns patterns): Use nonimmediate_operand, not
958 register_operand, for source operands that allow memory in
959 their constraints.
960 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
961 Use register_operand, not nonimmediate_operand, for the
962 destinations.
963 (DBCC): New mode_iterator.
964 (dbcc peepholes): Use it to reduce duplication.
965 (trap): Use const_true_rtx, not const1_rtx.
966 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
967 from m68k_subword_comparison_operand and changed to handle
968 SImode.
969
970 PR target/91851
971 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
972 declaration.
973 (m68k_init_cc): New declaration.
974 (m68k_output_compare_di, m68k_output_compare_si)
975 (m68k_output_compare_hi, m68k_output_compare_qi)
976 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
977 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
978 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
979 m68k_output_branch_float, m68k_output_branch_float_rev):
980 Likewise.
981 (valid_dbcc_comparison_p_2, flags_in_68881)
982 (output_btst): Remove declaration.
983 * config/m68k/m68k.c (INCLDUE_STRING): Define.
984 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
985 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
986 (flags_compare_op0, flags_compare_op1, flags_operand1,
987 flags_operand2, flags_valid): New static variables.
988 (m68k_find_flags_value, m68k_init_cc): New functions.
989 (handle_flags_for_move, m68k_asm_final_postscan_insn,
990 remember_compare_flags): New static functions.
991 (output_dbcc_and_branch): New argument CODE. Use it, and add
992 PLUS and MINUS to the possible codes. All callers changed.
993 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
994 and INSN arguments, add CODE arg. Return the comparison code
995 to use. All callers changed. Use CODE instead of
996 next_insn_tests_no_inequality, and replace cc_status management
997 with changing the return code.
998 (m68k_rtx_costs): Instead of testing for COMPARE, test for
999 RTX_COMPARE or RTX_COMM_COMPARE.
1000 (output_move_simode, output_move_qimode): Call
1001 handle_flags_for_move.
1002 (notice_update_cc): Delete function.
1003 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1004 m68k_output_compare_hi, m68k_output_compare_qi,
1005 m68k_output_compare_fp, m68k_output_branch_integer,
1006 m68k_output_branch_integer_rev, m68k_output_scc,
1007 m68k_output_branch_float, m68k_output_branch_float_rev,
1008 m68k_output_scc_float): New functions.
1009 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1010 once at the start, and set flags_valid and flags_operand1 if the
1011 flags are usable.
1012 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1013 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1014 definitions.
1015 (CC_STATUS_INIT): Define.
1016 * config/m68k/m68k.md (flags_valid): New define_attr.
1017 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1018 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1019 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1020 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1021 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1022 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1023 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1024 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1025 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1026 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1027 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1028 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1029 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1030 ctrapqi4, conditional_trap): Delete patterns.
1031 (cbranchdi4_insn): New pattern.
1032 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1033 test high part only. When testing EQ or NE, generate beq0_di
1034 and bne0_di patterns directly.
1035 (cstoredi4): When testing LT or GE, test high part only.
1036 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1037 patterns.
1038 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1039 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1040 cmp2_cf_predicate): New define_mode_attrs.
1041 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1042 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1043 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1044 New patterns.
1045 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1046 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1047 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1048 New patterns.
1049 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1050 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1051 Likewise.
1052 (BTST): New define_mode_iterator.
1053 (btst_predicate, btst_constraint, btst_range): New
1054 define_mode_attrs.
1055 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1056 patterns.
1057 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1058 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1059 patterns): Set attr "flags_valid".
1060 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1061 management. Set attr "flags_valid".
1062 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1063 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1064 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1065 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1066 manual CC_STATUS management.
1067 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1068 unnamed strict_lowpart subhi and subqi patterns): Set attr
1069 "flags_valid".
1070 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1071 Remove code to operate on address regs and assert the case
1072 does not occur.
1073 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1074 manual CC_STATUS_INIT.
1075 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1076 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1077 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1078 one_cmplqi2, unnamed strict_lowpart patterns
1079 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1080 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1081 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1082 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1083 CC_STATUS_INIT.
1084 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1085 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1086 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1087 unnamed strict_low_part patterns for HI and
1088 QI versions): Set attr "flags_valid".
1089 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1090 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1091 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1092 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1093 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1094 (various unnamed peepholes): Adjust compare/branch sequences
1095 for new cbranch patterns.
1096 (dbcc peepholes): Likewise, and output the comparison here
1097 as well.
1098 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1099 (fp_src_operand): Allow constant zero.
1100 (address_reg_operand): New predicate.
1101
1102 * rtl.h (inequality_comparisons_p): Remove declaration.
1103 * recog.h (next_insn_tests_no_inequality): Likewise.
1104 * rtlanal.c (inequality_comparisons_p): Delete function.
1105 * recog.c (next_insn_tests_no_inequality): Likewise.
1106
1107 2019-11-25 Richard Biener <rguenther@suse.de>
1108
1109 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1110 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1111 properly re-building the visited hash-map for each lane.
1112
1113 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1114
1115 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1116 gcn_md_reorg): Remove unused variables.
1117 (gcn_emutls_var_init): Add missing (but unreachable) return
1118 to silence warning.
1119 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1120 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1121 an uninitialized variable.
1122
1123 2019-11-25 Martin Jambor <mjambor@suse.cz>
1124
1125 PR ipa/92109
1126 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1127 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1128 (cgraph_materialize_clone): Move removel from clone tree to the
1129 the new method and use it instead.
1130 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1131 bodies of clones, also remove it from the clone tree.
1132
1133 2019-11-25 Martin Jambor <mjambor@suse.cz>
1134
1135 PR ipa/91956
1136 * ipa-sra.c (process_isra_node_results): Put the new node to the
1137 same comdat group as the original node.
1138
1139 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1140
1141 Build double32 / long-double32 multilibs if needed.
1142
1143 PR target/92055
1144 * config/avr/t-avr:
1145 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1146 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1147 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1148 tm_defines and pass to genmultilib.awk.
1149 * config/avr/genmultilib.awk: Use these variables to add double32
1150 and / or long-double32 multilib(s) as needed.
1151 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1152
1153 2019-11-25 Richard Biener <rguenther@suse.de>
1154
1155 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1156 loop body, defaulted to NULL.
1157 (single_likely_exit): Add exit vector argument
1158 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1159 (number_of_iterations_exit): Likewise.
1160 (number_of_iterations_exit_assumptions): Likewise.
1161 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1162 if not NULL.
1163 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1164 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1165 Compute exit vector around call to single_likely_exit.
1166 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1167 loop body to loop_only_exit_p.
1168 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1169 caller.
1170 (number_of_iterations_exit_assumptions): Get loop body from caller
1171 if not NULL.
1172 (number_of_iterations_exit): Pass through new loop body arg.
1173 (infer_loop_bounds_from_undefined): Get loop body from caller.
1174 (estimate_numbers_of_iterations): Compute loop body once.
1175
1176 2019-11-25 Richard Biener <rguenther@suse.de>
1177
1178 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1179 auto_bb_flag instead of an sbitmap for visited handling.
1180
1181 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1182
1183 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1184 iterator.
1185 (vector_fp_comparison_complex): Likewise.
1186 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1187 define_and_split.
1188 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1189 Likewise.
1190 (vector_lt<mode> for VEC_F): Refactor with
1191 vector_fp_comparison_simple.
1192 (vector_le<mode> for VEC_F): Likewise.
1193 (vector_unge<mode> for VEC_F): Likewise.
1194 (vector_unle<mode> for VEC_F): Likewise.
1195 (vector_ne<mode> for VEC_F): Likewise.
1196 (vector_ungt<mode> for VEC_F): Likewise.
1197 (vector_unlt<mode> for VEC_F): Likewise.
1198 (vector_ltgt<mode> for VEC_F): Refactor with
1199 vector_fp_comparison_complex.
1200 (vector_ordered<mode> for VEC_F): Likewise.
1201 (vector_uneq<mode> for VEC_F): Likewise.
1202 (vector_unordered<mode> for VEC_F): Likewise.
1203
1204 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1205
1206 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1207 COMPARE, representing an overflow detection.
1208
1209 * combine.c (combine_instructions): Record costs for jumps.
1210
1211 * combine.c (can_combine_p): Allow autoinc in jumps.
1212
1213 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1214
1215 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1216 * doc/invoke.texi (max-inline-insns-single-O2,
1217 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1218 early-inlining-insns-O2): Remove documentation.
1219 * ipa-fnsummary.c (analyze_function_body,
1220 compute_fn_summary): Use opt_for_fn when accessing parameters.
1221 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1222 inline_insns_auto, can_inline_edge_by_limits_p,
1223 want_early_inline_function_p, big_speedup_p,
1224 want_inline_small_function_p, want_inline_self_recursive_call_p,
1225 recursive_inlining, compute_max_insns, inline_small_functions):
1226 Likewise.
1227 * opts.c (default_options): Add -O3 defaults for
1228 OPT__param_early_inlining_insns_,
1229 OPT__param_inline_heuristics_hint_percent_,
1230 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1231 * params.opt (-param=early-inlining-insns-O2=,
1232 -param=inline-heuristics-hint-percent-O2=,
1233 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1234 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1235 -param=inline-min-speedup=, -param=inline-unit-growth=,
1236 -param=large-function-growth=, -param=large-stack-frame=,
1237 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1238 -param=max-inline-insns-recursive=,
1239 -param=max-inline-insns-recursive-auto=,
1240 -param=max-inline-insns-single=,
1241 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1242 -param=max-inline-recursive-depth=,
1243 -param=max-inline-recursive-depth-auto=,
1244 -param=min-inline-recursive-probability=,
1245 -param=partial-inlining-entry-probability=,
1246 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1247 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1248 Optimization.
1249
1250 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1251
1252 * ipa-fnsummary.c: Fix comment typos.
1253 * ipa-ref.h: Likewise.
1254 * ipa-predicate.h: Likewise.
1255 * ipa-split.c: Likewise.
1256 * ipa-inline-analysis.c: Likewise.
1257 * ipa-predicate.c: Likewise.
1258 * ipa-devirt.c: Likewise.
1259 * ipa-icf.h: Likewise.
1260 * profile-count.c: Likewise.
1261 * ipa-icf.c: Likewise.
1262 (sem_function::equals_wpa): Fix typos in dump messages.
1263 * ipa-icf-gimple.h: Fix comment typos.
1264 * ipa-inline-transform.c: Likewise.
1265 * ipa-polymorphic-call.c: Likewise.
1266 * ipa-fnsummary.h: Likewise.
1267 * ipa-inline.c: Likewise.
1268 (dump_inline_stats): Fix typo in debug dump message.
1269 * profile-count.h: Fix comment typos.
1270
1271 PR target/92615
1272 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1273 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1274 register_operand, force x into register before storing it into dest.
1275 Formatting fix.
1276
1277 PR middle-end/83859
1278 * doc/extend.texi (attribute access): Fix a typo.
1279
1280 PR rtl-optimization/92610
1281 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1282 cse_cfg_altered is set, even when tem is 0.
1283 (rest_of_handle_cse_after_global_opts): Likewise.
1284
1285 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1286
1287 PR c++/92458
1288 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1289 tree_hash): Move to ...
1290 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1291 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1292 types.
1293 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1294
1295 PR tree-optimization/92618
1296 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1297 containing the auto_vec and a tree.
1298 (undistribute_bitref_for_vector): Handle the case when element type
1299 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1300 fixes.
1301
1302 2019-11-22 Martin Sebor <msebor@redhat.com>
1303
1304 PR middle-end/83859
1305 * attribs.h (struct attr_access): New.
1306 * attribs.c (decl_attributes): Add an informational note.
1307 * builtins.c (check_access): Make extern. Consistently set no-warning
1308 after issuing a warning. Handle calls through function pointers. Set
1309 no-warning.
1310 * builtins.h (check_access): Declare.
1311 * calls.c (rdwr_access_hash): New type.
1312 (rdwr_map): Same.
1313 (init_attr_rdwr_indices): New function.
1314 (maybe_warn_rdwr_sizes): Same.
1315 (initialize_argument_information): Call init_attr_rdwr_indices.
1316 Call maybe_warn_rdwr_sizes.
1317 (get_size_range): Avoid null argument.
1318 * doc/extend.texi (attribute access): Document new attribute.
1319
1320 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1321
1322 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1323 (ACC_LDS_SIZE): Define.
1324 (OTHER_LDS_SIZE): Define.
1325 (LDS_SIZE): Redefine using above.
1326 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1327
1328 2019-11-22 Martin Sebor <msebor@redhat.com>
1329
1330 PR middle-end/88226
1331 * builtins.c (check_nul_terminated_array): New function.
1332 (fold_builtin_0): Remove declaration.
1333 (fold_builtin_1): Same.
1334 (fold_builtin_2): Same.
1335 (fold_builtin_3): Same.
1336 (fold_builtin_strpbrk): Add argument.
1337 (fold_builtin_strspn): Same.
1338 (fold_builtin_strcspn): Same.
1339 (expand_builtin_strcat): Call it. Remove unused argument.
1340 (expand_builtin_stpncpy): Same.
1341 (expand_builtin_strncat): Same.
1342 (expand_builtin_strncpy): Same. Adjust indentation.
1343 (expand_builtin_strcmp): Same.
1344 (expand_builtin_strncmp): Same.
1345 (expand_builtin_fork_or_exec): Same.
1346 (expand_builtin): Handle more built-ins.
1347 (fold_builtin_2): Add argument.
1348 (fold_builtin_n): Make static. Add argument.
1349 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1350 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1351 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1352 (fold_call_stmt): Pass new argument to fold_builtin_n.
1353 * builtins.h: Correct a comment.
1354 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1355 check_nul_terminated_array.
1356 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1357 check_nul_terminated_array.
1358 (handle_builtin_strchr): Same.
1359 (handle_builtin_string_cmp): Same.
1360
1361 2019-11-22 Martin Sebor <msebor@redhat.com>
1362
1363 PR tree-optimization/92501
1364 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1365 handle unterminated arrays. Rename local variables for clarity.
1366
1367 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1368
1369 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1370 granulated_sgprs according to architecture.
1371
1372 2019-11-22 Jan Hubicka <jh@suse.cz>
1373
1374 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1375 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1376 (memory_block_pool::reduce_free_list): ... this one.
1377 (memory_block_pool::trim): New static function.
1378 * memory-block.h (memory_block_pool::freelist_size): New constant
1379 (memory_block_pool::clear_free_list): Rename to ...
1380 (memory_block_pool::reduce_free_list): ... this one.
1381 (memory_block_pool::trim): Declare.
1382
1383 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1384
1385 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1386 vect_cost_for_stmt.
1387 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1388 here rather than...
1389 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1390
1391 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1392
1393 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1394 (bic_cmp0_noout): New pattern.
1395 (bic_cmp0): Likewise.
1396 (neg_scc_insn): Remove pattern.
1397 (not_scc_insn): Likewise.
1398
1399 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1400
1401 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1402
1403 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1404
1405 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1406 pedwarn instead of warning_at for fallthrough not preceding a case
1407 or default label.
1408
1409 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1410
1411 PR tree-optimization/92608
1412 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1413 of dyn_cast.
1414
1415 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1416
1417 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1418 New predicate.
1419 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1420 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1421 special for FP comparisons that need a cror instruction eventually.
1422 (rs6000_emit_fp_cror): New function.
1423 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1424 instruction, for normal FP modes, with HONOR_NANS.
1425 (rs6000_emit_cbranch): Reformat.
1426 * config/rs6000/rs6000.md (fp_rev): New iterator.
1427 (fp_two): New iterator.
1428 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1429 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1430 *cbranch_2insn: New define_insn_and_split.
1431
1432 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1433
1434 PR tree-optimization/92526
1435 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1436 versioning for alignment if the accesses do not have a consistent
1437 mask, rather than asserting that the masks are consistent.
1438
1439 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1440
1441 PR tree-optimization/92595
1442 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1443 check.
1444 (vectorizable_store, vectorizable_load): Likewise.
1445
1446 2019-11-21 Jan Hubicka <jh@suse.cz>
1447
1448 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1449 (resolve_noninline_speculation, inline_small_functions): Avoid
1450 redundant updates.
1451
1452 2019-11-21 Richard Biener <rguenther@suse.de>
1453
1454 * lra.c (lra_insn_recog_data_pool): New.
1455 (free_insn_recog_data): Adjust.
1456 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1457 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1458
1459 2019-11-21 Richard Biener <rguenther@suse.de>
1460
1461 PR tree-optimization/92596
1462 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1463
1464 2019-11-21 Jan Hubicka <jh@suse.cz>
1465
1466 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1467 ready for some vectors to not be allocated.
1468 (evaluate_properties_for_edge): Document better; make
1469 known_vals and known_aggs caller allocated; avoid determining
1470 values of parameters which are not used.
1471 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1472 known_aggs.
1473 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1474 (do_estimate_edge_size): Likewise.
1475 (do_estimate_edge_hints): Likewise.
1476 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1477 values are not known.
1478 (ipa_release_agg_values): Add option to not release vector itself.
1479 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1480
1481 2019-11-21 Richard Biener <rguenther@suse.de>
1482
1483 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1484 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1485 (loop_iterator::loop_iterator): Adjust.
1486 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1487 (compute_dominance_frontiers): ... this. Hoist invariant
1488 get_immediate_dominator call.
1489 (compute_idf): Use a work-set instead of a work-list for more
1490 optimal iteration order and duplicate avoidance.
1491 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1492 the vector all the time, instead pre-allocate the vector only
1493 once.
1494 (delete_update_ssa): Simplify.
1495 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1496
1497 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1498
1499 PR tree-optimization/91355
1500 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1501 for early_bb scaled count with best_bb count comparison.
1502
1503 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1504 preffer -> prefer.
1505 * ipa-inline.c (edge_badness): Likewise.
1506 * lto-streamer.h (class lto_location_cache): Likewise.
1507 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1508 gratutious -> gratuitous.
1509
1510 2019-11-21 Richard Biener <rguenther@suse.de>
1511
1512 Revert
1513 2019-09-17 Richard Biener <rguenther@suse.de>
1514
1515 PR tree-optimization/91790
1516 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1517 use the correct DR for setting up realignment.
1518
1519 2019-11-21 Richard Biener <rguenther@suse.de>
1520
1521 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1522 (equiv_class_obstack): New.
1523 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1524 (perform_var_substitution): Initialize equiv_class_obstack.
1525 (free_var_substitution_info): Free equiv_class_obstack.
1526
1527 2019-11-20 Jan Hubicka <jh@suse.cz>
1528
1529 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1530 edge growth when callee function is very large.
1531 * ipa-inline.h (estimate_min_edge_growth): New.
1532
1533 2019-11-20 Jan Hubicka <jh@suse.cz>
1534
1535 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1536 negative time in calls summary; correct roundoff errors
1537 leading to negative times.
1538 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1539 if present.
1540 (ipa_update_overall_fn_summary): Add RESET parameter.
1541 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1542 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1543
1544 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1545
1546 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1547 def types for two-operation SLP.
1548
1549 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1550
1551 PR testsuite/92366
1552 * doc/sourcebuild.texi (vect_char_add): Document.
1553
1554 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1555
1556 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1557 * function.c (record_final_call): Record even calls that might
1558 have been in the cgraph.
1559 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1560 callees.
1561
1562 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1563
1564 * configure.ac: Use https for gcc.gnu.org
1565 * configure: Regenerated.
1566 * doc/install.texi: Use https for gcc.gnu.org.
1567 * doc/sourcebuild.texi: Likewise.
1568
1569 2019-11-20 Julian Brown <julian@codesourcery.com>
1570
1571 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1572
1573 2019-11-20 Jan Hubicka <jh@suse.cz>
1574
1575 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1576 parameter and update call_size_time_table.
1577 (ipa_fn_summary::max_size_time_table_size): New constant.
1578 (estimate_calls_size_and_time_1): Break out from ...
1579 (estimate_calls_size_and_time): ... here; implement summary production.
1580 (summarize_calls_size_and_time): New function.
1581 (ipa_call_context::estimate_size_and_time): Bypass
1582 estimate_calls_size_and_time for leaf functions.
1583 (ipa_update_overall_fn_summary): Likewise.
1584 * ipa-fnsummary.h (call_size_time_table): New.
1585 (ipa_fn_summary::account_size_time): Update prototype.
1586
1587 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1588
1589 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1590
1591 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1592
1593 PR85678
1594 * common.opt (fcommon): Change init to 1.
1595 * doc/invoke.texi (-fcommon): Update documentation.
1596
1597 2019-11-20 Jan Hubicka <jh@suse.cz>
1598
1599 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1600 to ordinary array.
1601
1602 2019-11-20 Jan Hubicka <jh@suse.cz>
1603
1604 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1605 Add allocator parameter.
1606 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1607 (fibonacci_heap<K,V>::m_allocator): New.
1608 (fibonacci_heap<K,V>::m_own_allocator): New.
1609 (fibonacci_heap<K,V>::insert): Use allocator.
1610 (fibonacci_heap<K,V>::extract_min): Likewise.
1611 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1612 allocator.
1613 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1614 on stack.
1615 * fibonacci_heap.c: Include alloc-pool
1616 (test_empty_heap): Initialize allocator.
1617 (test_union): Likewise.
1618 * bb-reorder.c: Include alloc-pool.h.
1619 * tracer.c: Inlclude alloc-pool.h.
1620
1621 2019-11-20 Jan Hubicka <jh@suse.cz>
1622
1623 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1624 Preallocate for 32 entries.
1625 (DFS::worklist): Likewise.
1626 (DFS::DFS): Do not initialize sccstack and worklist.
1627 (DFS::~DFS): Do not release sccstack.
1628
1629 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1630
1631 PR target/92573
1632 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1633 Handle UNORDERED if !HONOR_NANS.
1634
1635 2019-11-20 Jan Hubicka <jh@suse.cz>
1636
1637 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1638 (edge_badness): ... here.
1639 (inline_small_functions): Use monotonicity of badness calculation
1640 to avoid redundant updates.
1641
1642 2019-11-20 Richard Biener <rguenther@suse.de>
1643
1644 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1645 constructors we are actually analyzing.
1646 (vect_slp_check_for_constructors): Do not vectorize uniform
1647 constuctors, do not dump here.
1648
1649 2019-11-20 Richard Biener <rguenther@suse.de>
1650
1651 PR tree-optimization/92537
1652 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1653 vectorization validity check...
1654 (vect_slp_analyze_operations): ... here.
1655
1656 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1657
1658 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1659 (make_pass_arc_predicate_delay_insns): Likewise.
1660 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1661 method, remove clone.
1662 (class pass_arc_predicate_delay_insns): Likewise.
1663 (arc_init): Remove registering of ARC specific passes.
1664 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1665 * config/arc/arc-passes.def: New file.
1666
1667 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1668
1669 PR middle-end/90840
1670 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1671 and has a mode that doesn't have corresponding integral type.
1672
1673 PR target/90867
1674 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1675 clear opts->x_ix86_isa_flags{,2} here...
1676 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1677 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1678
1679 PR c/90898
1680 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1681 assertion.
1682 (insert_clobbers_for_var): Fix a typo in function comment.
1683
1684 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1685 Jakub Jelinek <jakub@redhat.com>
1686
1687 PR middle-end/91195
1688 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1689 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1690 load.
1691
1692 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1693
1694 Make 0-series device specs work with older versions of avr-gcc.
1695
1696 PR target/92545
1697 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1698 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1699 <*link_pm_base_address>: Don't write spec.
1700 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1701
1702 2019-11-20 Richard Biener <rguenther@suse.de>
1703
1704 PR c/92088
1705 * builtins.c (compute_objsize): Deal with VLAs.
1706
1707 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1708
1709 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1710 from common code.
1711 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1712 call new function.
1713 (power9_sched_reorder2): Call new function.
1714 (rs6000_sched_reorder2): Likewise.
1715
1716 2019-11-18 Jan Hubicka <jh@suse.cz>
1717
1718 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1719 (estimate_calls_size_and_time): Update.
1720
1721 2019-11-18 Jan Hubicka <jh@suse.cz>
1722
1723 * ipa-inline.c (inlining_speedup): New function.
1724 (edge_badness): Use it.
1725
1726 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1727 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1728
1729 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1730 Mark as not having "likely" version.
1731 * config/mips/mips.md (insn_count): The simd_div instruction with
1732 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1733 (can_delay): Exclude simd_branch.
1734 (defile_delay *): Add simd_branch instructions.
1735 They have one regular delay slot.
1736
1737 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1738
1739 Revert:
1740 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1741
1742 * cse.c (cse_insn): Delete no-op register moves too.
1743 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1744 Take a second comparison to control the value for NE.
1745 (mask_to_comparison): Handle unsigned comparisons.
1746 (simplify_logical_relational_operation): Likewise. Update call
1747 to comparison_to_mask. Handle AND if !HONOR_NANs.
1748 (simplify_binary_operation_1): Call the above for AND too.
1749
1750 2019-11-19 Martin Liska <mliska@suse.cz>
1751
1752 * toplev.c (general_init): Move the call...
1753 (toplev::main): ... here as we need init_options_struct
1754 being called.
1755
1756 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1757
1758 PR target/79262
1759 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1760 vec_to_scalar_cost.
1761
1762 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1763
1764 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1765 (armv7-a): Likewise.
1766 (armv7ve): Likewise.
1767
1768 2019-11-19 Richard Biener <rguenther@suse.de>
1769
1770 PR tree-optimization/92581
1771 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1772 condition reduction chains gather all conditions involved
1773 for computing the index reduction vector.
1774
1775 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1776
1777 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1778 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1779 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1780 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1781 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1782 (aarch64_init_memtag_builtins): New.
1783 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1784 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1785 (aarch64_expand_builtin_memtag): New.
1786 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1787 (AARCH64_BUILTIN_SUBCODE): New macro.
1788 (aarch64_resolve_overloaded_memtag): New.
1789 (aarch64_resolve_overloaded_builtin_general): New. Call
1790 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1791 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1792 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1793 (aarch64_resolve_overloaded_builtin): Call
1794 aarch64_resolve_overloaded_builtin_general.
1795 * config/aarch64/aarch64-protos.h
1796 (aarch64_resolve_overloaded_builtin_general): New declaration.
1797 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1798 (TARGET_MEMTAG): Likewise.
1799 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1800 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1801 (irg, gmi, subp, addg, ldg, stg): New instructions.
1802 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1803 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1804 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1805 (__arm_mte_get_tag): Likewise.
1806 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1807 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1808 * config/arm/types.md (memtag): New.
1809 * doc/invoke.texi (-memtag): Update description.
1810
1811 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1812
1813 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1814 to define __GCC_ASM_FLAG_OUTPUTS__.
1815 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1816 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1817 depending on TARGET_THUMB1.
1818 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1819
1820 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1821
1822 PR target/92549
1823 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1824
1825 PR middle-end/91450
1826 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1827 operand is negative and one non-negative, compare the non-negative
1828 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1829 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1830 and s2 == 0, unless one of them is known to be negative. Remove
1831 tem2 variable, use tem where tem2 has been used before.
1832
1833 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1834
1835 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1836
1837 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1838
1839 PR tree-optimization/92557
1840 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1841 vmode rather than asserting it always is.
1842
1843 2019-11-19 Richard Biener <rguenther@suse.de>
1844
1845 PR tree-optimization/92554
1846 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1847 for the actual condition stmt and deal with sign-changes.
1848
1849 2019-11-19 Richard Biener <rguenther@suse.de>
1850
1851 PR tree-optimization/92555
1852 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1853 for non-SLP stmts.
1854
1855 2019-11-19 Martin Liska <mliska@suse.cz>
1856
1857 PR bootstrap/92540
1858 * config/riscv/riscv.c (riscv_address_insns): Initialize
1859 addr in order to remove boostrap -Wmaybe-uninitialized
1860 error.
1861
1862 2019-11-18 Martin Sebor <msebor@redhat.com>
1863
1864 PR tree-optimization/92493
1865 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1866 assignment.
1867
1868 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1869
1870 * cfgloop.c (get_loop_body_in_custom_order): New.
1871 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1872 * tree-loop-distribution.c (class loop_distribution): New.
1873 (bb_top_order_cmp): Remove.
1874 (bb_top_order_cmp_r): New.
1875 (create_rdg_vertices): Move into class loop_distribution.
1876 (stmts_from_loop): Same as above.
1877 (update_for_merge): Same as above.
1878 (partition_merge_into): Same as above.
1879 (get_data_dependence): Same as above.
1880 (data_dep_in_cycle_p): Same as above.
1881 (update_type_for_merge): Same as above.
1882 (build_rdg_partition_for-vertex): Same as above.
1883 (classify_builtin_ldst): Same as above.
1884 (classify_partition): Same as above.
1885 (share_memory_accesses): Same as above.
1886 (rdg_build_partitions): Same as above.
1887 (pg_add_dependence_edges): Same as above.
1888 (build_partition_graph): Same as above.
1889 (merge_dep_scc_partitions): Same as above.
1890 (break_alias_scc_partitions): Same as above.
1891 (finalize_partitions): Same as above.
1892 (distribute_loop): Same as above.
1893 (bb_top_order_init): New method
1894 (bb_top_order_destroy): New method.
1895 (get_bb_top_order_index_size): New method.
1896 (get_bb_top_order_index_index): New method.
1897 (get_bb_top_order_index_index): New method.
1898 (loop_distribution::execute): New method.
1899 (pass_loop_distribution::execute): Instantiate loop_distribution.
1900
1901 2019-11-18 Jan Hubicka <jh@suse.cz>
1902
1903 PR ipa/92508
1904 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1905 caches.
1906 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1907
1908 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1909
1910 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1911 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1912 * doc/md.texi: Document them.
1913 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1914 internal functions.
1915 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1916 * internal-fn.c (check_ptrs_direct): New macro.
1917 (expand_check_ptrs_optab_fn): Likewise.
1918 (direct_check_ptrs_optab_supported_p): Likewise.
1919 (internal_check_ptrs_fn_supported_p): New fuction.
1920 * tree-data-ref.c: Include internal-fn.h.
1921 (create_ifn_alias_checks): New function.
1922 (create_intersect_range_checks): Use it.
1923 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1924 (optab, cmp_op): Handle it.
1925 (raw_war, unspec): New int attributes.
1926 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1927 constants.
1928 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1929 New predicate.
1930 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1931 expander.
1932 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1933 pattern.
1934
1935 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1936
1937 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1938 empty constructors.
1939
1940 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1941
1942 * cse.c (cse_insn): Delete no-op register moves too.
1943 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1944 Take a second comparison to control the value for NE.
1945 (mask_to_comparison): Handle unsigned comparisons.
1946 (simplify_logical_relational_operation): Likewise. Update call
1947 to comparison_to_mask. Handle AND if !HONOR_NANs.
1948 (simplify_binary_operation_1): Call the above for AND too.
1949
1950 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1951
1952 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1953 splitting the main code out into...
1954 (native_encode_vector_part): ...this new function.
1955 (native_decode_vector_tree): New function.
1956 (fold_view_convert_vector_encoding): Likewise.
1957 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1958 to VECTOR_TYPEs.
1959
1960 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1961
1962 * tree-data-ref.c (create_intersect_range_checks_index): If the
1963 alias pair describes simple WAW and WAR dependencies, just check
1964 whether the first B access overlaps later A accesses.
1965 (create_waw_or_war_checks): New function that performs the same
1966 optimization on addresses.
1967 (create_intersect_range_checks): Call it.
1968
1969 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1970
1971 * lra-constraints.c (valid_address_p): Take the operand and a
1972 constraint as argument. If the operand is a MEM and the constraint
1973 is a memory constraint, check whether the eliminated form of the
1974 MEM already satisfies the constraint.
1975 (process_address_1): Update calls accordingly.
1976
1977 2019-11-18 Tom Tromey <tromey@adacore.com>
1978
1979 * doc/tm.texi: Rebuild.
1980 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1981 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1982
1983 2019-11-18 Richard Biener <rguenther@suse.de>
1984
1985 PR tree-optimization/92516
1986 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1987 argument, hoist bst_map creation/destruction to ...
1988 (vect_analyze_slp): ... here, forming a true graph with
1989 SLP instances being the entries.
1990 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1991 (vect_detect_hybrid_slp): Use one visited set for all
1992 graph entries.
1993 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1994 to hash-sets of slp_tree.
1995 (vect_slp_analyze_operations): Likewise.
1996 (vect_bb_slp_scalar_cost): Remove wrapper.
1997 (vect_bb_vectorization_profitable_p): Use one visited set for
1998 all graph entries.
1999 (vect_schedule_slp_instance): Elide bst_map use.
2000 (vect_schedule_slp): Likewise.
2001
2002 2019-11-18 Richard Biener <rguenther@suse.de>
2003
2004 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2005 was vectorized with just external refs fail.
2006
2007 2019-11-18 Martin Liska <mliska@suse.cz>
2008
2009 PR ipa/92525
2010 * ipa-icf.c (sem_function::init): Unset m_checker
2011 at the end of the function.
2012
2013 2019-11-18 Richard Biener <rguenther@suse.de>
2014
2015 PR tree-optimization/92558
2016 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2017 reducting the width of a reduction vector def update new_phis.
2018
2019 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2020
2021 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2022 and s390*-*-linux-musl* targets.
2023 * configure: Regenerate.
2024
2025 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2026
2027 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2028 (MUSL_DYNAMIC_LINKER64): Define.
2029
2030 2019-11-18 Martin Liska <mliska@suse.cz>
2031
2032 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2033 message for an unknown counter.
2034 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2035 (dbg_cnt_process_opt): Remove unreachable code.
2036
2037 2019-11-18 Martin Liska <mliska@suse.cz>
2038
2039 PR ipa/92529
2040 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2041 Compare LHS types of NOP_EXPR.
2042
2043 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2044
2045 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2046 "initial_pass_name" argument -- by running "*clean_state" pass.
2047 Also free the "initial_pass_name" when done.
2048
2049 2019-11-18 Richard Biener <rguenther@suse.de>
2050
2051 PR rtl-optimization/92462
2052 * alias.c (find_base_term): Restrict the look through ANDs.
2053 (find_base_value): Likewise.
2054
2055 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2056
2057 Add support for AVR devices from the 0-series.
2058
2059 PR target/92545
2060 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2061 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2062 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2063 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2064 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2065 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2066 for spec definitions.
2067 * doc/avr-mmcu.texi: Regenerate.
2068
2069 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2070
2071 PR target/92448
2072 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2073 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2074 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2075 (ix86_reassociation_width): Ditto.
2076 * config/i386/i386-options.c (ix86_option_override_internal):
2077 Replace TARGET_AVX128_OPTIAML with
2078 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2079 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2080 (TARGET_AVX128_OPTIMAL): Deleted.
2081 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2082 DEF_TUNE.
2083
2084 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2085
2086 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2087 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2088 just SI.
2089 (cceq_rev_compare): Rename to...
2090 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2091 just SI.
2092 (define_split for <bd>tf_<mode>): Add SImode first argument to
2093 gen_cceq_ior_compare.
2094
2095 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2096
2097 * common/config/powerpcspe: Delete.
2098
2099 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2100
2101 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2102 output in UNSPEC_WRFFR.
2103
2104 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2105
2106 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2107 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2108
2109 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2110
2111 * tree-data-ref.c (create_intersect_range_checks_index)
2112 (create_intersect_range_checks): Print dump messages.
2113
2114 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2115
2116 * tree-data-ref.c (dump_alias_pair): New function.
2117 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2118
2119 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2120
2121 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2122 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2123 merging data references with different steps.
2124 (create_intersect_range_checks_index): Take a
2125 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2126 Bail out if DR_ALIAS_MIXED_STEPS is set.
2127 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2128 instead of two dr_with_seg_lens. Update call to
2129 create_intersect_range_checks_index.
2130 (create_runtime_alias_checks): Update call accordingly.
2131
2132 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2133
2134 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2135 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2136 (dr_with_seg_len_pair_t::sequencing): New enum.
2137 (dr_with_seg_len_pair_t::flags): New member variable.
2138 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2139 parameter and initialize the flags member variable.
2140 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2141 call accordingly.
2142 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2143 Ensure the two data references in an alias pair are in statement
2144 order, if there is a defined order.
2145 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2146 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2147 swapped the references in a dr_with_seg_len_pair_t. OR together
2148 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2149 try to restore the original dr_with_seg_len order, updating the
2150 flags if that fails.
2151
2152 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2153
2154 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2155 swapping the dr_as based on init values until we've decided
2156 whether to merge them.
2157
2158 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2159
2160 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2161 two accesses in each dr_with_seg_len_pair_t before trying to
2162 combine separate dr_with_seg_len_pair_ts.
2163 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2164 that here.
2165 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2166
2167 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2168
2169 * config/aarch64/aarch64-sve.md
2170 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2171 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2172 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2173 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2174 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2175 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2176 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2177 pattern.
2178 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2179 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2180 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2181 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2182
2183 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2184
2185 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2186 (SVE_4HSI): New mode iterators.
2187 (ANY_EXTEND2): New code iterator.
2188 * config/aarch64/aarch64-sve.md
2189 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2190 Extend to...
2191 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2192 ...this, handling extension to partial modes as well as full modes.
2193 Describe the extension as a predicated rather than unpredicated
2194 extension.
2195 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2196 Likewise extend to...
2197 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2198 ...this, making the same adjustments.
2199 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2200 Likewise extend to...
2201 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2202 ...this, making the same adjustments.
2203 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2204 Likewise extend to...
2205 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2206 ...this, making the same adjustments.
2207 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2208 New pattern.
2209 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2210 extension predicate.
2211 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2212 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2213 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2214 Describe the extension as a predicated rather than unpredicated
2215 extension.
2216 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2217 Likewise. Canonicalize to a constant extension predicate.
2218 * config/aarch64/aarch64-sve-builtins-base.cc
2219 (svld1_gather_extend_impl::expand): Add an extra predicate for
2220 the extension.
2221 (svldff1_gather_extend_impl::expand): Likewise.
2222
2223 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2224
2225 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2226 iterators.
2227 * config/aarch64/aarch64-sve.md
2228 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2229 (gather_load<SVE_24:mode><v_int_container>): ...this.
2230 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2231 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2232 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2233 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2234 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2235 New pattern.
2236 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2237 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2238 Allow the nominal extension predicate to be different from the
2239 load predicate.
2240 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2241 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2242
2243 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2244
2245 * config/aarch64/aarch64-sve.md
2246 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2247 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2248 function.
2249 (aarch64_sve_adjust_stmt_cost): Call it.
2250
2251 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2252
2253 * config/aarch64/aarch64-sve.md
2254 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2255 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2256 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2257 Combine into...
2258 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2259 ...this new pattern, handling extension to partial modes as well
2260 as full modes. Describe the extension as a predicated rather than
2261 unpredicated extension.
2262 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2263 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2264 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2265 Combine into...
2266 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2267 ...this new pattern, handling extension to partial modes as well
2268 as full modes. Describe the extension as a predicated rather than
2269 unpredicated extension.
2270 * config/aarch64/aarch64-sve-builtins.cc
2271 (function_expander::use_contiguous_load_insn): Add an extra
2272 predicate for extending loads.
2273 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2274 (aarch64_sve_adjust_stmt_cost): Likewise.
2275 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2276 the cost of SVE vector stmts.
2277
2278 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2279
2280 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2281 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2282 * config/aarch64/aarch64-sve.md
2283 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2284 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2285 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2286 comment. Avoid new narrower_mask ambiguity.
2287 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2288 (*cond_uxt<mode>_2): Update comment.
2289 (*cond_uxt<mode>_any): Likewise.
2290
2291 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2292
2293 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2294 float modes.
2295 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2296 function.
2297 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2298 new vector float modes.
2299 (aarch64_sve_container_bits): New function.
2300 (aarch64_sve_pred_mode): Likewise.
2301 (aarch64_get_mask_mode): Use it.
2302 (aarch64_sve_element_int_mode): Handle structure modes and partial
2303 modes.
2304 (aarch64_sve_container_int_mode): New function.
2305 (aarch64_vectorize_related_mode): Return SVE modes when given
2306 SVE modes. Handle partial modes, taking the preferred number
2307 of units from the size of the given mode.
2308 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2309 in registers.
2310 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2311 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2312 (aarch64_split_sve_subreg_move): Use the mode form of
2313 aarch64_sve_pred_mode.
2314 (aarch64_secondary_reload): Handle partial modes in the same way
2315 as full big-endian vectors.
2316 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2317 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2318 merging with the Advanced SIMD modes. If two modes have the
2319 same size, try the Advanced SIMD mode first.
2320 (aarch64_simd_valid_immediate): Use the container rather than
2321 the element mode for INDEX constants.
2322 (aarch64_simd_vector_alignment): Make the alignment of partial
2323 SVE vector modes the same as their minimum size.
2324 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2325 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2326 (mov<SVE_ALL:mode>): ...this.
2327 (movmisalign<SVE_FULL:mode>): Extend to...
2328 (movmisalign<SVE_ALL:mode>): ...this.
2329 (*aarch64_sve_mov<mode>_le): Rename to...
2330 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2331 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2332 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2333 partial modes regardless of endianness.
2334 (aarch64_sve_reload_be): Rename to...
2335 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2336 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2337 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2338 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2339 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2340 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2341 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2342 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2343 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2344 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2345 (maskload<SVE_FULL:mode><vpred>): Extend to...
2346 (maskload<SVE_ALL:mode><vpred>): ...this.
2347 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2348 (maskstore<SVE_ALL:mode><vpred>): ...this.
2349 (vec_duplicate<SVE_FULL:mode>): Extend to...
2350 (vec_duplicate<SVE_ALL:mode>): ...this.
2351 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2352 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2353 (sve_ld1r<SVE_FULL:mode>): Extend to...
2354 (sve_ld1r<SVE_ALL:mode>): ...this.
2355 (vec_series<SVE_FULL_I:mode>): Extend to...
2356 (vec_series<SVE_I:mode>): ...this.
2357 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2358 (*vec_series<SVE_I:mode>_plus): ...this.
2359 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2360 new VPRED ambiguity.
2361 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2362 (add<SVE_FULL_I:mode>3): Extend to...
2363 (add<SVE_I:mode>3): ...this.
2364 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2365 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2366 (VPRED, vpred): Likewise.
2367 (Vctype): New iterator.
2368 (vw): Remove SVE modes.
2369
2370 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2371
2372 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2373 (SVE_PARTIAL_I): ...this.
2374 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2375
2376 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2377
2378 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2379 (SVE_FULL): ...this.
2380 (SVE_I): Rename to...
2381 (SVE_FULL_I): ...this.
2382 (SVE_F): Rename to...
2383 (SVE_FULL_F): ...this.
2384 (SVE_BHSI): Rename to...
2385 (SVE_FULL_BHSI): ...this.
2386 (SVE_HSD): Rename to...
2387 (SVE_FULL_HSD): ...this.
2388 (SVE_HSDI): Rename to...
2389 (SVE_FULL_HSDI): ...this.
2390 (SVE_HSF): Rename to...
2391 (SVE_FULL_HSF): ...this.
2392 (SVE_SD): Rename to...
2393 (SVE_FULL_SD): ...this.
2394 (SVE_SDI): Rename to...
2395 (SVE_FULL_SDI): ...this.
2396 (SVE_SDF): Rename to...
2397 (SVE_FULL_SDF): ...this.
2398 (SVE_S): Rename to...
2399 (SVE_FULL_S): ...this.
2400 (SVE_D): Rename to...
2401 (SVE_FULL_D): ...this.
2402 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2403 * config/aarch64/aarch64-sve2.md: Likewise.
2404
2405 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2406
2407 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2408 New option.
2409 * doc/invoke.texi: Document it.
2410 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2411 By default, return VECT_COMPARE_COSTS for SVE.
2412
2413 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2414
2415 * target.h (VECT_COMPARE_COSTS): New constant.
2416 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2417 * doc/tm.texi: Regenerate.
2418 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2419 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2420 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2421 Likewise.
2422 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2423 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2424 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2425 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2426 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2427 (_loop_vec_info::vec_inside_cost): New member variables.
2428 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2429 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2430 (vect_analyze_loop): When autovectorize_vector_modes returns
2431 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2432 vector mode and picking the one with the lowest cost.
2433 (vect_estimate_min_profitable_iters): Record the computed costs
2434 in the loop_vec_info.
2435
2436 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2437
2438 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2439 element type rather than an element mode.
2440 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2441 Use get_vectype_for_scalar_type to query the natural types
2442 for a given element type rather than basing everything on
2443 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2444 query to MAX_FIXED_MODE_SIZE.
2445 (duplicate_and_interleave): Update call accordingly.
2446 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2447
2448 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2449
2450 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2451 optional maximum nunits.
2452 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2453 takes an slp_tree.
2454 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2455 (vect_get_mask_type_for_stmt): Likewise.
2456 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2457 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2458 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2459 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2460 to get an assumed vector type for data references.
2461 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2462 (vect_update_all_shared_vectypes): Likewise.
2463 (vect_build_slp_tree_1): Pass the group size to
2464 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2465 for BB vectorization.
2466 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2467 before building the vectof from scalars.
2468 (vect_analyze_slp_instance): Pass the group size to
2469 get_vectype_for_scalar_type.
2470 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2471 types for BB vectorization here; just handle the case in which
2472 we deferred the choice for booleans.
2473 (vect_get_constant_vectors): Pass the slp_tree to
2474 get_vectype_for_scalar_type.
2475 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2476 (vectorizable_call): Likewise.
2477 (vectorizable_simd_clone_call): Likewise.
2478 (vectorizable_conversion): Likewise.
2479 (vectorizable_shift): Likewise.
2480 (vectorizable_operation): Likewise.
2481 (vectorizable_comparison): Likewise.
2482 (vect_is_simple_cond): Take the slp_tree as argument and
2483 pass it to get_vectype_for_scalar_type.
2484 (vectorizable_condition): Update call accordingly.
2485 (get_vectype_for_scalar_type): Take a group_size argument.
2486 For BB vectorization, limit the the vector to that number
2487 of elements. Also define an overload that takes an slp_tree.
2488 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2489 pass it to get_vectype_for_scalar_type.
2490 (vect_get_vector_types_for_stmt): Add a group_size argument
2491 and pass it to get_vectype_for_scalar_type. Don't use the
2492 cached vector type for BB vectorization if a group size is given.
2493 Handle data references in that case.
2494 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2495 pass it to get_mask_type_for_scalar_type.
2496
2497 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2498
2499 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2500 parameter.
2501 (estimate_edge_time): Use it.
2502 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2503 ret_nonspec_time parameter.
2504
2505 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2506
2507 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2508
2509 2019-11-15 Nick Clifton <nickc@redhat.com>
2510 Szabolcs Nagy <szabolcs.nagy@arm.com>
2511
2512 PR target/65649
2513 * config/microblaze/microblaze.c (print_operand): Print value as long.
2514
2515 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2516
2517 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2518 accidental commit.
2519
2520 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2521
2522 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2523 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2524
2525 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2526
2527 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2528 (gcn_conditional_register_usage): Use constants in place of hard-coded
2529 values.
2530 (gcn_hsa_declare_function_name): Set lower bound for number of
2531 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2532 MAX_NORMAL_VGPR_COUNT.
2533
2534 2019-11-15 Martin Jambor <mjambor@suse.cz>
2535
2536 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2537 declaration.
2538
2539 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2540
2541 * config/gcn/gcn.c (default_requested_args): New.
2542 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2543 set with default_requested_args.
2544 (gcn_conditional_register_usage): Limit register usage of non-kernel
2545 functions. Reassign fixed registers if a non-standard set of args is
2546 requested.
2547 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2548
2549 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2550
2551 PR ipa/92528
2552 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2553 aggregate jump function when inlined-to caller has no edge summary.
2554
2555 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2556
2557 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2558
2559 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2560
2561 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2562 prologue use of v0.
2563 (print_operand_address): Use v1 for zero vector offset.
2564
2565 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2566
2567 PR tree-optimization/92515
2568 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2569 types when converting a vector/scalar shift into a vector/vector one,
2570 using tree_nop_conversion_p instead of useless_type_conversion_p.
2571 Move the conversion code to the transform block.
2572
2573 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2574
2575 * read-rtl-function.c
2576 (function_reader::add_fixup_source_location): Take additional
2577 parameter of a column.
2578 (function_reader::maybe_read_location): Optionally parse column
2579 information and pass to add_fixup_source_location.
2580
2581 2019-11-15 Richard Biener <rguenther@suse.de>
2582
2583 PR tree-optimization/92512
2584 * tree-vect-loop.c (check_reduction_path): Fix operand index
2585 computability check. Add check for second use in COND_EXPRs.
2586
2587 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2588
2589 PR target/92515
2590 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2591 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2592
2593 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2594
2595 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2596 register class for VCC_LO and VCC_HI.
2597 (gcn_spill_class): Use SGPR_REGS to spill registers in
2598 VCC_CONDITIONAL_REG.
2599
2600 2019-11-15 Richard Biener <rguenther@suse.de>
2601
2602 PR tree-optimization/92324
2603 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2604 singedness of SLP reduction epilouge operations. Also reduce
2605 the vector width for SLP reductions before doing elementwise
2606 operations if possible.
2607
2608 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2609
2610 * passes.c (skip_pass): Set epilogue_completed if skipping the
2611 pro_and_epilogue pass.
2612
2613 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2614
2615 * passes.c (should_skip_pass_p): Always run "dfinish".
2616
2617 2019-11-15 Richard Biener <rguenther@suse.de>
2618
2619 * ipa-inline.c (inline_small_functions): Move assignment
2620 to next before call destroying edge.
2621
2622 2019-11-15 Richard Biener <rguenther@suse.de>
2623
2624 PR tree-optimization/92039
2625 PR tree-optimization/91975
2626 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2627 previous change, treat invariants consistently as non-constant.
2628 (tree_estimate_loop_size): Ternary ops with just the first op
2629 constant are not optimized away.
2630
2631 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2632
2633 * gimplify.c (gimplify_call_expr): Don't call
2634 omp_resolve_declare_variant after gimplification.
2635 * omp-general.c (omp_context_selector_matches): For isa that might
2636 match in some other function, defer if in declare simd function.
2637 (omp_context_compute_score): Don't look for " score" in construct
2638 trait set. Set *score to -1 if it can't ever match.
2639 (omp_resolve_declare_variant): If any variants need to be deferred,
2640 don't punt immediately, but compute scores of all variants and if
2641 ther eis a score winner that doesn't need to be deferred, return that.
2642
2643 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2644
2645 * ipa-comdats.c: Fix comments typo.
2646 * ipa-profile.c: Fix comments typo.
2647 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2648 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2649 (gimple_gen_ic_func_profiler): Likewise.
2650 (pass_ipa_tree_profile::gate): Fix comments typo.
2651
2652 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2653
2654 * ipa-inline.c (inline_small_functions): Update iterator of next.
2655
2656 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2657
2658 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2659 register is suitable for the mode.
2660
2661 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2662
2663 * range-op.h (range_operator::fold_range): Return a bool.
2664 * range-op.cc (range_operator::wi_fold): Assert supported type.
2665 (range_operator::fold_range): Assert supported type and return true.
2666 (operator_equal::fold_range): Return true.
2667 (operator_not_equal::fold_range): Same.
2668 (operator_lt::fold_range): Same.
2669 (operator_le::fold_range): Same.
2670 (operator_gt::fold_range): Same.
2671 (operator_ge::fold_range): Same.
2672 (operator_plus::op1_range): Adjust call to fold_range.
2673 (operator_plus::op2_range): Same.
2674 (operator_minus::op1_range): Same.
2675 (operator_minus::op2_range): Same.
2676 (operator_exact_divide::op1_range): Same.
2677 (operator_lshift::fold_range): Return true and adjust fold_range call.
2678 (operator_rshift::fold_range): Same.
2679 (operator_cast::fold_range): Return true.
2680 (operator_logical_and::fold_range): Same.
2681 (operator_logical_or::fold_range): Same.
2682 (operator_logical_not::fold_range): Same.
2683 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2684 (operator_bitwise_not::op1_range): Same.
2685 (operator_cst::fold_range): Return true.
2686 (operator_identity::fold_range): Return true.
2687 (operator_negate::fold_range): Return true and adjust fold_range call.
2688 (operator_addr_expr::fold_range): Return true.
2689 (operator_addr_expr::op1_range): Adjust call to fold_range.
2690 (range_cast): Same.
2691 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2692 (range_fold_unary_symbolics_p): Same.
2693
2694 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2695
2696 PR tree-optimization/92506
2697 * range-op.cc (range_operator::fold_range): Start with range undefined.
2698 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2699 overflow is varying.
2700
2701 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2702
2703 * range-op.cc (*operator*::*range): Remove calls to
2704 range_intersect, range_invert, and range_union in favor of calling
2705 the in-place API methods.
2706 (range_tests): Same.
2707 * range.cc (range_intersect): Remove.
2708 (range_union): Remove.
2709 (range_invert): Remove.
2710 * range.h (range_intersect): Remove.
2711 (range_union): Remove.
2712 (range_intersect): Remove.
2713
2714 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2715
2716 PR rtl-optimization/92430
2717 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2718 (pass_jump_after_combine::execute): Perform jump threading
2719 unconditionally.
2720
2721 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2722 Doug Rupp <rupp@adacore.com>
2723 Olivier Hainque <hainque@adacore.com>
2724
2725 * config.gcc: Collapse the arm-vxworks entries into
2726 a single arm-wrs-vxworks7* one, bpabi based. Update
2727 the default cpu from arm8 to armv7-a
2728 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2729 we always use ARM_UNWIND_INFO.
2730 (DWARF2_UNWIND_INFO): Remove redefinition.
2731 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2732 (VXWORKS_PERSONALITY): Define, to "llvm".
2733 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2734
2735 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2736
2737 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2738 _VX_CPU instead of CPU and handle arm_arch8.
2739
2740 2019-11-14 Doug Rupp <rupp@adacore.com>
2741 Olivier Hainque <hainque@adacore.com>
2742 Jerome Lambourg <lambourg@adacore.com>
2743
2744 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2745 * config/aarch64/aarch64-vxworks.h: New file.
2746 * config/aarch64/t-aarch64-vxworks: New file.
2747
2748 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2749 Olivier Hainque <hainque@adacore.com>
2750
2751 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2752 definition, pointless with a VxWorks specific version
2753 of crtstuff.
2754 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2755 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2756 New local macros, controlling the addition of vxworks specific
2757 crtstuff objects depending on the EH mechanism and kind of
2758 module being linked.
2759 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2760
2761 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2762 Jerome Lambourg <lambourg@adacore.com>
2763 Olivier Hainque <hainque@adacore.com>
2764
2765 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2766 common macro definitions, conveying VXWORKS7 or 64bit general
2767 variations. Add a block to set gcc_cv_initfini_array
2768 unconditionally to "yes" for VxWorks7.
2769 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2770 by default. Update some comments.
2771 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2772 default, to be added the end of VXWORKS_LIBS_RTP.
2773 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2774 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2775 redefine.
2776 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2777 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2778 to account for the now available TLS abilities.
2779 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2780 (VXWORKS_HAVE_TLS): Likewise.
2781
2782 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2783
2784 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2785 (vect_slp_convert_to_external): Likewise.
2786 (vect_slp_analyze_node_operations): If analysis fails, try building
2787 the node from scalars instead.
2788
2789 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2790
2791 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2792 between vector types.
2793 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2794 non-widening and non-narrowing path to handle standard
2795 conversion codes, if the target supports them.
2796 * expr.c (convert_move): Try using the extend and truncate optabs
2797 for vectors.
2798 * optabs-tree.c (supportable_convert_operation): Likewise.
2799 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2800 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2801 (trunc<mode><Vnarrowq>2): New patterns.
2802
2803 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2804
2805 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2806 require vectype and nunits_vectype to have the same size;
2807 instead assert that nunits_vectype has at least as many
2808 elements as vectype. Don't compute a separate nunits_vectype
2809 if the scalar type is obviously the same as vectype's.
2810 Tweak dump messages.
2811
2812 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2813
2814 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2815 function.
2816 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2817 (TARGET_VECTORIZE_RELATED_MODE): Define.
2818
2819 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2820
2821 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2822 (vec_info::used_vector_mode): New member variable.
2823 (vect_chooses_same_modes_p): Declare.
2824 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2825 chosen vector mode in vec_info::used_vector_mode.
2826 (vect_chooses_same_modes_p): New function.
2827 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2828 the same vector statements multiple times.
2829 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2830
2831 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2832
2833 * machmode.h (opt_machine_mode::operator==): New function.
2834 (opt_machine_mode::operator!=): Likewise.
2835 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2836 (get_related_vectype_for_scalar_type): Delete.
2837 (get_vectype_for_scalar_type_and_size): Declare.
2838 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2839 whether analysis passed or failed, and with what vector modes.
2840 Use related_vector_mode to check whether trying a particular
2841 vector mode would be redundant with the autodetected mode,
2842 and print a dump message if we decide to skip it.
2843 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2844 (vect_create_epilog_for_reduction): Use
2845 get_related_vectype_for_scalar_type instead of
2846 get_vectype_for_scalar_type_and_size.
2847 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2848 with...
2849 (get_related_vectype_for_scalar_type): ...this new function.
2850 Take a starting/"prevailing" vector mode rather than a vector size.
2851 Take an optional nunits argument, with the same meaning as for
2852 related_vector_mode. Use related_vector_mode when not
2853 auto-detecting a mode, falling back to mode_for_vector if no
2854 target mode exists.
2855 (get_vectype_for_scalar_type): Update accordingly.
2856 (get_same_sized_vectype): Likewise.
2857 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2858
2859 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2860
2861 * tree-vect-stmts.c (vectorizable_call): Require the types
2862 to have the same size.
2863
2864 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2865
2866 * tree-vect-stmts.c (vectorizable_call): If an operand is
2867 constant or external, use get_vectype_for_scalar_type
2868 rather than get_same_sized_vectype to get its vector type.
2869 (vectorizable_conversion, vectorizable_shift): Likewise.
2870 (vectorizable_operation): Likewise.
2871
2872 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2873
2874 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2875 (vec_info::vector_mode): ...this new field.
2876 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2877 (vect_analyze_loop, vect_transform_loop): Likewise.
2878 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2879 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2880 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2881 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2882 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2883
2884 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2885
2886 * target.h (vector_sizes, auto_vector_sizes): Delete.
2887 (vector_modes, auto_vector_modes): New typedefs.
2888 * target.def (autovectorize_vector_sizes): Replace with...
2889 (autovectorize_vector_modes): ...this new hook.
2890 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2891 Replace with...
2892 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2893 * doc/tm.texi: Regenerate.
2894 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2895 (default_autovectorize_vector_modes): New function.
2896 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2897 (default_autovectorize_vector_modes): New function.
2898 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2899 of autovectorize_vector_sizes. Use the number of units in the mode
2900 to calculate the maximum VF.
2901 * omp-low.c (omp_clause_aligned_alignment): Use
2902 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2903 Use a loop based on related_mode to iterate through all supported
2904 vector modes for a given scalar mode.
2905 * optabs-query.c (can_vec_mask_load_store_p): Use
2906 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2907 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2908 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2909 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2910 Replace with...
2911 (aarch64_autovectorize_vector_modes): ...this new function.
2912 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2913 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2914 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2915 (arc_autovectorize_vector_modes): ...this new function.
2916 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2917 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2918 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2919 (arm_autovectorize_vector_modes): ...this new function.
2920 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2921 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2922 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2923 (ix86_autovectorize_vector_modes): ...this new function.
2924 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2925 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2926 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2927 (mips_autovectorize_vector_modes): ...this new function.
2928 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2929 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2930
2931 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2932
2933 * tree-vect-stmts.c (vectorizable_shift): Check the number
2934 of vector elements as well as the type mode when deciding
2935 whether an op1_vectype is compatible. Reuse the result of
2936 this check when generating vector statements.
2937
2938 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2939
2940 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2941 targetm.vectorize.preferred_simd_mode returns an integer mode,
2942 use mode_for_vector to decide what the vector type's mode
2943 should actually be. Use build_vector_type_for_mode instead
2944 of build_vector_type.
2945
2946 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2947
2948 * target.def (get_mask_mode): Take a vector mode itself as argument,
2949 instead of properties about the vector mode.
2950 * doc/tm.texi: Regenerate.
2951 * targhooks.h (default_get_mask_mode): Update to reflect new
2952 get_mode_mask interface.
2953 * targhooks.c (default_get_mask_mode): Likewise. Use
2954 related_int_vector_mode.
2955 * optabs-query.c (can_vec_mask_load_store_p): Update call
2956 to get_mask_mode.
2957 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2958 first that the original mode really is a vector.
2959 * tree.c (build_truth_vector_type_for): Likewise.
2960 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2961 get_mode_mask interface.
2962 (aarch64_expand_sve_vcond): Update call accordingly.
2963 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2964 get_mode_mask interface.
2965 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2966
2967 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2968
2969 * tree.h (build_truth_vector_type): Delete.
2970 (build_same_sized_truth_vector_type): Likewise.
2971 * tree.c (build_truth_vector_type): Rename to...
2972 (build_truth_vector_type_for): ...this. Make static and take
2973 a vector type as argument.
2974 (truth_type_for): Update accordingly.
2975 (build_same_sized_truth_vector_type): Delete.
2976 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2977 instead of build_same_sized_truth_vector_type.
2978 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2979 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2980 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2981 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2982 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2983 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2984 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2985 (vectorizable_store, vectorizable_condition): Likewise.
2986 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2987 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2988 build_truth_vector_type.
2989 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2990 Use truth_type_for instead of build_same_sized_truth_vector_type.
2991 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2992
2993 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2994
2995 * tree.h (build_truth_vector_type_for_mode): Declare.
2996 * tree.c (build_truth_vector_type_for_mode): New function,
2997 split out from...
2998 (build_truth_vector_type): ...here.
2999 (build_opaque_vector_type): Fix head comment.
3000 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3001 vec_info parameter.
3002 (vect_halve_mask_nunits): Replace vec_info parameter with the
3003 mode of the new vector.
3004 (vect_double_mask_nunits): Likewise.
3005 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3006 (vect_double_mask_nunits): Likewise.
3007 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3008 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3009 to vect_halve_mask_nunits, getting the required mode from the unpack
3010 patterns.
3011 (vect_set_loop_condition_masked): Update call accordingly.
3012 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3013 parameter and update call to vect_double_mask_nunits.
3014 (vectorizable_conversion): Update call accordingly.
3015 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3016 (vectorizable_call): Update call accordingly.
3017 (supportable_widening_operation): Update call to
3018 vect_halve_mask_nunits.
3019 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3020 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3021
3022 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3023
3024 * machmode.h (mode_for_int_vector): Delete.
3025 (related_int_vector_mode): Declare.
3026 * stor-layout.c (mode_for_int_vector): Delete.
3027 (related_int_vector_mode): New function.
3028 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3029 instead of mode_for_int_vector.
3030 (expand_vec_perm_const): Likewise.
3031 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3032 (aarch64_evpc_sve_tbl): Likewise.
3033 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3034 (s390_expand_vcond): Likewise.
3035
3036 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3037
3038 * target.def (related_mode): New hook.
3039 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3040 * doc/tm.texi: Regenerate.
3041 * targhooks.h (default_vectorize_related_mode): Declare.
3042 * targhooks.c (default_vectorize_related_mode): New function.
3043 * machmode.h (related_vector_mode): Declare.
3044 * stor-layout.c (related_vector_mode): New function.
3045 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3046 * optabs-query.c (qimode_for_vec_perm): Likewise.
3047 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3048 (vectorizable_store, vectorizable_load): Likewise
3049
3050 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3051
3052 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3053 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3054 * config/arm/arm-c.c (arm_cpu_builtins): Define
3055 __GCC_ASM_FLAG_OUTPUTS__.
3056 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3057 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3058 Define __GCC_ASM_FLAG_OUTPUTS__.
3059 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3060 * doc/extend.texi (FlagOutputOperands): Add documentation
3061 for ARM and AArch64.
3062
3063 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3064 * config/arm/predicates.md (nz_comparison_operator): Rename
3065 from noov_comparison_operator.
3066 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3067 (arm_gen_dicompare_reg): Likewise.
3068 (maybe_get_arm_condition_code): Likewise.
3069 (thumb1_final_prescan_insn): Likewise.
3070 (arm_emit_coreregs_64bit_shift): Likewise.
3071 * config/arm/arm.md (addsi3_compare0): Likewise.
3072 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3073 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3074 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3075 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3076 (*mulsi3addsi_compare0_scratch): Likewise.
3077 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3078 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3079 (*zeroextractsi_compare0_scratch): Likewise.
3080 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3081 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3082 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3083 (andsi_not_shiftsi_si_scc): Likewise.
3084 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3085 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3086 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3087 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3088 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3089 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3090 (return_addr_mask, *check_arch2): Likewise.
3091 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3092 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3093 (compare_scc splitters): Likewise.
3094 (movcond_addsi): Likewise.
3095 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3096 (*thumb2_addsi3_compare0_scratch): Likewise.
3097 (*thumb2_mulsi_short_compare0): Likewise.
3098 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3099 (compare peephole2s): Likewise.
3100 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3101 nz_comparison_operator names.
3102 (cbranchsi4_insn): Likewise.
3103
3104 * config/arm/constraints.md (c): Use cc_register predicate.
3105
3106 * config/aarch64/constraints.md (c): New constraint.
3107
3108 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3109
3110 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3111 ipa_merge_fn_summary_after_inlining): Micro optimize.
3112
3113 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3114
3115 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3116
3117 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3118
3119 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3120 (ipa_value_range_from_jfunc): New function.
3121 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3122 known_value_ranges parameter; use it to evalulate conditions.
3123 (evaluate_properties_for_edge): Compute known value ranges.
3124 (ipa_fn_summary_t::duplicate): Update use of
3125 evaluate_conditions_for_known_args.
3126 (estimate_ipcp_clone_size_and_time): Likewise.
3127 (ipa_merge_fn_summary_after_inlining): Likewise.
3128 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3129
3130 2019-11-14 Martin Liska <mliska@suse.cz>
3131
3132 * ipa-inline.c (want_inline_small_function_p): Use
3133 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3134 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3135
3136 2019-11-14 Martin Liska <mliska@suse.cz>
3137
3138 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3139 of a callee to get value of the param.
3140 * ipa-inline.c (inline_insns_auto): Use proper
3141 opt_for_fn.
3142 * opts.c (maybe_default_option): Do not overwrite param
3143 value if optimization level does not match. Note that
3144 params usually have default value set via Init() keyword.
3145 * params.opt: Remove -param=max-inline-insns-auto-O2.
3146 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3147 * doc/invoke.texi: Remove documentation of
3148 max-inline-insns-auto-O2.
3149
3150 2019-11-14 Martin Liska <mliska@suse.cz>
3151
3152 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3153 Do not initialize m_other_count.
3154 (switch_conversion::collect): Do not count m_default_count and
3155 m_other_count as we use frequencies for edges.
3156 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3157
3158 2019-11-14 Martin Liska <mliska@suse.cz>
3159
3160 PR other/92329
3161 * doc/invoke.texi: Document -fallocation-dce.
3162
3163 2019-11-14 Martin Liska <mliska@suse.cz>
3164
3165 PR target/92389
3166 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3167 PTA_ICELAKE_CLIENT which is later interited by
3168 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3169
3170 2019-11-14 Martin Liska <mliska@suse.cz>
3171
3172 * ipa-icf.c (sem_item_optimizer::execute): Save
3173 loaded_symbols.
3174 (sem_item_optimizer::parse_nonsingleton_classes):
3175 Return number of loaded symbols.
3176 (sem_item_optimizer::merge_classes): Print
3177 statistics about totally needed symbols.
3178 * ipa-icf.h (parse_nonsingleton_classes): Change return
3179 type.
3180 (merge_classes): Add one argument.
3181
3182 2019-11-14 Martin Liska <mliska@suse.cz>
3183
3184 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3185 func_checker::hash_operand by handling of FIELD_DECLs.
3186
3187 2019-11-14 Martin Liska <mliska@suse.cz>
3188
3189 * ipa-icf-gimple.h (func_checker::func_checker): Add
3190 default constructor.
3191 * ipa-icf.c (sem_function::init): Make operand_equal_p
3192 and hash_operand public.
3193 (sem_item::add_expr): Remove.
3194 (sem_item::add_type): Remove.
3195 (sem_function::hash_stmt): Use m_checker for hashing
3196 of GIMPLE statements.
3197 (sem_function::parse): Init with checker.
3198 (sem_variable::parse): Pass NULL as checker.
3199 (sem_item_optimizer::parse_funcs_and_vars):
3200 Pass checker to ::parse function.
3201 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3202 (sem_variable::parse): New function.
3203 (sem_variable::get_hash): Only return computed hash value.
3204 (sem_variable::init): Initialize hash of a variable.
3205 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3206 to couple of functions as a new argument.
3207
3208 2019-11-14 Martin Liska <mliska@suse.cz>
3209
3210 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3211 bail out reason.
3212 (func_checker::compare_gimple_assign): Likewise.
3213
3214 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3215
3216 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3217 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3218 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3219
3220 * omp-general.c (omp_context_name_list_prop): New function.
3221 (omp_context_selector_matches): Use it. Return 0 if it returns
3222 NULL.
3223 (omp_context_selector_props_compare): Allow equivalency of an
3224 identifier and a string literal containing no embedded zeros.
3225
3226 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3227
3228 * range-op.cc (RANGE3): Remove.
3229 (range_tests): Remove all selftest that check for multi-ranges.
3230 Put tests in namespace selftest.
3231 * selftest.h: Move range_tests into namespace selftest.
3232 * value-range.h (class value_range): Unfriend range_tests.
3233
3234 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3235
3236 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3237 normalize_symbolics and normalize_addresses working in place.
3238 (range_fold_unary_symbolics_p): Same.
3239 (range_fold_unary_symbolics_p): Same.
3240 * value-range.cc (num_pairs): Same.
3241 (lower_bound): Same.
3242 (upper_bound): Same.
3243 (contains_p): Same.
3244 (normalize_addresses): Same.
3245 (normalize_symbolics): Same.
3246 * value-range.h (normalize_symbolics): Same.
3247 (normalize_addresses): Same.
3248
3249 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3250
3251 PR ipa/91682
3252 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3253 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3254 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3255 (ipa_agg_jump_function): Remove member function equal_to.
3256 (ipa_agg_jump_function_p): Remove typedef.
3257 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3258 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3259 information for aggregate jump function.
3260 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3261 record last definition statement.
3262 (load_from_unmodified_param_or_agg): New function.
3263 (ipa_known_agg_contents_list): Add new field type and value, remove
3264 field constant.
3265 (build_agg_jump_func_from_list): Rename parameter const_count to
3266 value_count, build aggregate jump function from ipa_load_agg_data.
3267 (analyze_agg_content_value): New function.
3268 (extract_mem_content): Analyze memory store assignment to prepare
3269 information for aggregate jump function generation.
3270 (determine_known_aggregate_parts): Add new parameter fbi, remove
3271 parameter aa_walk_budeget_p.
3272 (update_jump_functions_after_inlining): Update aggregate jump function.
3273 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3274 (try_make_edge_direct_simple_call): Add new parameter new_root.
3275 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3276 new_root_info.
3277 (update_indirect_edges_after_inlining): Pass new argument to
3278 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3279 (ipa_write_jump_function): Write aggregate jump function to file.
3280 (ipa_read_jump_function): Read aggregate jump function from file.
3281 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3282 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3283 (ipa_agg_value_from_node): Likewise.
3284 (ipa_agg_value_set_from_jfunc): Likewise.
3285 (propagate_vals_across_arith_jfunc): Likewise.
3286 (propagate_aggregate_lattice): Likewise.
3287 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3288 (propagate_vals_across_pass_through): Call
3289 propagate_vals_across_arith_jfunc.
3290 (get_clone_agg_value): Move forward.
3291 (propagate_aggs_across_jump_function): Handle value propagation for
3292 aggregate jump function.
3293 (agg_jmp_p_vec_for_t_vec): Remove.
3294 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3295 with vec<ipa_agg_value>.
3296 (copy_plats_to_inter, intersect_with_plats): Likewise.
3297 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3298 (intersect_aggregate_with_edge): Likewise.
3299 (find_aggregate_values_for_callers_subset): Likewise.
3300 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3301 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3302 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3303 (gather_context_independent_values): Likewise.
3304 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3305 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3306 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3307 (evaluate_properties_for_edge): Likewise.
3308 (estimate_edge_devirt_benefit): Likewise.
3309 (estimate_edge_size_and_time): Likewise.
3310 (estimate_calls_size_and_time): Likewise.
3311 (ipa_call_context::ipa_call_context): Likewise.
3312 (estimate_ipcp_clone_size_and_time): Likewise.
3313 * ipa-fnsummary.h (ipa_call_context): Replace
3314 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3315 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3316 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3317 (do_estimate_edge_size): Likewise.
3318 (do_estimate_edge_hints): Likewise.
3319
3320 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3321
3322 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3323 binary operations.
3324
3325 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3326
3327 * ipa-profile.c (check_argument_count): Check properly that e_info
3328 is non-NULL; do not check descriptors.
3329
3330 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3331
3332 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3333 check for ipa profiles.
3334
3335 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3336
3337 PR c++/92421
3338 * ipa-prop.c (update_indirect_edges_after_inlining):
3339 Mark parameter as used.
3340 * ipa-inline.c (recursive_inlining): Reset node cache
3341 after inlining.
3342 (inline_small_functions): Remove checking ifdef.
3343 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3344 cache consistency.
3345
3346 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3347
3348 PR ipa/92498
3349 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3350 is NULL.
3351 (ipa_profile): Fix reversed test.
3352
3353 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3354
3355 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3356 (propagate_constants_topo): Fix typo.
3357
3358 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3359
3360 * Makefile.in (OBJS): Add value-range.o.
3361 (GTFILES): Add value-range.h.
3362 * gengtype.c (open_base_files): Add value-range.h to list of
3363 header files.
3364 * tree-vrp.c: Move the following value_range related functions:
3365 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3366 constant_p, set_undefined, set_varying, may_contain_p,
3367 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3368 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3369 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3370 value_inside_range, ranges_from_anti_range, union_ranges,
3371 intersect_ranges, intersect_helper, union_helper, union_,
3372 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3373 upper_bound, contains_p, invert, intersect...
3374 * value-range.cc: ...to here.
3375 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3376 associated inline methods from here...
3377 * value-range.h: ...to here.
3378
3379 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3380
3381 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3382 instead of asserting its value.
3383
3384 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3385
3386 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3387 constructors and set methods so value_range_kind is the last
3388 argument and defaults to VR_RANGE.
3389 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3390 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3391 * ipa-prop.c (ipa_get_value_range): Same.
3392 (ipa_compute_jump_functions_for_edge): Same.
3393 * range-op.cc (value_range_from_overflowed_bounds): Same.
3394 (operator_cast::op1_range): Same.
3395 (range_tests): Same.
3396 * range.cc (range_nonzero): Same.
3397 * tree-ssanames.c (get_range_info): Same.
3398 * tree-vrp.c (value_range_equiv::set): Same.
3399 (value_range::value_range): Same.
3400 (value_range_equiv::value_range_equiv): Same.
3401 (value_range_equiv::update): Same.
3402 (value_range_equiv::deep_copy): Same.
3403 (value_range_equiv::move): Same.
3404 (value_range_equiv::set_undefined): Same.
3405 (value_range::set): Same.
3406 (value_range::set_nonzero): Same.
3407 (ranges_from_anti_range): Same.
3408 (extract_range_from_plus_minus_expr): Same.
3409 (value_range::intersect_helper): Same.
3410 (value_range_equiv::intersect): Same.
3411 (value_range::union_helper): Same.
3412 (value_range_equiv::union_): Same.
3413 (value_range::normalize_symbolics): Same.
3414 (value_range::invert): Same.
3415 (determine_value_range_1): Same.
3416 * tree-vrp.h (class value_range): Same.
3417 (class value_range_equiv): Same.
3418 * vr-values.c (set_value_range_to_nonnegative): Same.
3419 (set_value_range_to_truthvalue): Same.
3420 (vr_values::update_value_range): Same.
3421 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3422 (vr_values::extract_range_from_binary_expr): Same.
3423 (vr_values::extract_range_from_comparison): Same.
3424 (vr_values::extract_range_basic): Same.
3425 (vr_values::adjust_range_with_scev): Same.
3426 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3427 (vr_values::extract_range_from_phi_node): Same.
3428
3429 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3430
3431 * tree-dump.c (dequeue_and_dump): Print first tree operand
3432 for VIEW_CONVERT_EXPR.
3433
3434 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3435
3436 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3437 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3438 * real.c (get_max_float): Add norm_max argument.
3439 * real.h (get_max_float): Update prototype.
3440 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3441 get_max_float.
3442
3443 2019-11-13 Martin Liska <mliska@suse.cz>
3444
3445 * dbgcnt.c (test_sorted_dbg_counters): New.
3446 (dbgcnt_c_tests): Likewise.
3447 * selftest-run-tests.c (selftest::run_tests): Likewise.
3448 * selftest.h (dbgcnt_c_tests): Likewise.
3449
3450 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3451 Martin Jambor <mjambor@suse.cz>
3452
3453 PR ipa/92454
3454 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3455 (identify_dead_nodes): Likewise.
3456
3457 2019-11-13 Martin Liska <mliska@suse.cz>
3458
3459 * ipa-icf.c (sem_function::equals_private): Do not overuse
3460 push/pop_cfun functions.
3461
3462 2019-11-13 Martin Liska <mliska@suse.cz>
3463
3464 * common.opt: Document change of -fdbg-cnt option.
3465 * dbgcnt.c (DEBUG_COUNTER): Remove.
3466 (dbg_cnt_is_enabled): Remove.
3467 (dbg_cnt): Work with new intervals.
3468 (dbg_cnt_set_limit_by_index): Set to new
3469 list of intervals.
3470 (dbg_cnt_set_limit_by_name): Likewise.
3471 (dbg_cnt_process_single_pair): Process new format.
3472 (dbg_cnt_process_opt): Likewise.
3473 (dbg_cnt_list_all_counters): Likewise.
3474 * doc/invoke.texi: Document change of -fdbg-cnt option.
3475 (cmp_tuples): New.
3476
3477 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3478
3479 * ipa-inline.c (ipa_inline): Check that function is defined before
3480 flattening.
3481
3482 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3483 Julian Brown <julian@codesourcery.com>
3484
3485 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3486 flag_worker_partitioning is not set.
3487 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3488 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3489
3490 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3491
3492 * config/gcn/gcn-run.c (heap_region): New global variable.
3493 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3494 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3495 (get_kernarg_region): Move contents to ....
3496 (get_memory_region): .... here.
3497 (get_heap_region): New function.
3498 (init_device): Initialize the heap_region.
3499 (device_malloc): Add region parameter.
3500 (struct kernargs): Move heap ....
3501 (heap): ... to global scope.
3502 (main): Allocate heap separate to kernargs.
3503
3504 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3505
3506 * ipa-prop.c (ipa_print_node_jump_functions,
3507 ipa_print_node_params): Print info about missing summaries.
3508
3509 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3510
3511 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3512 the cost of generating loop masks.
3513
3514 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3515
3516 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3517 New function.
3518 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3519 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3520 (vect_transform_loop): Likewise.
3521 (vect_analyze_loop_costing): Don't take the cost of versioning
3522 into account for the static profitability threshold if it turns
3523 out that no versioning is needed.
3524
3525 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3526
3527 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3528 and target_option_default_node to get -fprofile-generate ctors working
3529 right with LTO.
3530
3531 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3532
3533 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3534 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3535 (vectorizable_assignment): Don't add a cost for nop conversions.
3536 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3537 Likewise.
3538 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3539
3540 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3541
3542 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3543 number of ncopies as an additional argument.
3544 (vectorizable_conversion): Update call accordingly. Use "modifier"
3545 to check whether a conversion is between vectors with the same
3546 numbers of units.
3547
3548 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3549
3550 * config/aarch64/aarch64-sve-builtins-functions.h
3551 (unary_count::expand): Use aarch64_sve_int_mode instead of
3552 mode_for_int_vector.
3553
3554 2019-11-13 Martin Liska <mliska@suse.cz>
3555
3556 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3557
3558 2019-11-13 Martin Liska <mliska@suse.cz>
3559
3560 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3561 Remove call to finalize_options_struct.
3562
3563 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3564
3565 PR target/92055
3566 * config/avr/t-avr (avr-mcus): Do not depend on
3567 $(srcdir)/config/avr/t-multilib.
3568
3569 2019-11-13 Richard Biener <rguenther@suse.de>
3570
3571 PR tree-optimization/92473
3572 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3573 direct optab reduction in the correct type.
3574
3575 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3576
3577 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3578 hexadecimal literal.
3579
3580 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3581
3582 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3583 UNORDERED if !HONOR_NANS (DFmode).
3584 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3585 if !HONOR_NANS (<MODE>mode).
3586
3587 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3588
3589 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3590 (ipcp_verify_propagated_values): Likewise.
3591 (propagate_constants_across_call): Likewise.
3592 (propagate_constants_topo): Likewise.
3593 (ipcp_propagate_stage): Likewise.
3594
3595 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3596
3597 PR ipa/92471
3598 * ipa-profile.c (check_argument_count): Break out from ...;
3599 watch for missing summaries.
3600 (ipa_profile): Here.
3601
3602 2019-11-12 Martin Sebor <msebor@redhat.com>
3603
3604 PR tree-optimization/92412
3605 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3606 extern variables.
3607
3608 2019-11-12 Martin Sebor <msebor@redhat.com>
3609
3610 PR middle-end/83688
3611 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3612 (directive::argno): New member.
3613 (format_result::aliases, format_result::alias_count): New data members.
3614 (format_result::append_alias): New member function.
3615 (fmtresult::dst_offset): New data member.
3616 (pass_sprintf_length::call_info::dst_origin): New data member.
3617 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3618 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3619 (get_origin_and_offset): Same.
3620 (format_string): Call it.
3621 (format_directive): Call append_alias and set directive argument
3622 number.
3623 (maybe_warn_overlap): New function.
3624 (pass_sprintf_length::compute_format_length): Call it.
3625 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3626 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3627
3628 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3629
3630 PR rtl-optimization/92430
3631 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3632 dominance info at the beginning.
3633
3634 2019-11-12 Richard Biener <rguenther@suse.de>
3635
3636 PR tree-optimization/92460
3637 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3638 expression before gimplifying.
3639
3640 2019-11-12 Richard Biener <rguenther@suse.de>
3641
3642 PR tree-optimization/92461
3643 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3644 stmt after propagation.
3645
3646 2019-11-12 Martin Liska <mliska@suse.cz>
3647
3648 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3649 Use SET_OPTION_IF_UNSET.
3650 (ix86_option_override_internal): Likewise.
3651 * opts.c (default_options_optimization): Likewise.
3652 (finish_options): Likewise.
3653 (enable_fdo_optimizations): Likewise.
3654 (common_handle_option): Likewise.
3655
3656 2019-11-12 Martin Liska <mliska@suse.cz>
3657
3658 * common/common-target.def: Remove option_validate_param and
3659 option_default_params.
3660 * common/common-targhooks.c (default_option_validate_param):
3661 Remove.
3662 * common/common-targhooks.h (default_option_validate_param):
3663 Remove.
3664 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3665 Remove usage of this.
3666 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3667 (aarch64_option_validate_param): Likewise.
3668 (aarch64_option_default_params): Likewise
3669 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3670 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3671 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3672 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3673 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3674 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3675 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3676 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3677 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3678 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3679 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3680 guard_size here.
3681 * doc/tm.texi: Remove option_default_params and option_validate_param.
3682 * doc/tm.texi.in: Likewise.
3683
3684 2019-11-12 Martin Liska <mliska@suse.cz>
3685
3686 * common/common-target.def:
3687 Do not mention set_default_param_value
3688 and set_param_value.
3689 * doc/tm.texi: Likewise.
3690
3691 2019-11-12 Martin Liska <mliska@suse.cz>
3692
3693 * common.opt: Remove param_values.
3694 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3695 Remove finalize_options_struct.
3696 * gcc.c (driver::decode_argv): Do not call global_init_params
3697 and finish_params.
3698 (driver::finalize): Do not call params_c_finalize
3699 and finalize_options_struct.
3700 * opt-suggestions.c (option_proposer::get_completions): Remove
3701 special casing of params.
3702 (option_proposer::find_param_completions): Remove.
3703 (test_completion_partial_match): Update expected output.
3704 * opt-suggestions.h: Remove find_param_completions.
3705 * opts-common.c (add_misspelling_candidates): Add
3706 --param with a space.
3707 * opts.c (handle_param): Remove.
3708 (init_options_struct):. Remove init_options_struct and
3709 similar calls.
3710 (finalize_options_struct): Remove.
3711 (common_handle_option): Use SET_OPTION_IF_UNSET.
3712 * opts.h (finalize_options_struct): Remove.
3713 * toplev.c (general_init): Do not call global_init_params.
3714 (toplev::finalize): Do not call params_c_finalize and
3715 finalize_options_struct.
3716
3717 2019-11-12 Martin Liska <mliska@suse.cz>
3718
3719 * Makefile.in: Remove PARAMS_H and params.list
3720 and params.options.
3721 * params-enum.h: Remove.
3722 * params-list.h: Remove.
3723 * params-options.h: Remove.
3724 * params.c: Remove.
3725 * params.def: Remove.
3726 * params.h: Remove.
3727 * asan.c: Do not include params.h.
3728 * auto-profile.c: Likewise.
3729 * bb-reorder.c: Likewise.
3730 * builtins.c: Likewise.
3731 * cfgcleanup.c: Likewise.
3732 * cfgexpand.c: Likewise.
3733 * cfgloopanal.c: Likewise.
3734 * cgraph.c: Likewise.
3735 * combine.c: Likewise.
3736 * common/config/aarch64/aarch64-common.c: Likewise.
3737 * common/config/gcn/gcn-common.c: Likewise.
3738 * common/config/ia64/ia64-common.c: Likewise.
3739 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3740 * common/config/rs6000/rs6000-common.c: Likewise.
3741 * common/config/sh/sh-common.c: Likewise.
3742 * config/aarch64/aarch64.c: Likewise.
3743 * config/alpha/alpha.c: Likewise.
3744 * config/arm/arm.c: Likewise.
3745 * config/avr/avr.c: Likewise.
3746 * config/csky/csky.c: Likewise.
3747 * config/i386/i386-builtins.c: Likewise.
3748 * config/i386/i386-expand.c: Likewise.
3749 * config/i386/i386-features.c: Likewise.
3750 * config/i386/i386-options.c: Likewise.
3751 * config/i386/i386.c: Likewise.
3752 * config/ia64/ia64.c: Likewise.
3753 * config/rs6000/rs6000-logue.c: Likewise.
3754 * config/rs6000/rs6000.c: Likewise.
3755 * config/s390/s390.c: Likewise.
3756 * config/sparc/sparc.c: Likewise.
3757 * config/visium/visium.c: Likewise.
3758 * coverage.c: Likewise.
3759 * cprop.c: Likewise.
3760 * cse.c: Likewise.
3761 * cselib.c: Likewise.
3762 * dse.c: Likewise.
3763 * emit-rtl.c: Likewise.
3764 * explow.c: Likewise.
3765 * final.c: Likewise.
3766 * fold-const.c: Likewise.
3767 * gcc.c: Likewise.
3768 * gcse.c: Likewise.
3769 * ggc-common.c: Likewise.
3770 * ggc-page.c: Likewise.
3771 * gimple-loop-interchange.cc: Likewise.
3772 * gimple-loop-jam.c: Likewise.
3773 * gimple-loop-versioning.cc: Likewise.
3774 * gimple-ssa-split-paths.c: Likewise.
3775 * gimple-ssa-sprintf.c: Likewise.
3776 * gimple-ssa-store-merging.c: Likewise.
3777 * gimple-ssa-strength-reduction.c: Likewise.
3778 * gimple-ssa-warn-alloca.c: Likewise.
3779 * gimple-ssa-warn-restrict.c: Likewise.
3780 * graphite-isl-ast-to-gimple.c: Likewise.
3781 * graphite-optimize-isl.c: Likewise.
3782 * graphite-scop-detection.c: Likewise.
3783 * graphite-sese-to-poly.c: Likewise.
3784 * graphite.c: Likewise.
3785 * haifa-sched.c: Likewise.
3786 * hsa-gen.c: Likewise.
3787 * ifcvt.c: Likewise.
3788 * ipa-cp.c: Likewise.
3789 * ipa-fnsummary.c: Likewise.
3790 * ipa-inline-analysis.c: Likewise.
3791 * ipa-inline.c: Likewise.
3792 * ipa-polymorphic-call.c: Likewise.
3793 * ipa-profile.c: Likewise.
3794 * ipa-prop.c: Likewise.
3795 * ipa-split.c: Likewise.
3796 * ipa-sra.c: Likewise.
3797 * ira-build.c: Likewise.
3798 * ira-conflicts.c: Likewise.
3799 * loop-doloop.c: Likewise.
3800 * loop-invariant.c: Likewise.
3801 * loop-unroll.c: Likewise.
3802 * lra-assigns.c: Likewise.
3803 * lra-constraints.c: Likewise.
3804 * modulo-sched.c: Likewise.
3805 * opt-suggestions.c: Likewise.
3806 * opts.c: Likewise.
3807 * postreload-gcse.c: Likewise.
3808 * predict.c: Likewise.
3809 * reload.c: Likewise.
3810 * reorg.c: Likewise.
3811 * resource.c: Likewise.
3812 * sanopt.c: Likewise.
3813 * sched-deps.c: Likewise.
3814 * sched-ebb.c: Likewise.
3815 * sched-rgn.c: Likewise.
3816 * sel-sched-ir.c: Likewise.
3817 * sel-sched.c: Likewise.
3818 * shrink-wrap.c: Likewise.
3819 * stmt.c: Likewise.
3820 * targhooks.c: Likewise.
3821 * toplev.c: Likewise.
3822 * tracer.c: Likewise.
3823 * trans-mem.c: Likewise.
3824 * tree-chrec.c: Likewise.
3825 * tree-data-ref.c: Likewise.
3826 * tree-if-conv.c: Likewise.
3827 * tree-inline.c: Likewise.
3828 * tree-loop-distribution.c: Likewise.
3829 * tree-parloops.c: Likewise.
3830 * tree-predcom.c: Likewise.
3831 * tree-profile.c: Likewise.
3832 * tree-scalar-evolution.c: Likewise.
3833 * tree-sra.c: Likewise.
3834 * tree-ssa-ccp.c: Likewise.
3835 * tree-ssa-dom.c: Likewise.
3836 * tree-ssa-dse.c: Likewise.
3837 * tree-ssa-ifcombine.c: Likewise.
3838 * tree-ssa-loop-ch.c: Likewise.
3839 * tree-ssa-loop-im.c: Likewise.
3840 * tree-ssa-loop-ivcanon.c: Likewise.
3841 * tree-ssa-loop-ivopts.c: Likewise.
3842 * tree-ssa-loop-manip.c: Likewise.
3843 * tree-ssa-loop-niter.c: Likewise.
3844 * tree-ssa-loop-prefetch.c: Likewise.
3845 * tree-ssa-loop-unswitch.c: Likewise.
3846 * tree-ssa-math-opts.c: Likewise.
3847 * tree-ssa-phiopt.c: Likewise.
3848 * tree-ssa-pre.c: Likewise.
3849 * tree-ssa-reassoc.c: Likewise.
3850 * tree-ssa-sccvn.c: Likewise.
3851 * tree-ssa-scopedtables.c: Likewise.
3852 * tree-ssa-sink.c: Likewise.
3853 * tree-ssa-strlen.c: Likewise.
3854 * tree-ssa-structalias.c: Likewise.
3855 * tree-ssa-tail-merge.c: Likewise.
3856 * tree-ssa-threadbackward.c: Likewise.
3857 * tree-ssa-threadedge.c: Likewise.
3858 * tree-ssa-uninit.c: Likewise.
3859 * tree-switch-conversion.c: Likewise.
3860 * tree-vect-data-refs.c: Likewise.
3861 * tree-vect-loop.c: Likewise.
3862 * tree-vect-slp.c: Likewise.
3863 * tree-vrp.c: Likewise.
3864 * tree.c: Likewise.
3865 * value-prof.c: Likewise.
3866 * var-tracking.c: Likewise.
3867
3868 2019-11-12 Martin Liska <mliska@suse.cz>
3869
3870 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3871 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3872 macro.
3873 (asan_sanitize_allocas_p): Likewise.
3874 (asan_emit_stack_protection): Likewise.
3875 (asan_protect_global): Likewise.
3876 (instrument_derefs): Likewise.
3877 (instrument_builtin_call): Likewise.
3878 (asan_expand_mark_ifn): Likewise.
3879 * auto-profile.c (auto_profile): Likewise.
3880 * bb-reorder.c (copy_bb_p): Likewise.
3881 (duplicate_computed_gotos): Likewise.
3882 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3883 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3884 (try_crossjump_bb): Likewise.
3885 * cfgexpand.c (defer_stack_allocation): Likewise.
3886 (stack_protect_classify_type): Likewise.
3887 (pass_expand::execute): Likewise.
3888 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3889 (estimate_reg_pressure_cost): Likewise.
3890 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3891 * combine.c (combine_instructions): Likewise.
3892 (record_value_for_reg): Likewise.
3893 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3894 (aarch64_option_default_params): Likewise.
3895 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3896 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3897 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3898 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3899 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3900 (aarch64_allocate_and_probe_stack_space): Likewise.
3901 (aarch64_expand_epilogue): Likewise.
3902 (aarch64_override_options_internal): Likewise.
3903 * config/alpha/alpha.c (alpha_option_override): Likewise.
3904 * config/arm/arm.c (arm_option_override): Likewise.
3905 (arm_valid_target_attribute_p): Likewise.
3906 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3907 * config/i386/i386.c (get_probe_interval): Likewise.
3908 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3909 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3910 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3911 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3912 (get_stack_clash_protection_guard_size): Likewise.
3913 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3914 * config/s390/s390.c (allocate_stack_space): Likewise.
3915 (s390_emit_prologue): Likewise.
3916 (s390_option_override_internal): Likewise.
3917 * config/sparc/sparc.c (sparc_option_override): Likewise.
3918 * config/visium/visium.c (visium_option_override): Likewise.
3919 * coverage.c (get_coverage_counts): Likewise.
3920 (coverage_compute_profile_id): Likewise.
3921 (coverage_begin_function): Likewise.
3922 (coverage_end_function): Likewise.
3923 * cse.c (cse_find_path): Likewise.
3924 (cse_extended_basic_block): Likewise.
3925 (cse_main): Likewise.
3926 * cselib.c (cselib_invalidate_mem): Likewise.
3927 * dse.c (dse_step1): Likewise.
3928 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3929 (get_max_insn_count): Likewise.
3930 (make_debug_insn_raw): Likewise.
3931 (init_emit): Likewise.
3932 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3933 * final.c (compute_alignments): Likewise.
3934 * fold-const.c (fold_range_test): Likewise.
3935 (fold_truth_andor): Likewise.
3936 (tree_single_nonnegative_warnv_p): Likewise.
3937 (integer_valued_real_single_p): Likewise.
3938 * gcse.c (want_to_gcse_p): Likewise.
3939 (prune_insertions_deletions): Likewise.
3940 (hoist_code): Likewise.
3941 (gcse_or_cprop_is_too_expensive): Likewise.
3942 * ggc-common.c: Likewise.
3943 * ggc-page.c (ggc_collect): Likewise.
3944 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3945 (MAX_DATAREFS): Likewise.
3946 (OUTER_STRIDE_RATIO): Likewise.
3947 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3948 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3949 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3950 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3951 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3952 (imm_store_chain_info::output_merged_store): Likewise.
3953 (pass_store_merging::process_store): Likewise.
3954 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3955 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3956 (scop_to_isl_ast): Likewise.
3957 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3958 (optimize_isl): Likewise.
3959 * graphite-scop-detection.c (build_scops): Likewise.
3960 * haifa-sched.c (set_modulo_params): Likewise.
3961 (rank_for_schedule): Likewise.
3962 (model_add_to_worklist): Likewise.
3963 (model_promote_insn): Likewise.
3964 (model_choose_insn): Likewise.
3965 (queue_to_ready): Likewise.
3966 (autopref_multipass_dfa_lookahead_guard): Likewise.
3967 (schedule_block): Likewise.
3968 (sched_init): Likewise.
3969 * hsa-gen.c (init_prologue): Likewise.
3970 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3971 (cond_move_process_if_block): Likewise.
3972 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3973 (merge_agg_lats_step): Likewise.
3974 (devirtualization_time_bonus): Likewise.
3975 (hint_time_bonus): Likewise.
3976 (incorporate_penalties): Likewise.
3977 (good_cloning_opportunity_p): Likewise.
3978 (ipcp_propagate_stage): Likewise.
3979 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3980 (set_switch_stmt_execution_predicate): Likewise.
3981 (analyze_function_body): Likewise.
3982 (compute_fn_summary): Likewise.
3983 * ipa-inline-analysis.c (estimate_growth): Likewise.
3984 * ipa-inline.c (caller_growth_limits): Likewise.
3985 (inline_insns_single): Likewise.
3986 (inline_insns_auto): Likewise.
3987 (can_inline_edge_by_limits_p): Likewise.
3988 (want_early_inline_function_p): Likewise.
3989 (big_speedup_p): Likewise.
3990 (want_inline_small_function_p): Likewise.
3991 (want_inline_self_recursive_call_p): Likewise.
3992 (edge_badness): Likewise.
3993 (recursive_inlining): Likewise.
3994 (compute_max_insns): Likewise.
3995 (early_inliner): Likewise.
3996 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3997 * ipa-profile.c (ipa_profile): Likewise.
3998 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3999 (ipa_analyze_node): Likewise.
4000 (ipcp_transform_function): Likewise.
4001 * ipa-split.c (consider_split): Likewise.
4002 * ipa-sra.c (allocate_access): Likewise.
4003 (process_scan_results): Likewise.
4004 (ipa_sra_summarize_function): Likewise.
4005 (pull_accesses_from_callee): Likewise.
4006 * ira-build.c (loop_compare_func): Likewise.
4007 (mark_loops_for_removal): Likewise.
4008 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4009 * loop-doloop.c (doloop_optimize): Likewise.
4010 * loop-invariant.c (gain_for_invariant): Likewise.
4011 (move_loop_invariants): Likewise.
4012 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4013 (decide_unroll_runtime_iterations): Likewise.
4014 (decide_unroll_stupid): Likewise.
4015 (expand_var_during_unrolling): Likewise.
4016 * lra-assigns.c (spill_for): Likewise.
4017 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4018 * modulo-sched.c (sms_schedule): Likewise.
4019 (DFA_HISTORY): Likewise.
4020 * opts.c (default_options_optimization): Likewise.
4021 (finish_options): Likewise.
4022 (common_handle_option): Likewise.
4023 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4024 (if): Likewise.
4025 * predict.c (get_hot_bb_threshold): Likewise.
4026 (maybe_hot_count_p): Likewise.
4027 (probably_never_executed): Likewise.
4028 (predictable_edge_p): Likewise.
4029 (predict_loops): Likewise.
4030 (expr_expected_value_1): Likewise.
4031 (tree_predict_by_opcode): Likewise.
4032 (handle_missing_profiles): Likewise.
4033 * reload.c (find_equiv_reg): Likewise.
4034 * reorg.c (redundant_insn): Likewise.
4035 * resource.c (mark_target_live_regs): Likewise.
4036 (incr_ticks_for_insn): Likewise.
4037 * sanopt.c (pass_sanopt::execute): Likewise.
4038 * sched-deps.c (sched_analyze_1): Likewise.
4039 (sched_analyze_2): Likewise.
4040 (sched_analyze_insn): Likewise.
4041 (deps_analyze_insn): Likewise.
4042 * sched-ebb.c (schedule_ebbs): Likewise.
4043 * sched-rgn.c (find_single_block_region): Likewise.
4044 (too_large): Likewise.
4045 (haifa_find_rgns): Likewise.
4046 (extend_rgns): Likewise.
4047 (new_ready): Likewise.
4048 (schedule_region): Likewise.
4049 (sched_rgn_init): Likewise.
4050 * sel-sched-ir.c (make_region_from_loop): Likewise.
4051 * sel-sched-ir.h (MAX_WS): Likewise.
4052 * sel-sched.c (process_pipelined_exprs): Likewise.
4053 (sel_setup_region_sched_flags): Likewise.
4054 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4055 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4056 * toplev.c (print_version): Likewise.
4057 (process_options): Likewise.
4058 * tracer.c (tail_duplicate): Likewise.
4059 * trans-mem.c (tm_log_add): Likewise.
4060 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4061 * tree-data-ref.c (split_constant_offset): Likewise.
4062 (compute_all_dependences): Likewise.
4063 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4064 * tree-inline.c (remap_gimple_stmt): Likewise.
4065 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4066 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4067 (create_parallel_loop): Likewise.
4068 * tree-predcom.c (determine_unroll_factor): Likewise.
4069 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4070 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4071 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4072 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4073 (dse_optimize_redundant_stores): Likewise.
4074 (dse_classify_store): Likewise.
4075 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4076 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4077 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4078 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4079 (try_peel_loop): Likewise.
4080 (tree_unroll_loops_completely): Likewise.
4081 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4082 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4083 (MAX_CONSIDERED_GROUPS): Likewise.
4084 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4085 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4086 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4087 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4088 (L1_CACHE_SIZE_BYTES): Likewise.
4089 (L2_CACHE_SIZE_BYTES): Likewise.
4090 (should_issue_prefetch_p): Likewise.
4091 (schedule_prefetches): Likewise.
4092 (determine_unroll_factor): Likewise.
4093 (volume_of_references): Likewise.
4094 (add_subscript_strides): Likewise.
4095 (self_reuse_distance): Likewise.
4096 (mem_ref_count_reasonable_p): Likewise.
4097 (insn_to_prefetch_ratio_too_small_p): Likewise.
4098 (loop_prefetch_arrays): Likewise.
4099 (tree_ssa_prefetch_arrays): Likewise.
4100 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4101 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4102 (convert_mult_to_fma): Likewise.
4103 (math_opts_dom_walker::after_dom_children): Likewise.
4104 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4105 (hoist_adjacent_loads): Likewise.
4106 (gate_hoist_loads): Likewise.
4107 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4108 (compute_partial_antic_aux): Likewise.
4109 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4110 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4111 (vn_reference_lookup): Likewise.
4112 (do_rpo_vn): Likewise.
4113 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4114 * tree-ssa-sink.c (select_best_block): Likewise.
4115 * tree-ssa-strlen.c (new_stridx): Likewise.
4116 (new_addr_stridx): Likewise.
4117 (get_range_strlen_dynamic): Likewise.
4118 (class ssa_name_limit_t): Likewise.
4119 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4120 (create_variable_info_for_1): Likewise.
4121 (init_alias_vars): Likewise.
4122 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4123 (tail_merge_optimize): Likewise.
4124 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4125 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4126 (thread_jumps::find_jump_threads_backwards): Likewise.
4127 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4128 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4129 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4130 (jump_table_cluster::can_be_handled): Likewise.
4131 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4132 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4133 (param_switch_conversion_branch_ratio): Likewise.
4134 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4135 (vect_enhance_data_refs_alignment): Likewise.
4136 (vect_prune_runtime_alias_test_list): Likewise.
4137 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4138 (vect_get_datarefs_in_loop): Likewise.
4139 (vect_analyze_loop): Likewise.
4140 * tree-vect-slp.c (vect_slp_bb): Likewise.
4141 * tree-vectorizer.h: Likewise.
4142 * tree-vrp.c (find_switch_asserts): Likewise.
4143 (vrp_prop::check_mem_ref): Likewise.
4144 * tree.c (wide_int_to_tree_1): Likewise.
4145 (cache_integer_cst): Likewise.
4146 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4147 (reverse_op): Likewise.
4148 (vt_find_locations): Likewise.
4149
4150 2019-11-12 Martin Liska <mliska@suse.cz>
4151
4152 * Makefile.in: Include params.opt.
4153 * flag-types.h (enum parloops_schedule_type): Add
4154 parloops_schedule_type used in params.opt.
4155 * params.opt: New file.
4156
4157 2019-11-12 Martin Liska <mliska@suse.cz>
4158
4159 * common.opt: Remove --param and --param= options.
4160 * opt-functions.awk: Mark CL_PARAMS for options
4161 that have Param keyword.
4162 * opts-common.c (decode_cmdline_options_to_array):
4163 Replace --param key=value with --param=key=value.
4164 * opts.c (print_filtered_help): Remove special
4165 printing of params.
4166 (print_specific_help): Update title for params.
4167 (common_handle_option): Do not handle OPT__param.
4168 opts.h (SET_OPTION_IF_UNSET): New macro.
4169 * doc/options.texi: Document Param keyword.
4170
4171 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4172 Frederik Harwath <frederik@codesourcery.com>
4173 Thomas Schwinge <thomas@codesourcery.com>
4174
4175 gcc/
4176 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4177 enumeration constant.
4178 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4179 (is_gimple_omp_offloaded): Likewise.
4180 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4181 constant. Adjust the value of ORT_NONE accordingly.
4182 (is_gimple_stmt): Handle OACC_SERIAL.
4183 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4184 (gomp_needs_data_present): Likewise.
4185 (gimplify_adjust_omp_clauses): Likewise.
4186 (gimplify_omp_workshare): Handle OACC_SERIAL.
4187 (gimplify_expr): Likewise.
4188 * omp-expand.c (expand_omp_target):
4189 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4190 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4191 * omp-low.c (is_oacc_parallel): Rename function to...
4192 (is_oacc_parallel_or_serial): ... this.
4193 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4194 (scan_sharing_clauses): Adjust accordingly.
4195 (scan_omp_for): Likewise.
4196 (lower_oacc_head_mark): Likewise.
4197 (convert_from_firstprivate_int): Likewise.
4198 (lower_omp_target): Likewise.
4199 (check_omp_nesting_restrictions): Handle
4200 GF_OMP_TARGET_KIND_OACC_SERIAL.
4201 (lower_oacc_reductions): Likewise.
4202 (lower_omp_target): Likewise.
4203 * tree.def (OACC_SERIAL): New tree code.
4204 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4205
4206 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4207
4208 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4209
4210 PR target/92449
4211 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4212 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4213
4214 PR tree-optimization/92452
4215 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4216 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4217 MINUS_EXPR on it.
4218
4219 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4220
4221 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4222 safelen with 0.
4223
4224 2019-11-12 Alan Modra <amodra@gmail.com>
4225
4226 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4227 element of unspec vec.
4228 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4229 PC-relative TLS.
4230 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4231 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4232 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4233 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4234
4235 2019-11-12 Alan Modra <amodra@gmail.com>
4236
4237 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4238 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4239 (IS_NOMARK_TLSGETADDR): Likewise.
4240 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4241 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4242 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4243 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4244 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4245 (rs6000_indirect_call_template_1): Likewise.
4246 (rs6000_pltseq_template): Likewise.
4247 (rs6000_opt_vars): Remove "tls-markers" entry.
4248 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4249 with TARGET_ELF.
4250 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4251 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4252 (pltseq_plt_pcrel<mode>): Likewise.
4253 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4254 (call_value_local64): Likewise.
4255 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4256 output and length attribute sub-expression.
4257 (call_value_nonlocal_sysv<mode>),
4258 (call_value_nonlocal_sysv_secure<mode>),
4259 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4260 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4261 (call_value_indirect_pcrel<mode>): Likewise.
4262 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4263 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4264 * configure: Regenerate.
4265 * config.in: Regenerate.
4266
4267 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4268
4269 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4270 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4271 address being a prefixed load/store.
4272 (stack_protect_testdi): Deal with either address being a prefixed
4273 load.
4274
4275 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4276
4277 PR bootstrap/92433
4278 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4279 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4280 std::swap.
4281
4282 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4283
4284 PR tree-optimization/92420
4285 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4286 up file.
4287 (get_group_load_store_type): Use it for reversed SLP accesses.
4288
4289 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4290
4291 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4292 summary.
4293 (ipcp_transformation_t::duplicate): Break out from ...
4294 (ipa_node_params_t::duplicate): ... here; add copying of agg
4295 replacements.
4296 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4297 (ipcp_transformation_t): Add duplicate.
4298
4299 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4300
4301 PR fortran/91828
4302 * doc/install.texi: Document that the minimum MPFR version is
4303 3.1.0.
4304
4305 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4306
4307 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4308 use new register constraint letters.
4309
4310 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4311
4312 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4313 as well, if interesting recover the symbol and re-legitimize the
4314 pic address.
4315
4316 2019-11-11 Martin Liska <mliska@suse.cz>
4317
4318 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4319 alphabetically.
4320
4321 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4322
4323 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4324 account when checking if there are enough iterations to vectorize
4325 epilogue.
4326
4327 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4328 Kwok Cheung Yeung <kcy@codesourcery.com>
4329
4330 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4331 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4332 (LANG_HOOKS_DECLS): Rename also here.
4333 * langhooks.h (lang_hooks_for_decls): Rename
4334 omp_is_optional_argument to omp_check_optional_argument; take
4335 additional bool argument.
4336 * omp-general.h (omp_check_optional_argument): Likewise.
4337 * omp-general.h (omp_check_optional_argument): Likewise.
4338 * omp-low.c (lower_omp_target): Update calls; handle absent
4339 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4340
4341 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4342
4343 PR target/87833
4344 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4345 -fPIC and -shared the last to create offload image.
4346
4347 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4348
4349 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4350 of 'offset'.
4351
4352 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4353 (config.status): Use/depend on it.
4354 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4355 * configure: Regenerate.
4356
4357 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4358
4359 PR tree-optimization/88760
4360 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4361 * gcc/common/config/rs6000/rs6000-common.c
4362 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4363 Turn on -funroll-loops and -munroll-only-small-loops.
4364 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4365 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4366 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4367 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4368 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4369 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4370
4371 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4372
4373 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4374 Make scalar_load, vector_load, unaligned_load and
4375 vector_gather_load cost more to conform hardware latency and
4376 insn cost settings.
4377
4378 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4379
4380 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4381 (MACHO_SYMBOL_LINKER_VIS_P): New.
4382
4383 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4384
4385 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4386 registers in eliminable_regset.
4387
4388 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4389
4390 * ipa-inline.c (compute_uninlined_call_time,
4391 compute_inlined_call_time): Take edge frequency as
4392 parameter rather than computing it by itself.
4393 (big_speedup_p, edge_badness): Manually CSE sreal
4394 frequency calculations.
4395
4396 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4397
4398 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4399 case where profiles are same.
4400
4401 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4402
4403 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4404
4405 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4406
4407 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4408 args summaries of inlined edge unless it holds info about
4409 described reference.
4410
4411 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4412
4413 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4414 (*movcc_internal1): Rename to...
4415 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4416
4417 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4418
4419 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4420 (cgraph_node::create_virtual_clone): Copy it.
4421 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4422 summaries.
4423 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4424 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4425 is disabled.
4426 (propagate_constants_across_call): If callee is not analyzed, give up.
4427 (propagate_constants_topo): Lower to bottom latties of all callees of
4428 functions with ipa-cp disabled.
4429 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4430 (cgraph_edge_brings_value_p): Check for availability first.
4431 (create_specialized_node): Set ipcp_clone.
4432 (ipcp_store_bits_results): Check that info is present.
4433 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4434 thunks.
4435 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4436 conservative when callee summary is missing.
4437 (remap_edge_summaries): Lookup call summary only when needed.
4438 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4439 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4440 Use get_create.
4441 (ipa_analyze_node): Use get_create.
4442 (propagate_controlled_uses): Do not propagate when function is not
4443 analyzed.
4444 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4445 (ipa_read_node_info): Use get_create.
4446 * ipa-prop.h (IPA_NODE_REF): Use get.
4447 (IPA_NODE_REF_GET_CREATE): New.
4448
4449 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4450
4451 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4452 on function symbol.
4453
4454 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4455
4456 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4457 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4458 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4459 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4460
4461 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4462
4463 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4464 capping the growth cumulated.
4465 (offline_size): Break out from ...
4466 (estimate_growth): ... here.
4467 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4468 parameters.
4469 (growth_likely_positive): Turn to ...
4470 (growth_positive_p): Re-implement.
4471 * ipa-inline.h (growth_likely_positive): Remove.
4472 (growth_positive_p): Declare.
4473 * ipa-inline.c (want_inline_small_function_p): Use
4474 growth_positive_p.
4475 (want_inline_function_to_all_callers_p): Likewise.
4476
4477 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4478
4479 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4480 calculation of min_size.
4481 (ipa_update_overall_fn_summary): Likewise.
4482
4483 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4484
4485 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4486 estimate_edge_devirt_benefit when not computing hints;
4487 do not compute time when not asked for.
4488 (estimate_calls_size_and_time): Pass NULL hints and time when
4489 these are not computed; do not evaluate hint predicates when these are
4490 not computed.
4491 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4492 frequency.
4493
4494 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4495
4496 PR tree-optimization/92401
4497 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4498 if res_op->code is an expression with code length 1.
4499 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4500 if res_op->code is an expression with code length 2.
4501 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4502 if res_op->code is an expression with code length 3.
4503
4504 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4505
4506 * config/darwin.c (machopic_mcount_stub_name): Validate the
4507 symbol stub name when it is created.
4508 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4509 stub validation.
4510
4511 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4512
4513 * symtab.c: Fix comment typos.
4514 * cgraphunit.c: Likewise.
4515 * cgraph.h: Likewise.
4516 * cgraphclones.c: Likewise.
4517 * cgraph.c: Likewise.
4518 * varpool.c: Likewise.
4519 * tree-ssa-strlen.c: Likewise.
4520 * ipa-sra.c: Likewise.
4521 (scan_expr_access, check_all_callers_for_issues): Fix typo
4522 in a dump message.
4523
4524 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4525
4526 * config/darwin-protos.h: Add include quard.
4527
4528 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4529
4530 * range-op.h (range_operator::fold_range): Return result in a
4531 reference parameter instead of by value.
4532 (range_operator::wi_fold): Same.
4533 * range-op.cc (range_operator::wi_fold): Return result in a reference
4534 parameter instead of by value.
4535 (range_operator::fold_range): Same.
4536 (value_range_from_overflowed_bounds): Same.
4537 (value_range_with_overflow): Same
4538 (create_possibly_reversed_range): Same.
4539 (operator_equal::fold_range): Same.
4540 (operator_not_equal::fold_range): Same.
4541 (operator_lt::fold_range): Same.
4542 (operator_le::fold_range): Same.
4543 (operator_gt::fold_range): Same.
4544 (operator_ge::fold_range): Same.
4545 (operator_plus::wi_fold): Same.
4546 (operator_plus::op1_range): Change call to fold_range.
4547 (operator_plus::op2_range): Change call to fold_range.
4548 (operator_minus::wi_fold): Return result via reference parameter.
4549 (operator_minus::op1_range): Change call to fold_range.
4550 (operator_minus::op2_range): Change call to fold_range.
4551 (operator_min::wi_fold): Return result via reference parameter.
4552 (operator_max::wi_fold): Same.
4553 (cross_product_operator::wi_cross_product): Same.
4554 (operator_mult::wi_fold): Same.
4555 (operator_div::wi_fold): Same.
4556 (operator_div op_floor_div): Fix whitespace.
4557 (operator_exact_divide::op1_range): Change call to fold_range.
4558 (operator_lshift::fold_range): Return result via reference parameter.
4559 (operator_lshift::wi_fold): Same.
4560 (operator_rshift::fold_range): Same.
4561 (operator_rshift::wi_fold): Same.
4562 (operator_cast::fold_range): Same.
4563 (operator_cast::op1_range): Change calls to fold_range.
4564 (operator_logical_and::fold_range): Return result via reference.
4565 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4566 (operator_bitwise_and::wi_fold): Return result via reference.
4567 (operator_logical_or::fold_range): Same.
4568 (operator_bitwise_or::wi_fold): Same.
4569 (operator_bitwise_xor::wi_fold): Same.
4570 (operator_trunc_mod::wi_fold): Same.
4571 (operator_logical_not::fold_range): Same.
4572 (operator_bitwise_not::fold_range): Same.
4573 (operator_bitwise_not::op1_range): Change call to fold_range.
4574 (operator_cst::fold_range): Return result via reference.
4575 (operator_identity::fold_range): Same.
4576 (operator_abs::wi_fold): Same.
4577 (operator_absu::wi_fold): Same.
4578 (operator_negate::fold_range): Same.
4579 (operator_negate::op1_range): Change call to fold_range.
4580 (operator_addr_expr::fold_range): Return result via reference.
4581 (operator_addr_expr::op1_range): Change call to fold_range.
4582 (operator_pointer_plus::wi_fold): Return result via reference.
4583 (operator_pointer_min_max::wi_fold): Same.
4584 (operator_pointer_and::wi_fold): Same.
4585 (operator_pointer_or::wi_fold): Same.
4586 (range_op_handler): Change call to fold_range.
4587 (range_cast): Same.
4588 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4589 fold_range.
4590 (range_fold_unary_symbolics_p): Same.
4591 (range_fold_binary_expr): Same.
4592 (range_fold_unary_expr): Same.
4593
4594 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4595
4596 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4597 vector type as an argument rather than reading it from the
4598 stmt_vec_info.
4599 (vect_create_epilog_for_reduction): Update accordingly.
4600 (vectorizable_reduction): Likewise.
4601 (vect_transform_cycle_phi): Likewise.
4602
4603 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4604
4605 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4606 the comparison codes that make sense for the mode used, and only the
4607 codes that can be done with a single branch instruction.
4608
4609 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4610
4611 PR tree-optimization/92351
4612 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4613 peeling the main loop for alignment, make sure to set the misalignment
4614 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4615
4616 2019-11-08 Richard Biener <rguenther@suse.de>
4617
4618 * dbgcnt.def (ivopts_loop): Add.
4619 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4620 ivopts_loop before optimizing a loop.
4621
4622 2019-11-08 Richard Biener <rguenther@suse.de>
4623
4624 PR ipa/92409
4625 * tree-inline.c (declare_return_variable): Properly handle
4626 type mismatches for the return slot.
4627
4628 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4629
4630 PR target/92095
4631 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4632 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4633 change.
4634 (got_helper_needed): New static variable.
4635 (output_load_pcrel_sym): New function.
4636 (get_pc_thunk_name): Remove after inlining...
4637 (load_got_register): ...here. Rework the initialization of the GOT
4638 register and of the GOT helper.
4639 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4640 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4641 helper must be emitted. Use output_asm_insn instead of fprintf.
4642 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4643 if optimization is enabled.
4644 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4645 by calling output_load_pcrel_sym.
4646
4647 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4648
4649 * tree-sra.c (create_access): Delay disqualifying the base
4650 for poly_int values until we know we have a base.
4651
4652 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4653
4654 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4655 for loops with SIMDUID set. Enable epilogue vectorization for loops
4656 with SIMDLEN set after finding a main loop with a VF that matches it.
4657
4658 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4659
4660 PR target/92038
4661 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4662 value only, return non-NULL if there is a single non-clobber
4663 constituent store even if there are constituent clobbers and return
4664 one of clobber constituent stores if all constituent stores are
4665 clobbers.
4666 (split_group): Handle clobbers.
4667 (imm_store_chain_info::output_merged_store): When computing
4668 bzero_first, look after all clobbers at the start. Don't count
4669 clobber stmts in orig_num_stmts, except if the first orig store is
4670 a clobber covering the whole area and split_stores cover the whole
4671 area, consider equal number of stmts ok. Punt if split_stores
4672 contains only ->orig stores and their number plus number of original
4673 clobbers is equal to original number of stmts. For ->orig, look past
4674 clobbers in the constituent stores.
4675 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4676 stmts.
4677 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4678 rhs.
4679 (store_valid_for_store_merging_p): Allow clobber stmts.
4680 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4681
4682 PR c++/92384
4683 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4684 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4685 slot.
4686 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4687 force creation of a unique data.stack_parm slot.
4688
4689 2019-11-08 Richard Biener <rguenther@suse.de>
4690
4691 * genmatch.c (expr::gen_transform): Use the resimplify
4692 member function instead of hard-coding the gimple_resimplifyN variant.
4693 (dt_simplify::gen_1): Likewise.
4694
4695 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4696
4697 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4698 POLY_INT_CST.
4699
4700 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4701
4702 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4703 instead of INTEGER_CST.
4704
4705 2019-11-08 Richard Biener <rguenther@suse.de>
4706
4707 PR tree-optimization/92324
4708 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4709 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4710 sign-conversions as necessary.
4711 (vectorizable_reduction): Reject conversions in the chain
4712 that are not sign-conversions, base analysis on a non-converting
4713 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4714 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4715 for debug stmts.
4716 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4717 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4718
4719 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4720
4721 PR target/92055
4722 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4723 Fix a missing '-' when displaying these options in the
4724 help screen.
4725
4726 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4727
4728 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4729
4730 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4731
4732 * config/aarch64/aarch64-builtins.c
4733 (aarch64_builtin_vectorized_function): Remove bswap handling.
4734
4735 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4736
4737 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4738 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4739 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4740 Treat the vector types as indivisible.
4741
4742 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4743
4744 * optabs.def (gather_load_optab, mask_gather_load_optab)
4745 (scatter_store_optab, mask_scatter_store_optab): Turn into
4746 conversion optabs, with the offset mode given explicitly.
4747 * doc/md.texi: Update accordingly.
4748 * config/aarch64/aarch64-sve-builtins-base.cc
4749 (svld1_gather_impl::expand): Likewise.
4750 (svst1_scatter_impl::expand): Likewise.
4751 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4752 (expand_scatter_store_optab_fn): Likewise.
4753 (direct_gather_load_optab_supported_p): Likewise.
4754 (direct_scatter_store_optab_supported_p): Likewise.
4755 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4756 to be argument 4.
4757 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4758 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4759 argument with the offset vector type. Require the two vector
4760 types to have the same number of elements but allow their element
4761 sizes to be different. Treat the optabs as conversion optabs.
4762 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4763 prototype accordingly.
4764 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4765 (supports_vec_convert_optab_p): ...this new function.
4766 (supports_vec_gather_load_p): Update accordingly.
4767 (supports_vec_scatter_store_p): Likewise.
4768 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4769 Replace the offset sign and bits parameters with a scalar type tree.
4770 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4771 Pass back the offset vector type instead of the scalar element type.
4772 Allow the offset to be wider than the memory elements. Search for
4773 an offset type that the target supports, stopping once we've
4774 reached the maximum of the element size and pointer size.
4775 Update call to internal_gather_scatter_fn_supported_p.
4776 (vect_check_gather_scatter): Update calls accordingly.
4777 When testing a new scale before knowing the final offset type,
4778 check whether the scale is supported for any signed or unsigned
4779 offset type. Check whether the target supports the source and
4780 target types of a conversion before deciding whether to look
4781 through the conversion. Record the chosen offset_vectype.
4782 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4783 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4784 directly from the gs_info's offset_vectype instead. Pass a zero
4785 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4786 * tree-vect-stmts.c (check_load_store_masking): Update call to
4787 internal_gather_scatter_fn_supported_p, passing the offset vector
4788 type recorded in the gs_info.
4789 (vect_truncate_gather_scatter_offset): Update call to
4790 vect_check_gather_scatter, leaving it to search for a valid
4791 offset vector type.
4792 (vect_use_strided_gather_scatters_p): Convert the offset to the
4793 element type of the gs_info's offset_vectype.
4794 (vect_get_gather_scatter_ops): Get the offset vector type directly
4795 from the gs_info.
4796 (vect_get_strided_load_store_ops): Likewise.
4797 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4798 and IFN_MASK_GATHER_LOAD.
4799 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4800 (gather_load<mode><v_int_equiv>): ...this.
4801 (mask_gather_load<mode>): Rename to...
4802 (mask_gather_load<mode><v_int_equiv>): ...this.
4803 (scatter_store<mode>): Rename to...
4804 (scatter_store<mode><v_int_equiv>): ...this.
4805 (mask_scatter_store<mode>): Rename to...
4806 (mask_scatter_store<mode><v_int_equiv>): ...this.
4807
4808 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4809
4810 PR target/92132
4811 * config/rs6000/predicates.md
4812 (signed_or_equality_comparison_operator): New predicate.
4813 (unsigned_or_equality_comparison_operator): Likewise.
4814 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4815 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4816 * config/rs6000/vector.md
4817 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4818 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4819 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4820 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4821 vector modes and same-size integer vector modes.
4822 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4823 (vector_lt<mode> for VEC_F): New expand.
4824 (vector_le<mode> for VEC_F): Likewise.
4825 (vector_ne<mode> for VEC_F): Likewise.
4826 (vector_unge<mode> for VEC_F): Likewise.
4827 (vector_ungt<mode> for VEC_F): Likewise.
4828 (vector_unle<mode> for VEC_F): Likewise.
4829 (vector_unlt<mode> for VEC_F): Likewise.
4830 (vector_uneq<mode>): Expose name.
4831 (vector_ltgt<mode>): Likewise.
4832 (vector_unordered<mode>): Likewise.
4833 (vector_ordered<mode>): Likewise.
4834
4835 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4836
4837 PR target/92295
4838 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4839 Enhance ix86_expand_vector_init_concat.
4840
4841 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4842
4843 * doc/invoke.texi (-Wold-style-definition): Document () not being
4844 considered an old-style definition for C2x.
4845
4846 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4847
4848 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4849 Enhance comment.
4850 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4851 insn patterns using ldcw instruction.
4852 (memory_barrier): Remove insn pattern using sync instruction.
4853 * config/pa/pa.opt (coherent-ldcw): New option.
4854 (ordered): New option.
4855
4856 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4857
4858 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4859 valid conditions.
4860
4861 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4862
4863 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4864 typo - mistmatch -> mismatch.
4865 * ipa-profile.c (ipa_profile): Likewise.
4866 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4867 - mistmatch -> mismatch.
4868
4869 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4870
4871 * simplify-rtx.c (comparison_to_mask): New function.
4872 (mask_to_comparison): New function.
4873 (simplify_logical_relational_operation): New function.
4874 (simplify_binary_operation_1): Call
4875 simplify_logical_relational_operation.
4876
4877 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4878
4879 PR other/92090
4880 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4881 modes for integer constants.
4882
4883 2019-11-07 Jan Hubicka <jh@suse.cz>
4884
4885 PR ipa/92406
4886 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4887 summary.
4888
4889 2019-11-07 Jan Hubicka <jh@suse.cz>
4890
4891 * optc-save-gen.awk: Generate cl_target_option_free
4892 and cl_optimization_option_free.
4893 * opth-en.awk: Declare cl_target_option_free
4894 and cl_optimization_option_free.
4895 * tree.c (free_node): Use it.
4896
4897 2019-11-06 Jan Hubicka <jh@suse.cz>
4898
4899 * lto-streamer-in.c: Include alloc-pool.h.
4900 (freeing_string_slot_hasher): Remove.
4901 (string_slot_allocator): New object allocator.
4902 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4903 (file_name_obstack): New obstack.
4904 (canon_file_name): Allocate in obstack and allocator.
4905 (lto_reader_init): Initialize obstack and allocator.
4906 (lto_free_file_name_hash): New function.
4907 * lto-streamer.h (lto_free_file_name_hash): New.
4908
4909 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4910
4911 PR tree-optimization/89134
4912 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4913 * params.def: Add min-loop-cond-split-prob.
4914 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4915 outside checks on loop into the function.
4916 (split_info): New class.
4917 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4918 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4919 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4920 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4921 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4922 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4923 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4924 (split_loop_on_cond): Likewise.
4925 (tree_ssa_split_loops): Add loop split on conditional statement.
4926
4927 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4928
4929 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4930 pattern.
4931
4932 2019-11-07 Richard Biener <rguenther@suse.de>
4933
4934 PR tree-optimization/92405
4935 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4936 restrict lane-reducing ops to single stmt chains.
4937
4938 2019-11-07 Martin Jambor <mjambor@suse.cz>
4939
4940 PR lto/70929
4941 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4942 * cgraph.h (gimple_check_call_matching_types): Remove
4943 * cgraph.c (gimple_check_call_args): Likewise.
4944 (gimple_check_call_matching_types): Likewise.
4945 (symbol_table::create_edge): Do not call
4946 gimple_check_call_matching_types.
4947 (cgraph_edge::make_direct): Likewise.
4948 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4949 * value-prof.h (check_ic_target): Remove.
4950 * value-prof.c (check_ic_target): Remove.
4951 (gimple_ic_transform): Do nat call check_ic_target.
4952 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4953 (afdo_indirect_call): Likewise.
4954 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4955 gimple_check_call_matching_types.
4956 * ipa-inline.c (early_inliner): Likewise.
4957
4958 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4959
4960 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4961 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4962 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4963 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4964 * config/arm/iterators.md (USSAT16): New int_iterator.
4965 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4966 (sup): Likewise.
4967 * config/arm/predicates.md (ssat16_imm): New predicate.
4968 (usat16_imm): Likewise.
4969 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4970
4971 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4972
4973 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4974 New define_insns.
4975 (arm_<simd32_op>): New define_expands.
4976 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4977 __smuad, __smuadx): Define.
4978 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4979 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4980 (SIMD32_BINOP_Q): Likewise.
4981 (simd32_op): Handle the above.
4982 * config/arm/unspecs.md: Define unspecs for the above.
4983
4984 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4985
4986 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4987 * config/arm/arm.md (APSRGE_REGNUM): Define.
4988 (arm_<simd32_op>): New define_insn.
4989 (arm_sel): Likewise.
4990 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4991 (CALL_USED_REGISTERS): Likewise.
4992 (REG_ALLOC_ORDER): Likewise.
4993 (FIRST_PSEUDO_REGISTER): Update value.
4994 (ARM_GE_BITS_READ): Define.
4995 * config/arm/arm.c (arm_conditional_register_usage): Clear
4996 APSRGE_REGNUM from operand_reg_set.
4997 (arm_ge_bits_access): Define.
4998 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4999 ARM_BUIILTIN_sel.
5000 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5001 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5002 FAIL if ARM_GE_BITS_READ.
5003 (*arm_add<mode>3): New define_insn.
5004 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5005 (*arm_sub<mode>3): New define_insn.
5006 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5007 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5008 __usub16): Define.
5009 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5010 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5011 (simd32_op): Handle the above.
5012 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5013 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5014 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5015 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5016
5017 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5018
5019 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5020 (arm_smlabb): New define_expand.
5021 (*maddhisi4tb): Rename to...
5022 (maddhisi4tb): ... This.
5023 (*maddhisi4tt): Rename to...
5024 (maddhisi4tt): ... This.
5025 (arm_smlatb_setq): New define_insn.
5026 (arm_smlatb): New define_expand.
5027 (arm_smlatt_setq): New define_insn.
5028 (arm_smlatt): New define_expand.
5029 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5030 (arm_<smlaw_op>): New define_expand.
5031 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5032 __smlawb, __smlawt): Define.
5033 * config/arm_acle_builtins.def: Define builtins for the above.
5034 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5035 (slaw_op): New int_attribute.
5036 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5037
5038 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5039
5040 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5041 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5042 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5043 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5044 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5045 (ss_op): New code_attr.
5046
5047 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5048
5049 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5050 * config/arm/arm.md (APSRQ_REGNUM): Define.
5051 (add_setq): New define_subst.
5052 (add_clobber_q_name): New define_subst_attr.
5053 (add_clobber_q_pred): Likewise.
5054 (maddhisi4): Change to define_expand. Split into mult and add if
5055 ARM_Q_BIT_READ.
5056 (arm_maddhisi4): New define_insn.
5057 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5058 (*maddhisi4tt): Likewise.
5059 (arm_ssat): New define_expand.
5060 (arm_usat): Likewise.
5061 (arm_get_apsr): New define_insn.
5062 (arm_set_apsr): Likewise.
5063 (arm_saturation_occurred): New define_expand.
5064 (arm_set_saturation): Likewise.
5065 (*satsi_<SAT:code>): Rename to...
5066 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5067 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5068 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5069 (CALL_USED_REGISTERS): Mark apsrq.
5070 (FIRST_PSEUDO_REGISTER): Update value.
5071 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5072 (machine_function): Add q_bit_access.
5073 (ARM_Q_BIT_READ): Define.
5074 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5075 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5076 operand_reg_set.
5077 (arm_q_bit_access): Define.
5078 * config/arm/arm-builtins.c: Include stringpool.h.
5079 (arm_sat_binop_imm_qualifiers,
5080 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5081 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5082 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5083 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5084 SET_SAT_QUALIFIERS): Likewise.
5085 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5086 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5087 Handle 0 argument expander.
5088 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5089 (arm_check_builtin_call): Define.
5090 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5091 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5092 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5093 (arm_q_bit_access): Likewise.
5094 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5095 __saturation_occurred, __set_saturation_occurred): Define.
5096 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5097 saturation_occurred, set_saturation_occurred.
5098 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5099 (UNSPEC_APSR_READ): Likewise.
5100 (VUNSPEC_APSR_WRITE): Likewise.
5101 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5102 (*arm_ssadd<mode>3): New define_insn.
5103 (sssub<mode>3): Convert to define_expand.
5104 (*arm_sssub<mode>3): New define_insn.
5105 (ssmulsa3): Convert to define_expand.
5106 (*arm_ssmulsa3): New define_insn.
5107 (usmulusa3): Convert to define_expand.
5108 (*arm_usmulusa3): New define_insn.
5109 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5110 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5111 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5112
5113 2019-11-07 Martin Liska <mliska@suse.cz>
5114
5115 PR c++/92354
5116 * cgraph.c (delete_function_version): Clear global
5117 variable version_info_node if equal to deleted
5118 function.
5119
5120 2019-11-07 Martin Liska <mliska@suse.cz>
5121
5122 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5123 of CONSTRUCTOR_NO_CLEARING.
5124 (operand_compare::hash_operand): Likewise.
5125
5126 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5127
5128 Support 64-bit double and 64-bit long double configurations.
5129
5130 PR target/92055
5131 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5132 --with-long-double=.
5133 * config/avr/t-multilib: Remove.
5134 * config/avr/t-avr: Output of genmultilib.awk is now fully
5135 dynamically generated and no more part of the repo.
5136 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5137 Pass them down to...
5138 * config/avr/genmultilib.awk: ...here and handle them.
5139 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5140 (-mlong-double=, avr_long_double). New option and var.
5141 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5142 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5143 Set default as requested by --with-double=
5144 (TARGET_HANDLE_OPTION): Define to this...
5145 (avr_handle_option): ...new hook worker.
5146 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5147 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5148 (avr_double_lib): New proto for spec function.
5149 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5150 (DRIVER_SELF_SPECS): Call %:double-lib.
5151 * config/avr/avr.c (avr_option_override): Assert
5152 sizeof(long double) >= sizeof(double) for the target.
5153 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5154 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5155 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5156 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5157 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5158 New built-in define depending on --with-double=, --with-long-double=.
5159 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5160 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5161 * doc/install.texi (Cross-Compiler-Specific Options)
5162 <--with-double=, --with-long-double=>: Doc.
5163
5164 2019-11-07 Richard Biener <rguenther@suse.de>
5165
5166 * dbgcnt.def (gimple_unroll): New.
5167 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5168 gimple_unroll debug counter before applying transform.
5169 (try_peel_loop): Likewise.
5170
5171 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5172
5173 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5174 frame pointer in multiple registers.
5175 (ira_setup_eliminable_regset): Setup eliminable_regset,
5176 ira_no_alloc_regs and regs_ever_live for frame pointer in
5177 multiple registers.
5178
5179 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5180
5181 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5182 V2DI modes.
5183
5184 2019-11-06 Jan Hubicka <jh@suse.cz>
5185
5186 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5187 allocations.
5188 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5189 Do not silently ignore summary corruptions.
5190
5191 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5192
5193 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5194 the epilogue if there are peeled iterations for it to handle.
5195
5196 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5197
5198 * config/arc/arc.c (arc_split_ior): Add asserts.
5199 (arc_split_mov_const): Likewise.
5200 (arc_check_ior_const): Do not match known short immediate values.
5201 * config/arc/arc.md (movsi): Don't split predicated instructions
5202 (iorsi): Likewise.
5203
5204 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5205
5206 * config/arc/arc.opt (mea): Update help string.
5207 * doc/invoke.texi(ARC): Update mea option info.
5208
5209 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5210
5211 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5212 (zero_extendqisi2_ac): Likewise.
5213 (zero_extendhisi2_i): Likewise.
5214 (extendqihi2_i): Likewise.
5215 (extendqisi2_ac): Likewise.
5216 (extendhisi2_i): Likewise.
5217
5218 2019-11-06 Richard Biener <rguenther@suse.de>
5219
5220 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5221 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5222 Simplify single_defuse_cycle condition.
5223
5224 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5225
5226 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5227 epilogue loop, make sure that the VF is small enough or that
5228 the epilogue loop can be fully-masked.
5229
5230 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5231
5232 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5233 loop when we've finished, rather than returning directly from
5234 the loop. Use a local variable to track whether we're still
5235 searching for the preferred simdlen. Make vect_epilogues
5236 record whether the next iteration should try to treat the
5237 loop as an epilogue.
5238
5239 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5240
5241 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5242 __arc_hard_float__, __ARC_HARD_FLOAT__,
5243 __arc_soft_float__, __ARC_SOFT_FLOAT__
5244
5245 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5246
5247 PR tree-optimization/92317
5248 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5249 update phi's with constant phi arguments.
5250
5251 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5252 Alexandre Oliva <oliva@adacore.com>
5253
5254 * common.opt (-fcallgraph-info[=]): New option.
5255 * doc/invoke.texi (Developer options): Document it.
5256 * opts.c (common_handle_option): Handle it.
5257 * builtins.c (expand_builtin_alloca): Record allocation if
5258 -fcallgraph-info=da.
5259 * calls.c (expand_call): If -fcallgraph-info, record the call.
5260 (emit_library_call_value_1): Likewise.
5261 * flag-types.h (enum callgraph_info_type): New type.
5262 * explow.c: Include stringpool.h.
5263 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5264 * function.c (allocate_stack_usage_info): New.
5265 (allocate_struct_function): Call it for -fcallgraph-info.
5266 (prepare_function_start): Call it otherwise.
5267 (record_final_call, record_dynamic_alloc): New.
5268 * function.h (struct callinfo_callee): New.
5269 (CALLEE_FROM_CGRAPH_P): New.
5270 (struct callinfo_dalloc): New.
5271 (struct stack_usage): Add callees and dallocs.
5272 (record_final_call, record_dynamic_alloc): Declare.
5273 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5274 object if -fcallgraph-info=da.
5275 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5276 * print-tree.h (print_decl_identifier): Declare.
5277 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5278 * print-tree.c: Include print-tree.h.
5279 (print_decl_identifier): New function.
5280 * toplev.c: Include print-tree.h.
5281 (callgraph_info_file): New global variable.
5282 (callgraph_info_external_printed): Likewise.
5283 (output_stack_usage): Rename to...
5284 (output_stack_usage_1): ... this. Make it static, add cf
5285 parameter. If -fcallgraph-info=su, print stack usage to cf.
5286 If -fstack-usage, use print_decl_identifier for
5287 pretty-printing.
5288 (INDIRECT_CALL_NAME): New.
5289 (dump_final_node_vcg_start): New.
5290 (dump_final_callee_vcg, dump_final_node_vcg): New.
5291 (output_stack_usage): New.
5292 (lang_dependent_init): Open and start file if
5293 -fcallgraph-info. Allocated callgraph_info_external_printed.
5294 (finalize): If callgraph_info_file is not null, finish it,
5295 close it, and release callgraph_info_external_printed.
5296
5297 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5298 Frederik Harwath <frederik@codesourcery.com>
5299 Thomas Schwinge <thomas@codesourcery.com>
5300
5301 * omp-low.c (struct omp_context): New fields
5302 local_reduction_clauses, outer_reduction_clauses.
5303 (new_omp_context): Initialize these.
5304 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5305 (scan_omp_for): Check reduction clauses for incorrect nesting.
5306
5307 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5308
5309 PR inline-asm/92352
5310 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5311 operands with non-memory constraints.
5312
5313 2019-11-05 Martin Sebor <msebor@redhat.com>
5314
5315 PR tree-optimization/92373
5316 * tree.c (component_ref_size): Only consider initializers of objects
5317 of matching struct types.
5318 Return null for instances of interior zero-length arrays.
5319
5320 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5321
5322 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5323
5324 2019-11-05 Jason Merrill <jason@redhat.com>
5325
5326 PR tree-optimization/91825
5327 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5328
5329 2019-11-05 Jim Wilson <jimw@sifive.com>
5330
5331 PR middle-end/92263
5332 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5333 optimize_insn_for_speed_p is true.
5334
5335 2019-11-05 Martin Sebor <msebor@redhat.com>
5336
5337 PR middle-end/92333
5338 PR middle-end/82608
5339 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5340 size.
5341 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5342 name and location for a temporary variable.
5343
5344 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5345
5346 * tree-vrp.c (value_range::value_range): Fix whitespace.
5347 (defined_ranges_p): Same.
5348 (range_fold_binary_symbolics_p): Same.
5349 (value_range::intersect_helper): Same.
5350 (value_range::union_helper): Same.
5351 * tree-vrp.h (range_fold_binary_expr): Same.
5352
5353 2019-11-04 Martin Sebor <msebor@redhat.com>
5354
5355 PR middle-end/92341
5356 PR middle-end/82612
5357 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5358 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5359 of message printed in a warning for empty arrays.
5360 (vrp_prop::check_mem_ref): Also handle function parameters and
5361 empty arrays.
5362
5363 2019-11-05 Richard Biener <rguenther@suse.de>
5364
5365 PR tree-optimization/92371
5366 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5367 on the original stmt of live stmts in the chain.
5368 (vectorizable_live_operation): Look at the original stmt when
5369 checking STMT_VINFO_REDUC_DEF.
5370
5371 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5372
5373 * gimple-fold.c, gimple-loop-versioning.cc,
5374 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5375 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5376 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5377 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5378 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5379 value_range_equiv, and value_range_base to value_range.
5380
5381 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5382
5383 * expr.c (build_personality_function): Fix generated type to
5384 match actual personality functions.
5385
5386 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5387
5388 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5389 enough bytes for the NULL character.
5390
5391 2019-11-05 Richard Biener <rguenther@suse.de>
5392
5393 PR tree-optimization/92280
5394 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5395 had a single use do not create a new CTOR.
5396 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5397 BIT_FIELD_REF of a CTOR via GENERIC.
5398
5399 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5400
5401 * config/s390/s390.c (s390_vector_alignment): Check if the value
5402 fits into uhwi before using it.
5403
5404 2019-11-05 Martin Liska <mliska@suse.cz>
5405
5406 * symbol-summary.h: Use ggc_delete.
5407
5408 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5409
5410 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5411 Change vec_perm field to 10.
5412
5413 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5414
5415 * doc/install.texi: Further fix syntax for html generation.
5416
5417 2019-11-05 Martin Liska <mliska@suse.cz>
5418
5419 * symbol-summary.h: Rename allocator to m_allocator and
5420 add comment.
5421
5422 2019-11-05 Richard Biener <rguenther@suse.de>
5423
5424 PR tree-optimization/92324
5425 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5426 all signed or unsigned operations.
5427
5428 2019-11-05 Jan Hubicka <jh@suse.cz>
5429
5430 * hsa-brig.c: Include alloc-pool.h
5431 * hsa-dump.c: Likewise.
5432 * hsa-gen.c: Likewise.
5433 * hse-regalloc.c: Likewise.
5434 * ipa-hsa.c: Likewise.
5435 * ipa-predicate.c: Likewise.
5436 * ipa-reference.c: Likewise.
5437 * ipa-sra.c: Likewise.
5438 * omp-expand.c: Likewise.
5439 * omp-general.c: Likewise.
5440 * omp-low.c: Likewise.
5441 * sumbol-summary.h (function_summary_base): Add allocator.
5442 (function_summary<T *>::function_summary): Update construction.
5443 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5444 (call_summary_base): Add allcator.
5445 (call_summary<T *>::call_summary): Update construction.
5446 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5447
5448 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5449
5450 PR tree-optimization/91945
5451 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5452 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5453 Formatting fix.
5454
5455 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5456
5457 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5458 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5459 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5460 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5461 (vrp_set_zero_nonzero_bits): Move to...
5462 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5463 (vr_values::simplify_bit_ops_using_ranges): Rename
5464 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5465
5466 2019-11-05 Martin Liska <mliska@suse.cz>
5467
5468 PR c++/92339
5469 * fold-const.c (operand_compare::hash_operand): Remove
5470 FIELD_DECL handling.
5471
5472 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5473
5474 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5475 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5476 static.
5477
5478 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5479
5480 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5481 properly handle symbolics.
5482 (range_compatible_p): Remove.
5483
5484 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5485
5486 * common.opt (-fabi-version): Document =14.
5487 * doc/invoke.texi (C++ Dialect Options): Likewise.
5488
5489 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5490
5491 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5492
5493 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5494
5495 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5496 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5497 gcn_omp_device_kind_arch_isa.
5498 * config/gcn/t-omp-device: New file.
5499 * configure.ac: Support gcn for omp_device_property.
5500 * configure: Regenerate.
5501
5502 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5503
5504 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5505 (vrp_val_max): Same.
5506 (vrp_val_is_min): Same.
5507 (vrp_val_is_max): Same.
5508 (value_range_base::nonzero_p): Remove last argument to
5509 vrp_val_is_max.
5510 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5511 (vrp_val_max): Same.
5512 (vrp_val_is_min): Same.
5513 (vrp_val_is_max): Same.
5514 (value_range_base::set_varying): Remove last argument to vrp_val*.
5515 (value_range_base::dump): Same.
5516 (value_range_base::set): Same.
5517 (value_range_base::normalize_symbolics): Same.
5518 (value_range_base::num_pairs): Same.
5519 (value_range_base::lower_bound): Same.
5520 (value_range_base::upper_bound): Same.
5521 (ranges_from_anti_range): Remove handle_pointers argument.
5522 (value_range_base::singleton_p): Remove last argument to
5523 ranges_from_anti_range.
5524
5525 2019-11-04 Jan Hubicka <jh@suse.cz>
5526
5527 * ipa-reference.c (init_function_info): Initialize
5528 info->global.statics_read.
5529
5530 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5531
5532 * tree-vrp.c (value_range_base::invert): Use constructors to build
5533 range.
5534
5535 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5536
5537 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5538 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5539
5540 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5541
5542 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5543 VR_UNDEFINED.
5544
5545 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5546
5547 * tree-vrp.c (dump_assert_info): New.
5548 (dump_asserts_info): New.
5549
5550 2019-11-04 Jan Hubicka <jh@suse.cz>
5551
5552 * ipa-inline-transform.c: Include ipa-utils.h
5553 (inline_call): Set thunk_expansion flag.
5554 * ipa-utils.h (thunk_expansion): Declare.
5555 * ipa-devirt.c (thunk_expansion): New global var.
5556 (devirt_node_removal_hook): Do not invalidate cache while
5557 doing thunk expansion.
5558
5559 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5560
5561 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5562
5563 2019-11-04 Martin Sebor <msebor@redhat.com>
5564
5565 PR tree-optimization/92349
5566 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5567 memebers have constant sizes.
5568
5569 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5570
5571 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5572 parameter.
5573 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5574 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5575 vect_analyze_loop.
5576
5577 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5578
5579 * expr.c (store_constructor): Modify to handle single element vectors.
5580 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5581 constructors.
5582 (vect_slp_check_for_constructors): New function.
5583 (vect_slp_analyze_bb_1): Call new function to check for vector
5584 constructors.
5585 (vectorize_slp_instance_root_stmt): New function.
5586 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5587 constructors.
5588 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5589
5590 2019-11-04 Richard Biener <rguenther@suse.de>
5591
5592 PR tree-optimization/92345
5593 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5594 we produced a reduction chain.
5595 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5596 LOOP_VINFO_REDUCTIONS.
5597
5598 2019-11-04 Jan Hubicka <jh@suse.cz>
5599
5600 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5601 duplicate summaries.
5602 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5603 first.
5604 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5605 access call summaries.
5606 (dump_ipa_call_summary): Be ready for missing edge summaries.
5607 (analyze_function_body): Use get instead of get_create to access
5608 edge summary.
5609 (estimate_calls_size_and_time): Do not access summaries of
5610 inlined edges; sanity check they are missing.
5611 (ipa_call_context::estimate_size_and_time): Use get instead
5612 of get_create to access node summary.
5613 (inline_update_callee_summaries): Do not update depth of
5614 inlined edge.
5615 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5616 growth caches.
5617 (ipa_merge_fn_summary_after_inlining): Use get instead
5618 of get_create.
5619 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5620 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5621 fast summary.
5622 (initialize_growth_caches): Update.
5623 (do_estimate_edge_time): Remove redundant copy of context.
5624 (ipa_remove_from_growth_caches): New function.
5625 * ipa-inline.c (flatten_function): Update overall summary
5626 only when optimizing.
5627 (inline_to_all_callers): Update overall summary of function
5628 inlined to.
5629 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5630 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5631 to false.
5632
5633 2019-11-04 Richard Biener <rguenther@suse.de>
5634
5635 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5636 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5637
5638 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5639
5640 * ggc-common.c: Include system.h before malloc.h.
5641
5642 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5643
5644 * configure.ac: Pass --enable-obsolete=* and
5645 --enable-option-checking=* down to build configure, and fail
5646 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5647 * configure: Rebuild.
5648 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5649 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5650
5651 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5652
5653 * config.in: Regenerate.
5654 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5655 -mtiny-printf is used without GCC being configured with
5656 --enable-newlib-nano-formatted-io.
5657 * config/msp430/msp430.h (LINK_SPEC): Pass
5658 "--wrap puts --wrap printf" when -mtiny-printf is used.
5659 * config/msp430/msp430.opt: Document -mtiny-printf.
5660 * configure: Regenerate.
5661 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5662 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5663 --enable-newlib-nano-formatted-io is passed.
5664 * doc/invoke.texi: Document -mtiny-printf.
5665
5666 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5667
5668 * configure: Regenerate.
5669
5670 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5671
5672 * config/msp430/driver-msp430.c
5673 (msp430_get_linker_devices_include_path): New spec function.
5674 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5675 (extract_devices_dir_from_exec_prefix): New function.
5676 (extract_devices_dir_from_collect_gcc): New function.
5677 (msp430_check_env_var_for_devices): New function.
5678 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5679 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5680 devices.csv was not found using other methods.
5681 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5682 New prototype.
5683 (msp430_dirname): Likewise.
5684 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5685 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5686 msp430_get_linker_devices_include_path.
5687 (TARGET_EXTRA_PRE_INCLUDES): Define.
5688 * doc/invoke.texi: Document new ways of searching for support files.
5689
5690 2019-11-04 Richard Biener <rguenther@suse.de>
5691
5692 PR tree-optimization/92301
5693 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5694 as required by epilogue generation
5695
5696 2019-11-04 Martin Liska <mliska@suse.cz>
5697
5698 PR ipa/92304
5699 * fold-const.c (operand_compare::hash_operand): Fix field
5700 hashing of CONSTRUCTOR.
5701
5702 2019-11-04 Martin Liska <mliska@suse.cz>
5703
5704 * ggc.h (ggc_delete): New function.
5705 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5706 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5707 (ipa_free_all_node_params): Likewise.
5708 * ipa-sra.c (ipa_sra_analysis): Likewise.
5709
5710 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5711
5712 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5713 set_switch_stmt_execution_predicate, compute_bb_predicates,
5714 will_be_nonconstant_expr_predicate,
5715 phi_result_unknown_predicate,
5716 analyze_function_body): Pass arround params summary.
5717 (ipa_call_context::duplicate_from): New comment;
5718 only duplicate useful values.
5719 (ipa_call_context::equal_to): Only compare useful values.
5720 (remap_edge_summaries): Pass params_summary.
5721 (remap_hint_predicate): Likewise.
5722 (ipa_merge_fn_summary_after_inlining): Likewise.
5723 (inline_read_section): Initialize params summary used flags.
5724 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5725 around param_summary.
5726 (add_condition): Initialized used params summary flags.
5727 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5728 (inline_param_summary::useless_p): New predicate.
5729 (remap_after_inlining, add_condition): Update prototype
5730 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5731 move_cost.
5732 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5733 summaries.
5734 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5735 (ipa_analyze_virtual_call_uses): Likewise.
5736 (update_indirect_edges_after_inlining): Update param summaries.
5737 (ipa_print_node_params): Print used flags.
5738 (ipa_read_indirect_edge_info): Update param summareis.
5739 * ipa-prop.h (ipa_param_descriptor): Add
5740 used_by_ipa_predicates, used_by_indirect_call
5741 and used_by_polymorphic_call.
5742 (ipa_set_param_used_by_ipa_predicates,
5743 ipa_set_param_used_by_indirect_call,
5744 ipa_set_param_used_by_polymorphic_call,
5745 ipa_is_param_used_by_ipa_predicates,
5746 ipa_is_param_used_by_indirect_call,
5747 ipa_is_param_used_by_polymorphic_call): New inline functions.
5748
5749 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5750
5751 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5752 member function.
5753 (ipa_call_context::release): Add ALL parameter.
5754 (ipa_call_context::equal_to): New member function.
5755 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5756 duplicate_form, release, equal_to and exists_p member functoins.
5757 * ipa-inline-analysis.c (node_context_cache_entry): New
5758 class.
5759 (node_context_summary): Likewise.
5760 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5761 node_context_clear): New static vars.
5762 (initialize_growth_caches): New function.
5763 (free_growth_caches): Also delete node_context_cache; output stats.
5764 (do_estimate_edge_time): Cache contexts.
5765 (reset_node_cache): New function.
5766 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5767 (inline_small_functions): Initialize growth caches.
5768 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5769 Declare.
5770 * ipa-predicate.h (inline_param_summary::equal_to): New.
5771 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5772 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5773 (ipa_agg_jump_function): Implement equal_to member function.
5774
5775 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5776
5777 * ipa-fnsummary.c (inline_read_section): Set vector size
5778 ahead of time.
5779
5780 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5781
5782 * ipa-fnsummary.c (ipa_call_context): New constructor.
5783 (estimate_node_size_and_time): Turn to ...
5784 (ipa_call_context::estimate_size_and_time): ... this one.
5785 (ipa_call_context::release): New.
5786 * ipa-fnsummary.h (ipa_call_context): New class.
5787 (estimate_node_size_and_time): Remove.
5788 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5789 do_estimate_edge_hints): Update.
5790
5791 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5792
5793 * config.in: Regenerate.
5794 * configure: Regenerate.
5795 * configure.ac: Check for mallinfo.
5796 * ggc-common.c: Include malloc.h if available;
5797 include options.h
5798 (report_heap_memory_use): New functoin.
5799 * ggc-page.c (ggc_grow): Do not print "start".
5800 * ggc.h (report_heap_memory_use): Declare.
5801 * pases.c (execute_one_pass): Report memory after IPA passes.
5802 (ipa_read_summaries_1): Likewise.
5803 (ipa_read_optimization_summaries_1): Likewise.
5804
5805 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5806
5807 * gimplify.h (omp_construct_selector_matches): Change return
5808 type to int, add a new SCORES argument.
5809 * gimplify.c (omp_construct_selector_matches): Likewise. If
5810 SCORES is non-NULL, compute scores of each construct.
5811 * omp-general.h (omp_get_context_selector): Declare.
5812 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5813 Adjust omp_construct_selector_matches callers.
5814 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5815 (omp_context_compute_score): New function.
5816 (omp_resolve_declare_variant): Compute scores and decide based on
5817 that.
5818
5819 PR bootstrap/92314
5820 * configure.ac: Don't look for omp-device-properties files from
5821 installed offloading compilers. Instead add tmake_file snippets
5822 for configured offloading targets and use files they generate.
5823 * Makefile.in (install): Don't depend on
5824 install-omp-device-properties.
5825 (install-omp-device-properties): Remove goal.
5826 * config/i386/t-omp-device: New file.
5827 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5828 * config/nvptx/t-omp-device: New file.
5829 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5830 * configure: Regenerated.
5831
5832 * omp-general.h (omp_context_selector_set_compare): Declare.
5833 * omp-general.c (omp_construct_simd_compare,
5834 omp_context_selector_props_compare, omp_context_selector_set_compare,
5835 omp_context_selector_compare): New functions.
5836 (omp_resolve_declare_variant): Prune variants that are strict subset
5837 of another variant.
5838
5839 2019-11-01 Martin Sebor <msebor@redhat.com>
5840
5841 PR middle-end/91679
5842 PR middle-end/91647
5843 PR middle-end/91463
5844 PR middle-end/92312
5845 * doc/invoke.texi (-Wzero-length-bounds): Document.
5846 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5847 instead of a hand-rolled loop to avoid PR 92323.
5848 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5849 with initializers.
5850 (vrp_prop::check_mem_ref): Handle declared struct objects.
5851 * tree.c (last_field): New function.
5852 (array_at_struct_end_p): Handle MEM_REF.
5853 (get_initializer_for): New helper.
5854 (component_ref_size): Add argument. Rename locals. Call
5855 get_initializer_for instead of fold_ctor_reference. Correct handling
5856 of flexible array members.
5857 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5858
5859 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5860
5861 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5862 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5863 UNSPEC_VSX_CVSPUXDS): Remove.
5864 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5865 (vsx_xvcvspdp_be): ... this. New. And...
5866 (vsx_xvcvspdp_le): ... this. New.
5867 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5868 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5869 (vsx_xvcv<su>xwdp_le): ... this. New.
5870 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5871 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5872 (vsx_xvcvsp<su>xds_le): ... this. New.
5873
5874 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5875
5876 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5877 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5878 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5879 UNSPEC_VSX_XVCVSPSXWS): Remove.
5880 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5881 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5882
5883 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5884
5885 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5886 (UNSPEC_VSX_XVCDPSP): Remove.
5887 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5888 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5889
5890 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5891
5892 * hooks.c (hook_tree_tree_bool_null): New.
5893 * hooks.h (hook_tree_tree_bool_null): Declare.
5894 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5895 (LANG_HOOKS_DECLS): Add it.
5896 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5897 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5898 (lower_omp_target): Handle Fortran array with descriptor in
5899 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5900
5901 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5902
5903 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5904 Assert that the type we store in abi_vector_types is its own
5905 main variant.
5906 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5907
5908 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5909
5910 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5911 from a CONST_INT address when TARGET_THUMB2.
5912
5913 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5914
5915 * config/arm/arm.md (add_not_cin): New insn.
5916 (add_not_shift_cin): Likewise.
5917
5918 2019-10-31 Martin Liska <mliska@suse.cz>
5919
5920 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5921 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5922 and compare_memory_operand.
5923
5924 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5925
5926 * configure.ac: Compute and substitute omp_device_properties and
5927 omp_device_property_deps.
5928 * Makefile.in (generated_files): Add omp-device-properties.h.
5929 (omp-general.o): Depend on omp-device-properties.h.
5930 (omp_device_properties): New make variable.
5931 (omp-device-properties.h, s-omp-device-properties-h,
5932 install-omp-device-properties): New goals.
5933 (install): Depend on install-omp-device-properties for accelerators.
5934 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5935 * target.h (enum omp_device_kind_arch_isa): New enum.
5936 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5937 documentation.
5938 * omp-general.c: Include omp-device-properties.h.
5939 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5940 colon instead of comma.
5941 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5942 functions.
5943 (omp_context_selector_matches): Implement device set arch/isa
5944 selectors, improve device set kind selector handling.
5945 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5946 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5947 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5948 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5949 ix86_omp_device_kind_arch_isa.
5950 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5951 definition from ix86_target_string to file scope.
5952 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5953 to file scope.
5954 (ix86_omp_device_kind_arch_isa): New function.
5955 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5956 isa_opts definitions to file scope.
5957 * config/i386/t-intelmic (omp-device-properties): New goal.
5958 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5959 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5960 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5961 nvptx_omp_device_kind_arch_isa.
5962 * configure: Regenerate.
5963 * doc/tm.texi: Regenerate.
5964
5965 PR middle-end/92231
5966 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5967 DECL_BUILT_IN in comment. Remove redundant ()s around return
5968 argument.
5969 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5970 before calling fndecl_built_in_p.
5971 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5972 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5973 fndecl_built_in_p on it.
5974
5975 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5976
5977 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5978
5979 2019-10-31 Martin Liska <mliska@suse.cz>
5980
5981 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5982 of cgraph_local_info and use local_info_node instead.
5983 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5984 (bfin_function_ok_for_sibcall): Likewise.
5985 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5986 (must_reload_pic_reg_p): Likewise.
5987
5988 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5989
5990 PR c++/90947
5991 * tree.h (type_initializer_zero_p): Remove.
5992 * tree.c (type_initializer_zero_p): Remove.
5993
5994 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5995
5996 * doc/invoke.texi (-Wshadow, -Wshadow=global
5997 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5998
5999 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6000
6001 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6002 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6003 and 'target exit data'.
6004
6005 2019-10-30 Martin Jambor <mjambor@suse.cz>
6006
6007 ipa/92278
6008 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6009 availability comparison.
6010
6011 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6012
6013 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6014 calls to __mspabi_mpy* functions.
6015 * config/msp430/msp430.md (mulhisi3): New define_expand.
6016 (umulhisi3): New define_expand.
6017 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6018 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6019
6020 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6021
6022 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6023 (msp430_check_plus_not_high_mem): New.
6024 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6025 might be in low memory.
6026 Indicate that a 16-bit absolute address is in lower memory.
6027
6028 2019-10-30 Martin Jambor <mjambor@suse.cz>
6029
6030 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6031 ultimate_alias_target.
6032
6033 2019-10-30 Richard Biener <rguenther@suse.de>
6034
6035 PR tree-optimization/92275
6036 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6037 Copy all loop-closed PHIs.
6038
6039 2019-10-30 Martin Liska <mliska@suse.cz>
6040
6041 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6042 const_tree as function argument.
6043 (func_checker::compare_decl): Likewise.
6044 (func_checker::operand_equal_p): Likewise.
6045 (func_checker::compare_variable_decl): Likewise.
6046 (func_checker::parse_labels): Likewise.
6047 * ipa-icf-gimple.h: Likewise.
6048
6049 2019-10-30 Martin Liska <mliska@suse.cz>
6050
6051 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6052 Do not compare alias sets. It's handled by operand_equal_p.
6053
6054 2019-10-30 Martin Liska <mliska@suse.cz>
6055
6056 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6057 initialize m_compare_polymorphic.
6058 (func_checker::compare_decl): Do not compare polymorphic types.
6059 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6060 * ipa-icf.c (sem_function::equals_private): Do not call
6061 compare_polymorphic_p.
6062
6063 2019-10-30 Martin Liska <mliska@suse.cz>
6064
6065 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6066 compare_operand.
6067 (func_checker::compare_memory_operand): Remove.
6068 (func_checker::compare_cst_or_decl): Remove.
6069 (func_checker::operand_equal_valueize): Do not handle
6070 FIELD_DECL.
6071 (func_checker::compare_gimple_call): Call compare_operand.
6072 (func_checker::compare_gimple_assign): Likewise.
6073 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6074 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6075 * ipa-icf.h (icf_handled_component_p): Remove.
6076
6077 2019-10-30 Martin Liska <mliska@suse.cz>
6078
6079 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6080 (func_checker::compare_cst_or_decl): Remove handling
6081 of FIELD_DECL.
6082 (func_checker::compare_operand): Transform to ...
6083 (func_checker::operand_equal_p): ... this.
6084 * ipa-icf-gimple.h (class func_checker): Add
6085 operand_equal_p and hash_operand.
6086 * ipa-icf.c (sem_function::equals_private): Fix
6087 pushing and popping of cfun.
6088
6089 2019-10-30 Martin Liska <mliska@suse.cz>
6090
6091 * fold-const.c (operand_equal_p): Move to ...
6092 (operand_compare::operand_equal_p): ... here.
6093 (operand_compare::verify_hash_value): New.
6094 (add_expr): Move to ...
6095 (operand_compare::hash_operand): ... here.
6096 * fold-const.h (operand_equal_p): Move to the class.
6097 (class operand_compare): New.
6098 * tree.c (add_expr): Remove.
6099
6100 2019-10-30 Martin Liska <mliska@suse.cz>
6101
6102 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6103 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6104
6105 2019-10-30 Martin Liska <mliska@suse.cz>
6106
6107 PR lto/91393
6108 PR lto/88220
6109 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6110 from a first_clone in order to get proper LTO section
6111 in LTO stream.
6112 (cgraph_node::get_untransformed_body):
6113 Use lto_get_section_data where symtab_node::order
6114 must be provided.
6115 * cgraphclones.c (cgraph_node::find_replacement):
6116 Update also symbol order.
6117 * ipa-fnsummary.c (ipa_fn_summary_read):
6118 Use new function lto_get_summary_section_data.
6119 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6120 * ipa-icf.c (sem_item_optimizer::read_summary):
6121 Likewise.
6122 * ipa-prop.c (ipa_prop_read_jump_functions):
6123 Likewise.
6124 (ipcp_read_transformation_summaries): Likewise.
6125 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6126 * lto-cgraph.c (input_node): Add also order_base.
6127 (input_varpool_node): Likewise.
6128 (input_cgraph_1): Assign the order_base.
6129 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6130 * lto-opts.c (lto_write_options): Pass new argument.
6131 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6132 (lto_get_summary_section_data): New.
6133 (lto_get_raw_section_data): Add order argument.
6134 (lto_create_simple_input_block): Likewise.
6135 * lto-section-out.c (lto_destroy_simple_output_block):
6136 Likewise.
6137 * lto-streamer-in.c (lto_input_toplevel_asms):
6138 Use lto_get_summary_section_data.
6139 (lto_input_mode_table): Likewise.
6140 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6141 (lto_output_toplevel_asms): Pass new argument.
6142 (copy_function_or_variable): Likewise.
6143 (produce_lto_section):Likewise.
6144 (produce_symtab): Likewise.
6145 (lto_write_mode_table): Likewise.
6146 (produce_asm_for_decls): Likewise.
6147 * lto-streamer.c (lto_get_section_name): Concat symbol name
6148 and symbol order.
6149 * lto-streamer.h (lto_get_section_data): Add order argument.
6150 (lto_get_summary_section_data): New.
6151 (lto_get_raw_section_data): Add order argument.
6152 (lto_get_section_name): Likewise.
6153 * varpool.c (varpool_node::get_constructor): Pass order argument.
6154
6155 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6156
6157 PR tree-optimization/92262
6158 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6159 ubase or cbase here.
6160 (remove_unused_ivs): Unshare comp before using it.
6161
6162 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6163
6164 * ipa-prop.c (update_jump_functions_after_inlining):
6165 Watch for missing summaries.
6166
6167 2019-10-30 Richard Biener <rguenther@suse.de>
6168
6169 PR tree-optimization/65930
6170 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6171 chains also allow a leading and trailing conversion.
6172 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6173 intermediate reduction chains.
6174 (vect_analyze_slp_instance): Likewise. Build a SLP
6175 node for a trailing conversion manually.
6176
6177 2019-10-30 Martin Liska <mliska@suse.cz>
6178
6179 * cgraph.c (cgraph_node::local_info): Transform to ...
6180 (cgraph_node::local_info_node): ... this.
6181 (cgraph_node::dump): Remove cgraph_local_info and
6182 put its fields directly into cgraph_node.
6183 (cgraph_node::get_availability): Likewise.
6184 (cgraph_node::make_local): Likewise.
6185 (cgraph_node::verify_node): Likewise.
6186 * cgraph.h (struct GTY): Likewise.
6187 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6188 (duplicate_thunk_for_node): Likewise.
6189 (cgraph_node::create_clone): Likewise.
6190 (cgraph_node::create_virtual_clone): Likewise.
6191 (cgraph_node::create_version_clone): Likewise.
6192 * cgraphunit.c (cgraph_node::reset): Likewise.
6193 (cgraph_node::finalize_function): Likewise.
6194 (cgraph_node::add_new_function): Likewise.
6195 (analyze_functions): Likewise.
6196 * combine.c (setup_incoming_promotions): Likewise.
6197 * config/i386/i386.c (ix86_function_regparm): Likewise.
6198 (ix86_function_sseregparm): Likewise.
6199 (init_cumulative_args): Likewise.
6200 * ipa-cp.c (determine_versionability): Likewise.
6201 (count_callers): Likewise.
6202 (set_single_call_flag): Likewise.
6203 (initialize_node_lattices): Likewise.
6204 (estimate_local_effects): Likewise.
6205 (create_specialized_node): Likewise.
6206 (identify_dead_nodes): Likewise.
6207 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6208 (ipa_fn_summary_generate): Likewise.
6209 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6210 (process_hsa_functions): Likewise.
6211 * ipa-icf.c (set_local): Likewise.
6212 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6213 * ipa-inline.c (speculation_useful_p): Likewise.
6214 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6215 (ipa_profile): Likewise.
6216 * ipa-split.c (split_function): Likewise.
6217 (execute_split_functions): Likewise.
6218 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6219 (ipa_sra_ipa_function_checks): Likewise.
6220 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6221 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6222 * lto-cgraph.c (lto_output_node): Likewise.
6223 (input_overwrite_node): Likewise.
6224 * multiple_target.c (expand_target_clones): Likewise.
6225 * omp-simd-clone.c (simd_clone_create): Likewise.
6226 * trans-mem.c (expand_call_tm): Likewise.
6227 (ipa_tm_mayenterirr_function): Likewise.
6228 (ipa_tm_diagnose_tm_safe): Likewise.
6229 (ipa_tm_diagnose_transaction): Likewise.
6230 (ipa_tm_create_version): Likewise.
6231 (ipa_tm_transform_calls_redirect): Likewise.
6232 (ipa_tm_execute): Likewise.
6233 * tree-inline.c (expand_call_inline): Likewise.
6234
6235 2019-10-29 Martin Liska <mliska@suse.cz>
6236
6237 * symbol-summary.h (function_summary): Pass memory location
6238 to underlaying hash_map (or vec).
6239 (V>::fast_function_summary): Likewise.
6240
6241 2019-10-29 Martin Liska <mliska@suse.cz>
6242
6243 * ggc.h (ggc_alloc_no_dtor): New function.
6244 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6245 destructor and ggc_free.
6246 (ipa_free_size_summary): Call delete instead
6247 of release.
6248 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6249 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6250 (ipa_free_all_edge_args): Call destructor and ggc_free.
6251 (ipa_free_all_node_params): Likewise.
6252 (ipcp_free_transformation_sum): Likewise.
6253 * ipa-prop.h (ipa_check_create_node_params):
6254 Call new ggc_alloc_no_dtor.
6255 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6256 (ipa_sra_analysis): Call destructor and ggc_free.
6257 Replace release with delete operator.
6258 * symbol-summary.h (release): Remove ..
6259 (V>::~fast_function_summary): and move logic here.
6260 Likewise for other classes.
6261
6262 2019-10-29 Richard Biener <rguenther@suse.de>
6263
6264 PR tree-optimization/92260
6265 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6266 lane-reducing ops.
6267
6268 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6269
6270 PR tree-optimization/88915
6271 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6272 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6273 and make the valueize function pointer also take a void pointer.
6274 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6275 around vn_valueize, to call it without a context.
6276 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6277 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6278 (~_loop_vec_info): Release epilogue_vinfos.
6279 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6280 number of iterations of epilogue.
6281 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6282 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6283 versioning threshold needed for main loop.
6284 (vect_analyze_loop): Likewise.
6285 (find_in_mapping): New helper function.
6286 (update_epilogue_loop_vinfo): New function.
6287 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6288 on main loop and call update_epilogue_loop_vinfo to update it.
6289 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6290 stmts on loop preheader edge.
6291 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6292 we decided to vectorize epilogues. Update epilogues NITERS and
6293 construct ADVANCE to update epilogues data references where needed.
6294 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6295 (vect_do_peeling, vect_update_inits_of_drs,
6296 determine_peel_for_niter, vect_analyze_loop): Add or update
6297 declarations.
6298 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6299 created loop_vec_info's for epilogues when available. Otherwise analyse
6300 epilogue separately.
6301
6302 2019-10-29 Richard Biener <rguenther@suse.de>
6303
6304 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6305 example.
6306
6307 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6308
6309 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6310 index for the COND_EXPR from stmt_info rather than reduc_info.
6311
6312 2019-10-29 Richard Biener <rguenther@suse.de>
6313
6314 PR tree-optimization/65930
6315 * tree-vect-loop.c (check_reduction_path): Relax single-use
6316 check allowing out-of-loop uses.
6317 (vect_is_simple_reduction): SLP reduction chains cannot have
6318 intermediate stmts used outside of the loop.
6319 (vect_create_epilog_for_reduction): The adjustment might need
6320 to be converted.
6321 (vectorizable_reduction): Annotate live stmts of the reduction
6322 chain with STMT_VINFO_REDUC_DEF.
6323 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6324
6325 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6326
6327 * calls.c (pass_by_reference): Leave the target to decide whether
6328 POLY_INT_CST-sized arguments should be passed by value or reference,
6329 rather than forcing them to be passed by reference.
6330 (must_pass_in_stack_var_size): Likewise.
6331 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6332 V31_REGNUM to P15_REGNUM.
6333 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6334 Take an extra "silent_p" parameter, defaulting to false.
6335 (aarch64_sve::svbool_type_p): Declare.
6336 (aarch64_sve::nvectors_if_data_type): Likewise.
6337 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6338 (aarch64_frame::reg_offset): Turn into poly_int64s.
6339 (aarch64_frame::save_regs_size): Likewise.
6340 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6341 (aarch64_frame::sve_callee_adjust): Likewise.
6342 (aarch64_frame::spare_reg_reg): Likewise.
6343 (ARM_PCS_SVE): New arm_pcs value.
6344 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6345 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6346 (CUMULATIVE_ARGS::silent_p): Likewise.
6347 (BITS_PER_SVE_PRED): New macro.
6348 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6349 function. Reject aarch64_vector_pcs attributes on SVE functions.
6350 (aarch64_attribute_table): Use the above handler.
6351 (aarch64_sve_abi): New function.
6352 (aarch64_sve_argument_p): Likewise.
6353 (aarch64_returns_value_in_sve_regs_p): Likewise.
6354 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6355 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6356 descriptor for them.
6357 (aarch64_simd_decl_p): Delete.
6358 (aarch64_emit_cfi_for_reg_p): New function.
6359 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6360 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6361 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6362 as partly clobbered for the SVE PCS.
6363 (aarch64_function_ok_for_sibcall): Check whether the two functions
6364 use the same ABI, rather than checking specifically for whether
6365 they're aarch64_vector_pcs functions.
6366 (aarch64_pass_by_reference): Raise an error for attempts to pass
6367 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6368 if there are not enough free registers left, or if the argument is
6369 variadic.
6370 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6371 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6372 tuples in memory.
6373 (aarch64_layout_arg): Take a function_arg_info rather than
6374 individual properties. Handle SVE predicates, vectors and tuples.
6375 Raise an error if they are passed to unprototyped functions.
6376 (aarch64_function_arg): If the silent_p flag is set, suppress the
6377 usual error about using float registers without TARGET_FLOAT.
6378 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6379 it in the cumulative_args structure. Initialize aapcs_nprn and
6380 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6381 error about using float registers without TARGET_FLOAT.
6382 If the silent_p flag is not set, also raise an error about
6383 using SVE functions when SVE is disabled.
6384 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6385 and call it for SVE functions too. Update aapcs_nprn similarly
6386 to the other register counts.
6387 (aarch64_layout_frame): If a big-endian function needs to save
6388 and restore Z8-Z15, search for a spare predicate that it can use.
6389 Store SVE predicates at the bottom of the register save area,
6390 followed by SVE vectors, then followed by the normal slots.
6391 Keep pointing the hard frame pointer at the base of the normal slots,
6392 above the SVE vectors. Update the various frame creation and
6393 tear-down strategies for the new layout, initializing the new
6394 sve_callee_adjust field. Add an additional layout for frames
6395 whose saved registers are all SVE registers.
6396 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6397 (aarch64_return_address_signing_enabled): Likewise.
6398 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6399 aarch64_reg_save_mode.
6400 (aarch64_adjust_sve_callee_save_base): New function.
6401 (aarch64_add_cfa_expression): Move earlier in file. Take the
6402 saved register as an rtx rather than a register number and use
6403 its mode for the MEM slot.
6404 (aarch64_save_callee_saves): Remove the mode argument and instead
6405 use aarch64_reg_save_mode to get the mode of each save slot.
6406 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6407 offsets. Allow GP offsets to be saved at a VL-based offset from
6408 the stack, handling this case using the frame pointer if available
6409 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6410 big-endian SVE functions; use normal moves for other SVE saves.
6411 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6412 returns true. Add explicit CFA notes when not storing via the
6413 stack pointer. Do not try to pair SVE saves.
6414 (aarch64_restore_callee_saves): Cope with poly_int64 register
6415 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6416 use normal moves for other SVE restores. Only add CFA restore notes
6417 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6418 SVE restores.
6419 (aarch64_get_separate_components): Always keep the first SVE save
6420 in the prologue if we need to use it as a stack probe. Don't allow
6421 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6422 Likewise the spare predicate register that they need. Update the
6423 offset calculation to account for the SVE save area. Use the
6424 appropriate range check for SVE LDR and STR instructions.
6425 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6426 (aarch64_process_components): Likewise. Update the offset
6427 calculation to account for the SVE save area. Only mark the
6428 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6429 Do not try to pair SVE saves.
6430 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6431 reg_offsets. When handling the final allocation, expect the
6432 first SVE register save to be part of the initial allocation
6433 and for it to act as a probe at SP. Account for the SVE callee
6434 save area in the dump information.
6435 (aarch64_expand_prologue): Update the frame diagram. Fold the
6436 SVE callee allocation into the initial allocation if stack clash
6437 protection is enabled. Use new variables to track the offset
6438 of the frame chain (and hard frame pointer) from the current
6439 stack pointer, and likewise the offset of the bottom of the
6440 register save area. Update calls to aarch64_save_callee_saves
6441 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6442 saving the FP&SIMD registers. Save the predicate registers.
6443 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6444 into account when setting the stack pointer from the frame pointer,
6445 and when deciding whether we can inherit the initial adjustment
6446 amount from the prologue. Restore the predicate registers after
6447 the vector registers, then apply sve_callee_adjust, then restore
6448 the general registers.
6449 (aarch64_secondary_reload): Don't use secondary SVE reloads
6450 for VNx16BImode.
6451 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6452 (aarch64_short_vector_p): Return false for SVE types.
6453 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6454 at the start of the function. Return false for SVE types.
6455 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6456 functions too.
6457 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6458 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6459 to big-endian targets for bytewise moves.
6460 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6461
6462 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6463 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6464 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6465
6466 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6467 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6468 aarch64-sve-builtins-base.o to extra_objs. Add
6469 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6470 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6471 (aarch64-sve-builtins-shapes.o): Likewise.
6472 (aarch64-sve-builtins-base.o): New rules.
6473 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6474 (aarch64_resolve_overloaded_builtin): Likewise.
6475 (aarch64_check_builtin_call): Likewise.
6476 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6477 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6478 pragma.
6479 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6480 (aarch64_svprfop): New enum.
6481 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6482 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6483 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6484 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6485 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6486 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6487 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6488 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6489 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6490 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6491 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6492 (aarch64_sve::mangle_builtin_type): Likewise.
6493 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6494 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6495 (aarch64_sve::expand_builtin): Likewise.
6496 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6497 (aarch64_sve_int_mode): Likewise.
6498 (aarch64_ptrue_all_mode): New function.
6499 (aarch64_convert_sve_data_to_pred): Make public.
6500 (svprfop_token): New function.
6501 (aarch64_output_sve_prefetch): Likewise.
6502 (aarch64_fold_sve_cnt_pat): Likewise.
6503 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6504 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6505 instead of gen_while_ult.
6506 (aarch64_replace_reg_mode): Make public.
6507 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6508 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6509 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6510 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6511 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6512 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6513 (aarch64_sve_ptrue_svpattern_p): Likewise.
6514 (aarch64_sve_pred_valid_immediate): Check
6515 aarch64_sve_ptrue_svpattern_p.
6516 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6517 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6518 functions.
6519 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6520 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6521 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6522 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6523 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6524 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6525 New unspecs.
6526 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6527 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6528 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6529 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6530 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6531 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6532 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6533 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6534 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6535 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6536 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6537 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6538 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6539 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6540 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6541 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6542 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6543 (Vesize): Handle partial vector modes.
6544 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6545 mode attributes.
6546 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6547 iterators.
6548 (s, paired_extend, inc_dec): New code attributes.
6549 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6550 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6551 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6552 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6553 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6554 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6555 UNSPEC_COND_FMULX.
6556 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6557 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6558 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6559 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6560 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6561 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6562 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6563 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6564 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6565 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6566 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6567 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6568 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6569 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6570 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6571 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6572 UNSPEC_COND_FSCALE.
6573 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6574 (binqops_op, binqops_op_rev, last_op): New int attributes.
6575 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6576 (fn, ab): New int attributes.
6577 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6578 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6579 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6580 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6581 UNSPEC_RBIT.
6582 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6583 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6584 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6585 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6586 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6587 UNSPEC_COND_FMULX.
6588 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6589 (brk_reg_con, brk_reg_opno): New int attributes.
6590 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6591 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6592 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6593 UNSPEC_COND_FMIN.
6594 (max_elem_bits): New int attribute.
6595 (min_elem_bits): Handle UNSPEC_RBIT.
6596 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6597 TRUNCATE as well as SUBREG.
6598 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6599 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6600 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6601 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6602 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6603 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6604 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6605 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6606 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6607 (aarch64_gather_scale_operand_h): New predicates.
6608 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6609 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6610 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6611 (*aarch64_sve_reinterpret<mode>): Allow any source register
6612 instead of requiring an exact match.
6613 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6614 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6615 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6616 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6617 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6618 (aarch64_update_ffrt): New patterns.
6619 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6620 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6621 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6622 (@aarch64_ld<fn>f1<mode>): New patterns.
6623 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6624 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6625 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6626 (@aarch64_ldnt1<mode>): New patterns.
6627 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6628 the scalar part of the address.
6629 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6630 scalar part of the addresse and add an alternative for handling
6631 nonzero offsets.
6632 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6633 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6634 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6635 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6636 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6637 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6638 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6639 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6640 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6641 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6642 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6643 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6644 (@aarch64_sve_prefetch<mode>): New patterns.
6645 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6646 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6647 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6648 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6649 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6650 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6651 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6652 (@aarch64_stnt1<mode>): New patterns.
6653 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6654 the scalar part of the address.
6655 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6656 the scalar part of the addresse and add an alternative for handling
6657 nonzero offsets.
6658 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6659 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6660 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6661 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6662 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6663 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6664 New patterns.
6665 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6666 (extract_last_<mode>): Generalize to...
6667 (@extract_<LAST:last_op>_<mode>): ...this.
6668 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6669 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6670 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6671 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6672 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6673 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6674 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6675 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6676 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6677 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6678 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6679 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6680 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6681 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6682 (*aarch64_adr_uxtw_unspec): Likewise.
6683 (*aarch64_adr_uxtw): Rename to...
6684 (*aarch64_adr_uxtw_and): ...this.
6685 (@aarch64_adr<mode>_shift): New expander.
6686 (*aarch64_adr_shift_sxtw): New pattern.
6687 (aarch64_<su>abd<mode>_3): Rename to...
6688 (@aarch64_pred_<su>abd<mode>): ...this.
6689 (<su>abd<mode>_3): Update accordingly.
6690 (@aarch64_cond_<su>abd<mode>): New expander.
6691 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6692 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6693 (*<su>mul<mode>3_highpart): Rename to...
6694 (@aarch64_pred_<optab><mode>): ...this.
6695 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6696 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6697 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6698 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6699 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6700 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6701 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6702 (*v<ASHIFT:optab><mode>3): Rename to...
6703 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6704 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6705 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6706 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6707 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6708 (@cond_asrd<mode>): New expander.
6709 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6710 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6711 (*sdiv_pow2<mode>3): Delete.
6712 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6713 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6714 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6715 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6716 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6717 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6718 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6719 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6720 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6721 (*add<SVE_F:mode>3): Rename to...
6722 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6723 for SVE_STRICT_GP.
6724 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6725 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6726 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6727 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6728 (*sub<SVE_F:mode>3): Rename to...
6729 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6730 for SVE_STRICT_GP.
6731 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6732 (*fabd<SVE_F:mode>3): Rename to...
6733 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6734 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6735 (*mul<SVE_F:mode>3): Rename to...
6736 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6737 for SVE_STRICT_GP.
6738 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6739 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6740 to...
6741 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6742 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6743 (*<nlogical><PRED_ALL:mode>3): Rename to...
6744 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6745 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6746 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6747 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6748 (aarch64_pred_<logical_nn><mode>_z): ...this.
6749 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6750 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6751 (*fma<SVE_I:mode>4): Rename to...
6752 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6753 (*fnma<SVE_I:mode>4): Rename to...
6754 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6755 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6756 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6757 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6758 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6759 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6760 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6761 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6762 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6763 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6764 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6765 (@aarch64_sve_tmad<mode>): Likewise.
6766 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6767 (*aarch64_sel_dup<mode>): Rename to...
6768 (@aarch64_sel_dup<mode>): ...this.
6769 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6770 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6771 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6772 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6773 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6774 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6775 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6776 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6777 (*fcm<cmp_op><mode>): Rename to...
6778 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6779 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6780 (*fcmuo<mode>): Rename to...
6781 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6782 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6783 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6784 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6785 (fold_extract_last_<mode>): Generalize to...
6786 (@fold_extract_<last_op>_<mode>): ...this.
6787 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6788 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6789 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6790 DImode result explicit.
6791 (reduc_plus_scal_<mode>): Update accordingly.
6792 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6793 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6794 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6795 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6796 (*aarch64_sve_tbl<mode>): Rename to...
6797 (@aarch64_sve_tbl<mode>): ...this.
6798 (@aarch64_sve_compact<mode>): New pattern.
6799 (*aarch64_sve_dup_lane<mode>): Rename to...
6800 (@aarch64_sve_dup_lane<mode>): ...this.
6801 (@aarch64_sve_dupq_lane<mode>): New pattern.
6802 (@aarch64_sve_splice<mode>): Likewise.
6803 (aarch64_sve_<perm_insn><mode>): Rename to...
6804 (@aarch64_sve_<perm_insn><mode>): ...this.
6805 (*aarch64_sve_ext<mode>): Rename to...
6806 (@aarch64_sve_ext<mode>): ...this.
6807 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6808 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6809 to...
6810 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6811 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6812 Rename to...
6813 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6814 ...this.
6815 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6816 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6817 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6818 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6819 to...
6820 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6821 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6822 a "@" marker.
6823 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6824 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6825 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6826 pattern.
6827 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6828 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6829 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6830 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6831 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6832 "@" marker.
6833 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6834 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6835 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6836 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6837 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6838 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6839 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6840 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6841 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6842 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6843 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6844 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6845 (aarch64_sve_cnt_pat): Likewise.
6846 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6847 (*aarch64_sve_incsi_pat): Likewise.
6848 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6849 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6850 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6851 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6852 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6853 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6854 (*aarch64_sve_decsi_pat): Likewise.
6855 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6856 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6857 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6858 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6859 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6860 (@aarch64_pred_cntp<mode>): Likewise.
6861 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6862 New expander.
6863 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6864 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6865 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6866 New expander.
6867 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6868 New pattern.
6869 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6870 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6871 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6872 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6873 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6874 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6875 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6876 New expander.
6877 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6878 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6879 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6880 New expander.
6881 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6882 New pattern.
6883 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6884 expander.
6885 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6886 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6887 expander.
6888 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6889 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6890 expander.
6891 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6892 * config/aarch64/arm_sve.h: New file.
6893 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6894 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6895 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6896 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6897 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6898 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6899 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6900 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6901 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6902
6903 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6904
6905 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6906 New pattern.
6907 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6908 SVE modes.
6909
6910 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6911
6912 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6913 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6914 FFRT_REGNUM + 1.
6915 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6916 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6917 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6918 (aarch64_hard_regno_nregs): Handle the new register classes.
6919 (aarch64_hard_regno_mode_ok): Likewise.
6920 (aarch64_regno_regclass): Likewise.
6921 (aarch64_class_max_nregs): Likewise.
6922 (aarch64_register_move_cost): Likewise.
6923 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6924 as general register_operands.
6925
6926 2019-10-29 Martin Liska <mliska@suse.cz>
6927
6928 * ggc-common.c: One can't subtract unsigned types
6929 in compare function.
6930
6931 2019-10-29 Martin Liska <mliska@suse.cz>
6932
6933 * cgraphunit.c (symbol_table::compile): Pass
6934 title as dump_memory_report argument.
6935 * toplev.c (dump_memory_report): New argument.
6936 (finalize): Pass new argument.
6937 * toplev.h (dump_memory_report): Add argument.
6938
6939 2019-10-29 Martin Liska <mliska@suse.cz>
6940
6941 * ggc-common.c: Move Leak to the first column.
6942
6943 2019-10-29 Martin Liska <mliska@suse.cz>
6944
6945 * cgraphunit.c (symbol_table::compile): Remove argument
6946 for dump_memory_report.
6947 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6948 (compare_final): Remove in order to make report
6949 better readable.
6950 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6951 * mem-stats.h (mem_alloc_description::get_list):
6952 Do not pass cmp.
6953 (mem_alloc_description::dump): Likewise here.
6954 * toplev.c (dump_memory_report): Remove final
6955 argument.
6956 (finalize): Likewise.
6957 * toplev.h (dump_memory_report): Remove argument.
6958
6959 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6960
6961 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6962 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6963 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6964 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6965 accept "const".
6966
6967 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6968
6969 * coretypes.h (string_int_pair): New typedef.
6970 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6971 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6972 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6973
6974 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6975
6976 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6977 (simulate_builtin_function_decl): Declare.
6978 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6979 (LANG_HOOKS_INITIALIZER): Include it.
6980 * langhooks.c (add_builtin_function_common): Rename to...
6981 (build_builtin_function): ...this. Add a location parameter and use
6982 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6983 the decl instead.
6984 (add_builtin_function): Update accordingly, passing the returned
6985 decl to the lang hook.
6986 (add_builtin_function_ext_scope): Likewise
6987 (simulate_builtin_function_decl): New function.
6988
6989 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6990
6991 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6992 example, use actual names of supported offload targets.
6993
6994 PR target/92258
6995 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6996
6997 2019-10-28 Martin Sebor <msebor@redhat.com>
6998
6999 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7000 (handle_store): Pass argument to get_addr_stridx.
7001
7002 2019-10-28 Martin Sebor <msebor@redhat.com>
7003
7004 PR tree-optimization/92226
7005 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7006 the offset is in the open range outlined by SI's length.
7007
7008 2019-10-28 Martin Sebor <msebor@redhat.com>
7009
7010 PR c/66970
7011 * doc/cpp.texi (__has_builtin): Document.
7012 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7013
7014 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7015
7016 PR target/82981
7017 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7018 doubleword and low doubleword result of multiplication on
7019 MIPS64R6.
7020
7021 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7022 pure qualifier to the built-in.
7023 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7024 built-ins.
7025 (struct mips_builtin_description): Add is_pure flag.
7026 (mips_init_builtins): Mark built-in as pure if the flag in the
7027 corresponding mips_builtin_description struct is set.
7028
7029 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7030 alternative which covers the floating-point input value. Also
7031 forbid the split of insert.d pattern for floating-point values.
7032
7033 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7034
7035 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7036 * config/riscv/riscv-sr.c: New file.
7037 * config/riscv/riscv.c (riscv_reorg): New function.
7038 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7039 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7040 (riscv_remove_unneeded_save_restore_calls): Declare.
7041 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7042
7043 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7044
7045 PR tree-optimization/92163
7046 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7047 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7048 before calling bitmap_set_bit.
7049 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7050 delete_dead_or_redundant_assignment.
7051 (dse_dom_walker::dse_optimize_stmt): Likewise.
7052 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7053
7054 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7055
7056 PR middle-end/91272
7057 * tree-vect-stmts.c (vectorizable_condition): Support
7058 EXTRACT_LAST_REDUCTION with fully-masked loops.
7059
7060 2019-10-28 Richard Biener <rguenther@suse.de>
7061
7062 PR tree-optimization/92252
7063 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7064 STMT_VINFO_REDUC_IDX when swapping operands.
7065
7066 2019-10-28 Richard Biener <rguenther@suse.de>
7067
7068 PR tree-optimization/92241
7069 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7070 we failed to update the reduction index do not use the pattern
7071 stmts for the reduction chain.
7072 (vectorizable_reduction): When the reduction chain is corrupt,
7073 fail.
7074 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7075 fail to update the reduction chain.
7076
7077 2019-10-28 Richard Biener <rguenther@suse.de>
7078
7079 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7080 STMT_VINFO_REDUC_IDX from the actual stmt.
7081 (vect_transform_reduction): Likewise.
7082 (vectorizable_reduction): Compute the reduction chain length,
7083 do not recompute the reduction operand index. Remove no longer
7084 necessary restriction for condition reduction chains.
7085
7086 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7087
7088 PR target/92225
7089 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7090 condition for V2DImode.
7091
7092 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7093
7094 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7095 Remove %k operand modifier.
7096 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7097
7098 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7099
7100 PR rtl-optimization/92007
7101 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7102 call it after reload if hot/cold partitioning has been done.
7103 (class pass_postreload_jump): Rename to
7104 pass_jump_after_combine.
7105 (make_pass_postreload_jump): Rename to
7106 make_pass_jump_after_combine.
7107 * passes.def(pass_postreload_jump): Move before reload, rename
7108 to pass_jump_after_combine.
7109 * tree-pass.h (make_pass_postreload_jump): Rename to
7110 make_pass_jump_after_combine.
7111
7112 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7113
7114 PR ipa/92242
7115 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7116 for missing EDGE_REF
7117 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7118
7119 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7120
7121 PR tree-optimization/88760
7122 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7123 Enable -funroll-loops for -O2 and above.
7124 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7125 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7126 do not turn on web and rngreg implicitly, if the unroller is not
7127 explicitly enabled.
7128
7129 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7130
7131 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7132 jump functions.
7133
7134 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7135
7136 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7137 * cgraph.h (cgraph_node::rtl_info): Likewise.
7138
7139 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7140
7141 * ipa-cp.c (propagate_constants_across_call): If args are not available
7142 just drop everything to varying.
7143 (find_aggregate_values_for_callers_subset): Watch for missing
7144 edge summary.
7145 (find_more_scalar_values_for_callers_subs): Likewise.
7146 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7147 update_jump_functions_after_inlining, propagate_controlled_uses):
7148 Watch for missing summaries.
7149 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7150 is finished.
7151 (ipa_write_node_info): Watch for missing summaries.
7152 (ipa_read_edge_info): Create new ref.
7153 (ipa_edge_args_sum_t): Add remove.
7154 (IPA_EDGE_REF_GET_CREATE): New macro.
7155 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7156 edge summary.
7157 (remap_edge_change_prob): Likewise.
7158
7159 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7160
7161 * ipa-inline-transform.c (inline_call): update function summaries
7162 after expanidng thunk.
7163
7164 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7165
7166 * ipa-icf.c (sem_function::merge): Update function summaries.
7167 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7168
7169 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7170
7171 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7172 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7173 operand already has scalar mode.
7174 (iptr): Remove SF/DF.
7175
7176 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7177
7178 PR target/91289
7179 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7180 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7181 this.
7182
7183 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7184
7185 * config/i386/sse.md
7186 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7187 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7188 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7189 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7190 <sse>_vmmaskcmp<mode>3):
7191 Change predicates from vector_operand to nonimmediate_operand,
7192 constraints xBm to xm, since scalar operations don't need
7193 memory address alignment.
7194 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7195 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7196 round_saeonly_nimm_predicate with
7197 round_saeonly_nimm_scalar_predicate.
7198 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7199 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7200 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7201 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7202 avx512f_vmfmadd_<mode>_mask3<round_name>,
7203 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7204 *avx512f_vmfmsub_<mode>_mask<round_name>,
7205 avx512f_vmfmsub_<mode>_mask3<round_name>,
7206 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7207 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7208 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7209 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7210 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7211 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7212 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7213 cvtusi2<ssescalarmodesuffix>32<round_name>,
7214 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7215 round_nimm_predicate with round_nimm_scalr_predicate.
7216 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7217 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7218 avx512er_vmrcp28<mode><round_saeonly_name>,
7219 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7220 ): Replace round_saeonly_nimm_predicate with
7221 round_saeonly_nimm_scalar_predicate.
7222 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7223 vector_operand with nonimmediate_operand.
7224 * config/i386/subst.md (round_scalar_nimm_predicate,
7225 round_saeonly_scalar_nimm_predicate): Replace
7226 vector_operand with nonimmediate_operand.
7227
7228 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7229
7230 PR target/89071
7231 * config/i386/i386.md (*rcpsf2_sse): Add
7232 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7233 (*rsqrtsf2_sse): Ditto.
7234 (*sqrt<mode>2_sse): Ditto.
7235 (sse4_1_round<mode>2): separate constraint vm, add
7236 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7237 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7238 by pass rpad.
7239 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7240 Ditto.
7241 (*sse_vmrsqrtv4sf2): Ditto.
7242 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7243 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7244 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7245 <iptr> pointer size modifier since vround support memory operand.
7246
7247 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7248
7249 PR target/85969
7250 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7251 static function.
7252
7253 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7254 Tobias Burnus <tobias@codesourcery.com>
7255
7256 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7257 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7258 common block decls.
7259
7260 2019-10-25 Richard Biener <rguenther@suse.de>
7261
7262 PR tree-optimization/92222
7263 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7264 (_slp_oprnd_info::second_pattern): Likewise.
7265 (_slp_oprnd_info::any_pattern): New.
7266 (vect_create_oprnd_info): Adjust.
7267 (vect_get_and_check_slp_defs): Compute whether any stmt is
7268 in a pattern.
7269 (vect_build_slp_tree_2): Avoid building up a node from scalars
7270 if any of the operand defs, not just the first, is in a pattern.
7271
7272 2019-10-25 Richard Biener <rguenther@suse.de>
7273
7274 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7275 swapping if we actually have to modify the IL on a shared stmt.
7276 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7277 because we no longer modify the IL.
7278
7279 2019-10-25 Martin Liska <mliska@suse.cz>
7280
7281 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7282
7283 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7284
7285 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7286 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7287 handled by vect_transform_reduction. Allow fully-masked loops
7288 to be used with reduction chains.
7289 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7290 operations in fully-masked loops.
7291 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7292 operations in fully-masked loops.
7293
7294 2019-10-25 Richard Biener <rguenther@suse.de>
7295
7296 * tree-vect-loop.c (vectorizable_reduction): Verify
7297 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7298 correctly.
7299 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7300 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7301 stmts.
7302
7303 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7304
7305 * gimplify.h (omp_construct_selector_matches): Declare.
7306 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7307 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7308 called function if needed for flag_openmp.
7309 (gimplify_scan_omp_clauses): Set ctx->code.
7310 (omp_construct_selector_matches): New function.
7311 * omp-general.h (omp_constructor_traits_to_codes,
7312 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7313 * omp-general.c (omp_constructor_traits_to_codes,
7314 omp_context_selector_matches, omp_resolve_declare_variant): New
7315 functions.
7316
7317 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7318 literal.
7319 * config/rx/rx.c (rx_print_operand): Likewise.
7320 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7321 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7322 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7323 Likewise.
7324 * genemit.c (emit_c_code): Likewise.
7325 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7326
7327 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7328
7329 * symbols-summary.h (fast_function_summary<T *, V>::release,
7330 fast_call_summary<T *, V>::release): Free m_vector.
7331
7332 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7333
7334 * cgraphunit.c (symbol_table::process_new_functions): Call
7335 ipa_free_size_summary.
7336 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7337 (devirtualization_time_bonus): Update.
7338 (ipcp_propagate_stage): Update.
7339 * ipa-fnsummary.c (ipa_size_summaries): New.
7340 (ipa_fn_summary_alloc): Alloc size summary.
7341 (dump_ipa_call_summary): Update.
7342 (ipa_dump_fn_summary): Update.
7343 (analyze_function_body): Update.
7344 (compute_fn_summary): Likewise.
7345 (ipa_get_stack_frame_offset): New function.
7346 (inline_update_callee_summaries): Do not update frame offsets.
7347 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7348 remove call and function summary.
7349 (ipa_update_overall_fn_summary): Update.
7350 (inline_read_section): Update.
7351 (ipa_fn_summary_write): Update.
7352 (ipa_free_fn_summary): Do not remove summaries.
7353 (ipa_free_size_summary): New.
7354 (release summary pass): Also run at WPA.
7355 * ipa-fnsummary.h (ipa_size_summary): Declare.
7356 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7357 estimated_self_stack_size.
7358 (ipa_size_summary_t): New type.
7359 (ipa_size_summaries): Declare.
7360 (ipa_free_size_summary): Declare.
7361 (ipa_get_stack_frame_offset): Declare.
7362 * ipa-icf.c (sem_function::merge): Update.
7363 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7364 (estimate_growth): Update.
7365 (growth_likely_positive): Update.
7366 (clone_inlined_nodes): Update.
7367 (inline_call): Update.
7368 * ipa-inline.c (caller_growth_limits): Update.
7369 (edge_badness): Update.
7370 (recursive_inlining): Update.
7371 (inline_small_functions): Update.
7372 (inline_to_all_callers_1): Update.
7373 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7374
7375 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7376
7377 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7378 (uavg<mode>3_ceil): ... This.
7379 (altivec_vavgs<VI_char>): Rename to...
7380 (avg<mode>3_ceil): ... This.
7381 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7382 VAVGUW, VAVGSW): Adjust.
7383
7384 2019-10-24 Nathan Sidwell <nathan@acm.org>
7385
7386 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7387
7388 2019-10-24 Martin Liska <mliska@suse.cz>
7389
7390 * symbol-summary.h (gt_pch_nx): Mark all functions
7391 with gcc_unreachable as we do not expect to be called.
7392
7393 2019-10-24 Richard Biener <rguenther@suse.de>
7394
7395 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7396 chains try harder with operand swapping and instead of
7397 putting a shifted chain into the reduction operands put
7398 a repetition of the final reduction op there as if we'd
7399 reassociate the expression.
7400
7401 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7402
7403 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7404 statics_not_read and statics_not_written to statics_read and
7405 statics_written respectively.
7406 (no_module_statics): New static var.
7407 (ipa_reference_get_not_read_global): Rename to ...
7408 (ipa_reference_get_read_global): ... this.
7409 (ipa_reference_get_not_written_global): Rename to ...
7410 (ipa_reference_get_written_global): ... this.
7411 (dump_static_vars_set_to_file): Dump no_module_statics.
7412 (copy_static_var_set): Add for propagation parameter.
7413 (ipa_init): Initialize no_module_statics.
7414 (ipa_ref_opt_summary_t::duplicate): Update.
7415 (ipa_ref_opt_summary_t::remove): Update.
7416 (propagate): Update.
7417 (write_node_summary_p): Look correctly for bitmap differences.
7418 (ipa_reference_write_optimization_summary): Update.
7419 (ipa_reference_read_optimization_summary): Update.
7420 * ipa-reference.h
7421 (ipa_reference_get_not_read_global): Rename to ...
7422 (ipa_reference_get_read_global): ... this.
7423 (ipa_reference_get_not_written_global): Rename to ...
7424 (ipa_reference_get_written_global): ... this.
7425 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7426 (call_may_clobber_ref_p_1): Update.
7427
7428 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7429
7430 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7431 and add comment.
7432 (msp430_hard_regno_nregs_with_padding): Remove.
7433
7434 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7435
7436 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7437 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7438 shift amount is between 1 and 4.
7439 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7440 is between 1 and 4.
7441
7442 2019-10-24 Richard Biener <rguenther@suse.de>
7443
7444 PR tree-optimization/92205
7445 * tree-vect-loop.c (vectorizable_reduction): Restrict
7446 search for alternate vectype_in to lane-reducing patterns
7447 we support.
7448
7449 2019-10-24 Richard Biener <rguenther@suse.de>
7450
7451 PR tree-optimization/92203
7452 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7453 Skip eliminating conversion stmts inserted by insertion.
7454
7455 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7456
7457 * config/s390/s390.c (s390_get_thread_pointer): Use
7458 gen_get_thread_pointer.
7459 (s390_expand_split_stack_prologue): Likewise.
7460 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7461 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7462 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7463 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7464 parameterized name.
7465
7466 2019-10-24 Richard Biener <rguenther@suse.de>
7467
7468 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7469 SLP discovery fails try to handle the reduction as part
7470 of SLP reduction discovery.
7471
7472 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7473
7474 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7475 declaration.
7476 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7477 attribute if it exists, rather than the insn size. If we use the
7478 insn size, adjust the size to remove the extra size that prefixed
7479 instructions take.
7480 (rs6000_adjust_insn_length): New function.
7481 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7482 update the instruction sized if prefixed instructions are used.
7483 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7484 (non_prefixed_length attribute): Delete.
7485 (num_insns attribute): New insn attribute to return the number of
7486 instructions.
7487 (max_prefixed_insns attribute): New insn attribute to return the
7488 maximum number of prefixed instructions in an insn.
7489 (length attribute): Do not adjust for prefix instructions here,
7490 punt to ADJUST_INSN_LENGTH.
7491 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7492 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7493 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7494 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7495 max_prefixed_insns and num_insns.
7496
7497 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7498 (movtd_64bit_nodm): Reformat.
7499 (mov<mode>_32bit): Reformat.
7500 (mov<mode>_softfloat): Reformat.
7501 (FMOVE128_GPR splitter): Reformat.
7502 (DIFD splitter): Reformat.
7503 (TI2 splitter): Reformat.
7504 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7505 bits of the offset for the memory address are non-zero, use PLWA
7506 if prefixed instructions are available.
7507
7508 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7509
7510 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7511
7512 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7513
7514 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7515 previous patch.
7516
7517 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7518
7519 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7520 (cmp_symbol_files): New.
7521 (lto_output): Copy sections in file order.
7522 * lto-streamer.h (lto_file_decl_data): Add field order.
7523
7524 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7525
7526 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7527 * ipa-reference.c (reference_vars_map_t): new type.
7528 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7529 (ipa_reference_var_uid): Implement.
7530 (varpool_node_hooks): New static var.
7531 (varpool_removal_hook): New function.
7532 (is_improper): Do not check bitmap for id==-1
7533 (get_static_name): Update.
7534 (ipa_init): Initialize new datastructures.
7535 (analyze_function): Do not recompute ids.
7536 (propagate): Free reference_vars_to_consider.
7537 (stream_out_bitmap): Update.
7538 (ipa_reference_read_optimization_summary): Update.
7539
7540 2019-10-23 qing zhao <qing.zhao@oracle.com>
7541
7542 PR gcov-profile/91971
7543 * coverage.c (coverage_init): Mangle the full path of filename when
7544 filename is a absolute path.
7545
7546 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7547
7548 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7549 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7550 (msp430_has_hwmult): New.
7551 (msp430_output_labelref):
7552 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7553 * config/msp430/msp430.md (mulhisi3): Likewise.
7554 (umulhisi3): Likewise.
7555 (mulsidi3): Likewise.
7556 (umulsidi3): Likewise.
7557
7558 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7559
7560 PR ipa/92074
7561 * params.def (inline-heuristics-hint-percent): Set to 600.
7562
7563 2019-10-23 Richard Biener <rguenther@suse.de>
7564
7565 PR tree-optimization/65930
7566 * tree-vect-loop.c (check_reduction_path): Allow conversions
7567 that only change the sign.
7568 (vectorizable_reduction): Relax latch def stmts we handle further.
7569
7570 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7571
7572 PR debug/90231
7573 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7574 (remove_unused_ivs): Use it instead of get_computation_at. When
7575 choosing best candidate, only consider candidates where
7576 get_debug_computation_at actually returns non-NULL.
7577
7578 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7579
7580 PR tree-optimization/92131
7581 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7582 range would be symbolic, drop to varying for any explicit overflow
7583 in the constant part or if neither range is a singleton.
7584
7585 2019-10-23 Martin Liska <mliska@suse.cz>
7586
7587 PR middle-end/81669
7588 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7589 Initialize m_data.
7590
7591 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7592
7593 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7594 int_mode_for_mode rather than mode_for_int_vector for scalars.
7595
7596 2019-10-23 Richard Biener <rguenther@suse.de>
7597
7598 PR tree-optimization/92179
7599 * tree-vect-stmts.c (vectorizable_shift): For shift args
7600 that are all the same remove type restriction in the SLP case.
7601 Adjust SLP code to handle converting of the shift arg to
7602 only apply in case the modes are different.
7603
7604 2019-10-23 Martin Liska <mliska@suse.cz>
7605
7606 PR ipa/91969
7607 * ipa-inline.c (recursive_inlining): Do not print
7608 when curr->count is not initialized.
7609
7610 2019-10-23 Richard Biener <rguenther@suse.de>
7611
7612 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7613 op from scalars in case there's a constant operand in its
7614 definition.
7615
7616 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7617
7618 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7619 against out of range max skip or log values.
7620
7621 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7622
7623 * cgraph.c (dump_graphviz): Change name to dump_name
7624
7625 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7626
7627 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7628 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7629 subtraction from a carry operation.
7630
7631 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7632
7633 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7634
7635 2019-10-22 Richard Biener <rguenther@suse.de>
7636
7637 PR tree-optimization/92173
7638 * tree-vect-loop.c (vectorizable_reduction): If
7639 vect_transform_reduction cannot handle code-generation try without
7640 the single-def-use-cycle optimization. Pass optab_vector to
7641 optab_for_tree_code to get vector shifts as that's what we'd
7642 generate.
7643
7644 2019-10-22 Michael Matz <matz@suse.de>
7645
7646 PR middle-end/90796
7647 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7648 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7649 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7650
7651 2019-10-22 Richard Biener <rguenther@suse.de>
7652
7653 PR tree-optimization/92173
7654 * tree-vect-loop.c (vectorizable_reduction): If
7655 vect_transform_reduction cannot handle code-generation try without
7656 the single-def-use-cycle optimization. Pass optab_vector to
7657 optab_for_tree_code to get vector shifts as that's what we'd
7658 generate.
7659
7660 2019-10-22 Martin Liska <mliska@suse.cz>
7661
7662 * diagnostic-format-json.cc (json_from_expanded_location):
7663 Use json::integer_number.
7664 * gcov.c (output_intermediate_json_line): Use new
7665 json::integer_number.
7666 (output_json_intermediate_file): Likewise.
7667 * json.cc (number::print): Move to ...
7668 (float_number::print): ... this.
7669 (integer_number::print): New.
7670 (test_writing_numbers): Move to ...
7671 (test_writing_float_numbers): ... this.
7672 (test_writing_integer_numbers): New.
7673 (json_cc_tests): Register test_writing_integer_numbers.
7674 * json.h (class value): Add forward declaration
7675 for float_number and integer_number.
7676 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7677 (class number): Move to ...
7678 (class float_number): ... this.
7679 (class integer_number): New.
7680 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7681 Use json::integer_number.
7682 (optrecord_json_writer::location_to_json): Likewise.
7683 (optrecord_json_writer::profile_count_to_json): Likewise.
7684 (optrecord_json_writer::pass_to_json): Likewise.
7685
7686 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7687
7688 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7689 autodetected_vector_size rather than vector_size is zero.
7690 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7691 Set autodetected_vector_size immediately after calling
7692 vect_analyze_loop_2. Check for a fatal error before advancing
7693 next_size.
7694
7695 2019-10-21 Jason Merrill <jason@redhat.com>
7696
7697 * lock-and-run.sh: Check for process existence rather than timeout.
7698
7699 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7700
7701 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7702 widening multiplication.
7703
7704 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7705
7706 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7707 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7708 type attribute.
7709 (subsi3_carryin_shift): Separate into register and constant controlled
7710 alternatives. Use shift_amount_operand for operand 4. Set shift
7711 attribute and simplify type attribute.
7712 (subsi3_carryin_shift_alt): Likewise.
7713 (rsbsi3_carryin_shift): Likewise.
7714 (rsbsi3_carryin_shift_alt): Likewise.
7715 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7716 and register controlled shifts into distinct alternatives.
7717 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7718 (andsi_not_shiftsi_si_scc): Likewise.
7719 (arm_cmpsi_negshiftsi_si): Likewise.
7720 (not_shiftsi): Remove redundant M constraint from alternative 1.
7721 (not_shiftsi_compare0): Likewise.
7722 (arm_cmpsi_insn): Remove redundant alternative 2.
7723 (cmpsi_shift_swp): Likewise.
7724 (sub_shiftsi): Likewise.
7725 (sub_shiftsi_compare0_scratch): Likewise.
7726 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7727 (thumb2_cmpsi_neg_shiftsi): Likewise.
7728
7729 2019-10-21 Richard Biener <rguenther@suse.de>
7730
7731 PR tree-optimization/92162
7732 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7733 STMT_VINFO_REDUC_IDX in reduc_info.
7734 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7735
7736 2019-10-21 Richard Biener <rguenther@suse.de>
7737
7738 * tree-vectorizer.h (_slp_tree::ops): New member.
7739 (SLP_TREE_SCALAR_OPS): New.
7740 (vect_get_slp_defs): Adjust prototype.
7741 * tree-vect-slp.c (vect_free_slp_tree): Release
7742 SLP_TREE_SCALAR_OPS.
7743 (vect_create_new_slp_node): Initialize it. New overload for
7744 initializing by an operands array.
7745 (_slp_oprnd_info::ops): New member.
7746 (vect_create_oprnd_info): Initialize it.
7747 (vect_free_oprnd_info): Release it.
7748 (vect_get_and_check_slp_defs): Populate the operands array.
7749 Do not swap operands in the IL when not necessary.
7750 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7751 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7752 swap operands in the operands array. Do not swap operands in
7753 the IL.
7754 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7755 (vect_gather_slp_loads): Fix.
7756 (vect_detect_hybrid_slp_stmts): Likewise.
7757 (vect_slp_analyze_node_operations_1): Search for a internal
7758 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7759 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7760 the def-type push/pop dance.
7761 (vect_get_constant_vectors): Compute number_of_vectors here.
7762 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7763 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7764 (vect_get_slp_defs): Simplify greatly.
7765 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7766 (vect_transform_reduction): Likewise.
7767 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7768 (vectorizable_call): Likewise.
7769 (vectorizable_operation): Likewise.
7770 (vectorizable_load): Likewise.
7771 (vectorizable_condition): Likewise.
7772 (vectorizable_comparison): Likewise.
7773
7774 2019-10-21 Richard Biener <rguenther@suse.de>
7775
7776 PR tree-optimization/92161
7777 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7778 for reductions.
7779
7780 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7781
7782 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7783 (aarch64_rndr): New define_insn.
7784 (aarch64_rndrrs): Likewise.
7785 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7786 (TARGET_RNG): Likewise.
7787 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7788 argument.
7789 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7790 Add fourth argument in prototype.
7791 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7792 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7793 (aarch64_init_rng_builtins): Define.
7794 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7795 (aarch64_expand_rng_builtin): Define.
7796 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7797 RNG builtins.
7798 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7799 __ARM_FEATURE_RNG when TARGET_RNG.
7800 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7801
7802 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7803
7804 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7805 alignment is more restrictive.
7806
7807 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7808
7809 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7810 (vect_update_max_nunits): Update comment.
7811 (current_vector_size): Delete.
7812 * tree-vect-stmts.c (current_vector_size): Likewise.
7813 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7814 of current_vector_size.
7815 (get_mask_type_for_scalar_type): Likewise.
7816 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7817 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7818 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7819 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7820 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7821 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7822
7823 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7824
7825 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7826 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7827 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7828 accordingly.
7829
7830 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7831
7832 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7833 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7834 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7835 call accordingly.
7836 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7837
7838 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7839
7840 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7841 a loop_vec_info.
7842 (vect_set_loop_condition_masked): Update call accordingly.
7843
7844 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7845
7846 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7847 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7848 (simple_integer_narrowing): Update call accordingly.
7849 (vectorizable_conversion): Likewise.
7850
7851 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7852
7853 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7854 (vectorizable_call): Update call accordingly.
7855
7856 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7857
7858 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7859 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7860 (duplicate_and_interleave): Update call accordingly.
7861 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7862
7863 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7864
7865 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7866 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7867 (vect_get_constant_vectors): Update call accordingly.
7868 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7869
7870 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7871
7872 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7873 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7874 (vect_prologue_cost_for_slp_op): Update call accordingly.
7875 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7876 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7877 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7878 (get_mask_type_for_scalar_type): Likewise.
7879 (vect_get_vector_types_for_stmt): Likewise.
7880 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7881 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7882 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7883 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7884 (vect_split_statement, vect_convert_input): Likewise.
7885 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7886 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7887 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7888 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7889 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7890 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7891 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7892 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7893 (vect_recog_mask_conversion_pattern): Likewise.
7894 (vect_add_conversion_to_pattern): Likewise.
7895 (vect_recog_gather_scatter_pattern): Likewise.
7896 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7897 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7898
7899 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7900
7901 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7902 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7903 (vect_check_load_store_mask): Update call accordingly.
7904 (vect_get_mask_type_for_stmt): Likewise.
7905 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7906 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7907 (vect_convert_mask_for_vectype): Likewise.
7908
7909 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7910
7911 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7912 a vec_info.
7913 (vect_recog_dot_prod_pattern): Update call accordingly.
7914 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7915 (vect_recog_widen_sum_pattern): Likewise.
7916
7917 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7918
7919 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7920 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7921 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7922 accordingly.
7923
7924 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7925
7926 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7927 get_vectype_for_scalar_type_and_size instead of
7928 get_vectype_for_scalar_type.
7929
7930 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7931
7932 * common.opt (-fcommon): Fix description.
7933
7934 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7935
7936 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7937 * config/i386/i386.c (ix86_pre_reload_split): New function.
7938 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7939 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7940 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7941 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7942 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7943 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7944 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7945 *<shift_insn><dwi>3_doubleword_mask,
7946 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7947 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7948 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7949 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7950 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7951 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7952 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7953 *avx2_<code>v8qiv8si2<mask_name>_2,
7954 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7955 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7956 *avx512f_<code>v8qiv8di2<mask_name>_2,
7957 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7958 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7959 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7960 sse4_2_pcmpistr): Likewise.
7961
7962 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7963
7964 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7965 now defaults to https.
7966
7967 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7968
7969 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7970 skip non-zero array accesses.
7971
7972 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7973
7974 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7975 and return a boolean success value. Move the allocation and
7976 initialization of the bb_vec_info to...
7977 (vect_slp_bb_region): ...here. Update call accordingly.
7978 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7979 than in vect_slp_analyze_bb_1.
7980
7981 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7982
7983 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7984 when processing the given datarefs for the first time and
7985 check_datarefs subsequently.
7986 (vect_slp_bb_region): New function, split out of...
7987 (vect_slp_bb): ...here. Don't recompute the region bounds and
7988 dataref sets when retrying with a different vector size.
7989
7990 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7991 Uroš Bizjak <ubizjak@gmail.com>
7992
7993 PR target/92140
7994 * config/i386/predicates.md (int_nonimmediate_operand): New special
7995 predicate.
7996 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7997 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7998 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7999 define_insn_and_split patterns.
8000
8001 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8002
8003 * config/rs6000/rs6000.md: Delete out--of-date comment about
8004 special-casing integer loads.
8005
8006 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8007
8008 * escaped_string.h (escaped_string): New header.
8009 * tree.c (escaped_string): Remove escaped_string class.
8010
8011 2019-10-18 Martin Sebor <msebor@redhat.com>
8012
8013 PR tree-optimization/92157
8014 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8015 compute_string_length to return a negative result.
8016
8017 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8018
8019 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8020 (negvsi3, negvdi3): Delete.
8021 (negdi2_compare): Delete.
8022
8023 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8024
8025 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8026 operations.
8027 (subdi3_compare1): Delete pattern.
8028 (subvsi3_borrow): New insn pattern.
8029 (subvsi3_borrow_imm): Likewise.
8030
8031 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8032
8033 * config/arm/arm.md (subv<mode>4): Delete.
8034 (subvdi4): New expander pattern.
8035 (subvsi4): Likewise. Handle some immediate values.
8036 (subvsi3_intmin): New insn pattern.
8037 (subvsi3): Likewise.
8038 (subvsi3_imm1): Likewise.
8039 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8040 idioms.
8041
8042 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8043
8044 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8045 incoming operands. Early split the calculation into SImode
8046 operations.
8047 (usubvsi3_borrow): New insn pattern.
8048 (usubvsi3_borrow_imm): Likewise.
8049
8050 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8051
8052 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8053 (usubvsi4): New pattern. Allow some immediate values for inputs.
8054 (usubvdi4): New pattern.
8055
8056 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8057
8058 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8059 or second operand of the PLUS inside a DImode equality test to be
8060 sign-extend when selecting CC_Vmode.
8061 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8062 instructions.
8063 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8064 expand patterns.
8065 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8066 (addsi3_cin_vout_0): Likewise.
8067 (adddi3_compareV): Delete.
8068
8069 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8070
8071 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8072 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8073 to transform this back into the summation version when that leads
8074 to smaller code.
8075
8076 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8077
8078 * config/arm/arm.md (addv<mode>4): Delete.
8079 (addvsi4): New pattern. Handle immediate values that the architecture
8080 supports.
8081 (addvdi4): New pattern.
8082 (addsi3_compareV): Rename to ...
8083 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8084 and use COMPARE rather than NE.
8085 (addsi3_compareV_imm): New pattern.
8086 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8087 a signed-overflow check.
8088
8089 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8090
8091 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8092 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8093 CC_ADCmode.
8094 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8095 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8096 with overflow.
8097 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8098 expand patterns.
8099 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8100 (addsi3_cin_cout_imm_insn): Likewise.
8101 (adddi3_compareC): Delete insn.
8102 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8103
8104 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8105
8106 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8107 * (uaddv<mode>4): Delete expansion pattern.
8108 (uaddvsi4): New pattern.
8109 (uaddvdi4): Likewise.
8110 (addsi3_compareC): Delete pattern, change callers to use
8111 addsi3_compare_op1.
8112 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8113 reduce the number of alternatives and re-work type attribute handling.
8114 (addsi3_compare_op2): Clean up constraints to reduce the number of
8115 alternatives and re-work type attribute handling.
8116 (compare_addsi2_op0): Likewise.
8117 (compare_addsi2_op1): Likewise.
8118
8119 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8120
8121 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8122 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8123 for DImode operands.
8124 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8125 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8126 CC_NCVmode.
8127 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8128 (arm_cmpdi_unsigned): Delete.
8129
8130 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8131
8132 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8133 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8134 unchanged only if that will be cheaper.
8135 (arm_select_cc_mode): Recognize a swapped comparison that will
8136 be regenerated using RSBS or RSCS. Relax restriction on selecting
8137 CC_RSBmode.
8138 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8139 a constant.
8140 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8141 is CC_RSBmode.
8142 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8143 as CCmode.
8144 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8145 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8146
8147 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8148
8149 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8150 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8151 need these modes.
8152 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8153 of EQ, NE, LT, GE, LTU and GEU.
8154 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8155 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8156 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8157 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8158 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8159
8160 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8161
8162 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8163 operand 2.
8164 (cstoredi4): Similarly, but for operand 3.
8165 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8166 canonicalization of unsigned compares with a constant on Arm.
8167 Prefer using const+1 and adjusting the comparison over swapping the
8168 operands whenever the original constant was not valid.
8169 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8170 register here.
8171 (arm_validize_comparison): Do not force invalid DImode operands to
8172 registers here.
8173
8174 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8175
8176 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8177 return CC_Zmode if comparing against a constant where one word is
8178 zero.
8179 (arm_gen_compare_reg): Split DImode handling to ...
8180 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8181 against simple constants.
8182 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8183
8184 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8185
8186 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8187 (rsbsi3_carryin_shift_alt): Likewise.
8188
8189 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8190
8191 * config/arm/arm.md (negscc_borrow): New pattern.
8192 (mov_negscc): Don't split if the insn would match negscc_borrow.
8193 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8194 (thumb2_mov_negscc_strict_it): Likewise.
8195
8196 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8197
8198 * config/arm/arm.c (arm_insn_cost): New function.
8199 (TARGET_INSN_COST): Override default definition.
8200
8201 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8202
8203 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8204 borrow operations.
8205
8206 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8207
8208 * config/arm/arm.c (strip_carry_operation): New function.
8209 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8210 for SImode.
8211
8212 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8213
8214 * config/arm/predicates.md (arm_carry_operation): New special
8215 predicate.
8216 * config/arm/iterators.md (LTUGEU): Delete iterator.
8217 (cnb): Delete code attribute.
8218 (optab): Delete ltu and geu elements.
8219 * config/arm/arm.md (addsi3_carryin): Renamed from
8220 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8221 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8222 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8223 (addsi3_carryin_clobercc): Similarly.
8224 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8225 Thumb2 state.
8226
8227 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8228
8229 * config/arm/arm.md (arm_subdi3): Delete insn.
8230 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8231
8232 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8233
8234 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8235 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8236 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8237 return CC_RSBmode.
8238 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8239 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8240 expand.
8241 (subdi3): Rewrite to early-expand the sub-operations.
8242 (rsb_im_compare): New pattern.
8243 (negdi2): Delete.
8244 (negdi2_insn): Delete.
8245 (arm_negsi2): Correct type attribute to alu_imm.
8246 (negsi2_0compare): New insn pattern.
8247 (negsi2_carryin): New insn pattern.
8248
8249 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8250
8251 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8252 operand 2.
8253
8254 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8255
8256 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8257 to match canonical form.
8258
8259 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8260
8261 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8262 (extend<mode>di2): Likewise.
8263
8264 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8265
8266 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8267 * config/arm/arm.c (arm_decompose_di_binop): New function.
8268 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8269 If not generating Thumb-1 code, decompose the operation into 32-bit
8270 pieces.
8271 * add0si_carryin_<optab>: New pattern.
8272
8273 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8274
8275 * arm.md (adddi3): Only accept register operands.
8276 (arm_adddi3): Convert to simple insn with no split. Do not accept
8277 constants.
8278 (adddi_sesidi_di): Delete patern.
8279 (adddi_zesidi_di): Likewise.
8280 (uaddv<mode>4): Use LTU as condition for branch.
8281 (adddi3_compareV): Convert to simple insn with no split.
8282 (addsi3_compareV_upper): Delete pattern.
8283 (adddi3_compareC): Convert to simple insn with no split. Correct
8284 flags setting expression.
8285 (addsi3_compareC_upper): Delete pattern.
8286 (addsi3_compareC): Correct flags setting expression.
8287 (subdi3_compare1): Convert to simple insn with no split.
8288 (subsi3_carryin_compare): Delete pattern.
8289 (arm_subdi3): Convert to simple insn with no split.
8290 (subdi_zesidi): Delete pattern.
8291 (subdi_di_sesidi): Delete pattern.
8292 (subdi_zesidi_di): Delete pattern.
8293 (subdi_sesidi_di): Delete pattern.
8294 (subdi_zesidi_zesidi): Delete pattern.
8295 (negvdi3): Use s_register_operand.
8296 (negdi2_compare): Convert to simple insn with no split.
8297 (negdi2_insn): Likewise.
8298 (negsi2_carryin_compare): Delete pattern.
8299 (negdi_zero_extendsidi): Delete pattern.
8300 (arm_cmpdi_insn): Convert to simple insn with no split.
8301 (negdi2): Don't call gen_negdi2_neon.
8302 * config/arm/neon.md (adddi3_neon): Delete pattern.
8303 (subdi3_neon): Delete pattern.
8304 (negdi2_neon): Delete pattern.
8305 (splits for negdi2_neon): Delete splits.
8306
8307 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8308
8309 PR middle-end/92153
8310 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8311 than after it.
8312
8313 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8314
8315 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8316 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8317 new multilib variants and new mappings.
8318
8319 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8320
8321 PR target/86040
8322 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8323
8324 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8325 Richard Sandiford <richard.sandiford@arm.com>
8326
8327 PR target/86753
8328 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8329 and define hashmap traits for it.
8330 (loop_vec_info::scalar_cond_masked_set): New member.
8331 (vect_record_loop_mask): Adjust prototype.
8332 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8333 Implement method.
8334 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8335 vect_record_loop_mask.
8336 (vectorizable_live_operation): Likewise.
8337 (vect_record_loop_mask): New param scalar_mask. Add entry
8338 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8339 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8340 Pass it as last arg to vect_record_loop_mask.
8341 (vectorizable_call): Pass scalar_mask as last arg to
8342 vect_record_loop_mask.
8343 (vectorizable_store): Likewise.
8344 (vectorizable_load): Likewise.
8345 (vectorizable_condition): Check if another part of vectorized code
8346 applies loop_mask to condition or to it's inverse, and if yes,
8347 apply loop_mask to result of vector comparison.
8348
8349 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8350
8351 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8352
8353 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8354
8355 PR tree-optimization/92056
8356 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8357 before calling compute_builtin_object_size.
8358
8359 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8360
8361 PR target/65342
8362 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8363 (movdi_low_st): Delete.
8364 * config/rs6000/rs6000.c
8365 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8366 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8367 * config/rs6000/rs6000.md (movsi_low): Delete.
8368
8369 2019-10-17 Jason Merrill <jason@redhat.com>
8370
8371 * gimplify.h (get_initialized_tmp_var): Add default argument to
8372 post_p.
8373 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8374 NULL post_p argument.
8375 * targhooks (std_gimplify_va_arg_expr): Likewise.
8376
8377 2019-10-17 Richard Biener <rguenther@suse.de>
8378
8379 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8380 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8381 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8382 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8383 * tree-vect-loop.c (vect_is_simple_reduction): Set
8384 STMT_VINFO_REDUC_CODE.
8385 (vectorizable_reduction): Remove dead and redundant code, use
8386 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8387
8388 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8389
8390 Fix breakage introduced by r276985.
8391
8392 * config/avr/avr.c (avr_option_override): Remove set of
8393 PARAM_ALLOW_STORE_DATA_RACES.
8394 * common/config/avr/avr-common.c (avr_option_optimization_table)
8395 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8396
8397 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8398
8399 * config/i386/i386.h (processor_costs): Add clear_ratio.
8400 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8401 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8402 of 6 and move_ratio in all cost models.
8403
8404 2019-10-17 Richard Biener <rguenther@suse.de>
8405
8406 * tree-vect-loop.c (check_reduction_path): Compute reduction
8407 operation here.
8408 (vect_is_simple_reduction): Remove special-case of single-stmt
8409 reduction path detection.
8410
8411 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8412
8413 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8414
8415 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8416
8417 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8418 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8419 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8420 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8421 New combine patterns.
8422 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8423 above.
8424 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8425
8426 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8427
8428 * tree-vrp.c (value_range_base::dump): Display +INF for both
8429 pointers and integers when appropriate.
8430
8431 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8432
8433 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8434 when to use versioning threshold.
8435
8436 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8437
8438 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8439 outlined code from ...
8440 (vect_analyze_loop_2): ... here.
8441
8442 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8443
8444 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8445 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8446 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8447
8448 2019-10-17 Richard Biener <rguenther@suse.de>
8449
8450 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8451 (vect_is_simple_reduction): Move all validity checks ...
8452 (vectorizable_reduction): ... here. Compute whether we
8453 need a fold-left reduction here.
8454 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8455 both overloads, check needs_fold_left_reduction_p directly.
8456 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8457
8458 2019-10-17 Richard Biener <rguenther@suse.de>
8459
8460 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8461 TARGET_MEM_REF creation.
8462
8463 2019-10-17 Richard Biener <rguenther@suse.de>
8464
8465 PR tree-optimization/92129
8466 * tree-vect-loop.c (vectorizable_reduction): Also fail
8467 on GIMPLE_SINGLE_RHS.
8468
8469 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8470
8471 PR tree-optimization/92056
8472 * tree-object-size.c (cond_expr_object_size): Return early if then_
8473 processing resulted in unknown size.
8474
8475 PR tree-optimization/92115
8476 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8477 temporary if it could trap.
8478
8479 2019-10-17 Richard Biener <rguenther@suse.de>
8480
8481 PR debug/91887
8482 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8483 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8484
8485 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8486
8487 * tree-ssa-strlen.c (maybe_invalidate): Use
8488 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8489
8490 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8491 Jim Wilson <jimw@sifive.com>
8492
8493 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8494 regs to SIBCALL_REGS.
8495 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8496 passing regs to SIBCALL_REGS.
8497
8498 2019-10-16 Martin Sebor <msebor@redhat.com>
8499
8500 PR tree-optimization/83821
8501 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8502 the length of a string when available.
8503 (handle_builtin_memset) Add argument.
8504 (handle_store, strlen_check_and_optimize_call): Same.
8505 (check_and_optimize_stmt): Same. Pass it to callees.
8506
8507 2019-10-16 Martin Sebor <msebor@redhat.com>
8508
8509 PR tree-optimization/91996
8510 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8511 information.
8512 (compare_nonzero_chars): Add an overload.
8513 (count_nonzero_bytes): Add an argument. Call overload above.
8514 Handle non-constant lengths in some range.
8515 (handle_store): Add an argument.
8516 (check_and_optimize_stmt): Pass an argument to handle_store.
8517
8518 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8519
8520 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8521
8522 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8523
8524 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8525 operands which correspond to the same input-output register to
8526 have the same pseudo assigned to them.
8527
8528 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8529
8530 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8531
8532 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8533
8534 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8535 Apply reasonable limit to symbol offsets.
8536
8537 2019-10-16 Richard Biener <rguenther@suse.de>
8538
8539 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8540 (vect_is_simple_reduction): Delay checking to
8541 vectorizable_reduction and relax the checking.
8542 (vectorizable_reduction): Check we have a simple use. Check
8543 for bogus condition reductions.
8544 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8545 are looking at the last stmt in a pattern sequence when
8546 filling in backedge PHI values.
8547
8548 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8549 Jiufu Guo <guojiufu@linux.ibm.com>
8550
8551 PR target/70010
8552 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8553 the callee explicitly disables some isa_flags the caller is using.
8554
8555 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8556
8557 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8558
8559 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8560
8561 * genmodes.c (mode_data::order): New field.
8562 (blank_mode): Update accordingly.
8563 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8564 (make_vector_modes): Likewise.
8565 (VECTOR_MODES): Update use accordingly.
8566 (cmp_modes): Sort by the new order field ahead of sorting by size.
8567 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8568 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8569 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8570 (aarch64_classify_vector_mode): Handle the new partial modes.
8571 (aarch64_vl_bytes): New function.
8572 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8573 when counting the number of registers in an SVE mode.
8574 (aarch64_class_max_nregs): Likewise.
8575 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8576 in registers yet.
8577 (aarch64_classify_address): Treat partial vectors analogously
8578 to full vectors.
8579 (aarch64_print_address_internal): Consolidate the printing of
8580 MUL VL addresses, using aarch64_vl_bytes as the number of
8581 bytes represented by "VL".
8582 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8583
8584 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8585
8586 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8587 rather than known_lt when choosing frame layouts.
8588
8589 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8590
8591 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8592 that all the adjustments add up to the full frame size.
8593 Use crtl->outgoing_args_size directly as the final adjustment
8594 where appropriate.
8595
8596 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8597
8598 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8599 "frame" reference instead of always referring directly to
8600 "cfun->machine->frame".
8601
8602 2019-10-16 Richard Biener <rguenther@suse.de>
8603
8604 PR tree-optimization/92119
8605 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8606 against missing bswap lhs.
8607
8608 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8609
8610 PR middle-end/92033
8611 * poly-int.h (constant_lower_bound_with_limit): New function.
8612 (constant_upper_bound_with_limit): Likewise.
8613 * doc/poly-int.texi: Document them.
8614 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8615 into the worst-case INTEGER_CST bounds.
8616
8617 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8618
8619 PR ipa/91088
8620 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8621 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8622 * ipa-predicat.h (struct expr_eval_op): New struct.
8623 (expr_eval_ops): New typedef.
8624 (struct condition): Add type and param_ops fields, remove size field.
8625 (add_condition): Replace size parameter with type parameter, add
8626 param_ops parameter.
8627 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8628 (predicate::add_clause): Add comparisons on type and param_ops.
8629 (dump_condition): Add debug dump for param_ops.
8630 (remap_after_inlining): Adjust call arguments to add_condition.
8631 (add_condition): Replace size parameter with type parameter, add
8632 param_ops parameter. Unshare constant value used in conditions.
8633 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8634 parameter expressions using param_ops.
8635 (decompose_param_expr): New function.
8636 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8637 to replace call to unmodified_parm_or_parm_agg_item.
8638 (set_switch_stmt_execution_predicate): Likewise.
8639 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8640 with type.
8641 (inline_read_section): Read param_ops from summary stream.
8642 (ipa_fn_summary_write): Write param_ops to summary stream.
8643
8644 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8645
8646 PR rtl-optimization/92107
8647 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8648 expression written.
8649
8650 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8651
8652 * config/darwin.c: Update description of fix and continue.
8653
8654 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8655
8656 * config/darwin.c (darwin_binds_local_p): Update to call
8657 default_binds_local_p_3 () directly. amend comments.
8658
8659 2019-10-15 Richard Biener <rguenther@suse.de>
8660
8661 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8662 (tree_is_indexable): Use it.
8663 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8664 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8665 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8666
8667 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8668
8669 * config/msp430/msp430.md (zero_extendqipsi2): New.
8670 (zero_extendqisi2): Optimize case where src register and base dst
8671 register are the same.
8672 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8673 (zero_extendpsisi2): Optimize r->m case.
8674 Add unnamed insn patterns to catch insns combine searches for when
8675 optimizing pointer manipulation.
8676
8677 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8678
8679 * config/msp430/msp430.md: Group zero_extend* insns together.
8680
8681 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8682
8683 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8684 constraint.
8685 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8686 POST_INC.
8687 (msp430_subreg): Likewise.
8688 (msp430_split_addsi): Likewise.
8689 (msp430_print_operand_addr): Likewise.
8690 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8691 (USE_STORE_POST_INCREMENT): Define.
8692 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8693 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8694 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8695 (msp430_general_dst_operand): New.
8696 (msp430_general_dst_nonv_operand): New.
8697 (msp430_nonsubreg_operand): Remove.
8698 (msp430_nonsubreg_dst_operand): New.
8699 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8700 of defunct msp430_nonsubreg_operand.
8701 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8702
8703 2019-10-15 Richard Biener <rguenther@suse.de>
8704
8705 PR tree-optimization/91929
8706 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8707 (get_or_alloc_expr_for_name): Initialize it.
8708 (get_or_alloc_expr_for_constant): Likewise.
8709 (phi_translate_1): Copy it.
8710 (create_expression_by_pieces): Use the original location
8711 of the expression for the inserted stmt.
8712 (compute_avail): Record the location of the stmt for the
8713 expressions created.
8714
8715 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8716
8717 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8718 before using tree_to_uhwi.
8719
8720 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8721
8722 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8723
8724 2019-10-15 Richard Biener <rguenther@suse.de>
8725
8726 PR tree-optimization/92094
8727 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8728 do not adjust the reduction definition def type.
8729 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8730 defines the latch argument of the PHI.
8731
8732 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8733
8734 PR target/92035
8735 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8736 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8737 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8738 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8739 _mm_maskz_roundscale_round_sd): New intrinsics.
8740 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8741 __builtin_ia32_rndscales?_mask_round builtins instead of
8742 __builtin_ia32_rndscales?_round.
8743 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8744 __builtin_ia32_rndscalesd_round): Remove.
8745 (__builtin_ia32_rndscaless_mask_round,
8746 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8747 * config/i386/sse.md
8748 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8749 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8750 ... this, adjust and add subst atrributes to make it maskable.
8751
8752 2019-10-15 Richard Biener <rguenther@suse.de>
8753
8754 PR middle-end/92046
8755 * common.opt (fallow-store-data-races): New.
8756 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8757 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8758 * doc/invoke.texi (fallow-store-data-races): Document.
8759 (--param allow-store-data-races): Remove docs.
8760 * opts.c (default_options_table): Enable -fallow-store-data-races
8761 at -Ofast.
8762 (default_options_optimization): Do not enable --param
8763 allow-store-data-races at -Ofast.
8764 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8765 instead of PARAM_ALLOW_STORE_DATA_RACES.
8766 * tree-ssa-loop-im.c (execute_sm): Likewise.
8767
8768 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8769
8770 PR tree-optimization/92085
8771 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8772 instead of calling it unconditionally after
8773 delete_dead_or_redundant_assignment and fix indentation.
8774
8775 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8776
8777 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8778 TARGET_VFP_DOUBLE.
8779 (*fmsub<SDF:mode>4): Likewise.
8780 *fnmsub<SDF:mode>4): Likewise.
8781 (*fnmadd<SDF:mode>4): Likewise.
8782
8783 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8784
8785 * doc/tree-ssa.texi: Update renamed macro name.
8786
8787 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8788
8789 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8790 vector constants.
8791
8792 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8793
8794 * config/darwin.c: Use unsigned ints for the picbase label
8795 counters, initialise the vars explicitly.
8796 (update_pic_label_number_if_needed): Move a variable declaration
8797 to where it's needed.
8798 (machopic_output_function_base_name): Use a more strict checking
8799 assert, and and unsigned int for the picbase label counter.
8800 (machopic_get_function_picbase): Likewise.
8801
8802 2019-10-14 Richard Biener <rguenther@suse.de>
8803
8804 PR middle-end/92046
8805 * dse.c (scan_insn): Use param max_active_local_stores.
8806 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8807 based on optimization level.
8808 * loop-invariant.c (move_loop_invariants): Adjust
8809 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8810 * opts.c (default_options_optimization): Do not adjust
8811 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8812 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8813
8814 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8815
8816 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8817
8818 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8819
8820 * config/arm/arm.c (arm_option_override): Don't override sched
8821 pressure algorithm.
8822
8823 2019-10-14 Richard Biener <rguenther@suse.de>
8824
8825 PR tree-optimization/92069
8826 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8827 cycles do not set vect_nested_cycle on the latch definition.
8828
8829 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8830
8831 * function-abi.h (expr_callee_abi): Declare.
8832 * function-abi.cc (expr_callee_abi): New function.
8833
8834 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8835
8836 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8837 into [1,MAX].
8838 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8839 non-zero being represented as [1,MAX].
8840
8841 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8842
8843 * tree-sra.c (dump_access): Add missing braces.
8844
8845 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8846
8847 * config/darwin.c (machopic_indirection_name): Rework the
8848 function to emit linker-visible symbols only for indirections
8849 in the data section. Clean up the code and update comments.
8850
8851 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8852
8853 * config/darwin.c (machopic_indirect_data_reference): Remove
8854 redundant code.
8855
8856 2019-10-13 Nathan Sidwell <nathan@acm.org>
8857
8858 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8859
8860 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8861
8862 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8863 c99_runtime.
8864
8865 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8866
8867 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8868 so non-virutal are before virutals.
8869 (output_function): Avoid body modifications.
8870
8871 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8872
8873 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8874 %r22. Load function address before global pointer.
8875 (pa_attr_length_indirect_call): Adjust length of inline versions of
8876 $$dyncall.
8877 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8878 before normal cases. Update inline $$dyncall sequences to preserve
8879 function descriptor address in register %r22.
8880 (TRAMPOLINE_CODE_SIZE): Adjust.
8881 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8882 register %r22 contains trampoline address.
8883 (pa_trampoline_init): Adjust offsets.
8884 (pa_trampoline_adjust_address): Likewise.
8885 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8886
8887 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8888
8889 PR target/67183
8890 * config/darwin.c (machopic_indirection): New field to flag
8891 non-lazy-symbol-pointers in the data section.
8892 (machopic_indirection_name): Compute if an indirection should
8893 appear in the data section.
8894 (machopic_output_data_section_indirection): New callback split
8895 from machopic_output_indirection.
8896 (machopic_output_stub_indirection): Likewise.
8897 (machopic_output_indirection): Retain the code for non-lazy
8898 symbol pointers in their regular section.
8899 (machopic_finish): Use the new callbacks to order the indirection
8900 output.
8901
8902 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8903
8904 * config/darwin-protos.h (machopic_finish): Delete.
8905 * config/darwin.c (machopic_finish): Make static.
8906
8907 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8908
8909 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8910 sections when building kernel extension code.
8911
8912 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8913
8914 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8915 later standard."
8916
8917 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8918
8919 * config/pa/pa.c (pa_option_override): Remove trailing comma
8920 from warning.
8921
8922 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8923
8924 PR middle-end/92063
8925 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8926 <case VEC_COND_EXPR>: Return false with *handled = false.
8927 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8928 recursing on the first operand.
8929 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8930 instead of tree_could_trap_p.
8931 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8932
8933 2019-10-11 Jim Wilson <jimw@sifive.com>
8934
8935 PR rtl-optimization/91860
8936 * combine.c (subst): If new_rtx is a constant, also check for
8937 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8938
8939 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8940
8941 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8942 INTVAL when calling store_bit_field.
8943
8944 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8945
8946 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8947 size.
8948
8949 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8950
8951 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8952 vectorizable_live_operation.
8953 (vectorizable_live_operation): Adjust parameters.
8954 * tree-vect-stmts.c (vect_init_vector,
8955 vect_gen_widened_results_half): Fix typo in function comment.
8956 (can_vectorize_live_stmts): Adjust function comment.
8957 Adjust parameters. Adjust call to vectorizable_live_operation.
8958 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8959 (vect_transform_stmt): Adjust function comment. Adjust call to
8960 can_vectorize_live_stmts.
8961 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8962
8963 2019-10-11 Richard Biener <rguenther@suse.de>
8964
8965 PR tree-optimization/90883
8966 PR tree-optimization/91091
8967 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8968 alias-sets both for recording VN table entries and continuing
8969 walking after translating through copies. Handle same-sized
8970 reads from SSA names by returning the plain SSA name.
8971 (eliminate_dom_walker::eliminate_stmt): Properly handle
8972 non-size precision stores in redundant store elimination.
8973
8974 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8975
8976 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8977 (ggc_collect): Dump later to not interfere with release_page dump.
8978 (ggc_trim): New function.
8979 * ggc-none.c (ggc_trim): New.
8980 * ggc.h (ggc_trim): Declare.
8981
8982 2019-10-11 Richard Biener <rguenther@suse.de>
8983
8984 PR tree-optimization/92066
8985 PR tree-optimization/92046
8986 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8987 Fix bogus cost model check.
8988
8989 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8990
8991 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8992 (LANG_HOOKS_DECLS): Add it.
8993 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8994 update comment for omp_is_optional_argument.
8995 * omp-general.c (omp_is_allocatable_or_ptr): New.
8996 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8997 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8998 Fortran's optional arguments and allocatable/pointer scalars
8999 with use_device_addr.
9000
9001 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9002
9003 PR target/77918
9004 * config/s390/2827.md: Add new opcodes.
9005 * config/s390/2964.md: Likewise.
9006 * config/s390/3906.md: Likewise.
9007 * config/s390/8561.md: Likewise.
9008 * config/s390/s390-builtins.def (s390_vfchesb): Use
9009 the new vec_cmpgev4sf_quiet_nocc.
9010 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9011 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9012 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9013 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9014 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9015 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9016 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9017 * config/s390/s390-modes.def (CCSFPS): New mode.
9018 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9019 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9020 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9021 (s390_expand_vec_compare): Use non-signaling patterns where
9022 necessary.
9023 (s390_reverse_condition): Support CCSFPS.
9024 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9025 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9026 (asm_fcmp_op): Likewise.
9027 (*smaxv2df3_vx): Use pattern for quiet comparison.
9028 (*sminv2df3_vx): Likewise.
9029 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9030 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9031 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9032 (vec_cmplt<mode>_quiet_nocc): New expander.
9033 (vec_cmpge<mode>_quiet_nocc): New pattern.
9034 (vec_cmple<mode>_quiet_nocc): New expander.
9035 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9036 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9037 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9038 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9039 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9040 (vec_cmpungt<mode>): New expander.
9041 (vec_cmpunge<mode>): Likewise.
9042 (vec_cmpuneq<mode>): Use quiet patterns.
9043 (vec_cmpltgt<mode>): Allow only on z14+.
9044 (vec_cmpordered<mode>): Use quiet patterns.
9045 (vec_cmpunordered<mode>): Likewise.
9046 (VEC_CMP_EXPAND): Add ungt and unge.
9047
9048 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9049
9050 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9051 parameter.
9052 * lto-streamer-out.c: Include tree-dfa.h.
9053 (output_cfg): Do not use cfun.
9054 (lto_prepare_function_for_streaming): New.
9055 (output_function): Do not push cfun; do not initialize loop optimizer.
9056 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9057 * passes.c (ipa_write_summaries): Use it.
9058 (ipa_write_optimization_summaries): Do not modify bodies.
9059 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9060 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9061 * tree-ssa-dse.c (pass_dse::execute): Update use of
9062 renumber_gimple_stmt_uids.
9063 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9064
9065 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9066
9067 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9068 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9069
9070 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9071
9072 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9073 macros.
9074 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9075 Also define DFP macros for these conditions.
9076 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9077 DEC128_SUBNORMAL_MIN): Do not define.
9078 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9079 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9080
9081 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9082 Sandra Loosemore <sandra@codesourcery.com>
9083
9084 PR middle-end/26241
9085 * doc/lto.texi (IPA): Reference to the IPA passes.
9086 * doc/passes.texi (Pass manager): Add node IPA passes and
9087 description for each IPA pass.
9088
9089 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9090
9091 * ipa-reference.c: Do not include splay-tree.h
9092 (reference_vars_to_consider): Turn to hash map.
9093 (get_static_name, ipa_init, analyze_function, propagate,
9094 stream_out_bitmap, ipa_reference_write_optimization_summary,
9095 ipa_reference_write_optimization_summary): Update.
9096
9097 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9098
9099 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9100
9101 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9102
9103 * config/darwin.c: Lookup Objective C metadata and force indirection
9104 for IVAR refs.
9105
9106 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9107
9108 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9109 addresses.
9110 (mem_operand_gpr): Add check for prefixed addresses.
9111 (mem_operand_ds_form): Add check for prefixed addresses.
9112 (rs6000_legitimate_offset_address_p): If we support prefixed
9113 addresses, check for a 34-bit offset instead of 16-bit.
9114 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9115 Do not allow load/store with update if the address is prefixed.
9116 (rs6000_mode_dependent_address): If we support prefixed
9117 addresses, check for a 34-bit offset instead of 16-bit.
9118
9119 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9120
9121 PR target/77918
9122 * config/s390/vector.md (vcond_comparison_operator): New
9123 predicate.
9124 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9125
9126 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9127
9128 PR 87488
9129 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9130 -D.
9131 * configure.ac (--with-documentation-root-url): New option.
9132 * configure: Regenerate.
9133 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9134 option URL, add it as a new string field of the diagnostic option.
9135 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9136 (print_option_information): If get_option_url is non-NULL, call
9137 it, and if the result is non-NULL, potentially emit an escape
9138 sequence to markup the option text with the resulting URL.
9139 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9140 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9141 example of JSON output.
9142 * opts-diagnostic.h (get_option_url): New decl.
9143 * opts.c (get_option_url): New function.
9144 * toplev.c (general_init): Initialize the get_option_url callback.
9145
9146 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9147
9148 PR 87488
9149 * common.opt (fdiagnostics-urls=): New option.
9150 (diagnostic-url.h): Add SourceInclude.
9151 (diagnostic_url_rule): New enum.
9152 * diagnostic-color.c: Include "diagnostic-url.h".
9153 (diagnostic_urls_enabled_p): New function.
9154 * diagnostic-url.h: New file.
9155 * diagnostic.c: Include "diagnostic-url.h".
9156 (diagnostic_urls_init): New function.
9157 * diagnostic.h (diagnostic_urls_init): New decl.
9158 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9159 -fdiagnostics-urls to the list.
9160 (-fdiagnostics-urls): New option.
9161 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9162 (driver::global_initializations): Call diagnostic_urls_init.
9163 * opts-global.c (init_options_once): Likewise.
9164 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9165 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9166 show_urls.
9167 (pp_begin_url): New function.
9168 (pp_end_url): New function.
9169 (selftest::test_urls): New selftest.
9170 (selftest::pretty_print_c_tests): Call it.
9171 * pretty-print.h (pretty_printer::show_urls): New field.
9172 (pp_begin_url): New decl.
9173 (pp_end_url): New decl.
9174
9175 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9176
9177 PR target/92022
9178 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9179
9180 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9181
9182 PR target/88630
9183 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9184 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9185 also for TARGET_FPU_SH4_300.
9186 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9187 TARGET_SH4_300.
9188 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9189 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9190 (*negsf2_i): Split into ...
9191 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9192 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9193 (**abssf2_i): Split into ...
9194 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9195 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9196 (*negdf2_i): Split into ...
9197 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9198 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9199 (**abssf2_i): Split into ...
9200 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9201
9202 2019-10-10 Richard Biener <rguenther@suse.de>
9203
9204 PR middle-end/92046
9205 * opts.c (finish_options): Do not influence global --params
9206 from options that are adjustable per function.
9207 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9208 Apply --param adjustment based on active cost-model.
9209 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9210 further store-sinking when vectorization or if-conversion
9211 are not enabled.
9212
9213 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9214
9215 PR middle-end/92037
9216 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9217 rather than ggc_alloc_cleared to alloc symbol table.
9218 * toplev.c (general_init): Likewise.
9219 * cgraph.h (symbol_table): Explicitly construct every field.
9220
9221 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9222
9223 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9224 (PF_Z15): ... this.
9225 * config.gcc: Add z15 as option for --with-arch and --with-tune
9226 configure switches.
9227 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9228 error reporting for unsupported builtins.
9229 * config/s390/s390-opts.h (enum processor_type): Rename
9230 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9231 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9232 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9233 Likewise.
9234 * config/s390/s390-builtins.def: Likewise.
9235 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9236 (s390_expand_builtin): Add missing check for unsupported builtins.
9237 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9238 (s390_rtx_costs): Likewise.
9239 (s390_get_sched_attrmask): Rename arch13 to z15.
9240 (s390_get_unit_mask): Likewise.
9241 (s390_is_fpd): Likewise.
9242 (s390_is_fxd): Likewise.
9243 * config/s390/s390.h (enum processor_flags): Likewise.
9244 * config/s390/s390.md: Likewise.
9245 * config/s390/vector.md: Likewise.
9246 * config/s390/vx-builtins.md: Likewise.
9247 * config/s390/s390.opt: Add z15 to processor_type value.
9248
9249 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9250
9251 PR target/91035
9252 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9253 prototype.
9254 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9255 ("split_stack_data", "split_stack_call")
9256 ("split_stack_call_<mode>", "split_stack_cond_call")
9257 ("split_stack_cond_call_<mode>"): Remove.
9258 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9259 insn definition.
9260 * config/s390/s390.c (s390_output_split_stack_data): New function.
9261 (s390_expand_split_stack_prologue): Use the merged expander.
9262
9263 2019-10-09 Martin Sebor <msebor@redhat.com>
9264
9265 PR tree-optimization/90879
9266 * builtins.c (check_access): Avoid using maxbound when null.
9267 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9268 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9269 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9270 conditional.
9271 (get_range_strlen): Overwrite initial maxbound when non-null.
9272 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9273 changes.
9274 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9275 (used_only_for_zero_equality): New function.
9276 (handle_builtin_memcmp): Call it.
9277 (determine_min_objsize): Return an integer instead of tree.
9278 (get_len_or_size, strxcmp_eqz_result): New functions.
9279 (maybe_warn_pointless_strcmp): New function.
9280 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9281 between a longer string and a smaller array.
9282 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9283
9284 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9285
9286 * config/darwin.c (darwin_override_options): Make the check for
9287 Objective-C ABI version more specific for 64bit code.
9288
9289 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9290
9291 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9292 indicate that the new symbol is an indirection.
9293 (machopic_indirect_call_target): Likewise.
9294 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9295 (MACHO_SYMBOL_INDIRECTION_P): New.
9296 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9297
9298 2019-10-08 Jason Merrill <jason@redhat.com>
9299
9300 * doc/invoke.texi: Document -fconcepts-ts.
9301
9302 2019-10-09 Richard Biener <rguenther@suse.de>
9303
9304 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9305 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9306
9307 2019-10-08 Richard Biener <rguenther@suse.de>
9308
9309 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9310 (_stmt_vec_info::force_single_cycle): Likewise.
9311 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9312 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9313 * tree-vect-loop.c (vectorizable_reduction): Set
9314 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9315 (vect_transform_reduction): Use them to remove redundant code.
9316 (vect_transform_cycle_phi): Likewise.
9317
9318 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9319
9320 PR tree-optimization/90836
9321 * match.pd (popcount): New pattern.
9322
9323 2019-10-08 Martin Sebor <msebor@redhat.com>
9324
9325 PR middle-end/92026
9326 PR middle-end/92014
9327 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9328 again once nbytes has been set. Set the access size when not yet set.
9329
9330 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9331
9332 * config/darwin.c (machopic_select_section): Remove dead code for
9333 old Objective-C section selection method, replace with unreachable.
9334
9335 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9336
9337 * config/darwin.c (machopic_indirect_data_reference): Check for
9338 required indirections before making direct access to defined
9339 values.
9340 (machopic_output_indirection): Place the indirected pointes for
9341 required indirections into the non-lazy symbol pointers section.
9342 (darwin_encode_section_info):
9343 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9344 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9345
9346 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9347
9348 PR target/91994
9349 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9350 instead of ALL_SSE_REG to check if function call preserves some
9351 256-bit SSE registers.
9352
9353 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9354
9355 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9356 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9357 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9358
9359 2019-10-08 Richard Biener <rguenther@suse.de>
9360
9361 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9362 (_stmt_vec_info::is_reduc_info): Add.
9363 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9364 (vectorizable_condition): Remove.
9365 (vectorizable_shift): Likewise.
9366 (vectorizable_reduction): Adjust.
9367 (info_for_reduction): New.
9368 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9369 (vect_analyze_scalar_cycles_1): ... here.
9370 (vect_analyze_loop_operations): Adjust.
9371 (needs_fold_left_reduction_p): Simplify for single caller.
9372 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9373 for nested cycles not part of double reductions.
9374 (vect_model_reduction_cost): Pass in the reduction type.
9375 (info_for_reduction): New function.
9376 (vect_create_epilog_for_reduction): Use it, access reduction
9377 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9378 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9379 (vectorize_fold_left_reduction): Remove pointless assert.
9380 (vectorizable_reduction): Analyze the full reduction when
9381 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9382 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9383 stmt code-generation to vectorizable_* in most cases. Verify
9384 code-generation only for cases handled by
9385 vect_transform_reductuon.
9386 (vect_transform_reduction): Use info_for_reduction to get at
9387 reduction meta. Simplify.
9388 (vect_transform_cycle_phi): Likewise.
9389 (vectorizable_live_operation): Likewise.
9390 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9391 at the PHI node for STMT_VINFO_REDUC_TYPE.
9392 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9393 longer necessary code.
9394 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9395 (vectorizable_condition): Likewise. Get at reduction related
9396 info via info_for_reduction.
9397 (vect_analyze_stmt): Adjust.
9398 (vect_transform_stmt): Likewise.
9399 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9400 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9401
9402 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9403
9404 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9405 -fno-fp-int-builtin-inexact default for C2X.
9406
9407 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9408 Richard Biener <rguenther@suse.de>
9409
9410 PR tree-optimization/91532
9411 * tree-if-conv.c: Include tree-ssa-dse.h.
9412 (ifcvt_local_dce): Change param from bb to loop,
9413 and call dse_classify_store.
9414 (tree_if_conversion): Pass loop instead of loop->header as arg
9415 to ifcvt_local_dce.
9416 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9417 (delete_dead_or_redundant_assignment): Remove static qualifier from
9418 declaration, and add prototype in tree-ssa-dse.h.
9419 (dse_store_status): Move to tree-ssa-dse.h.
9420 (dse_classify_store): Remove static qualifier and add new tree param
9421 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9422 * tree-ssa-dse.h: New header.
9423
9424 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9425
9426 * config/darwin.c (machopic_output_indirection): Don't put
9427 hidden symbol indirections into the .data section, use the
9428 non-lazy symbol pointers section as normal.
9429 (darwin_encode_section_info): Record if a symbol is hidden.
9430 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9431 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9432
9433 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9434
9435 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9436 predicates instead of accessing bits directly.
9437 (machopic_indirect_call_target): Likewise.
9438 (machopic_output_indirection): Likewise.
9439 (darwin_encode_section_info): Improve description. Use renamed
9440 symbol flags. Use predicate macros for variables and functions.
9441 * config/darwin.h:
9442 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9443 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9444 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9445 (MACHO_SYMBOL_VARIABLE_P): New.
9446 (MACHO_SYMBOL_DEFINED_P):New.
9447 (MACHO_SYMBOL_STATIC_P): New.
9448 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9449 (SYMBOL_FLAG_SUBT_DEP): New.
9450 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9451
9452 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9453
9454 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9455 (msp430_expand_epilogue): Likewise.
9456 * config/msp430/predicates.md: Likewise.
9457 * config/msp430/msp430.md: Likewise.
9458 Replace blocks of 8 spaces with tabs.
9459
9460 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9461
9462 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9463 * config/msp430/msp430.c (msp430_split_addsi): New.
9464 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9465 a block of C code for splitting addsi.
9466
9467 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9468
9469 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9470 ix86_expand_rounddf_32): Reorder functions.
9471 * config/i386/i386-protos.h: Update.
9472
9473 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9474
9475 * config.in: Regenerate.
9476 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9477 Add new "Yx" constraint.
9478 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9479 function.
9480 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9481 prototype.
9482 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9483 code/data region to be selected in the small memory model.
9484 (msp430_section_attr): Don't warn if the "section" and "lower"
9485 attributes are used together.
9486 (msp430_handle_generic_attribute): Likewise.
9487 (msp430_var_in_low_mem): New function.
9488 (TARGET_ENCODE_SECTION_INFO): Define.
9489 (msp430_encode_section_info): New function.
9490 (gen_prefix): Return early in the small memory model.
9491 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9492 ".lower" prefix if -m{code,data}-region=lower have been passed.
9493 (msp430_output_aligned_decl_common): Emit common symbols when
9494 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9495 set.
9496 (TARGET_ASM_FILE_END): Define.
9497 (msp430_file_end): New function.
9498 (msp430_do_not_relax_short_jumps): Allow relaxation when
9499 function will be in the lower region.
9500 (msp430_op_not_in_high_mem): New function.
9501 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9502 the 'X' operand selector.
9503 Clarify comment for 'x' operand selector.
9504 * config/msp430/msp430.h (LINK_SPEC): Propagate
9505 -m{code,data}-region to the linker via spec function
9506 msp430_propagate_region_opt.
9507 (msp430_propagate_region_opt): New prototype.
9508 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9509 (SYMBOL_FLAG_LOW_MEM): Define.
9510 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9511 selector.
9512 (zero_extendqihi2): Fix operand number used by "%X" selector.
9513 (zero_extendqisi2): Likewise.
9514 (zero_extendhisi2): Likewise.
9515 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9516 (movhi): Likewise.
9517 (addqi3): Likewise.
9518 (addhi3): Likewise.
9519 (addsi3): Likewise.
9520 (addhi3_cy): Likewise.
9521 (addchi4_cy): Likewise.
9522 (subqi3): Likewise.
9523 (subhi3): Likewise.
9524 (subsi3): Likewise.
9525 (bic<mode>3): Likewise.
9526 (and<mode>3): Likewise.
9527 (ior<mode>3): Likewise.
9528 (xor<mode>3): Likewise.
9529 (slli_1): Add missing "%X" operand selector.
9530 (slll_1): Likewise.
9531 (slll_2): Likewise.
9532 (srai_1): Likewise.
9533 (sral_1): Likewise.
9534 (sral_2): Likewise.
9535 (srli_1): Likewise.
9536 (srll_1): Likewise.
9537 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9538 selector.
9539 (cbranchhi4_real): Likewise.
9540 (cbranchqi4_reversed): Likewise.
9541 (cbranchhi4_reversed): Likewise.
9542 (*bitbranch<mode>4): Likewise.
9543 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9544 * config/msp430/msp430.opt (mcode-region=): Set default to
9545 MSP430_REGION_LOWER. Improve docstring.
9546 (mdata-region=): Likewise.
9547 (muse-lower-region-prefix): New option.
9548 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9549 mdata-region=none multilib.
9550 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9551 mdata-region=none multilib.
9552 MULTILIB_EXCEPTIONS: Remove.
9553 MULTILIB_REQUIRED: Define.
9554 * configure: Regenerate.
9555 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9556 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9557 * doc/extend.texi: Clarify comment for {upper,lower,either}
9558 function attributes.
9559 Add separate description for "lower" variable attribute.
9560
9561 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9562
9563 PR target/77918
9564 * optabs-tree.c (vcond_icode_p): New function.
9565 (vcond_eq_icode_p): Likewise.
9566 (expand_vec_cond_expr_p): Use vcond_icode_p and
9567 vcond_eq_icode_p.
9568 * optabs.c (can_vcond_compare_p): New function.
9569 * optabs.h (can_vcond_compare_p): Likewise.
9570
9571 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9572
9573 PR target/77918
9574 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9575 caller passes a non-trapping condition.
9576 (is_gimple_condexpr): Allow trapping conditions.
9577 (is_gimple_condexpr_1): New helper function.
9578 (is_gimple_condexpr_for_cond): New function, acts like old
9579 is_gimple_condexpr.
9580 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9581 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9582 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9583 * gimplify.c (gimplify_cond_expr): Use
9584 is_gimple_condexpr_for_cond.
9585 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9586 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9587 VEC_COND_EXPR.
9588 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9589 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9590 is_gimple_condexpr_for_cond, remove pointless tmp check
9591 (forward_propagate_into_cond): Remove pointless tmp check.
9592
9593 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9594
9595 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9596 match that of other gsi_next_* functions. Adjust the comment.
9597 (gsi_start_nonvirtual_phis): New function.
9598 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9599 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9600
9601 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9602
9603 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9604 setjmp situation here. Fix a verb's ending: "the exact variables or
9605 elements for which there are warnings depends" -> "... depend".
9606
9607 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9608
9609 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9610
9611 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9612
9613 * ipa-prop.c (ipa_vr::nonzero_p): New.
9614 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9615 non-zero range.
9616 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9617 * tree-vrp.c (range_has_numeric_bounds_p): New.
9618 (range_int_cst_p): Use range_has_numeric_bounds_p.
9619 (get_range_op_handler): New.
9620 (supported_types_p): New.
9621 (defined_ranges_p): New.
9622 (drop_undefines_to_varying): New.
9623 (range_fold_binary_symbolics_p): New.
9624 (range_fold_unary_symbolics_p): New.
9625 (range_fold_unary_expr): Extract out into above functions.
9626 (range_fold_binary_expr): Same.
9627 (value_range_base::normalize_addresses): New.
9628 (value_range_base::normalize_symbolics): Normalize addresses.
9629 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9630
9631 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9632
9633 * tree-vrp.c (value_range_base::singleton_p): Use
9634 value_range_base::num_pairs instead of vrp_val_is* to check
9635 if a range has one sub-range.
9636
9637 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9638
9639 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9640 DEF is not a true earlyclobber but is tied to a specific input
9641 operand, and so is effectively earlyclobber wrt inputs that have
9642 different values.
9643 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9644
9645 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9646
9647 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9648 (pod_mode): Mark operators likewise.
9649 (scalar_int_mode): Mark non-default constructors and
9650 operators with CONSTEXPR.
9651 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9652 (fixed_size_mode): Likewise.
9653
9654 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9655
9656 PR target/91994
9657 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9658 and wrap the unspec_volatile in a parallel.
9659 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9660 the unspec_volatile.
9661 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9662 unspec_volatile to be wrapped in a parallel.
9663 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9664 (ix86_add_reg_usage_to_vzerouppers): New functions.
9665 (rest_of_handle_insert_vzeroupper): Use them to add register
9666 usage information to the vzeroupper instructions.
9667
9668 2019-10-07 Richard Biener <rguenther@suse.de>
9669
9670 PR tree-optimization/91975
9671 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9672 handle invariants.
9673
9674 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9675
9676 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9677 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9678
9679 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9680
9681 * config/darwin.c (darwin_override_options): Adjust objective-c
9682 ABI version error messages to avoid punctuation and contracted
9683 negations.
9684
9685 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9686
9687 * ipa-inline.c: Fix type; compute size rather than self_size
9688 for size of caller function.
9689
9690 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9691
9692 PR target/59888
9693 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9694 choose const_data section for constants with relocations.
9695 (machopic_select_section): Pass relocation flag to
9696 darwin_rodata_section ().
9697
9698 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9699
9700 PR tree-optimization/91734
9701 * generic-match-head.c: Include fold-const-call.h.
9702 * match.pd (sqrt(x) cmp c): Check the boundary value and
9703 in case inexact computation of c*c affects comparison of the boundary,
9704 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9705 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9706 for -frounding-math. For c2, try the next smaller or larger floating
9707 point constant depending on comparison code and if it has the same
9708 sqrt as c2, use it instead of c2.
9709
9710 2019-10-04 Martin Sebor <msebor@redhat.com>
9711
9712 PR middle-end/91977
9713 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9714 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9715 uninitialized objects.
9716
9717 2019-10-04 Martin Sebor <msebor@redhat.com>
9718
9719 * builtins.c (compute_objsize): Add an argument.
9720 * tree-object-size.c (addr_object_size): Same.
9721 (compute_builtin_object_size): Same.
9722 * tree-object-size.h (compute_builtin_object): Same.
9723
9724 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9725
9726 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9727
9728 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9729
9730 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9731
9732 2019-10-04 Martin Jambor <mjambor@suse.cz>
9733
9734 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9735 fntype when switching to calling memcpy instead of memset.
9736
9737 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9738
9739 * hash-table.h (hash_table::empty_slow): Don't assign
9740 size_t values to int variables.
9741
9742 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9743
9744 * expr.c (convert_mode_scalar): Remove shadowing local var.
9745 (emit_block_move): Rename local vars.
9746 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9747 (emit_push_insn): Rename local vars.
9748 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9749 shadowing local vars.
9750 (store_constructor): Remove shadowing local vars. Rename local var.
9751 (store_field, expand_cond_expr_using_cmove,
9752 expand_expr_real_2): Remove shadowing local vars.
9753 (expand_expr_real_1,
9754 do_store_flag): Remove shadowing local vars. Rename local vars.
9755
9756 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9757
9758 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9759
9760 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9761
9762 * genmatch.c (commutate): Rename local var.
9763 (lower_cond): Reuse local var.
9764 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9765 dt_operand::gen, dt_operand::gen_gimple_expr,
9766 dt_simplify::gen): Add a param. Rename generated vars.
9767 (decision_tree::insert_operand,
9768 (capture_info::walk_match, capture_info::walk_result,
9769 capture_info::walk_c_expr): Rename local vars.
9770 (expr::gen_transform): Rename generated vars.
9771 Use snprintf. Rename local vars.
9772 (capture::gen_transform, dt_operand::get_name,
9773 dt_operand::gen_opname): Rename generated vars.
9774 (write_predicate): Adjust call to gen_kids.
9775 (parser::get_internal_capture_id): Rename generated vars.
9776 (parser::parse_expr): Rename local vars.
9777 (parser::parse_if): Remove local var.
9778 (parser::parse_pattern, add_operator): Rename local vars.
9779
9780 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9781
9782 * builtins.def (DEF_C2X_BUILTIN): New macro.
9783 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9784 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9785 (strndup): Use DEF_C2X_BUILTIN.
9786 * coretypes.h (enum function_class): Add function_c2x_misc.
9787
9788 2019-10-04 Maya Rashish <coypu@sdf.org>
9789
9790 * ira-color.c (update_costs_from_allocno): Call
9791 ira_init_register_move_cost_if_necessary.
9792
9793 2019-10-04 Jeff Law <law@redhat.com>
9794
9795 * config/h8300/h8300.md (cpymemsi): Disable.
9796 (movmd, movmd_internal_<mode>, movstr, movsd):
9797 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9798 (movmd splitter, movsd splitter): Likewise.
9799
9800 * range-op.cc (range_tests): Avoid two tests when ints and
9801 shorts are the same size.
9802
9803 2019-10-04 Richard Biener <rguenther@suse.de>
9804
9805 PR lto/91968
9806 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9807 BLOCK_VARS.
9808
9809 2019-10-04 Richard Biener <rguenther@suse.de>
9810
9811 PR tree-optimization/91982
9812 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9813 against EXTRACT_LAST_REDUCTION.
9814 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9815
9816 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9817
9818 * range-op.o (value_range_from_overflowed_bounds): Rename from
9819 adjust_overflow_bound.
9820 (value_range_with_overflow): Rename from
9821 create_range_with_overflow.
9822 (create_possibly_reversed_range): Adjusted for above renames.
9823 (operator_*::wi_fold): Same.
9824 (cross_product_operator::wi_cross_productor): Same.
9825
9826 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9827
9828 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9829 -Wshadow=compatible-local): Fix description.
9830 Add an example where -Wshadow=compatible-local does not
9831 warn.
9832
9833 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9834
9835 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9836
9837 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9838 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9839
9840 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9841
9842 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9843 can_move_by_pieces issue.
9844
9845 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9846
9847 PR target/87243
9848 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9849 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9850 is available and the user has not set one on the command line.
9851
9852 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9853
9854 PR target/91769
9855 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9856 instead of REGNO equality check on addr.reg.
9857
9858 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9859
9860 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9861 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9862 * doc/invoke.texi (inline-heuristics-hint-percent,
9863 inline-heuristics-hint-percent-O2): Document.
9864 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9865 hint attribute.
9866 (can_inline_edge_by_limits_p): Use it.
9867
9868 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9869
9870 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9871 to print CONST_DOUBLEs.
9872
9873 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9874
9875 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9876 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9877 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9878
9879 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9880
9881 * Makefile.in (OBJS): Add range.o and range-op.o.
9882 Remove wide-int-range.o.
9883 * function-tests.c (test_ranges): New.
9884 (function_tests_c_tests): Call test_ranges.
9885 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9886 range_fold_unary_expr instead of extract_range_from_unary_expr.
9887 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9888 * range-op.cc: New file.
9889 * range-op.h: New file.
9890 * range.cc: New file.
9891 * range.h: New file.
9892 * selftest.h (range_tests): New prototype.
9893 * ssa.h: Include range.h.
9894 * tree-vrp.c (value_range_base::value_range_base): New
9895 constructors.
9896 (value_range_base::singleton_p): Do not call
9897 ranges_from_anti_range until sure we will need to.
9898 (value_range_base::type): Rename gcc_assert to
9899 gcc_checking_assert.
9900 (vrp_val_is_max): New argument.
9901 (vrp_val_is_min): Same.
9902 (wide_int_range_set_zero_nonzero_bits): Move from
9903 wide-int-range.cc.
9904 (extract_range_into_wide_ints): Remove.
9905 (extract_range_from_multiplicative_op): Remove.
9906 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9907 from extract_range_from_binary_expr.
9908 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9909 from extract_range_from_binary_expr.
9910 (extract_range_from_binary_expr): Remove.
9911 (normalize_for_range_ops): New.
9912 (range_fold_binary_expr): New.
9913 (range_fold_unary_expr): New.
9914 (value_range_base::num_pairs): New.
9915 (value_range_base::lower_bound): New.
9916 (value_range_base::upper_bound): New.
9917 (value_range_base::upper_bound): New.
9918 (value_range_base::contains_p): New.
9919 (value_range_base::invert): New.
9920 (value_range_base::union_): New.
9921 (value_range_base::intersect): New.
9922 (range_compatible_p): New.
9923 (value_range_base::operator==): New.
9924 (determine_value_range_1): Call range_fold_*expr instead of
9925 extract_range_from_*expr.
9926 * tree-vrp.h (class value_range_base): Add new constructors.
9927 Add methods for union_, intersect, operator==, contains_p,
9928 num_pairs, lower_bound, upper_bound, invert.
9929 (vrp_val_is_min): Add handle_pointers argument.
9930 (vrp_val_is_max): Same.
9931 (extract_range_from_unary_expr): Remove.
9932 (extract_range_from_binary_expr): Remove.
9933 (range_fold_unary_expr): New.
9934 (range_fold_binary_expr): New.
9935 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9936 range_fold_binary_expr instead of extract_range_from_binary_expr.
9937 (vr_values::extract_range_basic): Same.
9938 (vr_values::extract_range_from_unary_expr): Call
9939 range_fold_unary_expr instead of extract_range_from_unary_expr.
9940 * wide-int-range.cc: Remove.
9941 * wide-int-range.h: Remove.
9942
9943 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9944
9945 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9946 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9947 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9948 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9949 macro.
9950
9951 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9952
9953 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9954 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9955 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9956 * glimits.h: Likewise.
9957
9958 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9959
9960 PR rtl-optimization/91976
9961 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9962 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9963 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9964
9965 2019-10-02 Martin Sebor <msebor@redhat.com>
9966
9967 PR tree-optimization/80936
9968 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9969
9970 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9971
9972 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9973 instead of reg_class_contents[ALL_REGS].
9974
9975 2019-09-30 Jason Merrill <jason@redhat.com>
9976
9977 Add some hash_map_safe_* functions like vec_safe_*.
9978 * hash-map.h (default_hash_map_size): New variable.
9979 (create_ggc): Use it as default argument.
9980 (hash_map_maybe_create, hash_map_safe_get)
9981 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9982
9983 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9984
9985 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9986 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9987 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9988 (can_inline_edge_by_limits_p): Use it.
9989 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9990 (want_inline_small_function_p): Use O2 bounds.
9991 (edge_badness): LIkewise.
9992 * opts.c (default_options): Add OPT_finline_functions.
9993 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9994 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9995 New parameters.
9996 * doc/invoke.texi (-finline-functions): Update documentation.
9997 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9998 inline-min-speedup-O2): Document.
9999 (early-inlining-insns-O2): Simplify docs.
10000
10001 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10002
10003 PR rtl-optimization/87047
10004 * ifcvt.c (average_cost): New static function. Use it...
10005 (noce_process_if_block): ... here.
10006
10007 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10008
10009 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10010 * config/rs6000/rs6000-string.c (expand_block_move): Add
10011 might_overlap parm.
10012 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10013 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10014
10015 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10016
10017 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10018 (expand_builtin_memcpy): Use might_overlap parm.
10019 (expand_builtin_mempcpy_args): Use might_overlap parm.
10020 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10021 (expand_builtin_memory_copy_args): Add might_overlap parm.
10022 * expr.c (emit_block_move_via_cpymem): Rename to
10023 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10024 or movmem optab as appropriate.
10025 (emit_block_move_hints): Add might_overlap parm, do the right
10026 thing for might_overlap==true.
10027 * expr.h (emit_block_move_hints): Update prototype.
10028
10029 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10030
10031 * tree-eh.h (unsplit_eh_edges): Declare.
10032 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10033 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10034 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10035 (struct store_immediate_info): Add lp_nr field.
10036 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10037 initialize lp_nr with it.
10038 (struct merged_store_group): Add lp_nr and only_constants fields.
10039 (merged_store_group::merged_store_group): Initialize them.
10040 (merged_store_group::can_be_merged_into): Deal with them.
10041 (pass_store_merging): Rename terminate_and_release_chain into
10042 terminate_and_process_chain.
10043 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10044 renaming and remove useless assertions.
10045 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10046 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10047 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10048 instead of always recomputing it and compare lp_nr.
10049 (imm_store_chain_info::output_merged_store): If the group is in an
10050 active EH region, register new stores if they can throw. Moreover,
10051 if the insertion has created new basic blocks, adjust the PHI nodes
10052 of the post landing pad.
10053 (imm_store_chain_info::output_merged_stores): If the original stores
10054 are in an active EH region, deregister them.
10055 (lhs_valid_for_store_merging_p): Prettify.
10056 (adjust_bit_pos): New function extracted from...
10057 (mem_valid_for_store_merging): ...here. Use it for the base address
10058 and also for the offset if it is the addition of a constant.
10059 (lp_nr_for_store): New function.
10060 (pass_store_merging::process_store): Change return type to bool.
10061 Call lp_nr_for_store to initialize the store info. Propagate the
10062 return status of various called functions to the return value.
10063 (store_valid_for_store_merging_p): New predicate.
10064 (enum basic_block_status): New enumeration.
10065 (get_status_for_store_merging): New function.
10066 (pass_store_merging::execute): If the function can throw and catch
10067 non-call exceptions, unsplit the EH edges on entry and clean up the
10068 CFG on exit if something changed. Call get_status_for_store_merging
10069 for every basic block and keep the chains open across basic blocks
10070 when possible. Terminate and process open chains at the end, if any.
10071
10072 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10073
10074 * reginfo.c (globalize_reg): Fix shadowed variable in
10075 function_abis walk.
10076
10077 2019-10-02 Martin Jambor <mjambor@suse.cz>
10078
10079 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10080 do not compute some stuff when set.
10081 (cgraph_node::create_edge): Likewise.
10082 (cgraph_node::create_indirect_edge): Renamed last parameter to
10083 coning_p and flipped its meaning, don't even calculate
10084 inline_failed when set.
10085 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10086 (symbol_table::::create_edge): Likewise.
10087 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10088 the default value.
10089 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10090 call graph edge creating functions.
10091
10092 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10093
10094 PR c++/91222
10095 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10096 namespace types.
10097
10098 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10099
10100 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10101
10102 2019-10-02 Richard Biener <rguenther@suse.de>
10103
10104 * tree-vectorizer.h (vect_transform_reduction): Declare.
10105 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10106 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10107 stmt transform to ...
10108 (vect_transform_reduction): ... this.
10109
10110 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10111
10112 * omp-low.c (lower_omp_target): Dereference optional argument
10113 to work with the right pointer.
10114
10115 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10116
10117 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10118 false.
10119 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10120 * langhooks.h (omp_is_optional_argument): New hook.
10121 * omp-general.c (omp_is_optional_argument): New.
10122 * omp-general.h (omp_is_optional_argument): New declaration.
10123 * omp-low.c (lower_omp_target): Create temporary for received value
10124 and take the address for new_var if the original variable was a
10125 DECL_BY_REFERENCE. Use size of referenced object when a
10126 pass-by-reference optional argument used as argument to firstprivate.
10127
10128 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10129
10130 PR tree-optimization/91940
10131 * tree-vect-patterns.c: Include tree-vector-builder.h and
10132 vec-perm-indices.h.
10133 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10134 unpromoting the argument back to uint16_t, or by converting into a
10135 rotate, or into shifts plus ior.
10136
10137 2019-10-02 Richard Biener <rguenther@suse.de>
10138
10139 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10140 New.
10141 (vect_transform_cycle_phi): Declare.
10142 * tree-vect-stmts.c (vect_transform_stmt): Call
10143 vect_transform_cycle_phi.
10144 * tree-vect-loop.c (vectorizable_reduction): Split out
10145 PHI transformation stage to ...
10146 (vect_transform_cycle_phi): ... here.
10147
10148 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10149
10150 PR middle-end/91957
10151 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10152 eliminable registers.
10153 (make_hard_regno_live): Likewise, and don't make them live.
10154
10155 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10156
10157 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10158 Call pp_emit_prefix.
10159 (layout::print_source_line): Likewise.
10160 (layout::start_annotation_line): Likewise.
10161 (diagnostic_show_locus): Remove call to temporarily clear the
10162 prefix.
10163 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10164 interaction of pp_set_prefix with rulers and fix-it hints.
10165 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10166 prefix when calling diagnostic_show_locus, rather than destroying
10167 it afterwards.
10168 (print_parseable_fixits): Temporarily clear prefix.
10169 * pretty-print.c (pp_format): Save and restore line_length, rather
10170 than assuming it is zero.
10171 (pp_output_formatted_text): Remove assertion that line_length is
10172 zero.
10173
10174 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10175
10176 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10177 Rename to ...
10178 (nonoverlapping_refs_since_match_p): ... this; handle also
10179 ARRAY_REFs.
10180 (alias_stats): Update stats.
10181 (dump_alias_stats): Likewise.
10182 (cheap_array_ref_low_bound): New function.
10183 (aliasing_matching_component_refs_p): Add partial_overlap
10184 argument;
10185 pass it to nonoverlapping_refs_since_match_p.
10186 (aliasing_component_refs_walk): Update call of
10187 aliasing_matching_component_refs_p
10188 (nonoverlapping_array_refs_p): New function.
10189 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10190 indirect_refs_may_alias_p): Update calls of
10191 nonoverlapping_refs_since_match_p.
10192
10193 2019-10-01 Maya Rashish <coypu@sdf.org>
10194
10195 PR target/85401
10196 * ira-color.c (allocno_copy_cost_saving): Call
10197 ira_init_register_move_cost_if_necessary.
10198
10199 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10200
10201 * Makefile.in (gnat_install_lib): New variable.
10202 * configure.ac: Substitute it.
10203 * configure: Regenerate.
10204
10205 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10206
10207 PR lto/91222
10208 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10209 is matched with non-C++ type
10210
10211 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10212
10213 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10214 after local CSE.
10215
10216 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10217
10218 * doc/invoke.texi (early-inlining-insns-O2): Document.
10219 (early-inlining-insns): Update.
10220 * params.def (early-inlining-insns-O2): New bound.
10221 (early-inlining-insns): Update docs.
10222 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10223
10224 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10225
10226 PR target/88562
10227 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10228 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10229 a memory access insn.
10230
10231 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10232
10233 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10234 vpmsumd.
10235
10236 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10237
10238 PR target/77918
10239 * config/s390/s390.c (s390_expand_vec_compare): Use
10240 gen_vec_cmpordered and gen_vec_cmpunordered.
10241 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10242 vec_unordered): Delete.
10243 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10244 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10245 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10246 (vec_cmp<code>): Generic dispatcher.
10247
10248 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10249
10250 PR target/77918
10251 * config/s390/vector.md (V_HW): Add V1TI in order to make
10252 vcond$a$b generate vcondv1tiv1tf.
10253
10254 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10255
10256 PR rtl-optimization/91948
10257 * ira-build.c (ira_create_allocno): Initialize
10258 ALLOCNO_CROSSED_CALLS_ABIS.
10259 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10260 than regno to ira_need_caller_save_p.
10261
10262 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10263
10264 * config/i386/i386-options.c
10265 (ix86_recompute_optlev_based_flags): New, moved out of...
10266 (ix86_option_override_internal): ... this. Call it.
10267 (ix86_override_options_after_change): Call it here too.
10268
10269 PR debug/91507
10270 * dwarf2out.c (override_type_for_decl_p): New.
10271 (gen_variable_die): Use it.
10272
10273 2019-10-01 Richard Biener <rguenther@suse.de>
10274
10275 * tree-vect-loop.c (vectorizable_reduction): Move variables
10276 to where they are used.
10277
10278 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10279
10280 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10281 (build_def_use): Use PC instead of CC0 in a comment.
10282
10283 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10284
10285 * rtl.def (CLOBBER_HIGH): Delete.
10286 * doc/rtl.texi (clobber_high): Remove documentation.
10287 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10288 (reg_is_clobbered_by_clobber_high): Delete.
10289 (gen_hard_reg_clobber_high): Likewise.
10290 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10291 * cfgexpand.c (expand_gimple_stmt): Likewise.
10292 * combine-stack-adj.c (single_set_for_csa): Likewise.
10293 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10294 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10295 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10296 * cse.c (invalidate_reg): Remove clobber_high parameter.
10297 (invalidate): Update call accordingly.
10298 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10299 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10300 (count_reg_usage, insn_live_p): Likewise.
10301 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10302 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10303 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10304 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10305 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10306 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10307 (mark_nonreg_stores_2): Likewise.
10308 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10309 (df_get_call_refs): Likewise.
10310 * dwarf2out.c (mem_loc_descriptor): Likewise.
10311 * emit-rtl.c (verify_rtx_sharing): Likewise.
10312 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10313 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10314 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10315 * genemit.c (gen_exp, gen_insn): Likewise.
10316 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10317 * haifa-sched.c (haifa_classify_rtx): Likewise.
10318 * ira-build.c (create_insn_allocnos): Likewise.
10319 * ira-costs.c (scan_one_insn): Likewise.
10320 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10321 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10322 * jump.c (mark_jump_label_1): Likewise.
10323 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10324 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10325 handling.
10326 (mark_not_eliminable): Likewise.
10327 * lra-lives.c (process_bb_lives): Likewise.
10328 * lra.c (new_insn_reg): Remove clobber_high parameter.
10329 (collect_non_operand_hard_regs): Likewise. Update call to new
10330 insn_reg. Remove CLOBBER_HIGH handling.
10331 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10332 to collect_non_operand_hard_regs.
10333 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10334 Update call to new_insn_reg.
10335 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10336 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10337 (move2add_note_store): Likewise.
10338 * print-rtl.c (print_pattern): Likewise.
10339 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10340 (if_test_bypass_p): Likewise.
10341 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10342 * reginfo.c (reg_scan_mark_refs): Likewise.
10343 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10344 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10345 (forget_old_reloads_1): Likewise.
10346 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10347 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10348 (dbr_schedule): Likewise.
10349 * resource.c (update_live_status, mark_referenced_resources)
10350 (mark_set_resources): Likewise.
10351 * rtl.c (copy_rtx): Likewise.
10352 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10353 (note_pattern_stores): Likewise.
10354 (reg_is_clobbered_by_clobber_high): Delete.
10355 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10356 CLOBBER_HIGH handling.
10357
10358 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10359
10360 PR target/91452
10361 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10362 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10363 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10364 Handle ARM_PCS_TLSDESC.
10365 (aarch64_tlsdesc_abi_id): New function.
10366 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10367 rtx instead of a list of clobbers and clobber_highs.
10368 (tlsdesc_small_<mode>): Update accordingly.
10369
10370 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10371
10372 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10373 extra callee_abi argument.
10374 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10375 Insert a CALLEE_ABI unspec into the call pattern as the second
10376 element in the PARALLEL.
10377 (aarch64_simd_call_p): Delete.
10378 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10379 the new CALLEE_ABI element of the PARALLEL.
10380 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10381 from the function type, if given.
10382 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10383 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10384 when passed the function_arg_info end marker.
10385 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10386 final argument of gen_sibcall.
10387 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10388 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10389 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10390 pattern.
10391 (call_value): Likewise operand 3.
10392 (sibcall): Likewise operand 2. Place the unspec before rather than
10393 after the return.
10394 (sibcall_value): Likewise operand 3.
10395 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10396 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10397 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10398 constraint strings.
10399 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10400
10401 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10402
10403 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10404 choose_hard_reg_mode.
10405 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10406
10407 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10408
10409 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10410 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10411 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10412
10413 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10414
10415 * diagnostic-show-locus.c (line_label::line_label): Initialize
10416 m_has_vbar.
10417 (line_label::comparator): Reverse the sort order by m_state_idx,
10418 so that when the list is walked backwards the labels appear in
10419 order of insertion into the rich_location.
10420 (line_label::m_has_vbar): New field.
10421 (layout::print_any_labels): When dealing with multiple labels at
10422 the same line and column, only print vertical bars for the one
10423 with the highest label_line.
10424 (selftest::test_one_liner_labels): Update test for multiple labels
10425 to expect the labels to be in the order of insertion into the
10426 rich_location. Add a test for many such labels, where the column
10427 numbers are out-of-order relative to the insertion order.
10428
10429 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10430
10431 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10432 (ix86_frame::expensive_count): Likewise.
10433 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10434 of use_fast_prologue_epilogue robust against incidental changes
10435 in function size.
10436
10437 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10438
10439 PR target/77918
10440 * config/s390/vector.md (vec_unordered<mode>): Call
10441 gen_vec_ordered<mode>.
10442
10443 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10444
10445 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10446 New pattern for ASRD.
10447 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10448 * internal-fn.def (IFN_DIV_POW2): New internal function.
10449 * optabs.def (sdiv_pow2_optab): New optab.
10450 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10451 Modify pattern to support new operation.
10452 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10453 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10454 Document new target selector.
10455
10456 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10457
10458 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10459 to test whether we're compiling a vector PCS function and to test
10460 whether the function needs to save a particular register.
10461 Remove the vector PCS handling of df_set_regs_ever_live.
10462 (aarch64_components_for_bb): Use crtl->abi to test whether
10463 the function needs to save a particular register.
10464 (aarch64_process_components): Use crtl->abi to test whether
10465 we're compiling a vector PCS function.
10466 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10467 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10468
10469 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10470
10471 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10472 Delete.
10473 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10474 whether the block calls a function that clobbers more registers
10475 than the current function is allowed to.
10476 (aarch64_use_simple_return_insn_p): Delete.
10477 * config/aarch64/aarch64.md (simple_return): Remove condition.
10478
10479 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10480
10481 * function-abi.h (function_abi_aggregator): New class.
10482 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10483 function.
10484 * ira.c (update_equiv_regs_prescan): New function. Call
10485 set_paradoxical_subreg here rather than...
10486 (update_equiv_regs): ...here.
10487 (ira): Call update_equiv_regs_prescan.
10488
10489 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10490
10491 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10492 IN_TARGET_CODE.
10493 (call_used_or_fixed_regs): Likewise.
10494 (call_used_or_fixed_reg_p): Likewise.
10495 * reginfo.c (regs_invalidated_by_call): New macro.
10496
10497 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10498
10499 * shrink-wrap.c: Include function-abi.h.
10500 (requires_stack_frame_p): Use crtl->abi to test whether the
10501 current function can use a register without saving it first.
10502
10503 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10504
10505 * sel-sched-ir.h (_def::crosses_call): Replace with...
10506 (_def::crossed_call_abis): ..this new field.
10507 (def_list_add): Take a mask of ABIs instead of a crosses_call
10508 boolean.
10509 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10510 of _def accordingly.
10511 * sel-sched.c: Include function-abi.h.
10512 (hard_regs_data::regs_for_call_clobbered): Delete.
10513 (reg_rename::crosses_call): Replace with...
10514 (reg_rename::crossed_call_abis): ...this new field.
10515 (fur_static_params::crosses_call): Replace with...
10516 (fur_static_params::crossed_call_abis): ...this new field.
10517 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10518 (init_hard_regs_data): Use crtl->abi to test which registers the
10519 current function would need to save before it uses them.
10520 (mark_unavailable_hard_regs): Update handling of call-clobbered
10521 registers, using call_clobbers_in_region to find out which registers
10522 might be call-clobbered (but without taking -fipa-ra into account
10523 for now). Remove separate handling of partially call-clobbered
10524 registers.
10525 (verify_target_availability): Use crossed_call_abis instead of
10526 crosses_call.
10527 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10528 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10529
10530 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10531
10532 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10533 function to test whether a register is fully or partly clobbered.
10534
10535 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10536
10537 * rtlanal.c: Include function-abi.h.
10538 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10539 function and clobbers_reg_p to test whether the register
10540 is call-clobbered.
10541 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10542 to get the ABI of the called function and full_reg_clobbers to
10543 get the set of fully call-clobbered registers. Warn about the
10544 pitfalls of using this mode.
10545
10546 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10547
10548 * reload.c: Include function-abi.h.
10549 (find_equiv_reg): Use clobbers_reg_p to test whether either
10550 of the equivalent registers is clobbered by a call.
10551 * reload1.c: Include function-abi.h.
10552 (reg_reloaded_call_part_clobbered): Delete.
10553 (reload): Use crtl->abi to test which registers would need
10554 saving in the prologue before use.
10555 (find_reg): Likewise.
10556 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10557 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10558 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10559
10560 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10561
10562 * regrename.h (du_head::call_clobber_mask): New field.
10563 (du_head::need_caller_save_reg): Replace with...
10564 (du_head::call_abis): ...this new field.
10565 * regrename.c: Include function-abi.h.
10566 (call_clobbered_in_chain_p): New function.
10567 (check_new_reg_p): Use crtl->abi when deciding whether a register
10568 is free for use after RA. Use call_clobbered_in_chain_p to test
10569 whether a candidate register would be clobbered by a call.
10570 (find_rename_reg): Don't add call-clobber conflicts here.
10571 (rename_chains): Check call_abis instead of need_caller_save_reg.
10572 (merge_chains): Update for changes to du_head.
10573 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10574 target. Record the ABI identifier in call_abis and the set of
10575 fully or partially clobbered registers in call_clobber_mask.
10576 Add fully-clobbered registers to hard_conflicts here rather
10577 than in find_rename_reg.
10578 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10579 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10580 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10581 function-abi.h.
10582 * config/c6x/c6x.c: Likewise.
10583
10584 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10585
10586 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10587 mode of the register when deciding whether it is no longer
10588 available after a call.
10589
10590 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10591
10592 * recog.c: Include function-abi.h.
10593 (peep2_find_free_register): Use crtl->abi when deciding whether
10594 a register is free for use after RA.
10595
10596 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10597
10598 * postreload-gcse.c: Include regs.h and function-abi.h.
10599 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10600 call insn target. Conservatively assume that partially-clobbered
10601 registers are altered.
10602
10603 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10604
10605 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10606 when deciding whether a register is free for use after RA.
10607 (reload_combine): Remove unnecessary use of fixed_reg_set.
10608 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10609 call insn target. Use reg_mode when testing whether a register
10610 is no longer available.
10611
10612 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10613
10614 * target.def (return_call_with_max_clobbers): Delete.
10615 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10616 * doc/tm.texi: Regenerate.
10617 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10618 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10619 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10620 (lra_reg::call_insn): Delete.
10621 * lra.c: Include function-abi.h.
10622 (initialize_lra_reg_info_element): Don't initialize the fields above.
10623 (lra): Use crtl->abi to test whether the current function needs to
10624 save a register in the prologue. Remove special pre-inheritance
10625 lra_create_live_ranges pass for flag_ipa_ra.
10626 * lra-assigns.c: Include function-abi.h
10627 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10628 function needs to save a register in the prologue.
10629 (lra_assign): Assert that registers aren't allocated to a
10630 conflicting register, rather than checking only for overlaps
10631 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10632 and for registers that are not live across a call.
10633 * lra-constraints.c (last_call_for_abi): New variable.
10634 (full_and_partial_call_clobbers): Likewise.
10635 (setup_next_usage_insn): Remove the register from
10636 full_and_partial_call_clobbers.
10637 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10638 whether the register needs a caller save.
10639 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10640 of call_used_or_fixed_regs.
10641 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10642 full_and_partial_call_clobbers.
10643 * lra-lives.c (check_pseudos_live_through_calls): Replace
10644 last_call_used_reg_set and call_insn arguments with an abi argument.
10645 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10646 as the set of conflicting registers.
10647 (calls_have_same_clobbers_p): Delete.
10648 (process_bb_lives): Track the ABI of the last call instead of an
10649 insn/HARD_REG_SET pair. Update calls to
10650 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10651 the set of registers that could be clobbered by an EH edge.
10652 Include partially-clobbered as well as fully-clobbered registers.
10653 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10654 * lra-remat.c: Include function-abi.h.
10655 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10656 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10657 registers and bitmap_view to combine them into dead_regs.
10658 (call_used_input_regno_present_p): Take a function_abi argument
10659 and use it to test whether a register is call-clobbered.
10660 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10661 call insn target. Update tje call to call_used_input_regno_present_p.
10662 (do_remat): Likewise.
10663 (lra_remat): Remove the initialization of call_used_regs_arr_len
10664 and call_used_regs_arr.
10665
10666 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10667
10668 * loop-iv.c: Include regs.h and function-abi.h.
10669 (simplify_using_initial_values): Use insn_callee_abi to get the
10670 ABI of the call insn target. Conservatively assume that
10671 partially-clobbered registers are altered.
10672
10673 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10674
10675 * function-abi.h (call_clobbers_in_region): Declare.
10676 (call_clobbered_in_region_p): New function.
10677 * function-abi.cc (call_clobbers_in_region): Likewise.
10678 * ira-int.h: Include function-abi.h.
10679 (ira_allocno::crossed_calls_abis): New field.
10680 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10681 (ira_need_caller_save_regs): New function.
10682 (ira_need_caller_save_p): Likewise.
10683 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10684 of call_used_or_fixed_regs.
10685 (do_reload): Use crtl->abi to test whether the current function
10686 needs to save a register in the prologue. Count registers that
10687 need to be saved rather than registers that don't.
10688 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10689 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10690 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10691 (propagate_some_info_from_allocno): Likewise.
10692 (copy_info_to_removed_store_destinations): Likewise.
10693 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10694 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10695 (ira_build): Use ira_need_caller_save_regs instead of
10696 call_used_or_fixed_regs.
10697 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10698 whether the current function would need to save a register
10699 before using it.
10700 (calculate_spill_cost): Likewise.
10701 (allocno_reload_assign): Use ira_need_caller_save_regs and
10702 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10703 * ira-conflicts.c (ira_build_conflicts): Use
10704 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10705 as the set of call-clobbered registers. Remove the
10706 call_used_or_fixed_regs mask from the calculation of
10707 temp_hard_reg_set and mask its use instead. Remove special
10708 handling of partially-clobbered registers.
10709 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10710 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10711 calculate the set of conflicting registers for calls that
10712 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10713 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10714 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10715 Use eh_edge_abi to calculate the set of registers that could
10716 be clobbered by an EH edge. Include partially-clobbered as
10717 well as fully-clobbered registers.
10718
10719 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10720
10721 * haifa-sched.c: Include function-abi.h.
10722 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10723 the function would need to save a register before using it.
10724
10725 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10726
10727 * gcse.c: Include function-abi.h.
10728 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10729 the call insn target. Invalidate partially call-clobbered
10730 registers as well as fully call-clobbered ones.
10731
10732 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10733
10734 * function.c (aggregate_value_p): Work out which ABI the
10735 function is using before testing which registers are at least
10736 partly preserved by a call.
10737
10738 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10739
10740 * early-remat.c: Include regs.h and function-abi.h.
10741 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10742 registers here.
10743 (early_remat::restrict_remat_for_unavail_regs): New function.
10744 (early_remat::restrict_remat_for_call): Likewise.
10745 (early_remat::process_block): Before calling emit_remat_insns
10746 for a previous call in the block, invalidate any candidates
10747 that would clobber call-preserved registers.
10748 (early_remat::emit_remat_insns_for_block): Likewise for the
10749 final call in a block. Do the same thing for live-in registers
10750 when calling emit_remat_insns at the head of a block.
10751
10752 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10753
10754 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10755 whether the current function needs to save at least part of a
10756 register before using it.
10757 (df_get_exit_block_use_set): Likewise for epilogue restores.
10758
10759 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10760
10761 * df-problems.c: Include regs.h and function-abi.h.
10762 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10763 sparse_invalidated_by_eh and dense_invalidated_by_call to
10764 dense_invalidated_by_eh.
10765 (df_print_bb_index): Update accordingly.
10766 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10767 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10768 that are clobbered by an EH edge. Clobber partially-clobbered
10769 registers as well as fully-clobbered ones.
10770 (df_md_confluence_n): Likewise.
10771 (df_rd_local_compute): Likewise. Update for changes to
10772 df_rd_problem_data.
10773 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10774 of registers that are clobbered by an EH edge. Includde partially-
10775 clobbered registers as well as fully-clobbered ones.
10776
10777 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10778
10779 * cselib.c (cselib_process_insn): If we know what mode a
10780 register was set in, check whether it is clobbered in that
10781 mode by a call. Only fall back to reg_raw_mode if that fails.
10782
10783 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10784
10785 * cse.c: Include regs.h and function-abi.h.
10786 (invalidate_for_call): Take the call insn as an argument.
10787 Use insn_callee_abi to get the ABI of the call and invalidate
10788 partially clobbered registers as well as fully clobbered ones.
10789 (cse_insn): Update call accordingly.
10790
10791 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10792
10793 * combine.c: Include function-abi.h.
10794 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10795 of the target of call insns. Invalidate partially-clobbered
10796 registers as well as fully-clobbered ones.
10797
10798 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10799
10800 * cfgloopanal.c: Include regs.h and function-abi.h.
10801 (init_set_costs): Use default_function_abi to test whether
10802 a general register is call-clobbered.
10803
10804 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10805
10806 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10807 instead of the call-clobbered sets.
10808
10809 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10810
10811 * caller-save.c (setup_save_areas): Remove redundant |s of
10812 fixed_reg_set.
10813 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10814 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10815 value is useful.
10816
10817 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10818
10819 * rtl.h (predefined_function_abi): Declare.
10820 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10821 instead of a boolean call_save flag.
10822 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10823 accordingly.
10824 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10825 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10826 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10827 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10828 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10829 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10830 * reginfo.c (init_reg_modes_target): Likewise.
10831 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10832 instead of a boolean call_save flag.
10833 * targhooks.c: Include function-abi.h.
10834 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10835 using eh_edge_abi to choose the mode.
10836
10837 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10838
10839 * target.def (hard_regno_call_part_clobbered): Take an ABI
10840 identifier instead of an rtx_insn.
10841 * doc/tm.texi: Regenerate.
10842 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10843 (hook_bool_uint_uint_mode_false): New function.
10844 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10845 (hook_bool_uint_uint_mode_false): New function.
10846 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10847 Take an ABI identifier instead of an rtx_insn.
10848 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10849 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10850 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10851 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10852 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10853 Likewise.
10854 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10855 * cselib.c: Include function-abi.h.
10856 (cselib_process_insn): Update call to
10857 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10858 to get the appropriate ABI identifier.
10859 * function-abi.cc (predefined_function_abi::initialize): Update call
10860 to targetm.hard_regno_call_part_clobbered.
10861 * ira-conflicts.c (ira_build_conflicts): Likewise.
10862 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10863 * lra-constraints.c: Include function-abi.h.
10864 (need_for_call_save_p): Update call to
10865 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10866 to get the appropriate ABI identifier.
10867 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10868 * regcprop.c (copyprop_hardreg_forward_1): Update call
10869 to targetm.hard_regno_call_part_clobbered.
10870 * reginfo.c (choose_hard_reg_mode): Likewise.
10871 * regrename.c (check_new_reg_p): Likewise.
10872 * reload.c (find_equiv_reg): Likewise.
10873 * reload1.c (emit_reload_insns): Likewise.
10874 * sched-deps.c: Include function-abi.h.
10875 (deps_analyze_insn): Update call to
10876 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10877 to get the appropriate ABI identifier.
10878 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10879 call to targetm.hard_regno_call_part_clobbered.
10880 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10881
10882 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10883
10884 * config/i386/i386.c: Include function-abi.h.
10885 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10886 if they preserve some 256-bit or 512-bit SSE registers.
10887
10888 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10889
10890 * target.def (insn_callee_abi): New hook.
10891 (remove_extra_call_preserved_regs): Delete.
10892 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10893 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10894 * doc/tm.texi: Regenerate.
10895 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10896 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10897 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10898 insn argument.
10899 (aarch64_remove_extra_call_preserved_regs): Delete.
10900 (aarch64_insn_callee_abi): New function.
10901 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10902 (TARGET_INSN_CALLEE_ABI): New macro.
10903 * rtl.h (get_call_fndecl): Declare.
10904 (cgraph_rtl_info): Fix formatting. Tweak comment for
10905 function_used_regs. Remove function_used_regs_valid.
10906 * rtlanal.c (get_call_fndecl): Moved from final.c
10907 * function-abi.h (insn_callee_abi): Declare.
10908 (target_function_abi_info): Mention insn_callee_abi.
10909 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10910 way to get_call_reg_set_usage did.
10911 (insn_callee_abi): New function.
10912 * regs.h (get_call_reg_set_usage): Delete.
10913 * final.c: Include function-abi.h.
10914 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10915 function_used_regs before the main loop rather than afterwards.
10916 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10917 if function_used_regs ends up not being useful.
10918 (get_call_fndecl): Move to rtlanal.c
10919 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10920 * caller-save.c: Include function-abi.h.
10921 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10922 instead of get_call_reg_set_usage.
10923 * cfgcleanup.c: Include function-abi.h.
10924 (old_insns_match_p): Use insn_callee_abi instead of
10925 get_call_reg_set_usage.
10926 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10927 a tree.
10928 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10929 function_used_regs.
10930 * df-scan.c: Include function-abi.h.
10931 (df_get_call_refs): Use insn_callee_abi instead of
10932 get_call_reg_set_usage.
10933 * ira-lives.c: Include function-abi.h.
10934 (process_bb_node_lives): Use insn_callee_abi instead of
10935 get_call_reg_set_usage.
10936 * lra-lives.c: Include function-abi.h.
10937 (process_bb_lives): Use insn_callee_abi instead of
10938 get_call_reg_set_usage.
10939 * postreload.c: Include function-abi.h.
10940 (reload_combine): Use insn_callee_abi instead of
10941 get_call_reg_set_usage.
10942 * regcprop.c: Include function-abi.h.
10943 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10944 get_call_reg_set_usage.
10945 * resource.c: Include function-abi.h.
10946 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10947 instead of get_call_reg_set_usage.
10948 * var-tracking.c: Include function-abi.h.
10949 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10950 get_call_reg_set_usage.
10951
10952 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10953
10954 * target.def (fntype_abi): New target hook.
10955 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10956 * doc/tm.texi: Regenerate.
10957 * target.h (predefined_function_abi): Declare.
10958 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10959 if defined.
10960 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10961 * config/aarch64/aarch64.c: Include function-abi.h.
10962 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10963 (TARGET_FNTYPE_ABI): Define.
10964
10965 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10966
10967 * Makefile.in (OBJS): Add function-abi.o.
10968 (GTFILES): Add function-abi.h.
10969 * function-abi.cc: New file.
10970 * function-abi.h: Likewise.
10971 * emit-rtl.h (rtl_data::abi): New field.
10972 * function.c: Include function-abi.h.
10973 (prepare_function_start): Initialize crtl->abi.
10974 * read-rtl-function.c: Include regs.h and function-abi.h.
10975 (read_rtl_function_body): Initialize crtl->abi.
10976 (read_rtl_function_body_from_file_range): Likewise.
10977 * reginfo.c: Include function-abi.h.
10978 (init_reg_sets_1): Initialize default_function_abi.
10979 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10980 when making a register global.
10981 * target-globals.h (this_target_function_abi_info): Declare.
10982 (target_globals::function_abi_info): New field.
10983 (restore_target_globals): Copy it.
10984 * target-globals.c: Include function-abi.h.
10985 (default_target_globals): Initialize the function_abi_info field.
10986 (target_globals): Allocate it.
10987 (save_target_globals): Free it.
10988
10989 2019-09-30 Nick Clifton <nickc@redhat.com>
10990
10991 PR target/85978
10992 * config/frv/frv.c (frv_register_move_cost): Add break statements
10993 to avoid falling through to the wrong cases. Tidy code.
10994
10995 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10996
10997 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10998 For multi-registers modes, test how big each register part is.
10999
11000 2019-09-30 Nick Clifton <nickc@redhat.com>
11001
11002 PR target/59205
11003 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11004 (TARGET_ASM_SELECT_SECTION): Remove definition.
11005 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11006
11007 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11008
11009 * emit-rtl.c (init_raw_REG): New function.
11010 (gen_raw_REG): Use init_raw_REG.
11011 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11012 macros.
11013 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11014 * rtl.h (rtx_init): New function.
11015 (rtx_alloca): New function.
11016 (init_raw_REG): New function.
11017 (alloca_raw_REG): New macro.
11018
11019 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11020
11021 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11022 (pcrel_local_address): Replace pcrel_address predicate, use the
11023 new function address_to_insn_form.
11024 (pcrel_external_address): Replace with new implementation using
11025 address_to_insn_form..
11026 (prefixed_mem_operand): Delete predicate which is now unused.
11027 (pcrel_external_mem_operand): Delete predicate which is now
11028 unused.
11029 * config/rs6000/rs6000-protos.h (enum insn_form): New
11030 enumeration.
11031 (enum non_prefixed_form): New enumeration.
11032 (address_to_insn_form): New declaration.
11033 (prefixed_load_p): New declaration.
11034 (prefixed_store_p): New declaration.
11035 (prefixed_paddi_p): New declaration.
11036 (rs6000_asm_output_opcode): New declaration.
11037 (rs6000_final_prescan_insn): Move declaration and update calling
11038 signature.
11039 (address_is_prefixed): New helper inline function.
11040 * config/rs6000/rs6000.c(print_operand_address): Check for either
11041 PC-relative local symbols or PC-relative external symbols.
11042 (rs6000_emit_move): Support loading PC-relative addresses.
11043 (mode_supports_prefixed_address_p): Delete, no longer used.
11044 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11045 (address_to_insn_form): New function to decode an address format.
11046 (reg_to_non_prefixed): New function to identify what the
11047 non-prefixed memory instruction format is for a register.
11048 (prefixed_load_p): New function to identify prefixed loads.
11049 (prefixed_store_p): New function to identify prefixed stores.
11050 (prefixed_paddi_p): New function to identify prefixed load
11051 immediates.
11052 (next_insn_prefixed_p): New static state variable.
11053 (rs6000_final_prescan_insn): New function to determine if an insn
11054 uses a prefixed instruction.
11055 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11056 prefixed instruction.
11057 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11058 (ASM_OUTPUT_OPCODE): New target hook.
11059 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11060 prefixed instructions.
11061 (prefixed_length): New insn attribute for the size of prefixed
11062 instructions.
11063 (non_prefixed_length): New insn attribute for the size of
11064 non-prefixed instructions.
11065 (pcrel_local_addr): New insn to load up a local PC-relative
11066 address.
11067 (pcrel_extern_addr): New insn to load up an external PC-relative
11068 address.
11069 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11070 GPR and loading a 128-bit floating point type to a GPR.
11071
11072 2019-09-30 Richard Biener <rguenther@suse.de>
11073
11074 * gimple.c (gimple_get_lhs): For PHIs return the result.
11075 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11076 SLP instance as argument.
11077 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11078 double-reduction PHIs with vectorizable_lc_phi.
11079 (vect_analyze_loop_operations): Adjust.
11080 (vect_create_epilog_for_reduction): Remove all code not dealing
11081 with reduction LC PHI or epilogue generation.
11082 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11083 for live stmts of reductions.
11084 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11085 do not handle defs that are not vect_internal_def.
11086 (can_vectorize_live_stmts): Adjust.
11087 (vect_analyze_stmt): When the vectorized stmt defined a value
11088 used on backedges adjust the backedge uses of vectorized PHIs.
11089
11090 2019-09-30 Martin Jambor <mjambor@suse.cz>
11091
11092 PR ipa/91853
11093 * tree-inline.c (force_value_to_type): New function.
11094 (setup_one_parameter): Use force_value_to_type to convert type.
11095 * tree-inline.c (force_value_to_type): Declare.
11096 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11097 with register type mismatches.
11098
11099 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11100
11101 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11102 32-bit PowerPC.
11103 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11104 * config/rs6000/t-freebsd64: Make use of the above define and build
11105 the 32-bit libraries with secure-plt.
11106
11107 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11108
11109 PR target/91931
11110 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11111 gen_int_mode instead of GEN_INT.
11112
11113 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11114
11115 * config/darwin.c (gen_macho_low): Amend to include the mode
11116 argument.
11117 (machopic_indirect_data_reference): Amend gen_macho_low call
11118 to include mode argument
11119 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11120 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11121 the macho_high expander and two define_insn entries.
11122
11123 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11124
11125 PR bootstrap/90543
11126 * optc-save-gen.awk: Fix up printing string option differences.
11127
11128 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11129
11130 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11131 vec_perm cost to 1 for non-Power7 VSX architectures.
11132
11133 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11134
11135 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11136 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11137 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11138
11139 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11140
11141 * config/darwin.c (gen_macho_high): Amend to include the mode
11142 argument.
11143 (machopic_indirect_data_reference): Amend gen_macho_high call
11144 to include mode argument.
11145 (machopic_legitimize_pic_address): Likewise.
11146 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11147 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11148 the macho_high expander and two define_insn entries.
11149
11150 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11151
11152 PR target/86805
11153 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11154
11155 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11156
11157 PR target/80672
11158 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11159 std::string::compare instead of std::string::find.
11160
11161 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11162
11163 * configure: Regenerate.
11164
11165 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11166
11167 PR middle-end/91920
11168 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11169 variables as shared.
11170
11171 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11172
11173 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11174 replaces the expander and two define_insn entries.
11175 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11176 call.
11177 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11178
11179 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11180
11181 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11182 (fibonacci_heap::nodes): Likewise.
11183 (fibonacci_heap::min_key): Likewise.
11184 (fibonacci_heap::min): Likewise.
11185
11186 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11187
11188 * cgraph.c (cgraph_node::get_fun): Make const.
11189 * cgraph.h (cgraph_node::get_fun): Likewise.
11190
11191 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11192
11193 PR target/91919
11194 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11195 of SImode MULT.
11196
11197 2019-09-27 Richard Biener <rguenther@suse.de>
11198
11199 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11200 (STMT_VINFO_REDUC_FN): Likewise.
11201 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11202 STMT_VINFO_REDUC_FN.
11203 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11204 for condition reductions.
11205 (vect_create_epilog_for_reduction): Compute all required state
11206 from the stmt to be vectorized.
11207 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11208 invocation and remove then dead code. For single def-use chains
11209 record only a single vector stmt.
11210
11211 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11212
11213 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11214 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11215 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11216 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11217 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11218 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11219 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11220 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11221 (aarch64_general_builtin_rsqrt): Declare.
11222 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11223 New function.
11224 (aarch64_mangle_builtin_type): Rename to...
11225 (aarch64_general_mangle_builtin_type): ...this.
11226 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11227 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11228 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11229 aarch64_general_add_builtin instead of add_builtin_function.
11230 (aarch64_init_builtins): Rename to...
11231 (aarch64_general_init_builtins): ...this. Use
11232 aarch64_general_add_builtin instead of add_builtin_function.
11233 (aarch64_builtin_decl): Rename to...
11234 (aarch64_general_builtin_decl): ...this and remove the unused
11235 arguments.
11236 (aarch64_expand_builtin): Rename to...
11237 (aarch64_general_expand_builtin): ...this and remove the unused
11238 arguments.
11239 (aarch64_builtin_rsqrt): Rename to...
11240 (aarch64_general_builtin_rsqrt): ...this.
11241 (aarch64_fold_builtin): Rename to...
11242 (aarch64_general_fold_builtin): ...this. Take the function subcode
11243 and return type as arguments. Remove the "ignored" argument.
11244 (aarch64_gimple_fold_builtin): Rename to...
11245 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11246 subcode and gcall as arguments, and return the new function call.
11247 * config/aarch64/aarch64.c (aarch64_init_builtins)
11248 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11249 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11250 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11251 instead of aarch64_builtin_rsqrt.
11252 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11253 instead of aarch64_mangle_builtin_type.
11254
11255 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11256
11257 * target.def (check_builtin_call): New target hook.
11258 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11259 * doc/tm.texi: Regenerate.
11260
11261 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11262
11263 PR tree-optimization/91909
11264 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11265 reduc_index parameter. When handling COND_REDUCTION, make sure
11266 that the reduction phi operand is in the correct arm of the
11267 VEC_COND_EXPR.
11268 (vectorizable_reduction): Pass reduc_index to the above.
11269
11270 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11271
11272 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11273 New combine pattern.
11274
11275 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11276
11277 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11278 loop instruction into new basic block before the loop when basic
11279 block that precedes the loop is empty.
11280
11281 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11282
11283 * function.c (gimplify_parameters): Use build_clobber function.
11284 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11285 * tree-inline.c (expand_call_inline): Likewise.
11286 * tree-sra.c (clobber_subtree): Likewise.
11287 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11288 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11289 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11290 lower_omp_target): Likewise.
11291 * omp-expand.c (expand_omp_for_generic): Likewise.
11292 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11293
11294 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11295
11296 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11297 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11298 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11299 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11300 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11301 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11302 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11303 LD_ELEMREV_V16QI): Use the PURE attribute.
11304
11305 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11306
11307 * config/rs6000/darwin.md: Replace the expanders for
11308 load_macho_picbase and reload_macho_picbase with use of '@'
11309 and <mode> in their respective define_insns.
11310 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11311 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11312 Pmode to gen_load_macho_picbase.
11313 * config/rs6000/rs6000.md: Likewise.
11314
11315 2019-09-25 Richard Biener <rguenther@suse.de>
11316
11317 PR tree-optimization/91896
11318 * tree-vect-loop.c (vectorizable_reduction): The single
11319 def-use cycle optimization cannot apply when there's more
11320 than one pattern stmt involved.
11321
11322 2019-09-26 Richard Biener <rguenther@suse.de>
11323
11324 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11325 loop-closed PHIs that are vect_internal_def.
11326 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11327 Simplify.
11328 (vectorizable_lc_phi): New.
11329 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11330 (vect_transform_stmt): Likewise.
11331 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11332 (vectorizable_lc_phi): Declare.
11333
11334 2019-09-26 Richard Biener <rguenther@suse.de>
11335
11336 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11337 vectorizable_reduction for vect_double_reduction_def.
11338 (vect_transform_loop): Likewise.
11339 (vect_create_epilog_for_reduction): Move double-reduction
11340 PHI creation and preheader argument setting of PHIs ...
11341 (vectorizable_reduction): ... here. Also process
11342 vect_double_reduction_def PHIs, creating the vectorized
11343 PHI nodes, remembering the scalar adjustment computed for
11344 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11345 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11346 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11347 Initialize STMT_VINFO_REDUC_CODE.
11348 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11349 (_stmt_vec_info::reduc_code): Likewise.
11350 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11351 (STMT_VINFO_REDUC_CODE): Likewise.
11352
11353 2019-09-26 Matt Turner <mattst88@gmail.com>
11354
11355 PR driver/69471
11356 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11357 (mtune=): Add Negative(mtune=).
11358 (mcpu=): Add Negative(mcpu=).
11359 * config/arm/arm.opt: Likewise.
11360
11361 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11362
11363 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11364 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11365 Define.
11366 * config/arm/arm_acle.h: Define builtins for the above.
11367 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11368 (simd32_op): Handle the above.
11369 * config/arm/unspecs.md: Define unspecs for the above.
11370
11371 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11372
11373 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11374 (arm_<sup>xtb16): Likewise.
11375 (arm_usada8): Likewise.
11376 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11377 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11378 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11379 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11380 __sxtb16, __uxtab16, __uxtb16): Define.
11381 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11382 * config/arm/unspecs.md: Define unspecs for the above.
11383 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11384 (USXTB16): Likewise.
11385 (simd32_op): New int_attribute.
11386 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11387 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11388
11389 2019-09-26 Martin Jambor <mjambor@suse.cz>
11390
11391 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11392 internal_error.
11393
11394 2019-09-26 Martin Jambor <mjambor@suse.cz>
11395
11396 * ipa-sra.c (process_scan_results): Fix continue condition.
11397
11398 2019-09-26 Martin Liska <mliska@suse.cz>
11399
11400 PR tree-optimization/91885
11401 * tree-vectorizer.c (try_vectorize_loop_1): Add
11402 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11403
11404 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11405
11406 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11407 aarch64_plus_immediate rather than aarch64_uimm12_shift
11408 to test for valid PLUS immediates.
11409
11410 2019-09-25 Martin Jambor <mjambor@suse.cz>
11411
11412 * tree-sra.c (no_accesses_p): Remove.
11413 (no_accesses_representant): Likewise.
11414
11415 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11416
11417 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11418 consistenly.
11419 (vaba_s16): Likewise.
11420 (vaba_s32): Likewise.
11421 (vaba_u8): Likewise.
11422 (vaba_u16): Likewise.
11423 (vaba_u32): Likewise.
11424 (vabal_high_s8): Likewise.
11425 (vabal_high_s16): Likewise.
11426 (vabal_high_s32): Likewise.
11427 (vabal_high_u8): Likewise.
11428 (vabal_high_u16): Likewise.
11429 (vabal_high_u32): Likewise.
11430 (vabal_s8): Likewise.
11431 (vabal_s16): Likewise.
11432 (vabal_s32): Likewise.
11433 (vabal_u8): Likewise.
11434 (vabal_u16): Likewise.
11435 (vabal_u32): Likewise.
11436 (vabaq_s8): Likewise.
11437 (vabaq_s16): Likewise.
11438 (vabaq_s32): Likewise.
11439 (vabaq_u8): Likewise.
11440 (vabaq_u16): Likewise.
11441 (vabaq_u32): Likewise.
11442 (vabd_s8): Likewise.
11443 (vabd_s16): Likewise.
11444 (vabd_s32): Likewise.
11445 (vabd_u8): Likewise.
11446 (vabd_u16): Likewise.
11447 (vabd_u32): Likewise.
11448 (vabdl_high_s8): Likewise.
11449 (vabdl_high_s16): Likewise.
11450 (vabdl_high_s32): Likewise.
11451 (vabdl_high_u8): Likewise.
11452 (vabdl_high_u16): Likewise.
11453 (vabdl_high_u32): Likewise.
11454 (vabdl_s8): Likewise.
11455 (vabdl_s16): Likewise.
11456 (vabdl_s32): Likewise.
11457 (vabdl_u8): Likewise.
11458 (vabdl_u16): Likewise.
11459 (vabdl_u32): Likewise.
11460 (vabdq_s8): Likewise.
11461 (vabdq_s16): Likewise.
11462 (vabdq_s32): Likewise.
11463 (vabdq_u8): Likewise.
11464 (vabdq_u16): Likewise.
11465 (vabdq_u32): Likewise.
11466 (vaddlv_s8): Likewise.
11467 (vaddlv_s16): Likewise.
11468 (vaddlv_u8): Likewise.
11469 (vaddlv_u16): Likewise.
11470 (vaddlvq_s8): Likewise.
11471 (vaddlvq_s16): Likewise.
11472 (vaddlvq_s32): Likewise.
11473 (vaddlvq_u8): Likewise.
11474 (vaddlvq_u16): Likewise.
11475 (vaddlvq_u32): Likewise.
11476 (vcvtx_f32_f64): Likewise.
11477 (vcvtx_high_f32_f64): Likewise.
11478 (vcvtxd_f32_f64): Likewise.
11479 (vmla_n_f32): Likewise.
11480 (vmla_n_s16): Likewise.
11481 (vmla_n_s32): Likewise.
11482 (vmla_n_u16): Likewise.
11483 (vmla_n_u32): Likewise.
11484 (vmla_s8): Likewise.
11485 (vmla_s16): Likewise.
11486 (vmla_s32): Likewise.
11487 (vmla_u8): Likewise.
11488 (vmla_u16): Likewise.
11489 (vmla_u32): Likewise.
11490 (vmlal_high_n_s16): Likewise.
11491 (vmlal_high_n_s32): Likewise.
11492 (vmlal_high_n_u16): Likewise.
11493 (vmlal_high_n_u32): Likewise.
11494 (vmlal_high_s8): Likewise.
11495 (vmlal_high_s16): Likewise.
11496 (vmlal_high_s32): Likewise.
11497 (vmlal_high_u8): Likewise.
11498 (vmlal_high_u16): Likewise.
11499 (vmlal_high_u32): Likewise.
11500 (vmlal_n_s16): Likewise.
11501 (vmlal_n_s32): Likewise.
11502 (vmlal_n_u16): Likewise.
11503 (vmlal_n_u32): Likewise.
11504 (vmlal_s8): Likewise.
11505 (vmlal_s16): Likewise.
11506 (vmlal_s32): Likewise.
11507 (vmlal_u8): Likewise.
11508 (vmlal_u16): Likewise.
11509 (vmlal_u32): Likewise.
11510 (vmlaq_n_f32): Likewise.
11511 (vmlaq_n_s16): Likewise.
11512 (vmlaq_n_s32): Likewise.
11513 (vmlaq_n_u16): Likewise.
11514 (vmlaq_n_u32): Likewise.
11515 (vmlaq_s8): Likewise.
11516 (vmlaq_s16): Likewise.
11517 (vmlaq_s32): Likewise.
11518 (vmlaq_u8): Likewise.
11519 (vmlaq_u16): Likewise.
11520 (vmlaq_u32): Likewise.
11521 (vmls_n_f32): Likewise.
11522 (vmls_n_s16): Likewise.
11523 (vmls_n_s32): Likewise.
11524 (vmls_n_u16): Likewise.
11525 (vmls_n_u32): Likewise.
11526 (vmls_s8): Likewise.
11527 (vmls_s16): Likewise.
11528 (vmls_s32): Likewise.
11529 (vmls_u8): Likewise.
11530 (vmls_u16): Likewise.
11531 (vmls_u32): Likewise.
11532 (vmlsl_high_n_s16): Likewise.
11533 (vmlsl_high_n_s32): Likewise.
11534 (vmlsl_high_n_u16): Likewise.
11535 (vmlsl_high_n_u32): Likewise.
11536 (vmlsl_high_s8): Likewise.
11537 (vmlsl_high_s16): Likewise.
11538 (vmlsl_high_s32): Likewise.
11539 (vmlsl_high_u8): Likewise.
11540 (vmlsl_high_u16): Likewise.
11541 (vmlsl_high_u32): Likewise.
11542 (vmlsl_n_s16): Likewise.
11543 (vmlsl_n_s32): Likewise.
11544 (vmlsl_n_u16): Likewise.
11545 (vmlsl_n_u32): Likewise.
11546 (vmlsl_s8): Likewise.
11547 (vmlsl_s16): Likewise.
11548 (vmlsl_s32): Likewise.
11549 (vmlsl_u8): Likewise.
11550 (vmlsl_u16): Likewise.
11551 (vmlsl_u32): Likewise.
11552 (vmlsq_n_f32): Likewise.
11553 (vmlsq_n_s16): Likewise.
11554 (vmlsq_n_s32): Likewise.
11555 (vmlsq_n_u16): Likewise.
11556 (vmlsq_n_u32): Likewise.
11557 (vmlsq_s8): Likewise.
11558 (vmlsq_s16): Likewise.
11559 (vmlsq_s32): Likewise.
11560 (vmlsq_u8): Likewise.
11561 (vmlsq_u16): Likewise.
11562 (vmlsq_u32): Likewise.
11563 (vmovl_high_s8): Likewise.
11564 (vmovl_high_s16): Likewise.
11565 (vmovl_high_s32): Likewise.
11566 (vmovl_high_u8): Likewise.
11567 (vmovl_high_u16): Likewise.
11568 (vmovl_high_u32): Likewise.
11569 (vmovl_s8): Likewise.
11570 (vmovl_s16): Likewise.
11571 (vmovl_s32): Likewise.
11572 (vmovl_u8): Likewise.
11573 (vmovl_u16): Likewise.
11574 (vmovl_u32): Likewise.
11575 (vmovn_high_s16): Likewise.
11576 (vmovn_high_s32): Likewise.
11577 (vmovn_high_s64): Likewise.
11578 (vmovn_high_u16): Likewise.
11579 (vmovn_high_u32): Likewise.
11580 (vmovn_high_u64): Likewise.
11581 (vmovn_s16): Likewise.
11582 (vmovn_s32): Likewise.
11583 (vmovn_s64): Likewise.
11584 (vmovn_u16): Likewise.
11585 (vmovn_u32): Likewise.
11586 (vmovn_u64): Likewise.
11587 (vmull_high_n_s16): Likewise.
11588 (vmull_high_n_s32): Likewise.
11589 (vmull_high_n_u16): Likewise.
11590 (vmull_high_n_u32): Likewise.
11591 (vmull_high_p8): Likewise.
11592 (vmull_high_s8): Likewise.
11593 (vmull_high_s16): Likewise.
11594 (vmull_high_s32): Likewise.
11595 (vmull_high_u8): Likewise.
11596 (vmull_high_u16): Likewise.
11597 (vmull_high_u32): Likewise.
11598 (vmull_n_s16): Likewise.
11599 (vmull_n_s32): Likewise.
11600 (vmull_n_u16): Likewise.
11601 (vmull_n_u32): Likewise.
11602 (vmull_p8): Likewise.
11603 (vmull_s8): Likewise.
11604 (vmull_s16): Likewise.
11605 (vmull_s32): Likewise.
11606 (vmull_u8): Likewise.
11607 (vmull_u16): Likewise.
11608 (vmull_u32): Likewise.
11609 (vpadal_s8): Likewise.
11610 (vpadal_s16): Likewise.
11611 (vpadal_s32): Likewise.
11612 (vpadal_u8): Likewise.
11613 (vpadal_u16): Likewise.
11614 (vpadal_u32): Likewise.
11615 (vpadalq_s8): Likewise.
11616 (vpadalq_s16): Likewise.
11617 (vpadalq_s32): Likewise.
11618 (vpadalq_u8): Likewise.
11619 (vpadalq_u16): Likewise.
11620 (vpadalq_u32): Likewise.
11621 (vpaddl_s8): Likewise.
11622 (vpaddl_s16): Likewise.
11623 (vpaddl_s32): Likewise.
11624 (vpaddl_u8): Likewise.
11625 (vpaddl_u16): Likewise.
11626 (vpaddl_u32): Likewise.
11627 (vpaddlq_s8): Likewise.
11628 (vpaddlq_s16): Likewise.
11629 (vpaddlq_s32): Likewise.
11630 (vpaddlq_u8): Likewise.
11631 (vpaddlq_u16): Likewise.
11632 (vpaddlq_u32): Likewise.
11633 (vpaddq_s8): Likewise.
11634 (vpaddq_s16): Likewise.
11635 (vpaddq_s32): Likewise.
11636 (vpaddq_s64): Likewise.
11637 (vpaddq_u8): Likewise.
11638 (vpaddq_u16): Likewise.
11639 (vpaddq_u32): Likewise.
11640 (vpaddq_u64): Likewise.
11641 (vqdmulh_n_s16): Likewise.
11642 (vqdmulh_n_s32): Likewise.
11643 (vqdmulhq_n_s16): Likewise.
11644 (vqdmulhq_n_s32): Likewise.
11645 (vqmovn_high_s16): Likewise.
11646 (vqmovn_high_s32): Likewise.
11647 (vqmovn_high_s64): Likewise.
11648 (vqmovn_high_u16): Likewise.
11649 (vqmovn_high_u32): Likewise.
11650 (vqmovn_high_u64): Likewise.
11651 (vqmovun_high_s16): Likewise.
11652 (vqmovun_high_s32): Likewise.
11653 (vqmovun_high_s64): Likewise.
11654 (vqrdmulh_n_s16): Likewise.
11655 (vqrdmulh_n_s32): Likewise.
11656 (vqrdmulhq_n_s16): Likewise.
11657 (vqrdmulhq_n_s32): Likewise.
11658 (vrsqrte_u32): Likewise.
11659 (vrsqrteq_u32): Likewise.
11660 (vtst_p8): Likewise.
11661 (vtst_p16): Likewise.
11662 (vtst_p64): Likewise.
11663 (vtstq_p8): Likewise.
11664 (vtstq_p16): Likewise.
11665 (vtstq_p64): Likewise.
11666 (vaddlv_s32): Likewise.
11667 (vaddlv_u32): Likewise.
11668 (vqtbl1_p8): Likewise.
11669 (vqtbl1_s8): Likewise.
11670 (vqtbl1_u8): Likewise.
11671 (vqtbl1q_p8): Likewise.
11672 (vqtbl1q_s8): Likewise.
11673 (vqtbl1q_u8): Likewise.
11674 (vqtbx1_s8): Likewise.
11675 (vqtbx1_u8): Likewise.
11676 (vqtbx1_p8): Likewise.
11677 (vqtbx1q_s8): Likewise.
11678 (vqtbx1q_u8): Likewise.
11679 (vqtbx1q_p8): Likewise.
11680 (vtbl1_s8): Likewise.
11681 (vtbl1_u8): Likewise.
11682 (vtbl1_p8): Likewise.
11683 (vtbl2_s8): Likewise.
11684 (vtbl2_u8): Likewise.
11685 (vtbl2_p8): Likewise.
11686 (vtbl3_s8): Likewise.
11687 (vtbl3_u8): Likewise.
11688 (vtbl3_p8): Likewise.
11689 (vtbl4_s8): Likewise.
11690 (vtbl4_u8): Likewise.
11691 (vtbl4_p8): Likewise.
11692 (vtbx2_s8): Likewise.
11693 (vtbx2_u8): Likewise.
11694 (vtbx2_p8): Likewise.
11695 (vld1_f32): Likewise.
11696 (vld1_f64): Likewise.
11697 (vld1_p8): Likewise.
11698 (vld1_p16): Likewise.
11699 (vld1_p64): Likewise.
11700 (vld1_s8): Likewise.
11701 (vld1_s16): Likewise.
11702 (vld1_s32): Likewise.
11703 (vld1_s64): Likewise.
11704 (vld1_u8): Likewise.
11705 (vld1_u16): Likewise.
11706 (vld1_u32): Likewise.
11707 (vld1_u64): Likewise.
11708 (vld1q_f32): Likewise.
11709 (vld1q_f64): Likewise.
11710 (vld1q_p8): Likewise.
11711 (vld1q_p16): Likewise.
11712 (vld1q_p64): Likewise.
11713 (vld1q_s8): Likewise.
11714 (vld1q_s16): Likewise.
11715 (vld1q_s32): Likewise.
11716 (vld1q_s64): Likewise.
11717 (vld1q_u8): Likewise.
11718 (vld1q_u16): Likewise.
11719 (vld1q_u32): Likewise.
11720 (vld1q_u64): Likewise.
11721 (vpmax_s8): Likewise.
11722 (vpmax_s16): Likewise.
11723 (vpmax_s32): Likewise.
11724 (vpmax_u8): Likewise.
11725 (vpmax_u16): Likewise.
11726 (vpmax_u32): Likewise.
11727 (vpmaxq_s8): Likewise.
11728 (vpmaxq_s16): Likewise.
11729 (vpmaxq_s32): Likewise.
11730 (vpmaxq_u8): Likewise.
11731 (vpmaxq_u16): Likewise.
11732 (vpmaxq_u32): Likewise.
11733 (vpmax_f32): Likewise.
11734 (vpmaxq_f32): Likewise.
11735 (vpmaxq_f64): Likewise.
11736 (vpmaxqd_f64): Likewise.
11737 (vpmaxs_f32): Likewise.
11738 (vpmaxnm_f32): Likewise.
11739 (vpmaxnmq_f32): Likewise.
11740 (vpmaxnmq_f64): Likewise.
11741 (vpmaxnmqd_f64): Likewise.
11742 (vpmaxnms_f32): Likewise.
11743 (vpmin_s8): Likewise.
11744 (vpmin_s16): Likewise.
11745 (vpmin_s32): Likewise.
11746 (vpmin_u8): Likewise.
11747 (vpmin_u16): Likewise.
11748 (vpmin_u32): Likewise.
11749 (vpminq_s8): Likewise.
11750 (vpminq_s16): Likewise.
11751 (vpminq_s32): Likewise.
11752 (vpminq_u8): Likewise.
11753 (vpminq_u16): Likewise.
11754 (vpminq_u32): Likewise.
11755 (vpmin_f32): Likewise.
11756 (vpminq_f32): Likewise.
11757 (vpminq_f64): Likewise.
11758 (vpminqd_f64): Likewise.
11759 (vpmins_f32): Likewise.
11760 (vpminnm_f32): Likewise.
11761 (vpminnmq_f32): Likewise.
11762 (vpminnmq_f64): Likewise.
11763 (vpminnmqd_f64): Likewise.
11764 (vpminnms_f32): Likewise.
11765 (vmla_f32): Likewise.
11766 (vmlaq_f32): Likewise.
11767 (vmlaq_f64): Likewise.
11768 (vmls_f32): Likewise.
11769 (vmlsq_f32): Likewise.
11770 (vmlsq_f64): Likewise.
11771 (vqtbl2_s8): Likewise.
11772 (vqtbl2_u8): Likewise.
11773 (vqtbl2_p8): Likewise.
11774 (vqtbl2q_s8): Likewise.
11775 (vqtbl2q_u8): Likewise.
11776 (vqtbl2q_p8): Likewise.
11777 (vqtbl3_s8): Likewise.
11778 (vqtbl3_u8): Likewise.
11779 (vqtbl3_p8): Likewise.
11780 (vqtbl3q_s8): Likewise.
11781 (vqtbl3q_u8): Likewise.
11782 (vqtbl3q_p8): Likewise.
11783 (vqtbl4_s8): Likewise.
11784 (vqtbl4_u8): Likewise.
11785 (vqtbl4_p8): Likewise.
11786 (vqtbl4q_s8): Likewise.
11787 (vqtbl4q_u8): Likewise.
11788 (vqtbl4q_p8): Likewise.
11789 (vqtbx2_s8): Likewise.
11790 (vqtbx2_u8): Likewise.
11791 (vqtbx2_p8): Likewise.
11792 (vqtbx2q_s8): Likewise.
11793 (vqtbx2q_u8): Likewise.
11794 (vqtbx2q_p8): Likewise.
11795 (vqtbx3_s8): Likewise.
11796 (vqtbx3_u8): Likewise.
11797 (vqtbx3_p8): Likewise.
11798 (vqtbx3q_s8): Likewise.
11799 (vqtbx3q_u8): Likewise.
11800 (vqtbx3q_p8): Likewise.
11801 (vqtbx4_s8): Likewise.
11802 (vqtbx4_u8): Likewise.
11803 (vqtbx4_p8): Likewise.
11804 (vqtbx4q_s8): Likewise.
11805 (vqtbx4q_u8): Likewise.
11806 (vqtbx4q_p8): Likewise.
11807 (vrev16_p8): Likewise.
11808 (vrev16_s8): Likewise.
11809 (vrev16_u8): Likewise.
11810 (vrev16q_p8): Likewise.
11811 (vrev16q_s8): Likewise.
11812 (vrev16q_u8): Likewise.
11813 (vrev32_p8): Likewise.
11814 (vrev32_p16): Likewise.
11815 (vrev32_s8): Likewise.
11816 (vrev32_s16): Likewise.
11817 (vrev32_u8): Likewise.
11818 (vrev32_u16): Likewise.
11819 (vrev32q_p8): Likewise.
11820 (vrev32q_p16): Likewise.
11821 (vrev32q_s8): Likewise.
11822 (vrev32q_s16): Likewise.
11823 (vrev32q_u8): Likewise.
11824 (vrev32q_u16): Likewise.
11825 (vrev64_f32): Likewise.
11826 (vrev64_p8): Likewise.
11827 (vrev64_p16): Likewise.
11828 (vrev64_s8): Likewise.
11829 (vrev64_s16): Likewise.
11830 (vrev64_s32): Likewise.
11831 (vrev64_u8): Likewise.
11832 (vrev64_u16): Likewise.
11833 (vrev64_u32): Likewise.
11834 (vrev64q_f32): Likewise.
11835 (vrev64q_p8): Likewise.
11836 (vrev64q_p16): Likewise.
11837 (vrev64q_s8): Likewise.
11838 (vrev64q_s16): Likewise.
11839 (vrev64q_s32): Likewise.
11840 (vrev64q_u8): Likewise.
11841 (vrev64q_u16): Likewise.
11842 (vrev64q_u32): Likewise.
11843 (vsha1cq_u32): Likewise.
11844 (vsha1mq_u32): Likewise.
11845 (vsha1pq_u32): Likewise.
11846 (vsha1h_u32): Likewise.
11847 (vsha1su0q_u32): Likewise.
11848 (vsha1su1q_u32): Likewise.
11849 (vsha256hq_u32): Likewise.
11850 (vsha256h2q_u32): Likewise.
11851 (vsha256su0q_u32): Likewise.
11852 (vsha256su1q_u32): Likewise.
11853 (vmull_p64): Likewise.
11854 (vmull_high_p64): Likewise.
11855 (vsqrt_f32): Likewise.
11856 (vsqrtq_f32): Likewise.
11857 (vsqrt_f64): Likewise.
11858 (vsqrtq_f64): Likewise.
11859 (vst1_f32): Likewise.
11860 (vst1_f64): Likewise.
11861 (vst1_p8): Likewise.
11862 (vst1_p16): Likewise.
11863 (vst1_p64): Likewise.
11864 (vst1_s8): Likewise.
11865 (vst1_s16): Likewise.
11866 (vst1_s32): Likewise.
11867 (vst1_s64): Likewise.
11868 (vst1_u8): Likewise.
11869 (vst1_u16): Likewise.
11870 (vst1_u32): Likewise.
11871 (vst1_u64): Likewise.
11872 (vst1q_f32): Likewise.
11873 (vst1q_f64): Likewise.
11874 (vst1q_p8): Likewise.
11875 (vst1q_p16): Likewise.
11876 (vst1q_p64): Likewise.
11877 (vst1q_s8): Likewise.
11878 (vst1q_s16): Likewise.
11879 (vst1q_s32): Likewise.
11880 (vst1q_s64): Likewise.
11881 (vst1q_u8): Likewise.
11882 (vst1q_u16): Likewise.
11883 (vst1q_u32): Likewise.
11884 (vst1q_u64): Likewise.
11885 (vst1_s64_x2): Likewise.
11886 (vst1_u64_x2): Likewise.
11887 (vst1_f64_x2): Likewise.
11888 (vst1_s8_x2): Likewise.
11889 (vst1_p8_x2): Likewise.
11890 (vst1_s16_x2): Likewise.
11891 (vst1_p16_x2): Likewise.
11892 (vst1_s32_x2): Likewise.
11893 (vst1_u8_x2): Likewise.
11894 (vst1_u16_x2): Likewise.
11895 (vst1_u32_x2): Likewise.
11896 (vst1_f16_x2): Likewise.
11897 (vst1_f32_x2): Likewise.
11898 (vst1_p64_x2): Likewise.
11899 (vst1q_s8_x2): Likewise.
11900 (vst1q_p8_x2): Likewise.
11901 (vst1q_s16_x2): Likewise.
11902 (vst1q_p16_x2): Likewise.
11903 (vst1q_s32_x2): Likewise.
11904 (vst1q_s64_x2): Likewise.
11905 (vst1q_u8_x2): Likewise.
11906 (vst1q_u16_x2): Likewise.
11907 (vst1q_u32_x2): Likewise.
11908 (vst1q_u64_x2): Likewise.
11909 (vst1q_f16_x2): Likewise.
11910 (vst1q_f32_x2): Likewise.
11911 (vst1q_f64_x2): Likewise.
11912 (vst1q_p64_x2): Likewise.
11913 (vst1_s64_x3): Likewise.
11914 (vst1_u64_x3): Likewise.
11915 (vst1_f64_x3): Likewise.
11916 (vst1_s8_x3): Likewise.
11917 (vst1_p8_x3): Likewise.
11918 (vst1_s16_x3): Likewise.
11919 (vst1_p16_x3): Likewise.
11920 (vst1_s32_x3): Likewise.
11921 (vst1_u8_x3): Likewise.
11922 (vst1_u16_x3): Likewise.
11923 (vst1_u32_x3): Likewise.
11924 (vst1_f16_x3): Likewise.
11925 (vst1_f32_x3): Likewise.
11926 (vst1_p64_x3): Likewise.
11927 (vst1q_s8_x3): Likewise.
11928 (vst1q_p8_x3): Likewise.
11929 (vst1q_s16_x3): Likewise.
11930 (vst1q_p16_x3): Likewise.
11931 (vst1q_s32_x3): Likewise.
11932 (vst1q_s64_x3): Likewise.
11933 (vst1q_u8_x3): Likewise.
11934 (vst1q_u16_x3): Likewise.
11935 (vst1q_u32_x3): Likewise.
11936 (vst1q_u64_x3): Likewise.
11937 (vst1q_f16_x3): Likewise.
11938 (vst1q_f32_x3): Likewise.
11939 (vst1q_f64_x3): Likewise.
11940 (vst1q_p64_x3): Likewise.
11941 (vst2_s64): Likewise.
11942 (vst2_u64): Likewise.
11943 (vst2_f64): Likewise.
11944 (vst2_s8): Likewise.
11945 (vst2_p8): Likewise.
11946 (vst2_s16): Likewise.
11947 (vst2_p16): Likewise.
11948 (vst2_s32): Likewise.
11949 (vst2_u8): Likewise.
11950 (vst2_u16): Likewise.
11951 (vst2_u32): Likewise.
11952 (vst2_f16): Likewise.
11953 (vst2_f32): Likewise.
11954 (vst2_p64): Likewise.
11955 (vst2q_s8): Likewise.
11956 (vst2q_p8): Likewise.
11957 (vst2q_s16): Likewise.
11958 (vst2q_p16): Likewise.
11959 (vst2q_s32): Likewise.
11960 (vst2q_s64): Likewise.
11961 (vst2q_u8): Likewise.
11962 (vst2q_u16): Likewise.
11963 (vst2q_u32): Likewise.
11964 (vst2q_u64): Likewise.
11965 (vst2q_f16): Likewise.
11966 (vst2q_f32): Likewise.
11967 (vst2q_f64): Likewise.
11968 (vst2q_p64): Likewise.
11969 (vst3_s64): Likewise.
11970 (vst3_u64): Likewise.
11971 (vst3_f64): Likewise.
11972 (vst3_s8): Likewise.
11973 (vst3_p8): Likewise.
11974 (vst3_s16): Likewise.
11975 (vst3_p16): Likewise.
11976 (vst3_s32): Likewise.
11977 (vst3_u8): Likewise.
11978 (vst3_u16): Likewise.
11979 (vst3_u32): Likewise.
11980 (vst3_f16): Likewise.
11981 (vst3_f32): Likewise.
11982 (vst3_p64): Likewise.
11983 (vst3q_s8): Likewise.
11984 (vst3q_p8): Likewise.
11985 (vst3q_s16): Likewise.
11986 (vst3q_p16): Likewise.
11987 (vst3q_s32): Likewise.
11988 (vst3q_s64): Likewise.
11989 (vst3q_u8): Likewise.
11990 (vst3q_u16): Likewise.
11991 (vst3q_u32): Likewise.
11992 (vst3q_u64): Likewise.
11993 (vst3q_f16): Likewise.
11994 (vst3q_f32): Likewise.
11995 (vst3q_f64): Likewise.
11996 (vst3q_p64): Likewise.
11997 (vst4_s64): Likewise.
11998 (vst4_u64): Likewise.
11999 (vst4_f64): Likewise.
12000 (vst4_s8): Likewise.
12001 (vst4_p8): Likewise.
12002 (vst4_s16): Likewise.
12003 (vst4_p16): Likewise.
12004 (vst4_s32): Likewise.
12005 (vst4_u8): Likewise.
12006 (vst4_u16): Likewise.
12007 (vst4_u32): Likewise.
12008 (vst4_f16): Likewise.
12009 (vst4_f32): Likewise.
12010 (vst4_p64): Likewise.
12011 (vst4q_s8): Likewise.
12012 (vst4q_p8): Likewise.
12013 (vst4q_s16): Likewise.
12014 (vst4q_p16): Likewise.
12015 (vst4q_s32): Likewise.
12016 (vst4q_s64): Likewise.
12017 (vst4q_u8): Likewise.
12018 (vst4q_u16): Likewise.
12019 (vst4q_u32): Likewise.
12020 (vst4q_u64): Likewise.
12021 (vst4q_f16): Likewise.
12022 (vst4q_f32): Likewise.
12023 (vst4q_f64): Likewise.
12024 (vst4q_p64): Likewise.
12025 (vtbx4_s8): Likewise.
12026 (vtbx4_u8): Likewise.
12027 (vtbx4_p8): Likewise.
12028 (vtrn_f32): Likewise.
12029 (vtrn_p8): Likewise.
12030 (vtrn_p16): Likewise.
12031 (vtrn_s8): Likewise.
12032 (vtrn_s16): Likewise.
12033 (vtrn_s32): Likewise.
12034 (vtrn_u8): Likewise.
12035 (vtrn_u16): Likewise.
12036 (vtrn_u32): Likewise.
12037 (vtrnq_f32): Likewise.
12038 (vtrnq_p8): Likewise.
12039 (vtrnq_p16): Likewise.
12040 (vtrnq_s8): Likewise.
12041 (vtrnq_s16): Likewise.
12042 (vtrnq_s32): Likewise.
12043 (vtrnq_u8): Likewise.
12044 (vtrnq_u16): Likewise.
12045 (vtrnq_u32): Likewise.
12046 (vrsqrte_f16): Likewise.
12047 (vrsqrteq_f16): Likewise.
12048 (vsqrt_f16): Likewise.
12049 (vsqrtq_f16): Likewise.
12050 (vabd_f16): Likewise.
12051 (vabdq_f16): Likewise.
12052 (vpadd_f16): Likewise.
12053 (vpaddq_f16): Likewise.
12054 (vpmax_f16): Likewise.
12055 (vpmaxq_f16): Likewise.
12056 (vpmaxnm_f16): Likewise.
12057 (vpmaxnmq_f16): Likewise.
12058 (vpmin_f16): Likewise.
12059 (vpminq_f16): Likewise.
12060 (vpminnm_f16): Likewise.
12061 (vpminnmq_f16): Likewise.
12062 (vrsqrts_f16): Likewise.
12063 (vrsqrtsq_f16): Likewise.
12064
12065 2019-09-25 Richard Biener <rguenther@suse.de>
12066
12067 PR tree-optimization/91896
12068 * tree-vect-loop.c (vectorizable_reduction): The single
12069 def-use cycle optimization cannot apply when there's more
12070 than one pattern stmt involved.
12071
12072 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12073
12074 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12075 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12076 (reload_macho_picbase_<mode>): Likewise.
12077
12078 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12079
12080 * config/rs6000/rs6000.md: Move darwin.md include until
12081 after the definition of the mode iterators.
12082
12083 2019-09-23 Martin Sebor <msebor@redhat.com>
12084
12085 PR tree-optimization/91570
12086 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12087 non-constant minlen, maxlen and maxbound.
12088
12089 2019-09-24 Richard Biener <rguenther@suse.de>
12090
12091 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12092 Rename to...
12093 (_stmt_vec_info::cond_reduc_code): ... this.
12094 (_stmt_vec_info::induc_cond_initial_val): Add.
12095 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12096 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12097 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12098 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12099 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12100 the reduction code.
12101 (vect_create_epilog_for_reduction): Drop special
12102 induction condition reduction params, pass in reduction code
12103 and simplify.
12104 (vectorizable_reduction): Perform condition reduction kind
12105 selection only at analysis time. Adjust passing on state.
12106
12107 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12108
12109 * config/aarch64/aarch64.md (mov<mode>): Don't call
12110 aarch64_split_dimode_const_store on volatile MEM.
12111
12112 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12113
12114 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12115 Update hwcap string for fp16fml.
12116
12117 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12118
12119 PR middle-end/91866
12120 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12121 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12122
12123 2019-09-24 Martin Liska <mliska@suse.cz>
12124
12125 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12126 instead of if-elseif-elseif-...
12127 * gimple-expr.c (extract_ops_from_tree): Likewise.
12128 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12129 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12130
12131 2019-09-24 Martin Jambor <mjambor@suse.cz>
12132
12133 PR ipa/91831
12134 * ipa-param-manipulation.c (carry_over_param): Make a method of
12135 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12136 in case of a context mismatch.
12137 (ipa_param_body_adjustments::common_initialization): Adjust call to
12138 carry_over_param.
12139 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12140 private method carry_over_param.
12141
12142 2019-09-24 Martin Jambor <mjambor@suse.cz>
12143
12144 PR ipa/91832
12145 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12146
12147 2019-09-24 Richard Biener <rguenther@suse.de>
12148
12149 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12150 base.
12151
12152 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12153
12154 * config/arm/t-arm (arm-builtins.o): Add dependency on
12155 arm_acle_builtins.def.
12156
12157 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12158
12159 PR target/91823
12160 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12161 canonical CONST_INTs. Use gen_rtvec.
12162
12163 2019-09-23 Richard Biener <rguenther@suse.de>
12164
12165 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12166 avoid adjusting by + 0 or * 1.
12167 (vect_create_epilog_for_reduction): Get reduction code only
12168 when necessary. Deal with adjustment_def only when necessary.
12169
12170 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12171
12172 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12173 memmodel index.
12174
12175 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12176
12177 PR ipa/91835
12178 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12179 "ipa-sra".
12180
12181 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12182
12183 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12184 code. Merge code blocks with common conditionals. Use declared
12185 macro instead of a magic number for PIC level.
12186
12187 2019-09-21 Martin Sebor <msebor@redhat.com>
12188
12189 PR middle-end/91830
12190 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12191 Simplify computation of the offset of the referenced subobject.
12192
12193 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12194
12195 * config/darwin.c (machopic_legitimize_pic_address): Check
12196 for lra not reload.
12197
12198 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12199
12200 * ira-conflicts.c (can_use_same_reg_p): New function.
12201 (process_reg_shuffles): Take an insn parameter. Ignore cases
12202 in which input operand op_num could seemingly never be allocated
12203 to the same register as the destination.
12204 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12205
12206 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12207
12208 * simplify-rtx.c (neg_const_int): Replace with...
12209 (neg_poly_int_rtx): ...this new function.
12210 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12211 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12212 (simplify_plus_minus): Likewise for constant terms here.
12213
12214 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12215
12216 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12217 HOST_WIDE_PRINT_UNSIGNED.
12218
12219 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12220
12221 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12222 character.
12223
12224 2019-09-20 Maya Rashish <coypu@sdf.org>
12225
12226 PR target/86811
12227 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12228 Define to speculation_safe_value_not_needed.
12229
12230 2019-09-20 Richard Biener <rguenther@suse.de>
12231 Uros Bizjak <ubizjak@gmail.com>
12232
12233 PR target/91814
12234 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12235 previous change.
12236 (general_scalar_chain::convert_op): Force not suitable memory
12237 operands to a register.
12238
12239 2019-09-20 Richard Biener <rguenther@suse.de>
12240
12241 PR tree-optimization/91821
12242 * tree-vect-loop.c (check_reduction_path): Check we can compute
12243 reduc_idx.
12244 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12245 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12246 operands in canonical order.
12247 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12248 STMT_VINFO_REDUC_IDX.
12249 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12250 (STMT_VINFO_REDUC_IDX): Likewise.
12251
12252 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12253
12254 PR target/91269
12255 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12256
12257 2019-09-20 Richard Biener <rguenther@suse.de>
12258
12259 PR tree-optimization/91822
12260 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12261 parameter.
12262 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12263 for reduc_index in nested cycles, adjust vectorizable_condition
12264 calls.
12265 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12266 parameter.
12267 (vect_analyze_stmt): Adjust.
12268 (vect_transform_stmt): Likewise.
12269
12270 2019-09-20 Richard Biener <rguenther@suse.de>
12271
12272 PR target/91767
12273 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12274 Ensure there's a sequence point between allocating the new register
12275 and passing a reference to a reg via regno_reg_rtx.
12276
12277 2019-09-20 Martin Jambor <mjambor@suse.cz>
12278
12279 * coretypes.h (cgraph_edge): Declare.
12280 * ipa-param-manipulation.c: Rewrite.
12281 * ipa-param-manipulation.h: Likewise.
12282 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12283 (OBJS): Added ipa-sra.o.
12284 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12285 and ref_p, added fields param_adjustments and performed_splits.
12286 (struct cgraph_clone_info): Remove ags_to_skip and
12287 combined_args_to_skip, new field param_adjustments.
12288 (cgraph_node::create_clone): Changed parameters to use
12289 ipa_param_adjustments.
12290 (cgraph_node::create_virtual_clone): Likewise.
12291 (cgraph_node::create_virtual_clone_with_body): Likewise.
12292 (tree_function_versioning): Likewise.
12293 (cgraph_build_function_type_skip_args): Removed.
12294 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12295 using ipa_param_adjustments.
12296 (clone_of_p): Likewise.
12297 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12298 (build_function_decl_skip_args): Likewise.
12299 (duplicate_thunk_for_node): Adjust parameters using
12300 ipa_param_body_adjustments, copy param_adjustments instead of
12301 args_to_skip.
12302 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12303 (cgraph_node::create_virtual_clone): Likewise.
12304 (cgraph_node::create_version_clone_with_body): Likewise.
12305 (cgraph_materialize_clone): Likewise.
12306 (symbol_table::materialize_all_clones): Likewise.
12307 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12308 ipa_replace_map check.
12309 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12310 (initialize_node_lattices): Make aware that some parameters might have
12311 already been removed.
12312 (want_remove_some_param_p): New function.
12313 (create_specialized_node): Convert to using ipa_param_adjustments and
12314 deal with possibly pre-existing adjustments.
12315 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12316 (output_node_opt_summary): Do not stream removed fields. Stream
12317 parameter adjustments instead of argumetns to skip.
12318 (input_node_opt_summary): Likewise.
12319 (input_node_opt_summary): Likewise.
12320 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12321 * lto-streamer.h (lto_section_type): Likewise.
12322 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12323 param_body_adjs.
12324 (copy_decl_to_var): Declare.
12325 * tree-inline.c (update_clone_info): Do not remap old_tree.
12326 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12327 statements, walk all extra generated statements and remap their
12328 operands.
12329 (redirect_all_calls): Add killed SSA names to a hash set.
12330 (remap_ssa_name): Do not remap killed SSA names.
12331 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12332 half of functionality moved to ipa_param_body_adjustments.
12333 (copy_decl_to_var): Make exported.
12334 (copy_body): Destroy killed_new_ssa_names hash set.
12335 (expand_call_inline): Remap performed splits.
12336 (update_clone_info): Likewise.
12337 (tree_function_versioning): Simplify tree_map processing. Updated to
12338 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12339 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12340 for the new interface.
12341 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12342 (simd_clone_compute_base_data_type): Likewise.
12343 (simd_clone_init_simd_arrays): Adjust for the new interface.
12344 (simd_clone_adjust_argument_types): Likewise.
12345 (struct modify_stmt_info): Likewise.
12346 (ipa_simd_modify_stmt_ops): Likewise.
12347 (ipa_simd_modify_function_body): Likewise.
12348 (simd_clone_adjust): Likewise.
12349 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12350 (type_internals_preclude_sra_p): Make public.
12351 * tree-sra.h: New file.
12352 * ipa-inline-transform.c (save_inline_function_body): Update to
12353 refelct new tree_function_versioning signature.
12354 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12355 ipa_param_adjustments to get current parameter indices.
12356 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12357 (ipcp_update_bits): Likewise.
12358 (ipcp_update_vr): Likewise.
12359 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12360 * ipa-sra.c: New file.
12361 * multiple_target.c (create_target_clone): Update to reflet new type
12362 of create_version_clone_with_body.
12363 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12364 tree_function_versioning.
12365 (modify_function): Update to reflect new type of
12366 tree_function_versioning.
12367 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12368 * passes.def: Remove old IPA-SRA and add new one.
12369 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12370 (make_pass_ipa_sra): Declare.
12371 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12372 ipa_sra_retvalues.
12373 * doc/invoke.texi (ipa-sra-max-replacements): New.
12374
12375 2019-09-19 Martin Sebor <msebor@redhat.com>
12376
12377 PR middle-end/91631
12378 * builtins.c (component_size): Correct trailing array computation,
12379 rename to component_ref_size and move...
12380 (compute_objsize): Adjust.
12381 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12382 (builtin_access::strict): Do not consider memmove.
12383 (builtin_access::write_off): New function.
12384 (builtin_memref::builtin_memref): Initialize refsize.
12385 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12386 refsize.
12387 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12388 Handle refsize.
12389 (builtin_access::builtin_access): Initialize dstoff to destination
12390 refeence offset here instead of in maybe_diag_overlap. Adjust
12391 referencess even to unrelated objects. Adjust sizrange of bounded
12392 string functions to reflect bound. For strcat, adjust destination
12393 sizrange by that of source.
12394 (builtin_access::strcat_overlap): Adjust offsets and sizes
12395 to reflect the increase in destination sizrange above.
12396 (builtin_access::overlap): Do not set dstoff here but instead
12397 in builtin_access::builtin_access.
12398 (check_bounds_or_overlap): Use builtin_access::write_off.
12399 (maybe_diag_access_bounds): Add argument. Add informational notes.
12400 (dump_builtin_memref, dump_builtin_access): New functions.
12401 * tree.c (component_ref_size): ...to here.
12402 * tree.h (component_ref_size): Declare.
12403 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12404 nul in the size of the source string.
12405
12406 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12407
12408 PR c/67224
12409 * doc/cpp.texi: Document support for extended characters in
12410 identifiers.
12411 * doc/cppopts.texi: Likewise.
12412
12413 2019-09-19 Richard Biener <rguenther@suse.de>
12414
12415 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12416 (check_reduction_path): New overload having the path as result.
12417 (vect_is_simple_reduction): From the detected reduction
12418 path build a SLP reduction chain if possible.
12419
12420 2019-09-19 Richard Biener <rguenther@suse.de>
12421
12422 PR target/91814
12423 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12424 Force operand to a register if it isn't nonimmediate_operand.
12425
12426 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12427
12428 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12429 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12430 (logical_op): Remove code attribute.
12431 (logical_OP): Likewise.
12432
12433 2019-09-19 Martin Liska <mliska@suse.cz>
12434
12435 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12436 Use proper casting.
12437
12438 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12439
12440 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12441 registers with %R.
12442
12443 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12444 for NE comparison of TImode values.
12445 (aarch64_emit_load_exclusive): Add support for TImode.
12446 (aarch64_emit_store_exclusive): Likewise.
12447 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12448 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12449 Change iterator from ALLI to ALLI_TI.
12450 (@atomic_compare_and_swap<JUST_TI>): New.
12451 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12452 (aarch64_load_exclusive_pair): New.
12453 (aarch64_store_exclusive_pair): New.
12454 * config/aarch64/iterators.md (JUST_TI): New.
12455
12456 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12457 strong_zero_p for aarch64_track_speculation; unify some code paths;
12458 use aarch64_gen_compare_reg instead of open-coding.
12459
12460 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12461 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12462 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12463 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12464 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12465 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12466 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12467 (atomic_<atomic_op><ALLI>): Likewise.
12468 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12469 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12470 * doc/invoke.texi: Document -moutline-atomics.
12471
12472 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12473
12474 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12475 trivial predicate for condition branch.
12476 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12477 for switch case.
12478 (compute_bb_predicates): Update predicate based on post-dominating
12479 relationship.
12480 (analyze_function_body): Calculate post-dominating information.
12481
12482 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12483
12484 * tree-vectorizer.h (vectorizable_condition): Take an int
12485 reduction index instead of a boolean flag.
12486 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12487 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12488 reductions if the reduction accumulator is the "then" rather
12489 than the "else" value.
12490 (vect_analyze_stmt): Update call accordingly.
12491 (vect_transform_stmt): Likewise.
12492 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12493 asserting that the index is > 0.
12494
12495 2019-09-19 Martin Liska <mliska@suse.cz>
12496
12497 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12498 (sort_congruence_classes_by_decl_uid): Likewise.
12499 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12500 easier sorting.
12501 (sem_item_optimizer::merge_classes): Likewise.
12502
12503 2019-09-19 Richard Biener <rguenther@suse.de>
12504
12505 PR tree-optimization/91812
12506 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12507 volatile loads.
12508
12509 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12510
12511 * defaults.h (TARGET_UNIT): New macro.
12512 (target_unit): New type.
12513 * rtl.h (native_encode_rtx, native_decode_rtx)
12514 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12515 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12516 * rtlanal.c (subreg_lsb_1): Delete.
12517 (subreg_size_lsb): New function.
12518 * simplify-rtx.c: Include rtx-vector-builder.h
12519 (simplify_immed_subreg): Delete.
12520 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12521 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12522 functions.
12523 (simplify_subreg): Use them.
12524 (test_vector_subregs_modes, test_vector_subregs_repeating)
12525 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12526 (test_vector_subregs): New functions.
12527 (test_vector_ops): Call test_vector_subregs for integer vector
12528 modes with at least 2 elements.
12529
12530 2019-09-19 Richard Biener <rguenther@suse.de>
12531
12532 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12533 LOOP_VINFO_OPERANDS_SWAPPED.
12534 (parloops_is_simple_reduction): Likewise.
12535 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12536 initialize operands_swapped.
12537 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12538 (vect_is_slp_reduction): Do not swap operands.
12539 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12540 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12541
12542 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12543
12544 PR target/87007
12545 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12546 Add avx_partial_xmm_update.
12547
12548 2019-09-18 Jim Wilson <jimw@sifive.com>
12549
12550 PR target/91683
12551 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12552 (riscv_move_integer): Likewise.
12553 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12554 riscv_move_integer arg.
12555 (riscv_legitimize_move): Likewise.
12556 (riscv_force_temporary): New parameter in_splitter. Don't call
12557 force_reg if true.
12558 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12559 arg.
12560 (riscv_add_offset): Likewise.
12561 (riscv_split_symbol): New parameter in_splitter. Pass to
12562 riscv_force_temporary.
12563 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12564 arg.
12565 (riscv_move_integer): New parameter in_splitter. New local
12566 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12567 in_splitter TRUE.
12568 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12569 riscv_split_symbol, and riscv_force_temporary args.
12570 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12571 riscv_move_integer arg.
12572 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12573
12574 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12575
12576 PR target/90878
12577 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12578 hard register store cost to 6.
12579
12580 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12581
12582 PR target/91446
12583 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12584 pseudo register store cost from 3 to 6 to make it the same as
12585 QImode and HImode.
12586
12587 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12588
12589 PR target/91738
12590 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12591 (one_cmpldi2): Likewise.
12592 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12593 of the constant parts is simple.
12594 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12595 (logical_op): Add new code attribute.
12596 (logical_OP): Likewise.
12597 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12598 (arm_iordi_operand): Add predicate.
12599 (arm_xordi_operand): Add predicate.
12600
12601 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12602
12603 * config/arm/arm.md (maddsidi4): Remove expander.
12604 (mulsidi3adddi): Remove pattern.
12605 (mulsidi3adddi_v6): Likewise.
12606 (mulsidi3_nov6): Likewise.
12607 (mulsidi3_v6): Likewise.
12608 (umulsidi3): Remove expander.
12609 (umulsidi3_nov6): Remove pattern.
12610 (umulsidi3_v6): Likewise.
12611 (umulsidi3adddi): Likewise.
12612 (umulsidi3adddi_v6): Likewise.
12613 (<Us>mulsidi3): Add combined expander.
12614 (<Us>maddsidi4): Likewise.
12615 (<US>mull): Add combined umull and smull pattern.
12616 (<US>mlal): Likewise.
12617 * config/arm/iterators.md (Us): Add new iterator.
12618
12619 2019-09-18 Richard Biener <rguenther@suse.de>
12620
12621 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12622 swapping.
12623 (vectorize_fold_left_reduction): Remove assert.
12624 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12625 operand in position 2. Remove assert.
12626
12627 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12628
12629 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12630 (smulsi3_highpart_nov6): Remove pattern.
12631 (smulsi3_highpart_v6): Likewise.
12632 (umulsi3_highpart): Likewise.
12633 (umulsi3_highpart_nov6): Likewise.
12634 (umulsi3_highpart_v6): Likewise.
12635 (<US>mull_high): Add new combined multiply pattern.
12636
12637 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12638
12639 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12640 (arm_mulsi3_v6): Likewise.
12641 (mulsi3addsi_v6): Likewise.
12642 (mulsi3subsi): Likewise.
12643 (mul): Add new multiply pattern.
12644 (mla): Likewise.
12645 (mls): Likewise.
12646
12647 2019-09-18 Richard Biener <rguenther@suse.de>
12648
12649 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12650 (parloops_valid_reduction_input_p): Copy from
12651 valid_reduction_input_p.
12652 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12653 (parloops_needs_fold_left_reduction_p): Copy from
12654 needs_fold_left_reduction_p.
12655 (parloops_is_simple_reduction): Copy from
12656 vect_is_simple_reduction.
12657 (parloops_force_simple_reduction): Copy from
12658 vect_force_simple_reduction.
12659 (gather_scalar_reductions): Adjust.
12660 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12661 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12662
12663 2019-09-18 Richard Biener <rguenther@suse.de>
12664
12665 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12666 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12667 static.
12668 (vect_create_epilog_for_reduction): Remove dead code.
12669
12670 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12671
12672 * varasm.c (assemble_real): Generate canonical const_ints.
12673
12674 2019-09-18 Richard Biener <rguenther@suse.de>
12675
12676 PR lto/91763
12677 * lto-streamer-in.c (input_eh_regions): Move EH init to
12678 lto_materialize_function.
12679 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12680 Likewise.
12681
12682 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12683
12684 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12685 are INTEGER_CSTs.
12686
12687 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12688
12689 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12690 of checking specifically for INTEGER_CST.
12691
12692 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12693
12694 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12695 sizes instead of uhwi sizes.
12696
12697 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12698
12699 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12700 (add_const_value_attribute): Handle CONST_POLY_INT.
12701
12702 2019-09-18 Martin Liska <mliska@suse.cz>
12703
12704 * dbgcnt.def (store_merging): New counter.
12705 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12706 Use it in store merging.
12707
12708 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12709
12710 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12711 function.
12712 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12713 * config/arm/arm.c (arm_sched_variable_issue): New function.
12714 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12715
12716 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12717
12718 * config/arm/types.md (no_reservation): New reservation.
12719 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12720 no_insn here.
12721 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12722 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12723 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12724 * config/arm/arm1020e.md (1020alu_op): Likewise.
12725 * config/arm/arm1026ejs.md (alu_op): Likewise.
12726 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12727 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12728 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12729 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12730 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12731 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12732 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12733 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12734 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12735 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12736 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12737 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12738 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12739 * config/arm/fa526.md (526_alu_op): Likewise.
12740 * config/arm/fa606te.md (606te_alu_op): Likewise.
12741 * config/arm/fa626te.md (626te_alu_op): Likewise.
12742 * config/arm/fa726te.md (726te_alu_op): Likewise.
12743 * config/arm/xgene1.md (xgene1_nop): Likewise.
12744
12745 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12746
12747 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12748 "no_insn" to "branch".
12749
12750 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12751
12752 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12753
12754 2019-09-17 Richard Biener <rguenther@suse.de>
12755
12756 PR debug/91772
12757 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12758 was missing generate locations only once.
12759
12760 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12761
12762 PR ipa/91089
12763 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12764 option.
12765 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12766 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12767 for switch default case using range analysis information.
12768
12769 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12770
12771 PR target/91749
12772 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12773 mode attributed is supported by FDPIC.
12774
12775 2019-09-17 Richard Biener <rguenther@suse.de>
12776
12777 PR tree-optimization/91790
12778 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12779 use the correct DR for setting up realignment.
12780
12781 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12782
12783 PR target/91719
12784 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12785 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12786 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12787 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12788
12789 2019-09-16 Jason Merrill <jason@redhat.com>
12790
12791 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12792
12793 2019-09-16 Martin Liska <mliska@suse.cz>
12794
12795 * gimple-fold.c (or_comparisons_1): Remove rules moved
12796 to ...
12797 * match.pd: ... here.
12798
12799 2019-09-16 Martin Liska <mliska@suse.cz>
12800
12801 * gimple-fold.c (or_comparisons_1): Remove rules
12802 moved to ...
12803 * match.pd: ... here.
12804
12805 2019-09-16 Martin Liska <mliska@suse.cz>
12806
12807 * genmatch.c (dt_node::append_simplify): Do not print
12808 warning when we have duplicate patterns belonging
12809 to a same simplify rule.
12810 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12811 (maybe_fold_comparisons_from_match_pd): Handle
12812 tcc_comparison as a results.
12813 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12814
12815 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12816 Qi Feng <ffengqi@linux.ibm.com>
12817
12818 PR middle-end/88784
12819 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12820 (x > y && x == XXX_MIN): Optimize into 'false'.
12821 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12822 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12823 (x < y && x == XXX_MAX): Optimize into 'false'.
12824 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12825 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12826 (x <= y || x != XXX_MIN): Optimize into 'true'.
12827 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12828 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12829 (x >= y || x != XXX_MAX): Optimize into 'true'.
12830 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12831
12832 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12833 Martin Liska <mliska@suse.cz>
12834
12835 * gimple-fold.c (and_comparisons_1): Add type as first
12836 argument.
12837 (and_var_with_comparison): Likewise.
12838 (and_var_with_comparison_1): Likewise.
12839 (or_comparisons_1): Likewise.
12840 (or_var_with_comparison): Likewise.
12841 (or_var_with_comparison_1): Likewise.
12842 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12843 (maybe_fold_or_comparisons): Likewise.
12844 (maybe_fold_comparisons_from_match_pd): New.
12845 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12846 (maybe_fold_or_comparisons): Likewise.
12847 * gimple.c (gimple_size): Make it public and add num_ops argument.
12848 (gimple_init): New function.
12849 (gimple_alloc): Call gimple_init.
12850 * gimple.h (gimple_size): New.
12851 (gimple_init): Likewise.
12852 * tree-if-conv.c (fold_or_predicates): Pass type.
12853 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12854 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12855 (optimize_vec_cond_expr): Likewise.
12856 (ovce_extract_ops): Return type of conditional expression.
12857 * tree-ssanames.c (init_ssa_name_imm_use): New.
12858 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12859 * tree-ssanames.h (init_ssa_name_imm_use): New.
12860
12861 2019-09-16 Richard Biener <rguenther@suse.de>
12862
12863 PR tree-optimization/91756
12864 PR tree-optimization/87132
12865 * tree-ssa-alias.h (enum translate_flags): New.
12866 (get_continuation_for_phi): Use it instead of simple bool flag.
12867 (walk_non_aliased_vuses): Likewise.
12868 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12869 (get_continuation_for_phi): When looking across backedges only
12870 disallow valueization.
12871 (walk_non_aliased_vuses): Adjust.
12872 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12873 if requested.
12874
12875 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12876
12877 PR middle-end/80791
12878 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12879 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12880 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12881 * target.def (have_count_reg_decr_p): New hook.
12882 (doloop_cost_for_generic): Likewise.
12883 (doloop_cost_for_address): Likewise.
12884 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12885 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12886 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12887 * doc/tm.texi: Regenerate.
12888 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12889 addend.
12890 (record_group): Init doloop_p.
12891 (add_candidate_1): Add optional argument doloop, change the handlings
12892 accordingly.
12893 (add_candidate): Likewise.
12894 (generic_predict_doloop_p): Update attribute.
12895 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12896 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12897 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12898 MIN_EXPR.
12899 (get_computation_cost): Update for doloop IV cand extra cost.
12900 (determine_group_iv_cost_cond): Update for doloop IV cand.
12901 (determine_iv_cost): Likewise.
12902 (ivopts_estimate_reg_pressure): Likewise.
12903 (may_eliminate_iv): Update handlings for doloop IV cand.
12904 (add_iv_candidate_for_doloop): New function.
12905 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12906 (iv_ca_set_no_cp): Update for doloop IV cand.
12907 (iv_ca_set_cp): Likewise.
12908 (iv_ca_dump): Dump register cost.
12909 (find_doloop_use): New function.
12910 (analyze_and_mark_doloop_use): Likewise.
12911 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12912
12913 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12914
12915 PR middle-end/91708
12916 * cse.c (cse_insn): Do not replace anything with a
12917 MEM.
12918
12919 2019-09-13 Ian Lance Taylor <iant@golang.org>
12920
12921 * doc/invoke.texi (Optimize Options): Fix typo.
12922
12923 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12924
12925 PR tree-optimization/89386
12926 * config/i386/sse.md (smulhrs<mode>3): New expander.
12927 (smulhrsv4hi3): Ditto.
12928
12929 2019-09-12 Richard Biener <rguenther@suse.de>
12930
12931 PR tree-optimization/91750
12932 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12933 in the type of the evolution.
12934
12935 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12936
12937 PR tree-optimization/89386
12938 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12939 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12940 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12941 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12942 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12943 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12944 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12945 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12946 (su, r): Handle the unspecs above.
12947 (bt): New int attribute.
12948 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12949 * internal-fn.c (first_commutative_argument): Commutativity info for
12950 above.
12951 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12952 (umulhrs_optab): New optabs.
12953 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12954 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12955 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12956 function.
12957 (vect_vect_recog_func_ptrs): Add it.
12958
12959 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12960
12961 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12962 code.
12963
12964 2019-09-11 Nathan Sidwell <nathan@acm.org>
12965
12966 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12967 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12968
12969 2019-09-11 Richard Biener <rguenther@suse.de>
12970
12971 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12972 * lto-wrapper.c (merge_and_complain): Pick up -g.
12973 (append_compiler_options): Likewise.
12974 (run_gcc): Re-instantiate handling -g0 at link-time.
12975 * doc/invoke.texi (flto): Document debug info generation.
12976
12977 2019-09-11 Richard Biener <rguenther@suse.de>
12978
12979 PR tree-optimization/90387
12980 * vr-values.c (vr_values::extract_range_basic): After inlining
12981 simplify non-constant __builtin_constant_p to false.
12982
12983 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12984
12985 PR rtl-optimization/89795
12986 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12987 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12988
12989 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12990
12991 PR tree-optimization/91723
12992 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12993 instead of pointer equality when checking if argument vectypes are
12994 the same.
12995
12996 PR middle-end/91725
12997 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12998 of get_nonzero_bits, only call it for integral types.
12999
13000 2019-09-11 Richard Biener <rguenther@suse.de>
13001
13002 Revert
13003 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13004
13005 * match.pd: Add flag_unsafe_math_optimizations check
13006 before deciding on the widest type in a binary math operation.
13007
13008 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13009
13010 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13011 and CALL_REALLY_USED_REGISTERS must be defined, and that
13012 CALL_REALLY_USED_REGISTERS is preferred.
13013 * doc/tm.texi: Regenerate.
13014 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13015 (call_really_used_regs): Likewise.
13016 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13017 CALL_REALLY_USED_REGISTERS are defined.
13018 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13019 initial value if defined.
13020 (initial_call_really_used_regs): Delete.
13021 (saved_call_really_used_regs): Likewise.
13022 (CALL_REALLY_USED_REGNO_P): Likewise.
13023 (init_reg_sets): Remove handling of call_really_used_regs.
13024 (save_register_info, restore_register_info, globalize_reg): Likewise.
13025 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13026 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13027 outside operand_reg_set.
13028 (fix_register): Don't change call_used_regs if
13029 CALL_REALLY_USED_REGISTERS is defined.
13030 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13031 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13032 instead of call_really_used_regs.
13033 (csky_conditional_register_usage): Remove the old handling of
13034 call_used_regs and change the handling of call_really_used_regs
13035 to use call_used_regs instead.
13036 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13037 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13038 making a register fixed.
13039 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13040 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13041 instead of call_really_used_regs.
13042 (m32r_conditional_register_usage): Don't set call_used_regs when
13043 making a register fixed.
13044 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13045 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13046 instead of call_really_used_regs.
13047 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13048 (mips_cfun_call_saved_reg_p): Likewise.
13049 (mips_swap_registers): Remove the old handling of call_used_regs
13050 and change the handling of call_really_used_regs to use call_used_regs
13051 instead.
13052 (mips_conditional_register_usage): Likewise.
13053 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13054 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13055 instead of call_really_used_regs.
13056 (mn10300_get_live_callee_saved_regs): Likewise.
13057 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13058 (mn10300_conditional_register_usage): Don't set call_used_regs when
13059 making a register fixed.
13060 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13061 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13062 Remove the old handling of call_used_regs and change the handling
13063 of call_really_used_regs to use call_used_regs instead.
13064 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13065 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13066 instead of call_really_used_regs.
13067 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13068 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13069 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13070 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13071 (s390_conditional_register_usage): Remove the old handling of
13072 call_used_regs and change the handling of call_really_used_regs
13073 to use call_used_regs instead.
13074 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13075 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13076 (sh_fix_range, reg_unused_after): Likewise.
13077 (sh_conditional_register_usage): Remove the old handling of
13078 call_used_regs and change the handling of call_really_used_regs
13079 to use call_used_regs instead.
13080 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13081 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13082 call_used_regs when making a register fixed.
13083 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13084 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13085 call_used_regs when making a register fixed.
13086 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13087 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13088 set call_used_regs when making a register fixed.
13089 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13090 * config/visium/visium.c (visium_conditional_register_usage): Remove
13091 the old handling of call_used_regs and change the handling of
13092 call_really_used_regs to use call_used_regs instead.
13093
13094 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13095
13096 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13097 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13098 * reginfo.c (call_used_regs): New macro.
13099
13100 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13101
13102 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13103 fixed_regs test.
13104 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13105 (bpf_expand_epilogue): Likewise.
13106 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13107 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13108 (ft32_expand_epilogue): Likewise.
13109 * config/i386/i386.c (ix86_save_reg): Likewise.
13110 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13111 (moxie_expand_epilogue): Likewise.
13112 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13113 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13114 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13115
13116 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13117
13118 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13119 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13120 instead of testing call_used_regs directly.
13121 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13122 (aarch64_components_for_bb): Likewise.
13123 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13124 * config/arc/arc.c (arc_must_save_register): Likewise.
13125 (arc_epilogue_uses): Likewise.
13126 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13127 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13128 (arm_compute_save_reg0_reg12_mask): Likewise.
13129 (arm_compute_save_core_reg_mask): Likewise.
13130 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13131 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13132 (cmse_nonsecure_entry_clear_before_return): Likewise.
13133 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13134 (arm_expand_epilogue): Likewise.
13135 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13136 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13137 (_reg_unused_after): Likewise.
13138 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13139 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13140 (add_to_reg, hwloop_optimize): Likewise.
13141 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13142 (bpf_expand_epilogue): Likewise.
13143 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13144 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13145 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13146 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13147 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13148 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13149 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13150 * config/frv/frv.c (frv_stack_info): Likewise.
13151 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13152 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13153 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13154 (move_callee_saved_registers): Likewise.
13155 * config/h8300/h8300.c (byte_reg): Likewise.
13156 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13157 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13158 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13159 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13160 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13161 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13162 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13163 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13164 * config/m32c/m32c.c (need_to_save): Likewise.
13165 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13166 * config/mcore/mcore.c (calc_live_regs): Likewise.
13167 * config/microblaze/microblaze.c (microblaze_must_save_register):
13168 Likewise.
13169 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13170 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13171 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13172 (mmix_expand_epilogue): Likewise.
13173 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13174 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13175 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13176 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13177 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13178 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13179 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13180 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13181 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13182 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13183 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13184 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13185 * config/rl78/rl78.c (need_to_save): Likewise.
13186 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13187 (rs6000_stack_info, generate_set_vrsave): Likewise.
13188 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13189 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13190 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13191 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13192 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13193 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13194 (save_local_or_in_reg_p): Likewise.
13195 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13196 (xstormy16_epilogue_uses): Likewise.
13197 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13198 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13199 * config/v850/v850.c (compute_register_save_size): Likewise.
13200 * config/vax/vax.c (vax_expand_prologue): Likewise.
13201 * config/visium/visium.c (visium_save_reg_p): Likewise.
13202 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13203 * cselib.c (cselib_process_insn): Likewise.
13204 * df-scan.c (df_get_entry_block_def_set): Likewise.
13205 * function.c (aggregate_value_p): Likewise.
13206 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13207 * ira-lives.c (process_bb_node_lives): Likewise.
13208 * ira.c (do_reload): Likewise.
13209 * lra-lives.c (process_bb_lives): Likewise.
13210 * lra-remat.c (lra_remat): Likewise.
13211 * lra.c (lra): Likewise.
13212 * postreload.c (reload_combine_recognize_pattern): Likewise.
13213 (reload_cse_move2add): Likewise.
13214 * recog.c (peep2_find_free_register): Likewise.
13215 * regrename.c (check_new_reg_p): Likewise.
13216 * reload.c (find_equiv_reg): Likewise.
13217 * reload1.c (reload, find_reg): Likewise.
13218 * sel-sched.c (init_hard_regs_data): Likewise.
13219
13220 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13221
13222 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13223 regs_invalidated_by_call & ~fixed_reg_set instead of
13224 call_used_or_fixed_regs & ~fixed_reg_set.
13225 * config/sh/sh.c (output_stack_adjust): Likewise.
13226
13227 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13228
13229 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13230 (call_used_reg_set): Delete.
13231 (call_used_or_fixed_regs): New macro.
13232 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13233 of call_used_reg_set.
13234 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13235 instead of call_used_regs.
13236 (save_call_clobbered_regs): Likewise.
13237 * cfgcleanup.c (old_insns_match_p): Likewise.
13238 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13239 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13240 Likewise.
13241 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13242 * config/sh/sh.c (output_stack_adjust): Likewise.
13243 * final.c (collect_fn_hard_reg_usage): Likewise.
13244 * ira-build.c (ira_build): Likewise.
13245 * ira-color.c (calculate_saved_nregs): Likewise.
13246 (allocno_reload_assign, calculate_spill_cost): Likewise.
13247 * ira-conflicts.c (ira_build_conflicts): Likewise.
13248 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13249 * ira-lives.c (process_bb_node_lives): Likewise.
13250 * ira.c (setup_reg_renumber): Likewise.
13251 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13252 * lra-constraints.c (need_for_call_save_p): Likewise.
13253 (need_for_split_p, inherit_in_ebb): Likewise.
13254 * lra-lives.c (process_bb_lives): Likewise.
13255 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13256 * postreload.c (reload_combine): Likewise.
13257 * regrename.c (find_rename_reg): Likewise.
13258 * reload1.c (reload_as_needed): Likewise.
13259 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13260 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13261 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13262
13263 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13264
13265 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13266 (no_caller_save_reg_set): Delete.
13267 * caller-save.c (init_caller_save): Don't initialize it.
13268 * ira-conflicts.c (ira_build_conflicts): Calculate
13269 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13270
13271 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13272
13273 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13274 (target_hard_regs::x_savable_regs): New field.
13275 (call_fixed_reg_set): Delete.
13276 (savable_regs): New macro,
13277 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13278 (init_reg_sets_1): Likewise. Initialize savable_regs.
13279 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13280 for all registers. Set savable_regs instead of call_fixed_reg_set.
13281 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13282 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13283 * config/sh/sh.c (output_stack_adjust): Likewise.
13284
13285 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13286
13287 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13288 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13289 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13290
13291 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13292
13293 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13294 * rtlanal.c (get_call_rtx_from): Likewise.
13295 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13296 than the pattern to get_call_rtx_from.
13297 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13298 an rtx_insn * instead of an rtx.
13299 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13300
13301 2019-09-10 Martin Liska <mliska@suse.cz>
13302
13303 * common.opt: Use newly added WarnRemoved.
13304 * config/aarch64/aarch64.opt: Likewise.
13305 * config/arm/arm.opt: Likewise.
13306 * config/i386/i386.opt: Likewise.
13307 * config/ia64/ia64.opt: Likewise.
13308 * config/rs6000/rs6000.opt: Likewise.
13309 * doc/options.texi: Document WarnRemoved properly.
13310 * dwarf2out.c (gen_producer_string): Handle renamed
13311 OPT_SPECIAL_warn_removed.
13312 * lto-opts.c (lto_write_options): Likewise.
13313 * lto-wrapper.c (merge_and_complain): Likewise.
13314 * opts-common.c (decode_cmdline_option): Likewise.
13315 (prune_options): Likewise.
13316 (read_cmdline_option): Likewise.
13317 (control_warning_option): Likewise.
13318 * opts.c (print_filtered_help): Likewise.
13319 * optc-gen.awk: Parse for WarnRemoved and make usage
13320 of Deprecated an error.
13321 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13322
13323 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13324
13325 * doc/install.texi: Fix syntax for html generation.
13326
13327 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13328
13329 PR middle-end/91680
13330 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13331 the shift type to type.
13332
13333 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13334
13335 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13336 FDPIC mode.
13337 (stack_protect_combined_test_insn): Likewise.
13338
13339 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13340 Mickaël Guêné <mickael.guene@st.com>
13341
13342 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13343 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13344 (load_tp_soft_fdpic): New pattern.
13345 (load_tp_soft): Disable in FDPIC mode.
13346
13347 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13348 Mickaël Guêné <mickael.guene@st.com>
13349
13350 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13351 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13352 (arm_call_tls_get_addr): Add FDPIC support.
13353 (legitimize_tls_address): Likewise.
13354 (arm_emit_tls_decoration): Likewise.
13355
13356 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13357 Mickaël Guêné <mickael.guene@st.com>
13358
13359 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13360 support.
13361 (arm_trampoline_init): Likewise.
13362 (arm_trampoline_adjust_address): Likewise.
13363 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13364
13365 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13366 Mickaël Guêné <mickael.guene@st.com>
13367
13368 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13369 (legitimize_pic_address): Enforce binding rules on function
13370 pointers in FDPIC mode.
13371 (arm_assemble_integer): Likewise.
13372
13373 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13374 Mickaël Guêné <mickael.guene@st.com>
13375
13376 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13377 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13378 FDPIC.
13379
13380 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13381 Mickaël Guêné <mickael.guene@st.com>
13382
13383 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13384 field.
13385
13386 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13387 Mickaël Guêné <mickael.guene@st.com>
13388
13389 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13390 in FDPIC mode.
13391 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13392 new function.
13393 * config/arm/arm.c (arm_option_override): Define pic register to
13394 FDPIC_REGNUM.
13395 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13396 have no decl or go through PLT.
13397 (calculate_pic_address_constant): New function.
13398 (legitimize_pic_address): Call calculate_pic_address_constant.
13399 (arm_load_pic_register): Handle TARGET_FDPIC.
13400 (arm_is_segment_info_known): New function.
13401 (arm_pic_static_addr): Add support for FDPIC.
13402 (arm_load_function_descriptor): New function.
13403 (arm_emit_call_insn): Add support for FDPIC.
13404 (arm_assemble_integer): Add support for FDPIC.
13405 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13406 Define. (FDPIC_REGNUM): New define.
13407 * config/arm/arm.md (call): Add support for FDPIC.
13408 (call_value): Likewise.
13409 (restore_pic_register_after_call): New pattern.
13410 (untyped_call): Disable if FDPIC.
13411 (untyped_return): Likewise.
13412 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13413
13414 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13415 Mickaël Guêné <mickael.guene@st.com>
13416
13417 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13418 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13419 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13420 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13421 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13422 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13423 * config/arm/uclinuxfdpiceabi.h: New file.
13424
13425 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13426
13427 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13428
13429 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13430 Mickaël Guêné <mickael.guene@st.com>
13431
13432 * config/arm/arm.opt: Add -mfdpic option.
13433 * doc/invoke.texi: Add documentation for -mfdpic.
13434
13435 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13436
13437 * expmed.c (extract_bit_field): Update function comment
13438 regarding alt_rtl.
13439 * expr.c (expand_expr_real): Update function comment
13440 regarding alt_rtl.
13441 (expand_misaligned_mem_ref): New helper function.
13442 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13443 Remove duplicate assignment to "base" at case MEM_REF.
13444 Remove a shadowed variable "unsignedp" at case VCE.
13445
13446 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13447
13448 * regset.h (regs_invalidated_by_call_regset): Delete.
13449 (fixed_reg_set_regset): Likewise.
13450 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13451 (fixed_reg_set_regset, persistent_obstack): Likewise.
13452 (init_reg_sets_1, globalize_reg): Update accordingly.
13453 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13454 instead of a bitmap.
13455 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13456 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13457 instead of regs_invalidated_by_call_regset.
13458 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13459 * df-scan.c (df_scan_start_dump): Likewise.
13460 * dse.c (copy_fixed_regs): Likewise.
13461 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13462
13463 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13464
13465 * array-traits.h: New file.
13466 * coretypes.h (array_traits, bitmap_view): New types.
13467 * bitmap.h: Include "array-traits.h"
13468 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13469 (base_bitmap_view, bitmap_view): New classes.
13470 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13471 * hard-reg-set.h: Include array-traits.h.
13472 (array_traits<HARD_REG_SET>): New struct.
13473 * regset.h (IOR_REG_SET_HRS): New macro.
13474 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13475 rather than iterating over each hard register.
13476 * sched-deps.c (sched_analyze_insn): Likewise.
13477 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13478
13479 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13480
13481 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13482 instead of a HARD_REG_SET *.
13483 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13484 (ira_build): Update call accordingly.
13485 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13486
13487 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13488
13489 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13490 (HARD_REG_SET::operator!=): Likewise.
13491 (hard_reg_set_equal_p): Delete.
13492 * cfgcleanup.c (old_insns_match_p): Use == instead of
13493 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13494 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13495 (add_allocno_hard_regs_to_forest): Likewise.
13496 (setup_allocno_available_regs_num): Likewise.
13497 * ira.c (setup_pressure_classes): Likewise.
13498 (setup_allocno_and_important_classes): Likewise.
13499 (setup_reg_class_relations): Likewise.
13500 * lra-lives.c (process_bb_lives): Likewise.
13501 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13502
13503 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13504
13505 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13506 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13507 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13508 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13509 Likewise.
13510 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13511 * ira.c (setup_reg_renumber): Likewise.
13512 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13513 * regrename.c (regrename_find_superclass): Likewise.
13514 * reload1.c (find_reg): Likewise.
13515
13516 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13517
13518 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13519 * caller-save.c (setup_save_areas): Use "&~" instead of
13520 AND_COMPL_HARD_REG_SET.
13521 (save_call_clobbered_regs): Likewise.
13522 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13523 Likewise.
13524 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13525 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13526 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13527 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13528 (mips_conditional_register_usage): Likewise.
13529 * config/sh/sh.c (output_stack_adjust): Likewise.
13530 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13531 (setup_profitable_hard_regs): Likewise.
13532 (get_conflict_and_start_profitable_regs): Likewise.
13533 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13534 (ira_build_conflicts): Likewise.
13535 * ira-costs.c (restrict_cost_classes): Likewise.
13536 (setup_regno_cost_classes_by_aclass): Likewise.
13537 * ira-lives.c (process_bb_node_lives): Likewise.
13538 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13539 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13540 (setup_allocno_and_important_classes, setup_class_translate_array)
13541 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13542 Likewise.
13543 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13544 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13545 (process_alt_operands, inherit_in_ebb): Likewise.
13546 * lra-eliminations.c (update_reg_eliminate): Likewise.
13547 * lra-lives.c (process_bb_lives): Likewise.
13548 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13549 * resource.c (find_dead_or_set_registers): Likewise.
13550 (mark_target_live_regs): Likewise.
13551 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13552 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13553 (implicit_clobber_conflict_p): Likewise.
13554 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13555 (try_shrink_wrapping): Likewise.
13556
13557 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13558
13559 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13560 (HARD_REG_SET::operator|=): Likewise.
13561 (IOR_HARD_REG_SET): Delete.
13562 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13563 IOR_HARD_REG_SET.
13564 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13565 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13566 * final.c (collect_fn_hard_reg_usage): Likewise.
13567 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13568 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13569 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13570 (propagate_some_info_from_allocno): Likewise.
13571 (copy_info_to_removed_store_destinations): Likewise.
13572 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13573 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13574 (fast_allocation): Likewise.
13575 * ira-conflicts.c (ira_build_conflicts): Likewise.
13576 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13577 (process_bb_node_lives): Likewise.
13578 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13579 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13580 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13581 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13582 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13583 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13584 (process_bb_lives): Likewise.
13585 * lra-spills.c (assign_spill_hard_regs): Likewise.
13586 * postreload.c (reload_combine): Likewise.
13587 * reginfo.c (init_reg_sets_1): Likewise.
13588 * regrename.c (merge_overlapping_regs, find_rename_reg)
13589 (merge_chains): Likewise.
13590 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13591 (find_reload_regs, finish_spills, choose_reload_regs_init)
13592 (emit_reload_insns): Likewise.
13593 * reorg.c (redundant_insn): Likewise.
13594 * resource.c (find_dead_or_set_registers, mark_set_resources)
13595 (mark_target_live_regs): Likewise.
13596 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13597 * sched-deps.c (sched_analyze_insn): Likewise.
13598 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13599 (find_best_reg_for_expr): Likewise.
13600 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13601
13602 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13603
13604 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13605 (HARD_REG_SET::operator&): Likewise.
13606 (AND_HARD_REG_SET): Delete.
13607 * caller-save.c (setup_save_areas): Use "&" instead of
13608 AND_HARD_REG_SET.
13609 (save_call_clobbered_regs): Likewise.
13610 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13611 * config/m32c/m32c.c (reduce_class): Likewise.
13612 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13613 * final.c (get_call_reg_set_usage): Likewise.
13614 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13615 (setup_left_conflict_sizes_p): Likewise.
13616 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13617 (ira_build_conflicts): Likewise.
13618 * ira-costs.c (restrict_cost_classes): Likewise.
13619 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13620 (setup_reg_class_relations): Likewise.
13621 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13622 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13623 * resource.c (find_dead_or_set_registers): Likewise.
13624 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13625
13626 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13627
13628 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13629 (COMPL_HARD_REG_SET): Delete.
13630 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13631 of COMPL_HARD_REG_SET.
13632 (try_rename_operands): Likewise.
13633 * config/sh/sh.c (push_regs): Likewise.
13634 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13635 * lra-constraints.c (contains_reg_p): Likewise.
13636 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13637
13638 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13639
13640 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13641 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13642 of COPY_HARD_REG_SET.
13643 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13644 (epiphany_conditional_register_usage): Likewise.
13645 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13646 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13647 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13648 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13649 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13650 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13651 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13652 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13653 * config/sh/sh.c (output_stack_adjust): Likewise.
13654 * final.c (collect_fn_hard_reg_usage): Likewise.
13655 (get_call_reg_set_usage): Likewise.
13656 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13657 (ira_flattening): Likewise.
13658 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13659 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13660 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13661 (ira_reassign_pseudos): Likewise.
13662 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13663 (ira_build_conflicts): Likewise.
13664 * ira-costs.c (restrict_cost_classes): Likewise.
13665 (setup_regno_cost_classes_by_aclass): Likewise.
13666 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13667 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13668 (setup_stack_reg_pressure_class, setup_pressure_classes)
13669 (setup_allocno_and_important_classes, setup_class_translate_array)
13670 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13671 (ira_setup_eliminable_regset): Likewise.
13672 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13673 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13674 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13675 (process_alt_operands, inherit_in_ebb): Likewise.
13676 * lra-lives.c (process_bb_lives): Likewise.
13677 * lra-spills.c (assign_spill_hard_regs): Likewise.
13678 * lra.c (lra): Likewise.
13679 * mode-switching.c (new_seginfo): Likewise.
13680 * postreload.c (reload_combine): Likewise.
13681 * reg-stack.c (straighten_stack): Likewise.
13682 * reginfo.c (save_register_info, restore_register_info): Likewise.
13683 (init_reg_sets_1, record_subregs_of_mode): Likewise
13684 * regrename.c (create_new_chain, rename_chains): Likewise.
13685 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13686 (find_reload_regs): Likewise.
13687 * resource.c (find_dead_or_set_registers): Likewise.
13688 (mark_target_live_regs): Likewise.
13689 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13690
13691 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13692
13693 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13694 (note_pattern_stores): Declare.
13695 (note_stores): Take an rtx_insn *.
13696 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13697 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13698 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13699 (note_stores): Take an rtx_insn * as argument and process
13700 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13701 (note_pattern_stores): ...this.
13702 (find_first_parameter_load): Pass the insn rather than
13703 its pattern to note_stores.
13704 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13705 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13706 (insert_one_insn): Likewise.
13707 * combine.c (combine_instructions): Likewise.
13708 (likely_spilled_retval_p): Likewise.
13709 (try_combine): Use note_pattern_stores instead of note_stores.
13710 (record_dead_and_set_regs): Pass the insn rather than its pattern
13711 to note_stores.
13712 (reg_dead_at_p): Likewise.
13713 * config/bfin/bfin.c (workaround_speculation): Likewise.
13714 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13715 rather than an rtx.
13716 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13717 instead of note_stores.
13718 (frv_optimize_membar_local): Pass the insn rather than its pattern
13719 to note_stores.
13720 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13721 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13722 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13723 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13724 (mips_reorg_process_insns): Likewise.
13725 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13726 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13727 rather than rtxes.
13728 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13729 its pattern to note_stores.
13730 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13731 of note_stores.
13732 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13733 the insn to note_stores.
13734 (prescan_insns_for_dce): Update call accordingly.
13735 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13736 to note_stores.
13737 * df-problems.c (can_move_insns_across): Likewise.
13738 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13739 * function.c (assign_parm_setup_reg): Likewise.
13740 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13741 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13742 (single_set_gcse): Likewise.
13743 * ira.c (validate_equiv_mem): Likewise.
13744 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13745 for no_equiv.
13746 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13747 pattern to note_stores.
13748 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13749 * loop-iv.c (simplify_using_initial_values): Likewise.
13750 * mode-switching.c (optimize_mode_switching): Likewise.
13751 * optabs.c (emit_libcall_block_1): Likewise.
13752 (expand_atomic_compare_and_swap): Likewise.
13753 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13754 (record_opr_changes): Likewise. Remove explicit handling of
13755 CALL_INSN_FUNCTION_USAGE.
13756 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13757 * regcprop.c (kill_clobbered_values): Likewise.
13758 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13759 to note_stores.
13760 * regrename.c (build_def_use): Likewise.
13761 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13762 for mark_not_eliminable.
13763 (reload_as_needed): Pass the insn rather than its pattern
13764 to note_stores.
13765 (emit_output_reload_insns): Likewise.
13766 * resource.c (mark_target_live_regs): Likewise.
13767 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13768 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13769 instead of note_stores.
13770 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13771 its pattern to note_stores.
13772 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13773 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13774
13775 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13776
13777 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13778 than a #define. Use a structure rather than an array as the
13779 fallback definition. Remove special cases for low array sizes.
13780 (const_hard_reg_set): New typedef.
13781 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13782 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13783 (hard_reg_set_empty_p): Likewise.
13784 (SET_HARD_REG_BIT): Use a function rather than a macro to
13785 handle the case in which HARD_REG_SET is a structure.
13786 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13787 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13788 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13789 (IOR_COMPL_HARD_REG_SET): Likewise.
13790 (hard_reg_set_iterator::pset): Constify the pointer target.
13791 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13792 of a "const HARD_REG_SET". Update the handling of non-integer
13793 HARD_REG_SETs.
13794 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13795 * reload.h: Likewise.
13796 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13797 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13798 of a "const HARD_REG_SET".
13799 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13800 (range_in_hard_reg_set_p): Likewise.
13801 * ira-costs.c (restrict_cost_classes): Likewise.
13802 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13803 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13804 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13805 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13806 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13807 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13808 take an unsigned int and open-code the HARD_REG_SET operations.
13809
13810 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13811
13812 * Makefile.in (OBJS): Remove bt-load.o.
13813 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13814 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13815 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13816 document that the option no longer does anything.
13817 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13818 * target.def (branch_target_register_class): Delete.
13819 (branch_target_register_callee_saved): Likewise.
13820 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13821 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13822 * doc/tm.texi: Regenerate.
13823 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13824 (make_pass_branch_target_load_optimize2): Likewise.
13825 * passes.def (pass_branch_target_load_optimize1): Likewise.
13826 (pass_branch_target_load_optimize2): Likewise.
13827 * targhooks.h (default_branch_target_register_class): Likewise.
13828 * targhooks.c (default_branch_target_register_class): Likewise.
13829 * opt-suggestions.c (test_completion_valid_options): Remove
13830 -fbtr-bb-exclusive from the list of test options.
13831 * bt-load.c: Remove.
13832
13833 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13834
13835 * match.pd: Add flag_unsafe_math_optimizations check
13836 before deciding on the widest type in a binary math operation.
13837
13838 2019-09-09 Martin Liska <mliska@suse.cz>
13839
13840 * config/i386/i386.opt: Update comment of removed
13841 options that are preserved only for backward
13842 compatibility.
13843
13844 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13845
13846 PR target/87853
13847 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13848 instead of __v16qs.
13849
13850 PR target/91704
13851 * config/i386/avxintrin.h (__v32qs): New typedef.
13852 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13853 instead of __v32qi.
13854
13855 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13856
13857 * doc/invoke.texi (Option Summary): Cover eBPF.
13858 (eBPF Options): New section.
13859 * doc/extend.texi (BPF Built-in Functions): Likewise.
13860 (BPF Kernel Helpers): Likewise.
13861
13862 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13863
13864 * config.gcc: Support for bpf-*-* targets.
13865 * common/config/bpf/bpf-common.c: New file.
13866 * config/bpf/t-bpf: Likewise.
13867 * config/bpf/predicates.md: Likewise.
13868 * config/bpf/constraints.md: Likewise.
13869 * config/bpf/bpf.opt: Likewise.
13870 * config/bpf/bpf.md: Likewise.
13871 * config/bpf/bpf.h: Likewise.
13872 * config/bpf/bpf.c: Likewise.
13873 * config/bpf/bpf-protos.h: Likewise.
13874 * config/bpf/bpf-opts.h: Likewise.
13875 * config/bpf/bpf-helpers.h: Likewise.
13876 * config/bpf/bpf-helpers.def: Likewise.
13877
13878 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13879
13880 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13881 indirect_calls.
13882
13883 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13884
13885 * opt-functions.awk (integer_range_info): Make sure values are in
13886 numeric context before operating with them.
13887
13888 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13889
13890 * genemit.c (gen_split): Print the filename and line number where the
13891 splitter (or peephole2) was defined, to the dump file.
13892
13893 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13894
13895 PR tree-optimization/91665
13896 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13897 incompatible with the type of PHI result.
13898
13899 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13900
13901 PR target/91684
13902 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13903 gen_unaligned_storedi for 4-byte aligned addresses.
13904
13905 2019-09-06 Jim Wilson <jimw@sifive.com>
13906
13907 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13908 change.
13909
13910 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13911
13912 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13913
13914 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13915
13916 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13917 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13918
13919 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13920
13921 PR target/91654
13922 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13923 cost of SSE->integer and integer->SSE moves from 2 to 6.
13924 (core_cost): Ditto.
13925
13926 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13927
13928 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13929 before testing TYPE_TRANSPARENT_AGGR.
13930 * calls.c (initialize_argument_information, load_register_parameters):
13931 Likewise.
13932
13933 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13934
13935 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13936 high regs.
13937 (cmp_ior): Likewise.
13938
13939 2019-09-06 Martin Liska <mliska@suse.cz>
13940
13941 * doc/match-and-simplify.texi: Separate tuples with ;.
13942
13943 2019-09-06 Martin Liska <mliska@suse.cz>
13944
13945 PR c++/91125
13946 * Makefile.in: Remove tlink.o.
13947 * collect2.c (do_link): New function isolated
13948 from do_tlink.
13949 (main): Use.
13950 * collect2.h (do_tlink): Remove declaration of do_tlink.
13951 * doc/extend.texi: Remove documentation of -frepo.
13952 * doc/invoke.texi: Likewise.
13953 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13954 * tlink.c: Remove.
13955
13956 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13957 Jim Wilson <jimw@sifive.com>
13958
13959 PR target/91635
13960 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13961 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13962 paradoxical_subreg_p (operands[0]).
13963 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13964 use as intermediate value.
13965
13966 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13967
13968 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13969 (sync_compare_and_swap<mode>_insn): Likewise.
13970
13971 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13972
13973 PR middle-end/91615
13974 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13975 without movmisalign optab.
13976
13977 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13978
13979 PR middle-end/91001
13980 PR middle-end/91105
13981 PR middle-end/91106
13982 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13983 types, use type of their first field instead of type of
13984 args[i].tree_value.
13985
13986 2019-09-05 Richard Biener <rguenther@suse.de>
13987
13988 PR rtl-optimization/91656
13989 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13990 of early out.
13991
13992 2019-09-05 Richard Biener <rguenther@suse.de>
13993
13994 PR middle-end/90501
13995 * tree-inline.c (declare_return_variable): Mark the return
13996 slot as addressable after building an address of it.
13997
13998 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13999
14000 * doc/install.texi: Update and clarify requirements to build GNAT.
14001
14002 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14003
14004 PR middle-end/91577
14005 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14006 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14007 call to be in memory.
14008 (pass_expand::execute): Call discover_nonconstant_array_refs before
14009 setting currently_expanding_to_rtl.
14010
14011 2019-09-04 Caroline Tice <cmtice@google.com>
14012
14013 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14014 specified together.
14015
14016 2019-09-04 Marek Polacek <polacek@redhat.com>
14017
14018 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14019
14020 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14021
14022 PR target/32413
14023 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14024 for QI and HImode moves between SSE and general registers.
14025
14026 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14027
14028 PR c/78736
14029 * doc/invoke.texi: Document -Wenum-conversion.
14030
14031 2019-09-04 Richard Biener <rguenther@suse.de>
14032
14033 PR rtl-optimization/36262
14034 * postreload-gcse.c: Include intl.h and gcse.h.
14035 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14036 to avoid linear list walk.
14037 (record_last_mem_set_info): Gate off if not computing transparentness.
14038 (get_bb_avail_insn): If transparentness isn't computed give up
14039 early.
14040 (gcse_after_reload_main): Skip compute_transp and extended PRE
14041 if gcse_or_cprop_is_too_expensive says so.
14042
14043 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14044
14045 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14046 noinit section.
14047 (msp430_select_section): Handle decls with the "noinit" attribute with
14048 default_elf_select_section.
14049 Handle SECCAT_RODATA_MERGE_* section types with
14050 default_elf_select_section.
14051 Add comments about handling of unsupported section types.
14052 (msp430_section_type_flags): Remove handling of the noinit section.
14053
14054 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14055
14056 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14057 conflicting msp430-specific attributes.
14058 (msp430_section_attr): Likewise.
14059 Add warnings about conflicts with generic "noinit" and "section"
14060 attributes.
14061 Fix grammar in -mlarge error message.
14062 (msp430_data_attr): Rename to msp430_persist_attr.
14063 Add warnings about conflicts with generic "noinit" and "section"
14064 attributes.
14065 Add warning for when variable is not initialized.
14066 Chain conditionals which prevent the attribute being added.
14067 (ATTR_EXCL): New helper.
14068 (attr_reent_exclusions): New exclusion table.
14069 (attr_naked_exclusions): Likewise.
14070 (attr_crit_exclusions): Likewise.
14071 (attr_lower_exclusions): Likewise.
14072 (attr_upper_exclusions): Likewise.
14073 (attr_either_exclusions): Likewise.
14074 (attr_persist_exclusions): Likewise.
14075 (msp430_attribute_table): Update with exclusion rules.
14076 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14077 has a section.
14078
14079 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14080
14081 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14082 (msp430_handle_generic_attribute): New function.
14083 * doc/tm.texi: Regenerate.
14084 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14085 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14086 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14087 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14088
14089 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14090
14091 PR tree-optimization/91504
14092 * match.pd: Add ((~a & b) ^a) --> (a | b).
14093
14094 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14095
14096 PR target/91604
14097 * config/i386/i386-expand.c (split_double_mode): If there is more than
14098 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14099 already split matching MEM operand instead of calling adjust_address
14100 again.
14101
14102 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14103
14104 * config.gcc: Obsolete spu target. Remove references to spu.
14105 * configure.ac: Remove references to spu.
14106 * configure: Regenerate.
14107 * config/spu/: Remove directory.
14108 * common/config/spu/: Remove directory.
14109
14110 * doc/extend.texi: Remove references to spu.
14111 * doc/invoke.texi: Likewise.
14112 * doc/md.texi: Likewise.
14113 * doc/sourcebuild.texi: Likewise.
14114
14115 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14116
14117 PR middle-end/91603
14118 PR middle-end/91612
14119 PR middle-end/91613
14120 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14121 and SSA_NAME referring to CONSTANT_P correctly.
14122
14123 2019-09-03 Richard Biener <rguenther@suse.de>
14124
14125 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14126 (vn_nary_op_insert): Likewise.
14127 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14128 (vn_nary_op_lookup): Likewise.
14129 (vn_nary_op_insert): Likewise.
14130
14131 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14132
14133 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14134 (*op0, 1) instead of XEXP (*op1, 0).
14135
14136 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14137
14138 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14139 (aarch64_fjcvtzs): New define_insn.
14140 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14141 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14142 Add AARCH64_JSCVT.
14143 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14144 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14145 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14146 __ARM_FEATURE_JCVT where appropriate.
14147 * config/aarch64/arm_acle.h (__jcvt): Define.
14148
14149 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14150
14151 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14152 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14153 (aarch64_<frintnzs_op><mode>): New define_insn.
14154 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14155 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14156 __ARM_FEATURE_FRINT when appropriate.
14157 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14158 frint32x, frint64z, frint64x.
14159 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14160 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14161 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14162 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14163 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14164 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14165 * config/aarch64/iterators.md (VSFDF): Define.
14166 (FRINTNZX): Likewise.
14167 (frintnzs_op): Likewise.
14168
14169 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14170
14171 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14172 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14173 Cortex-A34.
14174 * config/aarch64/aarch64-tune.md: Regenerated.
14175 * doc/invoke.texi: Document the new processors.
14176
14177 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14178
14179 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14180 string.
14181 (ssbs): Likewise.
14182 (sve2): Likewise.
14183 (sve2-sm4): Likewise.
14184 (sveaes): Likewise.
14185 (svesha3): Likewise.
14186 (svebitperm): Likewise.
14187
14188 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14189 Richard Biener <rguenther@suse.de>
14190
14191 PR tree-optimization/91597
14192 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14193 BIT_AND_EXPR optimization for pointers, even if both operand
14194 ranges don't include NULL, the result can be NULL.
14195
14196 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14197
14198 PR middle-end/91605
14199 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14200 (non_mem_decl_p): ...this.
14201 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14202 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14203 unconditionally as before.
14204
14205 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14206
14207 PR target/91323
14208 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14209 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14210 * tree.def (LTGT_EXPR): Likewise.
14211 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14212
14213 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14214
14215 PR go/91617
14216 * fold-const.c (range_check_type): For enumeral and boolean
14217 type, pass 1 to type_for_size langhook instead of
14218 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14219 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14220 (build_range_check): Don't call unsigned_type_for for pointer types.
14221 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14222 range_check_type result.
14223
14224 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14225
14226 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14227 (replace_ref): Do not replace a chain of only two candidates which are
14228 valid memory references.
14229
14230 2019-09-02 Martin Liska <mliska@suse.cz>
14231
14232 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14233 Bail out when we'll end up with the same number of clusters as
14234 at the beginning.
14235 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14236 (jump_table_cluster::can_be_handled): Remove the guard
14237 as it's already handled in ::is_enabled. Allocate output
14238 after early bail out.
14239
14240 2019-09-02 Martin Liska <mliska@suse.cz>
14241
14242 PR gcov-profile/91601
14243 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14244 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14245 also negative edges.
14246 (circuit): Handle also negative edges as they can happen
14247 in some situations.
14248
14249 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14250
14251 PR target/91472
14252 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14253 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14254 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14255
14256 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14257
14258 PR middle-end/91623
14259 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14260 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14261 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14262 zero vector.
14263
14264 PR lto/91572
14265 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14266 GIMPLE_ASM TREE_LIST operands.
14267
14268 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14269
14270 * doc/generic.texi (Unary and Binary Expressions): Mark up
14271 an instance of TYPE_MIN.
14272
14273 2019-08-31 Stafford Horne <shorne@gmail.com>
14274
14275 * config/or1k/constraints.md (t): New constraint.
14276 * config/or1k/or1k.h (GOT_REGS): New register class.
14277 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14278
14279 2019-08-30 Jim Wilson <jimw@sifive.com>
14280
14281 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14282 and -fpic and -mplt then disable -msave-restore and warn.
14283
14284 2019-08-30 Martin Sebor <msebor@redhat.com>
14285
14286 PR middle-end/91599
14287 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14288 the statement doesn't have one.
14289 * gimple-pretty-print.c (percent_G_format): Same.
14290
14291 PR middle-end/91584
14292 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14293 before using them to validate MEM_REF offset.
14294
14295 2019-08-30 Marek Polacek <polacek@redhat.com>
14296
14297 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14298
14299 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14300
14301 * config/arm/arm.md (unaligned_loaddi,
14302 unaligned_storedi): New unspec insn patterns.
14303 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14304 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14305 and unaligned_storedi for 4-byte aligned memory.
14306 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14307 4-byte aligned memory.
14308
14309 2019-08-30 Martin Jambor <mjambor@suse.cz>
14310
14311 tree-optimization/91579
14312 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14313 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14314 appropriate.
14315 (arg_needs_copy_p): Removed.
14316 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14317 arg_needs_copy_p.
14318 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14319
14320 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14321
14322 * config/i386/i386-features.c
14323 (general_scalar_chain::compute_convert_gain):
14324 Correct cost for double-word shifts.
14325 (general_scalar_to_vector_candidate_p): Reject count operands
14326 greater or equal to mode bitsize.
14327
14328 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14329
14330 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14331 for moves between SSE and non-general registers and between
14332 mask and non-general registers.
14333 (ix86_register_move_cost): Remove stalled comment.
14334
14335 2019-08-29 Richard Biener <rguenther@suse.de>
14336
14337 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14338 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14339
14340 2019-08-29 Richard Biener <rguenther@suse.de>
14341
14342 PR bootstrap/91580
14343 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14344 Do not emit scalar copies for debug-insns, instead replace
14345 their uses with the reg copy used in the chain or reset them
14346 if there is a reaching definition outside of the chain as well.
14347
14348 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14349
14350 PR target/91560
14351 * config/i386/i386-expand.c (expand_vec_perm_movs,
14352 expand_vec_perm_blend, expand_vec_perm_vpermil,
14353 expand_vec_perm_pshufb, expand_vec_perm_1,
14354 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14355 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14356 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14357 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14358 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14359 comments - replace ix86_expand_vec_perm_builtin_1 with
14360 ix86_expand_vec_perm_const_1.
14361 (expand_vec_perm2_vperm2f128_vblend): New function.
14362 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14363 expand_vec_perm2_vperm2f128_vblend as last resort.
14364 (canonicalize_perm): Formatting fix.
14365
14366 PR tree-optimization/91351
14367 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14368 unsigned_type_for.
14369 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14370 range_check_type returns NULL.
14371 * tree-switch-conversion.c (switch_conversion::build_one_array):
14372 Use range_check_type instead of unsigned_type_for, don't perform
14373 linear opt if it returns NULL.
14374 (bit_test_cluster::find_bit_tests): Formatting fix.
14375 (bit_test_cluster::emit): Use range_check_type instead of
14376 unsigned_type_for.
14377 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14378 returns NULL.
14379
14380 2019-08-29 Richard Biener <rguenther@suse.de>
14381
14382 PR tree-optimization/91568
14383 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14384 (vect_update_max_nunits): Add overload for poly_uint64.
14385 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14386 (vect_build_slp_tree): Record max_nunits into the subtree
14387 and merge it upwards.
14388 (vect_print_slp_tree): Print max_nunits.
14389
14390 2019-08-28 Marek Polacek <polacek@redhat.com>
14391
14392 Implement P1152R4: Deprecating some uses of volatile.
14393 PR c++/91361
14394 * doc/invoke.texi: Document -Wvolatile.
14395
14396 2019-08-28 Marek Polacek <polacek@redhat.com>
14397
14398 PR c++/91360 - Implement C++20 P1143R2: constinit.
14399 * doc/invoke.texi: Document -Wc++20-compat.
14400
14401 2019-08-28 Martin Sebor <msebor@redhat.com>
14402
14403 PR tree-optimization/91457
14404 * builtins.c (component_size): New function.
14405 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14406 * builtins.h (compute_objsize): Add argument.
14407 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14408 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14409 (vrp_prop::check_mem_ref): Same.
14410 (vrp_prop::search_for_addr_array): Set no-warning bit.
14411 (check_array_bounds): Same.
14412
14413 2019-08-28 Martin Sebor <msebor@redhat.com>
14414
14415 PR driver/80545
14416 * opts-common.c (option_enabled): Correct checking for language
14417 options.
14418
14419 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14420
14421 * config/i386/i386.c (ix86_register_move_cost): Do not
14422 limit the cost of moves to/from XMM register to minimum 8.
14423
14424 2019-08-28 Martin Jambor <mjambor@suse.cz>
14425
14426 PR ipa/91468
14427 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14428 checking assert a normal assert to test it really is redundant.
14429 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14430 redundant test.
14431 (update_jump_functions_after_inlining): Removed combining unary
14432 arithmetic operations with an ancestor jump function.
14433 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14434 instead of t.
14435
14436 2019-08-28 Richard Biener <rguenther@suse.de>
14437
14438 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14439 add the MD problem.
14440
14441 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14442 Richard Biener <rguenther@suse.de>
14443
14444 * expr.c (expand_assignment): Handle misaligned DECLs.
14445 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14446 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14447 too.
14448 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14449 * varasm.c (build_constant_desc): Align constants of misaligned types.
14450 * config/arm/predicates.md (aligned_operand): New predicate.
14451 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14452 aligned_operand to check restrictions on memory addresses.
14453 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14454 * config/arm/vec-common.md (mov<VALL>): Likewise.
14455
14456 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14457
14458 PR libgomp/91530
14459 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14460 V_128 iterator instead of VI_128.
14461
14462 2019-08-28 Martin Liska <mliska@suse.cz>
14463
14464 PR tree-optimization/90970
14465 * builtins.c (check_access): Remove assignment to maxread
14466 as it hasn't been used since when it was introduced in r255755.
14467
14468 2019-08-27 Martin Sebor <msebor@redhat.com>
14469
14470 PR tree-optimization/91567
14471 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14472 of unknown strings.
14473 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14474 to PTRDIFF_MAX - 2.
14475
14476 2019-08-27 Jeff Law <law@redhat.com>
14477
14478 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14479 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14480
14481 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14482
14483 PR target/91528
14484 * config/i386/i386-features.c (convert_scalars_to_vector):
14485 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14486 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14487 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14488 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14489
14490 2019-08-27 Richard Biener <rguenther@suse.de>
14491
14492 * config/i386/i386-features.h
14493 (general_scalar_chain::~general_scalar_chain): Add.
14494 (general_scalar_chain::insns_conv): New bitmap.
14495 (general_scalar_chain::n_sse_to_integer): New.
14496 (general_scalar_chain::n_integer_to_sse): Likewise.
14497 (general_scalar_chain::make_vector_copies): Adjust signature.
14498 * config/i386/i386-features.c
14499 (general_scalar_chain::general_scalar_chain): Outline,
14500 initialize new members.
14501 (general_scalar_chain::~general_scalar_chain): New.
14502 (general_scalar_chain::mark_dual_mode_def): Record insns
14503 we need to insert conversions at and count them.
14504 (general_scalar_chain::compute_convert_gain): Account
14505 for conversion instructions at chain boundary.
14506 (general_scalar_chain::make_vector_copies): Generate a single
14507 copy for a def by a specific insn.
14508 (general_scalar_chain::convert_registers): First populate
14509 defs_map, then make copies at out-of chain insns.
14510
14511 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14512
14513 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14514 comment.
14515 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14516
14517 2019-08-27 Martin Liska <mliska@suse.cz>
14518
14519 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14520 loop.
14521 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14522 Enclose in anonymous namespace.
14523 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14524 hard_register initialization in braces.
14525 * tree-vrp.h (value_range_base::supports_type_p): Return false
14526 for function with boolean return type.
14527
14528 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14529
14530 * config/i386/i386.c (emit_i387_cw_initialization)
14531 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14532
14533 2019-08-26 Martin Sebor <msebor@redhat.com>
14534
14535 PR c++/83431
14536 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14537 (sprintf_dom_walker): Remove class.
14538 (get_int_range): Make argument const.
14539 (directive::fmtfunc, directive::set_precision): Same.
14540 (format_none): Same.
14541 (build_intmax_type_nodes): Same.
14542 (adjust_range_for_overflow): Same.
14543 (format_floating): Same.
14544 (format_character): Same.
14545 (format_string): Same.
14546 (format_plain): Same.
14547 (get_int_range): Cast away constness.
14548 (format_integer): Same.
14549 (get_string_length): Call get_range_strlen_dynamic. Handle
14550 null lendata.maxbound.
14551 (should_warn_p): Adjust argument scope qualifier.
14552 (maybe_warn): Same.
14553 (format_directive): Same.
14554 (parse_directive): Same.
14555 (is_call_safe): Same.
14556 (try_substitute_return_value): Same.
14557 (sprintf_dom_walker::handle_printf_call): Rename...
14558 (handle_printf_call): ...to this. Initialize target to host charmap
14559 here instead of in pass_sprintf_length::execute.
14560 (struct call_info): Make global.
14561 (sprintf_dom_walker::compute_format_length): Make global.
14562 (sprintf_dom_walker::handle_gimple_call): Same.
14563 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14564 * print-rtl.c (print_pattern): Reduce the number of spaces to
14565 avoid -Wformat-truncation.
14566 * tree-pass.h (make_pass_warn_printf): New function.
14567 * tree-ssa-strlen.c (strlen_optimize): New variable.
14568 (get_string_length): Add comments.
14569 (get_range_strlen_dynamic): New function.
14570 (check_and_optimize_call): New function.
14571 (handle_integral_assign): New function.
14572 (strlen_check_and_optimize_stmt): Factor code out into
14573 strlen_check_and_optimize_call and handle_integral_assign.
14574 (strlen_dom_walker::evrp): New member.
14575 (strlen_dom_walker::before_dom_children): Use evrp member.
14576 (strlen_dom_walker::after_dom_children): Use evrp member.
14577 (printf_strlen_execute): New function.
14578 (pass_strlen::gate): Update to handle printf calls.
14579 (dump_strlen_info): New function.
14580 (pass_data_warn_printf): New variable.
14581 (pass_warn_printf): New class.
14582 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14583 (handle_printf_call): Same.
14584 * tree-vrp.c (value_range_base::type): Adjust assertion.
14585 * vr-values.c (vr_values::update_value_range): Use type of the first
14586 argument rather than the second.
14587
14588 2019-08-26 Richard Biener <rguenther@suse.de>
14589
14590 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14591 Remove.
14592 (convert_scalars_to_vector): Do not call it.
14593
14594 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14595 Uros Bizjak <ubizjak@gmail.com>
14596
14597 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14598 CASE_MATHFN_FLOATN for roundeven.
14599 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14600 I387_ROUNDEVEN.
14601 (ix86_mode_needed): Likewise.
14602 (ix86_mode_after): Likewise.
14603 (ix86_mode_entry): Likewise.
14604 (ix86_mode_exit): Likewise.
14605 (ix86_emit_mode_set): Likewise.
14606 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14607 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14608 (ix86_entity): Add I387_ROUNDEVEN.
14609 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14610 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14611 (define_int_iterator): Likewise.
14612 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14613 (define_constant): Define ROUND_ROUNDEVEN mode.
14614 (define_attr): Add roundeven mode for i387_cw.
14615 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14616 * internal-fn.def (ROUNDEVEN): New builtin function.
14617 * optabs.def (roundeven_optab): New optab.
14618
14619 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14620
14621 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14622 for ROUNDEVEN.
14623 * builtins.def: Added function definitions for roundeven function
14624 variants.
14625 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14626 function call. Adjust condition for floor, ceil, trunc and round.
14627 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14628 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14629 (integer_valued_real_call_p): Added case for roundeven function.
14630 * real.c (is_even): New function. Returns true if real number is even,
14631 otherwise returns false.
14632 (is_halfway_below): New function. Returns true if real number is
14633 halfway between two integers, else return false.
14634 (real_roundeven): New function. Round real number to nearest integer,
14635 rounding halfway cases towards even.
14636 * real.h (real_value): Added descriptive comments. Added function
14637 declaration for roundeven function.
14638 * doc/extend.texi (Other Builtins): List roundeven variants among
14639 functions which can be handled as builtins.
14640
14641 2019-08-26 Richard Biener <rguenther@suse.de>
14642
14643 PR target/91522
14644 PR target/91527
14645 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14646 New member.
14647 (general_scalar_chain::replace_with_subreg): Remove.
14648 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14649 (general_scalar_chain::convert_reg): Adjust signature.
14650 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14651 iterate over all defs of a reg.
14652 (general_scalar_chain::replace_with_subreg): Remove.
14653 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14654 (general_scalar_chain::make_vector_copies): Populate defs_map,
14655 place copy only after defs that are used as vectors in the chain.
14656 (general_scalar_chain::convert_reg): Emit a copy for a specific
14657 def in a specific instruction.
14658 (general_scalar_chain::convert_op): All reg uses are converted here.
14659 (general_scalar_chain::convert_insn): Emit copies for scalar
14660 uses of defs here. Replace uses with the copies we created.
14661 Replace and convert the def. Adjust REG_DEAD notes, remove
14662 REG_EQUIV/EQUAL notes.
14663 (general_scalar_chain::convert_registers): Only handle copies
14664 into the chain here.
14665
14666 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14667
14668 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14669
14670 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14671
14672 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14673 Add nop_convert case.
14674 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14675 Fold all statements if requested.
14676 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14677 Allow to fold all statements.
14678 * tree-vrp.c (class vrp_folder):
14679 Let substitute_and_fold_engine fold all statements.
14680
14681 2019-08-26 Richard Biener <rguenther@suse.de>
14682
14683 PR tree-optimization/91526
14684 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14685 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14686 TODO_update_address_taken.
14687
14688 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14689
14690 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14691 __STDC_HOSTED__.
14692
14693 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14694
14695 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14696 machine mode for unspec_volatile operand.
14697
14698 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14699
14700 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14701 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14702 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14703 (prefer_neon_for_64bits): Remove.
14704 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14705 (tune_params): Remove PREF_NEON_64_FALSE uses.
14706 (arm_option_override): Remove prefer_neon selection code.
14707 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14708 * config/arm/arm-protos.h (tune_params): Remove
14709 prefer_neon_for_64bits.
14710 (prefer_neon_for_64bits): Remove.
14711
14712 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14713
14714 PR pch/61250
14715 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14716 and issue any diagnostics needed before collecting the pre-PCH
14717 state.
14718
14719 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14720
14721 PR middle-end/91283
14722 * common.opt (fexcess-precision=): Add Optimization flag. Use
14723 flag_excess_precision variable instead of
14724 flag_excess_precision_cmdline.
14725 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14726 member.
14727 (flag_excess_precision): Don't define.
14728 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14729 flag_excess_precision_cmdline. Remove comment.
14730 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14731 and x_flag_excess_precision instead of
14732 frontend_set_flag_excess_precision_cmdline and
14733 x_flag_excess_precision_cmdline.
14734 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14735 x_flag_excess_precision_cmdline.
14736 * toplev.c (init_excess_precision): Remove.
14737 (lang_dependent_init_target): Don't call it.
14738
14739 2019-08-23 Martin Liska <mliska@suse.cz>
14740
14741 * lto-wrapper.c (run_gcc): When setting jobserver
14742 set also parallel to 1. This was done so before r273908.
14743
14744 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14745
14746 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14747 (cortex-a76ae): Likewise.
14748 (cortex-a77): Likewise
14749 * config/arm/arm-tables.opt: Regenerate.
14750 * config/arm/arm-tune.md: Likewise.
14751 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14752 cortex-a77 CPU options.
14753
14754 2019-08-23 Martin Liska <mliska@suse.cz>
14755
14756 * profile.c (instrument_values): Do not set
14757 0 as last argument.
14758 * tree-profile.c (gimple_gen_interval_profiler): Remove
14759 last argument.
14760 (gimple_gen_pow2_profiler): Likewise.
14761 (gimple_gen_topn_values_profiler): Likewise.
14762 (gimple_gen_ic_profiler): Likewise.
14763 (gimple_gen_time_profiler): Likewise.
14764 (gimple_gen_average_profiler): Likewise.
14765 (gimple_gen_ior_profiler): Likewise.
14766 * value-prof.c (dump_histogram_value): Use default
14767 in switch statement instead of HIST_TYPE_MAX.
14768 (stream_in_histogram_value): Likewise.
14769 (gimple_duplicate_stmt_histograms): Do not
14770 use NULL for implicitly set arguments.
14771 (gimple_divmod_values_to_profile): Do not use
14772 reserve+quick_push.
14773 (gimple_indirect_call_to_profile): Likewise.
14774 (gimple_find_values_to_profile): Use implicit
14775 function call arguments.
14776 * value-prof.h (gimple_alloc_histogram_value):
14777 Set default values.
14778 (gimple_gen_interval_profiler): Remove last argument.
14779 (gimple_gen_pow2_profiler): Likewise.
14780 (gimple_gen_topn_values_profiler): Likewise.
14781 (gimple_gen_ic_profiler): Likewise.
14782 (gimple_gen_time_profiler): Likewise.
14783 (gimple_gen_average_profiler): Likewise.
14784 (gimple_gen_ior_profiler): Likewise.
14785
14786 2019-08-22 Martin Sebor <msebor@redhat.com>
14787
14788 PR middle-end/91490
14789 * builtins.c (c_strlen): Rename argument and introduce new local.
14790 Set no-warning bit on original argument.
14791 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14792 Fold empty and zero constructors into empty strings.
14793 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14794 for missing initializers.
14795 * tree.c (build_string_literal): Handle optional argument.
14796 * tree.h (build_string_literal): Add defaulted argument.
14797 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14798 no-warning bit on original expression.
14799
14800 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14801
14802 PR target/91481
14803 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14804 and UNSPEC_DARN_RAW.
14805 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14806 UNSPECV_DARN_RAW.
14807 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14808 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14809 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14810
14811 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14812
14813 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14814 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14815 * config/rs6000/rs6000.md (unspec): ... here.
14816 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14817 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14818 cmpeqb, *cmpeqb_internal): Delete, move to...
14819 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14820 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14821 cmpeqb, *cmpeqb_internal): ... here.
14822
14823 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14824
14825 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14826 intrinsics if __ARM_FP.
14827 Use __ARM_FEATURE_CRC32 ifdef guard.
14828
14829 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14830
14831 * config/arm/arm.md (neon_for_64bits): Remove.
14832 (avoid_neon_for_64bits): Remove.
14833 (arm_adddi3): Always split early.
14834 (arm_subdi3): Always split early.
14835 (negdi2): Remove Neon expansion.
14836 (split zero_extend): Split before reload.
14837 (split sign_extend): Split before reload.
14838
14839 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14840
14841 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14842 (qhs_extenddi_cstr): Likewise.
14843 * config/arm/arm.md (ashldi3): Always expand early.
14844 (ashlsi3): Likewise.
14845 (ashrsi3): Likewise.
14846 (zero_extend<mode>di2): Remove Neon variants.
14847 (extend<mode>di2): Likewise.
14848 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14849 (signed_shift_di3_neon): Likewise.
14850 (unsigned_shift_di3_neon): Likewise.
14851 (ashrdi3_neon_imm_noclobber): Likewise.
14852 (lshrdi3_neon_imm_noclobber): Likewise.
14853 (<shift>di3_neon): Likewise.
14854 (split extend): Remove DI extend split patterns.
14855
14856 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14857
14858 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14859 (split not): Add DImode not splitter.
14860 (anddi3): Remove pattern.
14861 (anddi3_insn): Likewise.
14862 (anddi_zesidi_di): Likewise.
14863 (anddi_sesdi_di): Likewise.
14864 (anddi_notdi_di): Likewise.
14865 (anddi_notzesidi_di): Likewise.
14866 (anddi_notsesidi_di): Likewise.
14867 (iordi3): Likewise.
14868 (iordi3_insn): Likewise.
14869 (iordi_zesidi_di): Likewise.
14870 (iordi_sesidi_di): Likewise.
14871 (xordi3): Likewise.
14872 (xordi3_insn): Likewise.
14873 (xordi_sesidi_di): Likewise.
14874 (xordi_zesidi_di): Likewise.
14875 (one_cmpldi2): Likewise.
14876 (one_cmpldi2_insn): Likewise.
14877 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14878 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14879 alternative.
14880 (iwmmxt_xordi3): Likewise.
14881 (iwmmxt_anddi3): Likewise.
14882 * config/arm/neon.md (orndi3_neon): Remove pattern.
14883 (anddi_notdi_di): Likewise.
14884 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14885 (arm_iordi_operand_neon): Likewise.
14886 (arm_xordi_operand_neon): Likewise.
14887 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14888 (iordi_notzesidi_di): Likewise.
14889 (iordi_notdi_zesidi): Likewise.
14890 (iordi_notsesidi_di): Likewise.
14891
14892 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14893
14894 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14895 insn.
14896 (iorsi3_compare0_scratch): Likewise.
14897
14898 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14899
14900 * config/aarch64/aarch64-simd-builtins.def:
14901 (ld1x4): New.
14902 (st1x4): Likewise.
14903 * config/aarch64/aarch64-simd.md:
14904 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14905 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14906 (aarch64_ld1_x4_<mode>): Likewise.
14907 (aarch64_st1_x4_<mode>): Likewise.
14908 * config/aarch64/arm_neon.h:
14909 (vld1_s8_x4): New function.
14910 (vld1q_s8_x4): Likewise.
14911 (vld1_s16_x4): Likewise.
14912 (vld1q_s16_x4): Likewise.
14913 (vld1_s32_x4): Likewise.
14914 (vld1q_s32_x4): Likewise.
14915 (vld1_u8_x4): Likewise.
14916 (vld1q_u8_x4): Likewise.
14917 (vld1_u16_x4): Likewise.
14918 (vld1q_u16_x4): Likewise.
14919 (vld1_u32_x4): Likewise.
14920 (vld1q_u32_x4): Likewise.
14921 (vld1_f16_x4): Likewise.
14922 (vld1q_f16_x4): Likewise.
14923 (vld1_f32_x4): Likewise.
14924 (vld1q_f32_x4): Likewise.
14925 (vld1_p8_x4): Likewise.
14926 (vld1q_p8_x4): Likewise.
14927 (vld1_p16_x4): Likewise.
14928 (vld1q_p16_x4): Likewise.
14929 (vld1_s64_x4): Likewise.
14930 (vld1_u64_x4): Likewise.
14931 (vld1_p64_x4): Likewise.
14932 (vld1q_s64_x4): Likewise.
14933 (vld1q_u64_x4): Likewise.
14934 (vld1q_p64_x4): Likewise.
14935 (vld1_f64_x4): Likewise.
14936 (vld1q_f64_x4): Likewise.
14937 (vst1_s8_x4): Likewise.
14938 (vst1q_s8_x4): Likewise.
14939 (vst1_s16_x4): Likewise.
14940 (vst1q_s16_x4): Likewise.
14941 (vst1_s32_x4): Likewise.
14942 (vst1q_s32_x4): Likewise.
14943 (vst1_u8_x4): Likewise.
14944 (vst1q_u8_x4): Likewise.
14945 (vst1_u16_x4): Likewise.
14946 (vst1q_u16_x4): Likewise.
14947 (vst1_u32_x4): Likewise.
14948 (vst1q_u32_x4): Likewise.
14949 (vst1_f16_x4): Likewise.
14950 (vst1q_f16_x4): Likewise.
14951 (vst1_f32_x4): Likewise.
14952 (vst1q_f32_x4): Likewise.
14953 (vst1_p8_x4): Likewise.
14954 (vst1q_p8_x4): Likewise.
14955 (vst1_p16_x4): Likewise.
14956 (vst1q_p16_x4): Likewise.
14957 (vst1_s64_x4): Likewise.
14958 (vst1_u64_x4): Likewise.
14959 (vst1_p64_x4): Likewise.
14960 (vst1q_s64_x4): Likewise.
14961 (vst1q_u64_x4): Likewise.
14962 (vst1q_p64_x4): Likewise.
14963 (vst1_f64_x4): Likewise.
14964 (vst1q_f64_x4): Likewise.
14965
14966 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14967
14968 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14969
14970 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14971 Richard Sandiford <richard.sandiford@arm.com>
14972
14973 PR target/88839
14974 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14975 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14976
14977 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14978
14979 PR target/90724
14980 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14981 in reg if it fails aarch64_plus_operand predicate.
14982
14983 2019-08-21 Richard Biener <rguenther@suse.de>
14984
14985 PR tree-optimization/91482
14986 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14987 BUILT_IN_ASSUME_ALIGNED calls.
14988
14989 2019-08-21 Richard Biener <rguenther@suse.de>
14990
14991 PR target/91498
14992 PR target/91503
14993 * config/i386/i386-features.c
14994 (general_scalar_chain::make_vector_copies): Copy stack temporary
14995 rtx when using it multiple times.
14996 (general_scalar_chain::convert_reg): Likewise.
14997
14998 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14999
15000 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15001
15002 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15003
15004 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15005 catch more redundant zero initialization cases.
15006 (dse_dom_walker::dse_optimize_stmt): Likewise.
15007
15008 2019-08-20 Richard Biener <rguenther@suse.de>
15009
15010 PR lto/91307
15011 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15012 by collect2 when targetm.have_ctors_dtors which avoids dragging
15013 in temporary filenames from LTO input objects.
15014
15015 2019-08-20 Richard Biener <rguenther@suse.de>
15016
15017 PR tree-optimization/37242
15018 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15019 to (T)a + (T)b if we know that a + b does not overflow.
15020
15021 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15022
15023 PR rtl-optimization/91347
15024 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15025 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15026
15027 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15028
15029 * calls.h (function_arg_info): Add a pass_by_reference field,
15030 defaulting to false.
15031 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15032 when applying pass-by-reference semantics.
15033 (initialize_argument_information): Likewise.
15034 (emit_library_call_value_1): Likewise.
15035 * function.c (assign_parm_data_one): Remove passed_pointer field.
15036 (assign_parm_find_data_types): Don't set it.
15037 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15038 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15039 arg.pass_by_reference instead of passed_pointer.
15040
15041 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15042
15043 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15044 into a single function_arg_info, updating its fields when we
15045 apply pass-by-reference and promotion semantics. Use the
15046 function_arg_info to track the mode rather than keeping it in
15047 a separate local variable.
15048 (initialize_argument_information): Likewise. Base the final
15049 arg_to_skip on this new function_arg_info rather than creating
15050 a new one from scratch.
15051
15052 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15053
15054 * function.c (assign_parm_data_one): Replace passed_type,
15055 promoted_mode and named_arg with a function_arg_info field.
15056 (assign_parm_find_data_types): Remove local variables and
15057 assign directly to "data". Make data->passed_mode shadow
15058 data->arg.mode until promotion, then assign the promoted
15059 mode to data->arg.mode.
15060 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15061 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15062 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15063 (assign_parm_setup_block, assign_parm_setup_reg)
15064 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15065 arg.mode instead of promoted_mode, arg.type instead of passed_type
15066 and arg.named instead of named_arg. Use data->arg for
15067 function_arg_info structures that had the field values passed_type,
15068 promoted_mode and named_arg. Base other function_arg_infos on
15069 data->arg, changing the necessary properties.
15070
15071 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15072
15073 * calls.h (apply_pass_by_reference_rules): Declare.
15074 * calls.c (apply_pass_by_reference_rules): New function.
15075 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15076 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15077 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15078 * function.c (assign_parm_find_data_types): Likewise.
15079 * var-tracking.c (prepare_call_arguments): Likewise.
15080
15081 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15082
15083 * target.def (must_pass_in_stack): Take a function_arg_info instead
15084 of a mode and a type.
15085 * doc/tm.texi: Regenerate.
15086 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15087 instead of a mode and a type.
15088 (must_pass_in_stack_var_size_or_pad): Likewise.
15089 * calls.c (must_pass_in_stack_var_size): Likewise.
15090 (must_pass_in_stack_var_size_or_pad): Likewise.
15091 (initialize_argument_information): Update call to
15092 targetm.calls.must_pass_in_stack.
15093 (must_pass_va_arg_on_stack): Likewise.
15094 * function.c (assign_parm_find_entry_rtl): Likewise.
15095 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15096 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15097 (alpha_function_arg_advance): Likewise.
15098 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15099 (cr16_function_arg_advance): Likewise.
15100 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15101 (cris_arg_partial_bytes): Likewise.
15102 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15103 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15104 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15105 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15106 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15107 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15108 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15109 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15110 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15111 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15112 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15113 instead of a mode and a type.
15114 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15115 (fr30_num_arg_regs): Likewise.
15116 (fr30_setup_incoming_varargs): Update calls accordingly.
15117 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15118 (fr30_function_arg_advance): Likewise.
15119 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15120 instead of a mode and a type.
15121 * config/gcn/gcn.c (num_arg_regs): Likewise.
15122 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15123 num_arg_regs and targetm.calls.must_pass_in_stack.
15124 (gcn_arg_partial_bytes): Likewise.
15125 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15126 function_arg_info instead of a mode and a type.
15127 (classify_argument): Update call accordingly.
15128 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15129 function_arg_info instead of a mode and a type.
15130 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15131 Likewise.
15132 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15133 (rs6000_parm_needs_stack): Update call accordingly.
15134 (setup_incoming_varargs): Likewise.
15135
15136 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15137
15138 * target.def (callee_copies): Take a function_arg_info instead
15139 of a mode, type and named flag.
15140 * doc/tm.texi: Regenerate.
15141 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15142 instead of a mode, type and named flag.
15143 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15144 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15145 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15146 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15147 instead of a mode, type and named flag.
15148 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15149 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15150 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15151 * calls.h (reference_callee_copied): Take a function_arg_info
15152 instead of a mode, type and named flag.
15153 * calls.c (reference_callee_copied): Likewise.
15154 (initialize_argument_information): Update call accordingly.
15155 (emit_library_call_value_1): Likewise.
15156 * function.c (gimplify_parameters): Likewise.
15157 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15158 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15159 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15160 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15161 (TARGET_CALLEE_COPIES): Define to
15162 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15163 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15164 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15165 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15166 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15167 instead of a mode, type and named flag.
15168 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15169 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15170 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15171 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15172 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15173 (TARGET_CALLEE_COPIES): Define to
15174 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15175 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15176 instead of a mode, type and named flag.
15177 * config/sh/sh.c (sh_callee_copies): Likewise.
15178 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15179 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15180 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15181
15182 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15183
15184 * target.def (function_arg_advance): Take a function_arg_info instead
15185 of a mode, type and named flag.
15186 * doc/tm.texi: Regenerate.
15187 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15188 instead of a mode, type and named flag.
15189 * targhooks.c (default_function_arg_advance): Likewise.
15190 * calls.c (initialize_argument_information): Update call to
15191 targetm.calls.function_arg_advance.
15192 (emit_library_call_value_1): Likewise.
15193 * dse.c (get_call_args): Likewise.
15194 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15195 * function.c (assign_parms, gimplify_parameters): Likewise.
15196 * var-tracking.c (prepare_call_arguments): Likewise.
15197 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15198 function_arg_info instead of a mode, type and named flag.
15199 (aarch64_setup_incoming_varargs): Update call accordingly.
15200 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15201 function_arg_info instead of a mode, type and named flag.
15202 (alpha_setup_incoming_varargs): Update call accordingly.
15203 * config/arc/arc.c (arc_function_arg_advance): Take a
15204 function_arg_info instead of a mode, type and named flag.
15205 (arc_setup_incoming_varargs): Update call accordingly.
15206 * config/arm/arm.c (arm_function_arg_advance): Take a
15207 function_arg_info instead of a mode, type and named flag.
15208 (cmse_func_args_or_return_in_stack): Update call accordingly.
15209 (arm_function_ok_for_sibcall): Likewise.
15210 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15211 * config/avr/avr.c (avr_function_arg_advance): Take a
15212 function_arg_info instead of a mode, type and named flag.
15213 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15214 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15215 (c6x_call_saved_register_used): Update call accordingly.
15216 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15217 function_arg_info instead of a mode, type and named flag.
15218 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15219 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15220 (csky_setup_incoming_varargs): Update call accordingly.
15221 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15222 function_arg_info instead of a mode, type and named flag.
15223 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15224 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15225 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15226 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15227 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15228 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15229 (ix86_setup_incoming_varargs): Update call accordingly.
15230 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15231 function_arg_info instead of a mode, type and named flag.
15232 (ia64_setup_incoming_varargs): Update call accordingly.
15233 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15234 function_arg_info instead of a mode, type and named flag.
15235 (iq2000_expand_prologue): Update call accordingly.
15236 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15237 function_arg_info instead of a mode, type and named flag.
15238 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15239 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15240 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15241 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15242 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15243 Likewise.
15244 (microblaze_expand_prologue): Update call accordingly.
15245 * config/mips/mips.c (mips_function_arg_advance): Take a
15246 function_arg_info instead of a mode, type and named flag.
15247 (mips_setup_incoming_varargs): Update call accordingly.
15248 (mips_output_args_xfer): Likewise.
15249 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15250 function_arg_info instead of a mode, type and named flag.
15251 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15252 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15253 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15254 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15255 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15256 (nios2_setup_incoming_varargs): Update call accordingly.
15257 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15258 function_arg_info instead of a mode, type and named flag.
15259 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15260 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15261 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15262 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15263 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15264 (riscv_setup_incoming_varargs): Update call accordingly.
15265 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15266 function_arg_info instead of a mode, type and named flag.
15267 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15268 Likewise.
15269 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15270 (rs6000_parm_needs_stack): Update call accordingly.
15271 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15272 instead of a mode, type and named flag.
15273 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15274 (s390_call_saved_register_used): Update call accordingly.
15275 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15276 instead of a mode, type and named flag.
15277 (sh_output_mi_thunk): Update call accordingly.
15278 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15279 function_arg_info instead of a mode, type and named flag.
15280 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15281 (spu_setup_incoming_varargs): Update call accordingly.
15282 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15283 function_arg_info instead of a mode, type and named flag.
15284 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15285 (tilegx_setup_incoming_varargs): Update call accordingly.
15286 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15287 function_arg_info instead of a mode, type and named flag.
15288 (tilegx_setup_incoming_varargs): Update call accordingly.
15289 * config/v850/v850.c (v850_function_arg_advance): Take a
15290 function_arg_info instead of a mode, type and named flag.
15291 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15292 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15293 (visium_setup_incoming_varargs): Update call accordingly.
15294 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15295 function_arg_info instead of a mode, type and named flag.
15296
15297 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15298
15299 * target.def (function_arg, function_incoming_arg): Take a
15300 function_arg_info instead of a mode, tree and named flag.
15301 * doc/tm.texi: Regenerate.
15302 * targhooks.h (default_function_arg): Take a function_arg_info
15303 instead of a mode, tree and named flag.
15304 (default_function_incoming_arg): Likewise.
15305 * targhooks.c (default_function_arg): Likewise.
15306 (default_function_incoming_arg): Likewise.
15307 * calls.h (function_arg_info::end_marker_p): New function.
15308 (function_arg_info::end_marker): Likewise.
15309 * calls.c (prepare_call_address, initialize_argument_information)
15310 (expand_call, emit_library_call_value_1): Update calls to
15311 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15312 * dse.c: Include calls.h.
15313 (get_call_args): Update call to targetm.calls.function_arg.
15314 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15315 * var-tracking.c (prepare_call_arguments): Likewise.
15316 * function.c (assign_parm_find_entry_rtl): Update call to
15317 targetm.calls.function_incoming_arg.
15318 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15319 function_arg_info instead of a mode, tree and named flag.
15320 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15321 * config/arc/arc.c (arc_function_arg): Likewise.
15322 * config/arm/arm.c (arm_function_arg): Likewise.
15323 (cmse_func_args_or_return_in_stack): Update call accordingly.
15324 (arm_function_ok_for_sibcall): Likewise.
15325 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15326 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15327 instead of a mode, tree and named flag.
15328 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15329 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15330 (c6x_call_saved_register_used): Update call accordingly.
15331 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15332 instead of a mode, tree and named flag.
15333 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15334 (cris_function_arg_1): Likewise.
15335 * config/csky/csky.c (csky_function_arg): Likewise.
15336 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15337 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15338 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15339 (frv_function_arg_1): Likewise.
15340 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15341 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15342 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15343 * config/i386/i386.c (ix86_function_arg): Likewise.
15344 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15345 (ia64_function_arg_1): Likewise.
15346 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15347 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15348 accordingly.
15349 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15350 instead of a mode, tree and named flag.
15351 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15352 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15353 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15354 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15355 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15356 (microblaze_expand_prologue): Update call accordingly.
15357 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15358 instead of a mode, tree and named flag.
15359 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15360 (mmix_function_arg_1): Likewise.
15361 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15362 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15363 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15364 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15365 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15366 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15367 (nvptx_function_incoming_arg): Likewise.
15368 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15369 * config/pa/pa.c (pa_function_arg): Likewise.
15370 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15371 * config/pru/pru.c (pru_function_arg): Likewise.
15372 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15373 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15374 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15375 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15376 (rs6000_parm_needs_stack): Update call accordingly.
15377 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15378 instead of a mode, tree and named flag.
15379 * config/s390/s390.c (s390_function_arg): Likewise.
15380 (s390_call_saved_register_used): Update call accordingly.
15381 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15382 instead of a mode, tree and named flag.
15383 (sh_output_mi_thunk): Update call accordingly.
15384 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15385 (sparc_function_incoming_arg): Take a function_arg_info instead of
15386 a mode, tree and named flag.
15387 * config/spu/spu.c (spu_function_arg): Likewise.
15388 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15389 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15390 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15391 * config/v850/v850.c (v850_function_arg): Likewise.
15392 * config/vax/vax.c (vax_function_arg): Likewise.
15393 * config/visium/visium.c (visium_function_arg): Likewise.
15394 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15395 (xtensa_function_incoming_arg): Likewise.
15396
15397 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15398
15399 * target.def (setup_incoming_varargs): Take a function_arg_info
15400 instead of a mode and tree.
15401 * doc/tm.texi: Regenerate.
15402 * targhooks.h (default_setup_incoming_varargs): Take a
15403 function_arg_info instead of a mode and tree.
15404 * targhooks.c (default_setup_incoming_varargs): Likewise.
15405 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15406 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15407 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15408 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15409 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15410 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15411 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15412 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15413 Likewise.
15414 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15415 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15416 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15417 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15418 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15419 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15420 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15421 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15422 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15423 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15424 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15425 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15426 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15427 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15428 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15429 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15430 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15431 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15432 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15433 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15434 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15435 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15436 * function.c (assign_parms_setup_varargs): Update call to
15437 targetm.calls.setup_incoming_varargs.
15438
15439 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15440
15441 * target.def (pass_by_reference): Take a function_arg_info instead
15442 of a mode, type and named flag.
15443 * doc/tm.texi: Regenerate.
15444 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15445 accordingly.
15446 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15447 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15448 function_arg_info instead of a mode, type and named flag.
15449 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15450 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15451 mode, type and named flag.
15452 * calls.c (pass_by_reference): Likewise.
15453 (pass_va_arg_by_reference): Update call accordingly.
15454 (initialize_argument_information): Likewise.
15455 (emit_library_call_value_1): Likewise.
15456 * function.c (assign_parm_find_data_types): Likewise.
15457 * var-tracking.c (prepare_call_arguments): Likewise.
15458 * stor-layout.c: Include calls.h.
15459 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15460 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15461 function_arg_info instead of a mode, type and named flag.
15462 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15463 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15464 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15465 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15466 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15467 (c6x_call_saved_register_used): Update call to pass_by_reference.
15468 * config/cris/cris.c (cris_pass_by_reference): Take a
15469 function_arg_info instead of a mode, type and named flag.
15470 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15471 function_arg_info instead of a mode, type and named flag.
15472 (epiphany_arg_partial_bytes): Update call accordingly.
15473 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15474 function_arg_info instead of a mode, type and named flag.
15475 (ft32_arg_partial_bytes): Update call accordingly.
15476 * config/i386/i386.c (ix86_pass_by_reference): Take a
15477 function_arg_info instead of a mode, type and named flag.
15478 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15479 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15480 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15481 (m32r_return_in_memory): Update call accordingly.
15482 * config/mips/mips.c (mips_pass_by_reference): Take a
15483 function_arg_info instead of a mode, type and named flag.
15484 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15485 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15486 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15487 (moxie_arg_partial_bytes): Update call accordingly.
15488 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15489 function_arg_info instead of a mode, type and named flag.
15490 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15491 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15492 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15493 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15494 (riscv_return_in_memory): Update call accordingly.
15495 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15496 function_arg_info instead of a mode, type and named flag.
15497 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15498 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15499 * config/s390/s390.c (s390_pass_by_reference): Take a
15500 function_arg_info instead of a mode, type and named flag.
15501 (s390_call_saved_register_used): Update call accordingly.
15502 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15503 instead of a mode, type and named flag.
15504 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15505 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15506 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15507 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15508 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15509 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15510
15511 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15512
15513 * target.def (arg_partial_bytes): Take a function_arg_info instead
15514 of a mode, type and named flag.
15515 * doc/tm.texi: Regenerate.
15516 * target.h (function_arg_info): Declare.
15517 * calls.h (function_arg_info): New class.
15518 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15519 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15520 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15521 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15522 * calls.c (initialize_argument_information): Update call to
15523 targetm.calls.partial_bytes.
15524 (emit_library_call_value_1): Likewise.
15525 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15526 * function.c (assign_parm_find_entry_rtl): Likewise.
15527 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15528 function_arg_info instead of a mode, type and named flag.
15529 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15530 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15531 (cmse_func_args_or_return_in_stack): Update accordingly.
15532 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15533 function_arg_info instead of a mode, type and named flag.
15534 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15535 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15536 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15537 * config/fr30/fr30.c: Include calls.h.
15538 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15539 type and named flag.
15540 * config/frv/frv.c: Include calls.h.
15541 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15542 type and named flag.
15543 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15544 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15545 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15546 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15547 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15548 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15549 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15550 Likewise.
15551 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15552 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15553 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15554 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15555 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15556 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15557 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15558 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15559 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15560 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15561 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15562 (rs6000_parm_needs_stack): Update call accordingly.
15563 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15564 function_arg_info instead of a mode, type and named flag.
15565 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15566 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15567
15568 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15569
15570 * calls.h (must_pass_va_arg_in_stack): Declare.
15571 * calls.c (must_pass_va_arg_in_stack): New function.
15572 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15573 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15574 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15575 Likewise.
15576 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15577
15578 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15579
15580 * calls.h (pass_va_arg_by_reference): Declare.
15581 * calls.c (pass_va_arg_by_reference): New function.
15582 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15583 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15584 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15585 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15586 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15587 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15588 (mips_gimplify_va_arg_expr): Likewise.
15589 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15590 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15591 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15592 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15593 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15594 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15595 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15596 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15597 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15598 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15599 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15600
15601 2019-08-20 Richard Biener <rguenther@suse.de>
15602
15603 PR target/91498
15604 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15605 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15606 (convert_scalars_to_vector): Add timode_p parameter and use it
15607 to guard TImode-only operation.
15608 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15609 (pass_stv::execute): Pass down timode_p.
15610
15611 2019-08-20 Lili Cui <lili.cui@intel.com>
15612
15613 * common/config/i386/i386-common.c
15614 (processor_names): Add tigerlake and cooperlake.
15615 (processor_alias_table): Add tigerlake and cooperlake.
15616 * config.gcc: Add -march=tigerlake and cooperlake.
15617 * config/i386/driver-i386.c
15618 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15619 Add "has_avx" to classify processor.
15620 * config/i386/i386-builtins.c (processor_model) :
15621 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15622 (arch_names_table): Add tigerlake and cooperlake.
15623 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15624 and PROCESSOR_COOPERLAKE.
15625 * config/i386/i386-c.c
15626 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15627 * config/i386/i386-options.c
15628 (m_TIGERLAKE): Define.
15629 (m_COOPERLAKE): Ditto.
15630 (m_CORE_AVX512): Ditto.
15631 (processor_cost_table): Add cascadelake.
15632 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15633 * config/i386/i386.h
15634 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15635 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15636 (PTA_MOVDIRI): Ditto.
15637 (PTA_MOVDIR64B): Ditto.
15638 (PTA_COOPERLAKE): Ditto.
15639 (PTA_TIGERLAKE): Ditto.
15640 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15641 * doc/extend.texi: Add tigerlake and cooperlake.
15642 * doc/invoke.texi: Add tigerlake and cooperlake.
15643
15644 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15645
15646 * doc/install.texi (Specific, alpha): Remove note to use
15647 binutils 2.11.2 or later.
15648
15649 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15650
15651 PR middle-end/89544
15652 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15653 when possible.
15654
15655 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15656
15657 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15658 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15659 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15660 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15661 * config/aarch64/constraints.md (Dt): New constraint
15662 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15663
15664 2019-08-19 Richard Biener <rguenther@suse.de>
15665
15666 PR tree-optimization/91403
15667 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15668 cases we can handle with tail-recursion...
15669 (follow_ssa_edge_expr): ... here. Do so.
15670
15671 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15672
15673 PR target/91441
15674 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15675 implemented for -fsanitize=kernel-address, and merge check logic
15676 with -fsanitize=address.
15677
15678 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15679
15680 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15681 for cpu and machine. Factor 64/32b builtins.
15682
15683 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15684
15685 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15686 gone, point to sourceforge.net.
15687
15688 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15689
15690 * doc/ux.texi (User Experience Guidelines): Update reference.
15691
15692 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15693
15694 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15695 not LGPL".
15696
15697 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15698
15699 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15700 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15701
15702 2019-08-16 Martin Sebor <msebor@redhat.com>
15703
15704 * tree.def (TYPE_SIZE): Clarify.
15705 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15706
15707 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15708
15709 PR tree-optimization/91109
15710 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15711 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15712 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15713
15714 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15715
15716 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15717 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15718 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15719 (uavg<mode>3_ceil): New expander.
15720 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15721 mode iterator when creating CONST1_RTX.
15722 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15723 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15724 mode iterator for const1_operand predicate.
15725
15726 2019-08-16 Richard Biener <rguenther@suse.de>
15727
15728 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15729 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15730 follow_ssa_edge.
15731 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15732 (analyze_evolution_in_loop): Likewise.
15733 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15734 (follow_ssa_edge_expr): ... here. Refactor code.
15735
15736 2019-08-16 Richard Biener <rguenther@suse.de>
15737
15738 PR target/91469
15739 * config/i386/i386-features.c
15740 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15741
15742 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15743
15744 PR other/91255
15745 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15746 only if subst_name matches curr_attr string.
15747
15748 2019-08-16 Richard Biener <rguenther@suse.de>
15749
15750 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15751 stmt at gsi_p, instead replace it with a NOP removed later.
15752 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15753 that became dead because of that.
15754
15755 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15756
15757 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15758 for which we can't represent a range.
15759 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15760 set_varying.
15761 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15762 Set VR_UNDEFINED if type is not supported.
15763 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15764 * tree-vrp.c (value_range_base::check): Assert that a varying has
15765 min/max set.
15766 (value_range_base::equal_p): Early bail for undefines.
15767 (value_range_base::set_varying): Accept a type.
15768 (value_range::set_varying): Same.
15769 (value_range_base::type): VARYING can have a type, while UNDEFINE
15770 is typeless.
15771 (value_range_base::dump): Print type for VARYING nodes.
15772 (value_range_base::set): Add type to VARYING.
15773 (extract_range_from_multiplicative_op): Pass type to set_varying.
15774 (extract_range_from_binary_expr): Same.
15775 (value_range_base::intersect_helper): Same.
15776 (value_range_base::union_helper): Same.
15777 (value_range_base::normalize_symbolics): Same.
15778 (determine_value_range_1): Same.
15779 * tree-vrp.h (class value_range_base): Add type to set_varying.
15780 Add prototype for dump(void).
15781 Add prototype for supports_type_p.
15782 (class value_range): Add type to set_varying.
15783 Add prototype for dump(void).
15784 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15785 set_varying.
15786 (vr_values::get_lattice_entry): Set varying even if propagation
15787 finished.
15788 Pass type to set_varying.
15789 (vr_values::get_value_range): Remove vr_const_varying.
15790 Reallocate the lattice if needed.
15791 (vr_values::update_value_range): Pass type to set_varying.
15792 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15793 (vr_values::extract_range_from_binary_expr): Same.
15794 (vr_values::extract_range_from_unary_expr): Same.
15795 (vr_values::extract_range_from_cond_expr): Same.
15796 (vr_values::check_for_binary_op_overflow): Same.
15797 (vr_values::extract_range_basic): Same.
15798 (vr_values::extract_range_from_assignment): Same.
15799 (vr_values::vr_values): Increase size of num_vr_values.
15800 (vr_values::extract_range_from_phi_node): Pass type to
15801 set_varying.
15802
15803 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15804
15805 PR target/90878
15806 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15807 for costs of hard register moves.
15808 (ix86_register_move_cost): Likewise.
15809 * config/i386/i386.h (processor_costs): Move costs of hard
15810 register moves to hard_register. Add int_load, int_store,
15811 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15812 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15813 for costs of RTL expressions.
15814 * config/i386/x86-tune-costs.h: Move costs of hard register
15815 moves to hard_register. Duplicate int_load, int_store,
15816 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15817 sse_load, sse_store for costs of RTL expressions.
15818
15819 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15820
15821 * target.def (setup_incoming_vararg_bounds): Remove.
15822 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15823 * doc/tm.texi: Regenerate.
15824 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15825 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15826 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15827 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15828
15829 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15830
15831 MSP430: Fix lines over 80 characters long in
15832 config/msp430/*.{c,h} files
15833
15834 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15835 specifier in string.
15836 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15837 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15838 redundant old comment.
15839 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15840 Split line more than 80 characters long.
15841 * config/msp430/msp430.c (msp430_option_override): Likewise.
15842 (msp430_return_in_memory): Likewise.
15843 (msp430_gimplify_va_arg_expr): Likewise.
15844 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15845 (msp430_legitimate_constant): Likewise.
15846 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15847 (msp430_attr): Likewise.
15848 (msp430_data_attr): Likewise.
15849 (msp430_start_function): Likewise.
15850 (gen_prefix): Likewise.
15851 (msp430_init_sections): Likewise.
15852 (msp430_select_section): Likewise.
15853 (msp430_function_section): Likewise.
15854 (msp430_unique_section): Likewise.
15855 (msp430_output_aligned_decl_common): Likewise.
15856 (msp430_do_not_relax_short_jumps): Likewise.
15857 (msp430_init_builtins): Likewise.
15858 (msp430_expand_delay_cycles): Likewise.
15859 (msp430_expand_prologue): Likewise.
15860 (msp430_expand_epilogue): Likewise.
15861 (msp430_expand_helper): Likewise.
15862 (msp430_split_movsi): Likewise.
15863 (msp430_print_operand): Likewise.
15864 (msp430_return_addr_rtx): Likewise.
15865 (msp430x_extendhisi): Likewise.
15866 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15867 (ASM_SPEC): Likewise.
15868 Remove very obvious comments.
15869 (LIB_SPEC): Split line more than 80 characters long.
15870 (EH_RETURN_HANDLER_RTX): Likewise.
15871 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15872
15873 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15874
15875 MSP430: Fix whitespace errors and incorrect indentation in
15876 config/msp430/*.{c,h} files
15877
15878 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15879 (msp430_select_hwmult_lib): Likewise.
15880 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15881 (msp430_extract_mcu_data): Likewise.
15882 (struct t_msp430_mcu_data): Likewise.
15883 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15884 before left square bracket.
15885 (msp430_option_override): Fix indentation.
15886 (msp430_hard_regno_nregs_with_padding): Likewise.
15887 (msp430_initial_elimination_offset): Likewise.
15888 (msp430_special_register_convention_p): Remove whitespace before left
15889 square bracket and after exclamation mark.
15890 (msp430_evaluate_arg): Likewise.
15891 (msp430_callee_copies): Fix indentation.
15892 (msp430_gimplify_va_arg_expr): Likewise.
15893 (msp430_function_arg_advance): Remove whitespace before left square
15894 bracket.
15895 (reg_ok_for_addr): Likewise.
15896 (msp430_preserve_reg_p): Likewise.
15897 (msp430_compute_frame_info): Likewise.
15898 (msp430_asm_output_addr_const_extra): Add space between function name
15899 and open parenthesis.
15900 (has_section_name): Fix indentation.
15901 (msp430_attr): Remove trailing whitespace.
15902 (msp430_section_attr): Likewise.
15903 (msp430_data_attr): Likewise.
15904 (struct msp430_attribute_table): Fix comment and whitespace.
15905 (msp430_start_function): Remove whitespace before left square bracket.
15906 Add space between function name and open parenthesis.
15907 (msp430_select_section): Remove trailing whitespace.
15908 (msp430_section_type_flags): Remove trailing whitespace.
15909 (msp430_unique_section): Remove space before closing parenthesis.
15910 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15911 (msp430_builtins): Remove whitespace before left square bracket.
15912 (msp430_init_builtins): Fix indentation.
15913 (msp430_expand_prologue): Remove whitespace before left square bracket.
15914 Remove space before closing parenthesis.
15915 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15916 (msp430_split_movsi): Remove space before closing parenthesis.
15917 (helper_function_name_mappings): Fix indentation.
15918 (msp430_use_f5_series_hwmult): Fix whitespace.
15919 (use_32bit_hwmult): Likewise.
15920 (msp430_no_hwmult): Likewise.
15921 (msp430_output_labelref): Remove whitespace before left square bracket.
15922 (msp430_print_operand_raw): Likewise.
15923 (msp430_print_operand_addr): Likewise.
15924 (msp430_print_operand): Add two spaces after '.' in comment.
15925 Fix trailing whitespace.
15926 (msp430x_extendhisi): Fix indentation.
15927 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15928 tab.
15929 (PC_REGNUM): Likewise.
15930 (STACK_POINTER_REGNUM): Likewise.
15931 (CC_REGNUM): Likewise.
15932
15933 2019-08-15 Richard Biener <rguenther@suse.de>
15934
15935 PR target/91454
15936 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15937 helper.
15938 (general_scalar_chain::make_vector_copies): Use it.
15939
15940 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15941
15942 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15943
15944 2019-08-15 Martin Liska <mliska@suse.cz>
15945
15946 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15947 operators with no arguments.
15948 (eliminate_unnecessary_stmts): Likewise here.
15949
15950 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15951
15952 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15953 <case COMPARE>: Revert 2019-08-14 change.
15954 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15955 for (TARGET_64BIT || mode != DImode).
15956
15957 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15958
15959 * tree-vrp.c (value_range_base::set): Merge in code from
15960 value_range_base::set_and_canonicalize.
15961 Enforce canonicalization at set time.
15962 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15963 (value_range_base::set_undefined): Inline call to set().
15964 (value_range_base::set_varying): Same.
15965 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15966 (vrp_val_max): New argument handle_pointers.
15967 (vrp_val_min): Same.
15968 (ranges_from_anti_range): Same.
15969 (extract_range_into_wide_ints): Use tree argument instead of sign
15970 and precision.
15971 (extract_range_from_multiplicative_op): Take in tree type instead
15972 of precision and sign. Adapt function for canonicalized ranges.
15973 (extract_range_from_binary_expr): Pass type to
15974 extract_range_from_multiplicative_op.
15975 Adapt for canonicalized ranges.
15976 (extract_range_from_unary_expr): Same.
15977 (value_range_base::intersect_helper): Adjust for canonicalized
15978 ranges.
15979 (value_range_base::union_helper): Same.
15980 (value_range_base::normalize_symbolics): New.
15981 * tree-vrp.h (class value_range_base): Remove
15982 set_and_canonicalize.
15983 New prototype for normalize_symbolics.
15984 (class value_range): Remove set_and_canonicalize.
15985 (vrp_val_min): Adjust prototype.
15986 (vrp_val_max): Same.
15987 * vr-values.c
15988 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15989 instead of set_and_canonicalize.
15990
15991 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15992
15993 PR middle-end/91444
15994 * tree-vect-stmts.c (vectorizable_call): Check that the function
15995 is a BUILT_IN_MD function before passing it to
15996 targetm.vectorize.builtin_md_vectorized_function.
15997
15998 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15999
16000 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16001 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16002 (aarch64_select_early_remat_modes): Use it.
16003
16004 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16005
16006 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16007 16 for SVE predicates even if they are fixed-length.
16008
16009 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16010
16011 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16012 operand order match the MOV /Z alias.
16013
16014 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16015
16016 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16017 the vector pattern as an aarch64_svpattern argument. Update the
16018 overloaded caller accordingly.
16019 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16020 (aarch64_output_sve_vector_inc_dec): Likewise.
16021
16022 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16023
16024 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16025 multiplication case, try to compute VG * (lowest set bit) directly
16026 rather than always basing the multiplication on VG. Use
16027 expand_mult for the multiplication if we can.
16028
16029 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16030
16031 * config/aarch64/aarch64-protos.h
16032 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16033 (aarch64_sve_inc_dec_immediate_p): Rename to...
16034 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16035 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16036 (aarch64_output_sve_scalar_inc_dec): Declare.
16037 (aarch64_output_sve_inc_dec_immediate): Rename to...
16038 (aarch64_output_sve_vector_inc_dec): ...this.
16039 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16040 (aarch64_output_sve_scalar_inc_dec): New functions.
16041 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16042 arguments. Only handle true ADDVL and ADDPL instructions;
16043 don't emit an INC or DEC.
16044 (aarch64_sve_inc_dec_immediate_p): Rename to...
16045 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16046 (aarch64_output_sve_inc_dec_immediate): Rename to...
16047 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16048 aarch64_sve_vector_inc_dec_immediate_p.
16049 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16050 (aarch64_sve_plus_immediate): New predicates.
16051 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16052 rather than aarch64_sve_addvl_addpl_immediate.
16053 (aarch64_sve_inc_dec_immediate): Rename to...
16054 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16055 aarch64_sve_vector_inc_dec_immediate_p.
16056 (aarch64_sve_add_operand): Update accordingly.
16057 * config/aarch64/constraints.md (Uai): New constraint.
16058 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16059 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16060 operand into a register if it satisfies aarch64_sve_plus_immediate.
16061 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16062 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16063 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16064 aarch64_output_sve_vector_inc_dec instead of
16065 aarch64_output_sve_inc_dec_immediate.
16066
16067 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16068
16069 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16070 (UNSPEC_REVW): New constants.
16071 (elem_bits): New mode attribute.
16072 (SVE_INT_UNARY): New int iterator.
16073 (optab): Handle UNSPEC_REV[BHW].
16074 (sve_int_op): New int attribute.
16075 (min_elem_bits): Handle VNx16QI and the predicate modes.
16076 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16077 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16078 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16079 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16080 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16081 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16082 unspecs based on the total width of the reversed data.
16083 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16084 reinterpret followed by a subreg on big-endian targets.
16085
16086 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16087 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16088
16089 * config/aarch64/aarch64-sve.md
16090 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16091 alternatives in which one of the inputs is in the same register
16092 as the output.
16093
16094 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16095
16096 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16097 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16098
16099 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16100
16101 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16102 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16103
16104 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16105 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16106
16107 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16108 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16109 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16110
16111 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16112 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16113
16114 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16115 Add an alternative that uses reversed shifts.
16116
16117 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16118
16119 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16120 struct.
16121
16122 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16123
16124 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16125 a commutativity marker.
16126
16127 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16128 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16129
16130 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16131 (aarch64_prepare_sve_cond_int_fma): Declare.
16132 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16133 (aarch64_prepare_sve_int_fma): New functions.
16134 (aarch64_prepare_sve_cond_int_fma): Likewise.
16135 * config/aarch64/aarch64-sve.md
16136 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16137 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16138 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16139 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16140 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16141 (*madd<mode>): Rename to...
16142 (*fma<mode>4): ...this.
16143 (*msub<mode>): Rename to...
16144 (*fnma<mode>4): ...this.
16145
16146 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16147 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16148
16149 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16150 Print 2.0 naturally.
16151 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16152 * config/aarch64/predicates.md
16153 (aarch64_sve_float_negated_arith_immediate): New predicate,
16154 renamed from aarch64_sve_float_arith_with_sub_immediate.
16155 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16156 positive and negative constants.
16157 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16158 or an aarch64_sve_float_arith_with_sub_immediate.
16159 * config/aarch64/constraints.md (vsN): Use
16160 aarch64_sve_float_negated_arith_immediate.
16161 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16162 iterator.
16163 (sve_pred_fp_rhs2_immediate): New int attribute.
16164 * config/aarch64/aarch64-sve.md
16165 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16166 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16167 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16168 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16169 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16170 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16171
16172 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16173 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16174
16175 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16176 (*aarch64_cond_abd<SVE_F:mode>_3)
16177 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16178
16179 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16180 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16181
16182 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16183 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16184
16185 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16186 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16187
16188 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16189 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16190 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16191 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16192 optabs.
16193 * optabs.h (create_convert_operand_from): Expand comment.
16194 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16195 when mapping scalar rtxes to vector operands.
16196 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16197 ashiftrt and lshiftrt.
16198 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16199 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16200 (*cond_<optab><mode>_any_const): New patterns.
16201
16202 2019-08-15 Martin Liska <mliska@suse.cz>
16203
16204 PR ipa/91438
16205 * cgraph.c (cgraph_node::remove): When setting
16206 n->origin = NULL for all nested functions, reset
16207 also next_nested.
16208
16209 2019-08-15 Martin Liska <mliska@suse.cz>
16210
16211 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16212 and next_nested.
16213
16214 2019-08-15 Martin Liska <mliska@suse.cz>
16215
16216 PR ipa/91404
16217 * passes.c (order): Remove.
16218 (uid_hash_t): Likewise).
16219 (remove_cgraph_node_from_order): Remove from set
16220 of pointers (cgraph_node *).
16221 (insert_cgraph_node_to_order): New.
16222 (duplicate_cgraph_node_to_order): New.
16223 (do_per_function_toporder): Register all 3 cgraph hooks.
16224 Skip removed_nodes now as we know about all of them.
16225
16226 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16227
16228 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16229 <case E_V8QImode>: Use vector_set path for
16230 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16231 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16232 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16233
16234 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16235
16236 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16237
16238 2019-08-14 Martin Sebor <msebor@redhat.com>
16239
16240 PR tree-optimization/91294
16241 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16242 source length as exact.
16243
16244 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16245
16246 * doc/extend.texi: Add "noinit" attribute documentation.
16247 * doc/sourcebuild.texi: Add noinit effective target documentation.
16248 * varasm.c (default_section_type_flags): Add support for "noinit"
16249 section.
16250 (default_elf_select_section): Add support for "noinit" attribute.
16251 * config/msp430/msp430.c (msp430_attribute_table): Remove
16252 "noinit" entry.
16253
16254 2019-08-14 Richard Biener <rguenther@suse.de>
16255 Uroš Bizjak <ubizjak@gmail.com>
16256
16257 PR target/91154
16258 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16259 mode arguments.
16260 (scalar_chain::smode): New member.
16261 (scalar_chain::vmode): Likewise.
16262 (dimode_scalar_chain): Rename to...
16263 (general_scalar_chain): ... this.
16264 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16265 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16266 base with TImode and V1TImode.
16267 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16268 (general_scalar_chain::vector_const_cost): Adjust for SImode
16269 chains.
16270 (general_scalar_chain::compute_convert_gain): Likewise. Add
16271 {S,U}{MIN,MAX} support.
16272 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16273 (general_scalar_chain::make_vector_copies): Likewise. Handle
16274 non-DImode chains appropriately.
16275 (general_scalar_chain::convert_reg): Likewise.
16276 (general_scalar_chain::convert_op): Likewise.
16277 (general_scalar_chain::convert_insn): Likewise. Add
16278 fatal_insn_not_found if the result is not recognized.
16279 (convertible_comparison_p): Pass in the scalar mode and use that.
16280 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16281 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16282 (scalar_to_vector_candidate_p): Remove by inlining into single
16283 caller.
16284 (general_remove_non_convertible_regs): Rename from
16285 dimode_remove_non_convertible_regs.
16286 (remove_non_convertible_regs): Remove by inlining into single caller.
16287 (convert_scalars_to_vector): Handle SImode and DImode chains
16288 in addition to TImode chains.
16289 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16290 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16291 (*<maxmin>di3_doubleword): Likewise.
16292
16293 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16294 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16295
16296 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16297 (*cond_bic<mode>_any): New patterns.
16298
16299 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16300
16301 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16302 take the equivalent mask, as well as a bit count.
16303 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16304 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16305 (aarch64_sve_pred_and_operand): New predicates.
16306 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16307 code attribute.
16308 * config/aarch64/aarch64-sve.md
16309 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16310 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16311
16312 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16313
16314 * config/aarch64/aarch64-sve.md
16315 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16316 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16317 New patterns.
16318
16319 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16320 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16321
16322 * config/aarch64/aarch64-sve.md
16323 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16324 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16325
16326 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16327 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16328
16329 * config/aarch64/aarch64-sve.md
16330 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16331 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16332
16333 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16334
16335 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16336 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16337 New pattern.
16338
16339 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16340 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16341
16342 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16343
16344 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16345 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16346
16347 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16348 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16349 (aarch64_print_operand): Add support for %I.
16350 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16351 Bitcast floating-point constants to the corresponding integer constant.
16352 (aarch64_float_const_representable_p): Handle vectors as well
16353 as scalars.
16354 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16355 for the new vcond_mask_<mode><vpred> expander.
16356 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16357 test aarch64_float_const_representable_p.
16358 (aarch64_sve_reg_or_dup_imm): New predicate.
16359 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16360 gen_vcond_mask_<mode><vpred> instead of
16361 gen_aarch64_sve_dup<mode>_const.
16362 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16363 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16364 for operands 1 and 2 respectively. Force operand 2 into a
16365 register if operand 1 is a register. Fold old define_insn...
16366 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16367 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16368 floating-point constants that can be moved as integers. Add
16369 alternatives for MOV /M and FMOV /M.
16370 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16371 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16372 1 and 2 respectively.
16373 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16374 as scalars.
16375 (vss): New constraint.
16376
16377 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16378
16379 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16380 (aarch64_sve_float_maxmin_operand): New predicates.
16381 * config/aarch64/constraints.md (vsB): New constraint.
16382 (vsM): Fix typo.
16383 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16384 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16385 UNSPEC_COND_FMINNM.
16386 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16387 Use aarch64_sve_float_maxmin_operand for operand 2.
16388 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16389 Add alternatives for the constant forms.
16390
16391 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16392
16393 * config/aarch64/constraints.md (vsb): New constraint.
16394 (vsm): Generalize description.
16395 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16396 iterator.
16397 (sve_imm_con): Handle smax, smin, umax and umin.
16398 (sve_imm_prefix): New code attribute.
16399 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16400 (aarch64_sve_vsb_operand): New predicates.
16401 (aarch64_sve_mul_immediate): Rename to...
16402 (aarch64_sve_vsm_immediate): ...this.
16403 (aarch64_sve_mul_operand): Rename to...
16404 (aarch64_sve_vsm_operand): ...this.
16405 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16406 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16407 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16408 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16409 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16410 add movprfx support for the immediate alternatives.
16411 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16412 of the above.
16413 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16414 for operand 3.
16415
16416 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16417
16418 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16419 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16420 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16421
16422 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16423
16424 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16425 (optab, sve_int_op): Handle them.
16426 * config/aarch64/aarch64-sve.md: Expand comment.
16427
16428 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16429
16430 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16431 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16432 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16433
16434 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16435
16436 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16437 (aarch64_expand_sve_const_pred_trn): New functions.
16438 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16439 use the above functions when the parameter is true.
16440 (aarch64_expand_sve_const_pred): Update call accordingly.
16441 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16442 Rename to...
16443 (@aarch64_sve_<perm_insn><mode>): ...this.
16444
16445 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16446
16447 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16448 Declare.
16449 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16450 (aarch64_sve_emit_int_cmp): New functions.
16451 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16452 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16453 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16454 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16455 (UNSPEC_PRED_Z): New unspec.
16456 (set_clobber_cc_nzc): Delete.
16457 * config/aarch64/aarch64-sve.md: Add a block comment about
16458 UNSPEC_PRED_Z.
16459 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16460 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16461 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16462 UNSPEC_MERGE_PTRUE.
16463 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16464 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16465 check for compatible predicates.
16466 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16467 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16468 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16469 comparisons above.
16470
16471 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16472
16473 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16474 * config/aarch64/aarch64-sve.md: Add a section describing it.
16475 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16476 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16477 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16478 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16479 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16480 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16481 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16482 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16483 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16484 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16485 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16486 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16487 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16488 (aarch64_evpc_rev_local): Update accordingly.
16489
16490 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16491
16492 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16493 iterators.
16494 (SVE_BHSI, SVE_SDI): Tweak comment.
16495 (SVE_HSDI): Likewise. Fix definition.
16496 (SVE_SDF): New mode iterator.
16497 (elem_bits): New mode attribute.
16498 (SVE_COND_FCVT): New int iterator.
16499 * config/aarch64/aarch64-sve.md
16500 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16501 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16502 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16503 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16504 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16505 ...these new patterns.
16506 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16507 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16508 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16509 Merge into...
16510 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16511 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16512 ...these new patterns.
16513 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16514 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16515 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16516 ...this new pattern.
16517 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16518 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16519 ...this new pattern.
16520 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16521
16522 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16523
16524 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16525 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16526 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16527 unspecs.
16528 (optab, su): Handle them.
16529 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16530 * config/aarch64/aarch64-sve.md
16531 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16532 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16533 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16534 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16535 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16536 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16537 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16538 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16539 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16540 FIXUORS.
16541 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16542 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16543 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16544 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16545 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16546 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16547 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16548 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16549 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16550 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16551 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16552 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16553 of UNSPEC_FLOAT_CONVERT.
16554 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16555 aarch64_sve_extend<mode><Vwide>2.
16556
16557 2019-08-14 Richard Biener <rguenther@suse.de>
16558
16559 PR target/91154
16560 * config/i386/i386-features.c
16561 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16562 individual instruction gain. Fix reg-reg copy GRP cost. Use
16563 ix86_cost->sse_op for vector instruction costs.
16564
16565 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16566
16567 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16568 (cmp_op): Handle it.
16569 (SVE_COND_FP_CMP): Rename to...
16570 (SVE_COND_FP_CMP_I0): ...this.
16571 (SVE_FP_CMP): Remove.
16572 * config/aarch64/aarch64-sve.md
16573 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16574 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16575 using unspecs to represent the comparison.
16576 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16577 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16578 accordingly.
16579 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16580 (aarch64_unspec_cond_code): Move after integer code. Handle
16581 UNORDERED.
16582 (aarch64_emit_sve_predicated_cond): Replace with...
16583 (aarch64_emit_sve_fp_cond): ...this new function.
16584 (aarch64_emit_sve_or_conds): Replace with...
16585 (aarch64_emit_sve_or_fp_conds): ...this new function.
16586 (aarch64_emit_sve_inverted_cond): Replace with...
16587 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16588 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16589
16590 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16591
16592 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16593 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16594 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16595 SVE_HSD instead of SVE_SD.
16596
16597 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16598 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16599
16600 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16601 iterator.
16602 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16603 attributes.
16604 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16605 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16606 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16607 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16608 (*div<SVE_F:mode>3): Generalize to...
16609 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16610
16611 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16612 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16613
16614 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16615 constants.
16616 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16617 predicate.
16618 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16619 Declare.
16620 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16621 function.
16622 * config/aarch64/aarch64-sve.md: Add a block comment about the
16623 handling of predicated FP operations.
16624 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16625 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16626 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16627 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16628 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16629 operand.
16630 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16631 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16632 operand.
16633 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16634 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16635 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16636 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16637 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16638 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16639 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16640 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16641 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16642 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16643 strictness operands. Use aarch64_sve_pred_dominates_p to check
16644 whether the predicate on the conditional operation is suitable
16645 for merging. Split patterns into the canonical equal-predicate form.
16646 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16647 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16648
16649 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16650 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16651
16652 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16653 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16654 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16655 rtx codes.
16656 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16657 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16658 unspecs.
16659
16660 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16661 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16662
16663 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16664 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16665 actually has, rather than relying on REG_EQUAL notes.
16666 Make the insn operand order match the SVE operand order.
16667 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16668 the SVE operand order.
16669
16670 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16671
16672 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16673 (aarch64_emit_set_immediate): Likewise.
16674 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16675 (aarch64_pfalse_reg): Likewise.
16676 (aarch64_convert_sve_data_to_pred): New function.
16677 (aarch64_sve_move_pred_via_while): Take an optional target register
16678 and the required register mode.
16679 (aarch64_expand_sve_const_pred_1): New function.
16680 (aarch64_expand_sve_const_pred): Likewise.
16681 (aarch64_expand_mov_immediate): Build an all-true predicate
16682 if the significant bits of the immediate are all true. Use
16683 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16684 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16685 before register allocation.
16686 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16687 a VNx16BI PTRUE when splitting the memory alternative.
16688 (vec_duplicate<mode>): Update accordingly.
16689 (*pred_cmp<cmp_op><mode>): Rename to...
16690 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16691
16692 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16693
16694 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16695 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16696 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16697 (UNSPEC_PTEST): New unspec.
16698 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16699 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16700 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16701 * config/aarch64/aarch64-sve.md: Add a new section describing the
16702 handling of UNSPEC_PTEST.
16703 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16704 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16705 (ptest_ptrue<mode>): Replace with...
16706 (aarch64_ptest<mode>): ...this new pattern.
16707 (cbranch<mode>4): Update after above changes.
16708 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16709 UNSPEC_PTEST_PTRUE.
16710 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16711 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16712 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16713
16714 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16715
16716 PR lto/91287
16717 * builtins.c (builtin_with_linkage_p): New function.
16718 * builtins.h (builtin_with_linkage_p): New function.
16719 * symtab.c (write_symbol): Remove redundant assert.
16720 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16721 Remove FIXME and use builtin_with_linkage_p.
16722
16723 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16724
16725 PR middle-end/91421
16726 * tree-core.h (function_decl::function_code): Change type to
16727 unsigned int.
16728 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16729 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16730 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16731 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16732 is BUILT_IN_NORMAL.
16733 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16734 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16735 (fndecl_built_in_p): Change the type of the "name" argument to
16736 unsigned int.
16737 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16738 after check for DECL_BUILT_IN_CLASS.
16739 * cgraphclones.c (build_function_decl_skip_args): Use
16740 set_decl_built_in_function.
16741 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16742 * ipa-split.c (split_function): Likewise.
16743 * langhooks.c (add_builtin_function_common): Likewise.
16744 * omp-simd-clone.c (simd_clone_create): Likewise.
16745 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16746 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16747 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16748 DECL_FUNCTION_CODE.
16749 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16750 instead of DECL_FUNCTION_CODE.
16751 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16752 instead of DECL_FUNCTION_CODE.
16753 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16754 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16755 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16756 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16757 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16758 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16759 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16760 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16761 (alpha_gimple_fold_builtin): Likewise.
16762 * config/arc/arc.c (arc_expand_builtin): Likewise.
16763 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16764 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16765 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16766 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16767 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16768 * config/frv/frv.c (frv_expand_builtin): Likewise.
16769 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16770 (gcn_expand_builtin): Likewise.
16771 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16772 (fold_builtin_cpu): Likewise.
16773 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16774 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16775 (ix86_gimple_fold_builtin): Likewise.
16776 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16777 (ia64_expand_builtin): Likewise.
16778 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16779 * config/mips/mips.c (mips_expand_builtin): Likewise.
16780 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16781 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16782 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16783 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16784 * config/pa/pa.c (pa_expand_builtin): Likewise.
16785 * config/pru/pru.c (pru_expand_builtin): Likewise.
16786 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16787 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16788 Likewise.
16789 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16790 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16791 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16792 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16793 (rs6000_builtin_reciprocal): Likewise.
16794 * config/rx/rx.c (rx_expand_builtin): Likewise.
16795 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16796 * config/s390/s390.c (s390_expand_builtin): Likewise.
16797 * config/sh/sh.c (sh_expand_builtin): Likewise.
16798 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16799 (sparc_fold_builtin): Likewise.
16800 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16801 * config/spu/spu.c (spu_expand_builtin): Likewise.
16802 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16803 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16804 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16805 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16806 (xtensa_expand_builtin): Likewise.
16807
16808 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16809
16810 PR middle-end/91421
16811 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16812 before the DECL_FUNCTION_CODE.
16813 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16814 to check for a BUILT_IN_ALLOCA call.
16815 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16816 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16817 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16818 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16819 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16820 for BUILT_IN_NORMAL functions.
16821 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16822 test for BUILT_IN_TM_ABORT.
16823 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16824 to check for a BUILT_IN_STACK_RESTORE call.
16825 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16826 * tree-ssa-threadedge.c
16827 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16828 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16829 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16830 test for a BUILT_IN_NORMAL call instead of a negative test for
16831 an internal function call.
16832
16833 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16834
16835 * tree.h (build_vector_a_then_b): Declare.
16836 * tree.c (build_vector_a_then_b): New function.
16837 * fold-const-call.c (fold_while_ult): Likewise.
16838 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16839 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16840 (aarch64_svpattern): New enum.
16841 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16842 constants through aarch64_expand_mov_immediate.
16843 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16844 than general_operand as the predicate for operand 1.
16845 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16846 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16847 insn_type.
16848 (simd_immediate_info::simd_immediate_info): New overload that
16849 takes a scalar_int_mode and an svpattern.
16850 (simd_immediate_info::u): Add a "pattern" field.
16851 (svpattern_token): New function.
16852 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16853 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16854 (aarch64_sve_move_pred_via_while): New functions.
16855 (aarch64_expand_mov_immediate): Try using
16856 aarch64_sve_move_pred_via_while for predicates that contain N ones
16857 followed by M zeros but that do not correspond to a VLnnn pattern.
16858 (aarch64_sve_pred_valid_immediate): New function.
16859 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16860 with PTRUE and PFALSE.
16861 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16862 forms.
16863
16864 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16865
16866 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16867 flag.
16868 (darwin_override_options): Likewise.
16869 * config/darwin.h: Likewise.
16870 * config/darwin.opt: Likewise.
16871 * config/i386/i386.c (output_pic_addr_const): Likewise.
16872 * config/rs6000/darwin.h: Likewise.
16873 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16874 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16875 ... this TARGET_MACHO_SYMBOL_STUBS.
16876 (FUNCTION_PROFILER):Likewise.
16877 * config/i386/i386.h: Likewise.
16878
16879 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16880
16881 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16882 <case E_V2SImode>: Use vec_extr path for
16883 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16884 <case E_V8QImode>: Ditto.
16885 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16886 Use SWI48 mode iterator. Use %k to output operand 0.
16887 (*mmx_pextrw): New insn pattern.
16888 (*mmx_pextrb): Ditto.
16889 (*mmx_pextrb_zext): Ditto.
16890
16891 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16892
16893 * target.def (libc_has_function, libc_has_fast_function): Improve
16894 documentation strings.
16895 * doc/tm.texi: Regenerate.
16896
16897 2019-08-13 Caroline Tice <cmtice@google.com>
16898
16899 PR other/91396
16900 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16901 vtv_end.o or vtv_end_preinit.o files if !static.
16902
16903 2019-08-13 Olivier Hainque <hainque@adacore.com>
16904
16905 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16906
16907 2019-08-13 Olivier Hainque <hainque@adacore.com>
16908
16909 * rtlanal.c (tablejump_casesi_pattern): New function, to
16910 determine if a tablejump insn is a casesi dispatcher. Extracted
16911 from patch_jump_insn.
16912 * rtl.h (tablejump_casesi_pattern): Declare.
16913 * cfgrtl.c (patch_jump_insn): Use it.
16914 * dwarf2cfi.c (create_trace_edges): Use it.
16915
16916 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16917
16918 PR target/81800
16919 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16920 operand is larger than a long int.
16921
16922 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16923
16924 * machmode.h (opt_mode::else_mode): New function.
16925 (opt_mode::else_blk): Use it.
16926 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16927 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16928 (aarch64_gen_stepped_int_parallel): Likewise.
16929 (aarch64_stepped_int_parallel_p): Likewise.
16930 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16931 argument.
16932 * config/aarch64/aarch64.c
16933 (aarch64_expand_sve_widened_duplicate): Delete.
16934 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16935 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16936 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16937 argument. Use early returns in the !CONST_INT_P handling.
16938 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16939 than handling some inline.
16940 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16941 from...
16942 (aarch64_simd_container_mode): ...here.
16943 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16944 (aarch64_sve_ld1rq_operand_p): New functions.
16945 * config/aarch64/predicates.md (descending_int_parallel)
16946 (aarch64_sve_ld1rq_operand): New predicates.
16947 * config/aarch64/constraints.md (UtQ): New constraint.
16948 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16949 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16950 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16951 (@aarch64_sve_reinterpret<mode>): New expander.
16952 (*aarch64_sve_reinterpret<mode>): New pattern.
16953 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16954 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16955 (*sve_ld1rq<Vesize>): Replace with...
16956 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16957
16958 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16959
16960 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16961 16:12.
16962
16963 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16964
16965 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16966 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16967 (msp430_check_path_for_devices): New.
16968 (parse_devices_csv_1): New.
16969 (parse_devices_csv): New.
16970 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16971 MCU data in devices.csv before using the hard-coded data.
16972 Warn if devices.csv isn't found and the MCU wasn't found in the
16973 hard-coded data either.
16974 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16975 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16976 Search for devices.csv on -I and -L paths.
16977 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16978 msp430_set_driver_var.
16979 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16980 -mdevices-csv-loc=.
16981 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16982 searched for devices.csv.
16983 (mwarn-devices-csv): Document option.
16984
16985 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16986
16987 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16988 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16989 Use a single Dn alternative instead of separate Dz and Dm
16990 alternatives. Use aarch64_output_sve_move_immediate.
16991 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16992 function.
16993 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16994 for predicates too.
16995 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16996 (aarch64_output_ptrue): Delete.
16997
16998 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16999
17000 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17001 INDEX.
17002 (simd_immediate_info::value, simd_immediate_info::step)
17003 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17004 with...
17005 (simd_immediate_info::u): ...this new union.
17006 (simd_immediate_info::simd_immediate_info): Update accordingly.
17007 (aarch64_output_simd_mov_immediate): Likewise.
17008 (aarch64_output_sve_mov_immediate): Likewise.
17009
17010 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17011
17012 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17013 extra_gcc_objs.
17014 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17015 (msp430_select_cpu): New spec function.
17016 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17017 MCU data.
17018 * config/msp430/msp430-devices.c: New file.
17019 * config/msp430/msp430-devices.h: New file.
17020 * config/msp430/msp430.c: Remove msp430_mcu_data.
17021 (msp430_option_override): Use msp430_extract_mcu_data to extract
17022 MCU data.
17023 (msp430_use_f5_series_hwmult): Likewise.
17024 (use_32bit_hwmult): Likewise.
17025 (msp430_no_hwmult): Likewise.
17026 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17027 assembler.
17028 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17029 and -mcpu option.
17030 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17031 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17032 Remove hard-coded MCU multilib data.
17033
17034 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17035
17036 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17037 based on the mode instead of testing properties of it.
17038
17039 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17040
17041 * doc/md.texi: Document the x and y constraints for AArch64.
17042 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17043 (FP_LO8_REGS): New reg_class.
17044 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17045 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17046 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17047 * config/aarch64/predicates.md (aarch64_simd_register): Use
17048 FP_REGNUM_P instead of checking the classes manually.
17049 * config/aarch64/constraints.md (y): New constraint.
17050
17051 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17052
17053 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17054 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17055 * config/aarch64/aarch64-simd.md
17056 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17057 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17058 from the asm template.
17059 * config/aarch64/aarch64-sve.md
17060 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17061 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17062 from the asm template.
17063 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17064 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17065 from the asm template.
17066 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17067
17068 2019-08-13 Martin Liska <mliska@suse.cz>
17069
17070 * value-prof.c (gimple_ic_transform): Add new line.
17071 Print details with MSG_NOTE.
17072
17073 2019-08-13 Martin Liska <mliska@suse.cz>
17074
17075 * doc/invoke.texi: Document automatic detection of jobserver.
17076 * lto-wrapper.c (run_gcc): Detect jobserver always.
17077
17078 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17079
17080 * config/i386/i386-expand.c (ix86_expand_vector_set)
17081 <case E_V2SImode>: Use vec_merge path for
17082 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17083 <case E_V8QImode>: Ditto.
17084 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17085 (*mmx_pinsrb): Ditto.
17086
17087 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17088
17089 PR target/83250
17090 PR target/91340
17091 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17092 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17093 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17094 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17095 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17096
17097 2019-08-12 Richard Biener <rguenther@suse.de>
17098
17099 PR lto/91375
17100 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17101 flag_devirtualize.
17102
17103 2019-08-12 Richard Biener <rguenther@suse.de>
17104
17105 PR driver/91130
17106 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17107 lang_mask option, always use CL_DRIVER.
17108 (get_options_from_collect_gcc_options): Adjust.
17109 (find_and_merge_options): Likewise.
17110 (run_gcc): Likewise.
17111
17112 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17113
17114 * ipa-predicate.c (add_condition): Restore inverted test.
17115
17116 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17117
17118 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17119 (enum omp_clause_device_type_kind): New enum.
17120 (struct tree_omp_clause): Add subcode.device_type_kind.
17121 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17122 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17123 for device_type clause.
17124 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17125 * tree-pretty-print.c (dump_omp_clause): Likewise.
17126
17127 PR target/91408
17128 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17129 vector_operand.
17130
17131 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17132
17133 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17134 handling spilled pseudos.
17135
17136 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17137
17138 PR target/91386
17139 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17140 to preserve the contents of the original insns.
17141
17142 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17143
17144 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17145 (addsi3_compare_op2): Likewise.
17146
17147 2019-08-09 Martin Liska <mliska@suse.cz>
17148
17149 * alias.c (alias_ptr_types_compatible_p): Strengten
17150 type comparison in LTO mode.
17151
17152 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17153
17154 PR middle-end/90313
17155 * tree-tailcall.c (find_tail_calls): Reject calls that might
17156 read from an escaped RESULT_DECL.
17157
17158 2019-08-09 Martin Liska <mliska@suse.cz>
17159
17160 * doc/invoke.texi: Document the option value.
17161 * lto-wrapper.c (run_gcc): Set auto_parallel
17162 only with -flto=auto.
17163
17164 2019-08-09 Martin Liska <mliska@suse.cz>
17165
17166 * opts.c (common_handle_option): Error for an invalid argument
17167 to -flto=.
17168
17169 2019-08-09 Martin Liska <mliska@suse.cz>
17170
17171 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17172 use dump_printf to report optimization.
17173 (sem_variable::merge): Likwise.
17174 (sem_item_optimizer::merge_classes): Use dump_printf to report
17175 ICF hits.
17176
17177 2019-08-09 Martin Liska <mliska@suse.cz>
17178
17179 * value-prof.c (gimple_divmod_fixed_value_transform):
17180 Use dump_printf_loc.
17181 (gimple_mod_pow2_value_transform): Likewise.
17182 (gimple_mod_subtract_transform): Likewise.
17183 (init_node_map): Likewise.
17184 (gimple_ic_transform): Likewise.
17185 (gimple_stringops_transform): Likewise.
17186
17187 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17188
17189 * doc/extend.texi: Add const qualifier to ld intrinsics.
17190
17191 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17192
17193 * config/rs6000/dfp.md (D64_D128): Rename to ...
17194 (DDTD): ... this, throughout.
17195 (dfp_suffix): Rename to ...
17196 (q): ... this, throughout.
17197
17198 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17199
17200 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17201 (dfp_suffix): Ditto.
17202 (adddd3, addtd3): Merge to ...
17203 (add<mode>3 for D64_D128): ... this.
17204 (subdd3, subtd3): Merge to ...
17205 (sub<mode>3 for D64_D128): ... this.
17206 (muldd3, multd3): Merge to ...
17207 (mul<mode>3 for D64_D128): ... this.
17208 (divdd3, divtd3): Merge to ...
17209 (div<mode>3 for D64_D128): ... this.
17210 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17211 (*cmp<mode>_internal1 for D64_D128): ... this.
17212 (ftruncdd2, ftrunctd2): Merge to ...
17213 (ftrunc<mode>2 for D64_D128): ... this.
17214 (fixdddi2, fixtddi2): Merge to ...
17215 (fix<mode>di2 for D64_D128): ... this.
17216
17217 2019-08-08 Jim Wilson <jimw@sifive.com>
17218
17219 PR target/91229
17220 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17221 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17222 Pass into recursive call.
17223 (riscv_flatten_aggregate_argument): New arg. Pass to
17224 riscv_flatten_aggregate_field.
17225 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17226 riscv_flatten_aggregate_argument twice, with false and true as last
17227 arg. Process result twice. Compare results and warn if different.
17228 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17229
17230 2019-08-08 Martin Liska <mliska@suse.cz>
17231
17232 PR bootstrap/91352
17233 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17234 * lto-wrapper.c (jobserver_active_p): Likewise.
17235
17236 2019-08-08 Martin Liska <mliska@suse.cz>
17237
17238 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17239 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17240 (create_version_clone_with_body): Likewise.
17241
17242 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17243
17244 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17245 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17246 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17247 GOVD_EXPLICIT flags.
17248 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17249 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17250 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17251 call install_var_field with mask 11 instead of 3.
17252 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17253 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17254
17255 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17256
17257 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17258 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17259
17260 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17261
17262 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17263 MOVPRFX alternatives. Make the GPR alternatives more expensive
17264 than the FPR ones.
17265
17266 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17267
17268 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17269 Disparage the GPR alternative relative to the FPR one.
17270 Fix handling of 8-bit and 16-bit FPR values.
17271
17272 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17273
17274 * config/aarch64/iterators.md (BITWISEV): Delete.
17275 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17276 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17277 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17278 UNSPEC_FMINNMV, UNSPEC_FMINV.
17279 (bit_reduc_op): Delete.
17280 (sve_int_op): New int attribute.
17281 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17282 UNSPEC_FMINNMV, UNSPEC_FMINV.
17283 * config/aarch64/aarch64-sve.md
17284 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17285 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17286 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17287 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17288 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17289 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17290 new patterns.
17291 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17292 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17293 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17294 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17295 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17296 new patterns.
17297
17298 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17299
17300 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17301 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17302 (fms<mode>4, *fms<mode>4): Replace with...
17303 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17304 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17305 Use unspecs instead of rtx codes.
17306 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17307 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17308
17309 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17310
17311 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17312 int iterator.
17313 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17314 * config/aarch64/aarch64-sve.md
17315 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17316 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17317 use a single unspec for the rhs.
17318 (*<su><maxmin><mode>3): Delete.
17319 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17320
17321 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17322
17323 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17324 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17325 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17326 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17327 (optab, sve_fp_op): Handle them.
17328 (SVE_FP_UNARY): Delete.
17329 (optab): Remove sqrt entry.
17330 (sve_fp_op): Remove neg, abs and sqrt entries.
17331 (SVE_COND_FP_UNARY): New int iterator.
17332 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17333 (*<frint_pattern><mode>2): Delete.
17334 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17335 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17336 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17337 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17338
17339 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17340
17341 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17342
17343 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17344
17345 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17346 (UNSPEC_COND_FADD): ...this.
17347 (UNSPEC_COND_SUB): Rename to...
17348 (UNSPEC_COND_FSUB): ...this.
17349 (UNSPEC_COND_MUL): Rename to...
17350 (UNSPEC_COND_FMUL): ...this.
17351 (UNSPEC_COND_DIV): Rename to...
17352 (UNSPEC_COND_FDIV): ...this.
17353 (UNSPEC_COND_MAX): Rename to...
17354 (UNSPEC_COND_FMAXNM): ...this.
17355 (UNSPEC_COND_MIN): Rename to...
17356 (UNSPEC_COND_FMINNM): ...this.
17357 (UNSPEC_COND_LT): Rename to...
17358 (UNSPEC_COND_FCMLT): ...this.
17359 (UNSPEC_COND_LE): Rename to...
17360 (UNSPEC_COND_FCMLE): ...this.
17361 (UNSPEC_COND_EQ): Rename to...
17362 (UNSPEC_COND_FCMEQ): ...this.
17363 (UNSPEC_COND_NE): Rename to...
17364 (UNSPEC_COND_FCMNE): ...this.
17365 (UNSPEC_COND_GE): Rename to...
17366 (UNSPEC_COND_FCMGE): ...this.
17367 (UNSPEC_COND_GT): Rename to...
17368 (UNSPEC_COND_FCMGT): ...this.
17369 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17370 (sve_fp_op_rev): Update accordingly.
17371 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17372
17373 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17374
17375 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17376 banner comments.
17377 * config/aarch64/check-sve-md.awk: New file.
17378 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17379 (insn-conditions.md): Depend on it.
17380
17381 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17382
17383 PR target/91385
17384 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17385 (*negsi2_cmpz_zext): Ditto.
17386
17387 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17388
17389 * config/aarch64/iterators.md (commutative): Remove.
17390
17391 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17392
17393 PR driver/91130
17394 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17395 processing COLLECT_GCC_OPTIONS.
17396 (run_gcc): Likewise.
17397
17398 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17399
17400 PR tree-optimization/91109
17401 * lra-remat.c (update_scratch_ops): Remove assignment of the
17402 hard register.
17403
17404 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17405
17406 * data-streamer.h (streamer_write_poly_uint64): Declare.
17407 (streamer_read_poly_uint64): Likewise.
17408 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17409 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17410 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17411 (add_condition): Take a poly_int64 size.
17412 * ipa-predicate.c (add_condition): Likewise.
17413 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17414 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17415 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17416 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17417 condition::size as a poly_int64.
17418 (unmodified_parm_1): Take a poly_int64 size pointer.
17419 (unmodified_parm): Likewise.
17420 (unmodified_parm_or_parm_agg_item): Likewise.
17421 (set_cond_stmt_execution_predicate): Update accordingly.
17422 (set_switch_stmt_execution_predicate): Likewise.
17423 (will_be_nonconstant_expr_predicate): Likewise.
17424 (will_be_nonconstant_predicate): Likewise.
17425 (inline_read_section): Stream condition::size as a poly_int.
17426 (ipa_fn_summary_write): Likewise.
17427
17428 2019-08-07 Martin Liska <mliska@suse.cz>
17429
17430 * fold-const.c (twoval_comparison_p): Replace int
17431 with bool as a return type.
17432 (simple_operand_p): Likewise.
17433 (operand_equal_p): Replace int with bool as a return type.
17434 * fold-const.h (operand_equal_p): Likewise.
17435
17436 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17437
17438 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17439 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17440 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17441 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17442 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17443 * tree-pretty-print.c (dump_omp_clause): Likewise.
17444 * tree-nested.c (convert_nonlocal_omp_clauses,
17445 convert_local_omp_clauses): Likewise.
17446 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17447 Likewise.
17448 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17449 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17450 clause with array or reference to array types, no matter what type
17451 except for reference it has.
17452
17453 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17454
17455 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17456
17457 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17458
17459 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17460 (arch_canonicalize): Support rv32g and rv64g and fix error
17461 handling.
17462
17463 2019-08-06 Martin Liska <mliska@suse.cz>
17464
17465 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17466 and DECL_IS_OPERATOR_DELETE_P.
17467
17468 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17469
17470 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17471 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17472 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17473 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17474 (gimplify_omp_for): Don't do C++ random access iterator clause
17475 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17476 don't predetermine the artificial iterator in case of C++ random
17477 access iterators as lastprivate, but private. For OMP_LOOP, force
17478 bind expr around simd body and force for_pre_body before the
17479 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17480 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17481 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17482 diff var of C++ random access iterators. Handle
17483 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17484 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17485 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17486 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17487 * omp-low.c (lower_rec_input_clauses): For
17488 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17489 variables instead of default constructing them.
17490 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17491 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17492 is_taskloop_ctx check from the assert to the guarding condition.
17493
17494 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17495
17496 * config/riscv/multilib-generator: (canonical_order): New.
17497 (arch_canonicalize): Dito.
17498 Apply arch_canonicalize for alts.
17499
17500 2019-08-05 Martin Sebor <msebor@redhat.com>
17501
17502 * doc/extend.texi (Common Variable Attributes): Document alias
17503 attribute.
17504
17505 2019-08-05 Marek Polacek <polacek@redhat.com>
17506
17507 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17508 * doc/invoke.texi: Document -Wcomma-subscript.
17509
17510 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17511
17512 * tree-core.h (tree_function_decl): Make function_code an
17513 independent field. Group the remaining bitfields into bytes
17514 and move decl_type so that it contines to be at a byte boundary.
17515 Leave 12 bits for future expansion.
17516
17517 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17518
17519 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17520 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17521 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17522 IFN_MASK_STORE.
17523
17524 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17525
17526 * gimple.h (gimple_move_vops): Declare.
17527 * gimple.c (gimple_move_vops): New function
17528 * gimple-fold.c (replace_call_with_call_and_fold)
17529 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17530 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17531 (gimple_fold_call): Use it.
17532 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17533 * tree-call-cdce.c (use_internal_fn): Likewise.
17534 * tree-if-conv.c (predicate_load_or_store): Likewise.
17535 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17536 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17537 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17538 (update_call_from_tree): Likewise.
17539 * tree-vect-stmts.c (vectorizable_load): Likewise.
17540 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17541
17542 2019-08-05 Martin Liska <mliska@suse.cz>
17543
17544 PR c++/91334
17545 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17546 with not arguments.
17547 (eliminate_unnecessary_stmts): Likewise.
17548
17549 2019-08-05 Richard Biener <rguenther@suse.de>
17550
17551 PR middle-end/91169
17552 * fold-const.c (get_array_ctor_element_at_index): Create
17553 offset_ints according to the sign of the index type and treat
17554 that as signed if it is obviously so.
17555
17556 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17557
17558 PR target/91341
17559 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17560 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17561 _mm256_storeu2_m128i): New function.
17562
17563 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17564
17565 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17566 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17567
17568 2019-08-05 Alan Modra <amodra@gmail.com>
17569
17570 PR target/91349
17571 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17572 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17573
17574 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17575
17576 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17577 bug that was fixed in Tcl 8.6.1.
17578
17579 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17580
17581 * config/rs6000/future.md: New file.
17582 * config/rs6000/rs6000.md: Include future.md.
17583 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17584
17585 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17586
17587 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17588 check to use targetm.slow_unaligned_access instead.
17589
17590 * function.c (assign_param_data_one): Remove unused data members.
17591
17592 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17593
17594 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17595 build_distinct_type_copy.
17596 (simd_clone_adjust_argument_types): Ditto.
17597 (simd_clone_adjust): Call build_distinct_type_copy here.
17598 (expand_simd_clones): Ditto.
17599
17600 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17601
17602 PR target/91201
17603 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17604
17605 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17606
17607 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17608 from 'const void *'.
17609 (sort_locs_in_loop_postorder_cmp): Likewise.
17610
17611 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17612
17613 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17614 (hot-bb-count-ws-permille): Likewise.
17615 (hot-bb-frequency-fraction): Likewise.
17616 (unlikely-bb-count-fraction): Likewise.
17617 * params.def (hot-bb-count-fraction): Rework description.
17618 (hot-bb-count-ws-permille): Likewise.
17619 (hot-bb-frequency-fraction): Likewise.
17620 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17621 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17622
17623 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17624
17625 PR target/91323
17626 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17627 Return false.
17628
17629 2019-08-02 Richard Biener <rguenther@suse.de>
17630
17631 * vec.h (vec::sort): Add gcc_qsort_r support.
17632 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17633 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17634 to gcc_qsort_r style callback.
17635 (sort_locs_in_loop_postorder_cmp): Likewise.
17636 (analyze_memory_references): Use gcc_sort_r interfaces.
17637 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17638
17639 2019-08-02 Martin Liska <mliska@suse.cz>
17640
17641 PR lto/91313
17642 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17643 to detect working job server.
17644 (driver::detect_jobserver): Test whether jobserver
17645 is active from GCC driver. That will prevent situation where
17646 GCC is invoked from a LD plugin and the linker already uses
17647 file descriptors suggested by make. That leads to a wrong
17648 detection.
17649 * gcc.h (driver): Add detect_jobserver.
17650 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17651 not scanning for --jobserver-auth prefix.
17652
17653 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17654
17655 PR tree-optimization/91201
17656 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17657 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17658 extraction.
17659
17660 2019-08-01 Martin Sebor <msebor@redhat.com>
17661
17662 PR c++/90947
17663 * tree.c (type_initializer_zero_p): Define.
17664 * tree.h (type_initializer_zero_p): New function.
17665
17666 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17667
17668 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17669
17670 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17671
17672 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17673 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17674 * predict.c (maybe_hot_count_p): Likewise.
17675 (maybe_hot_bb_p): Tweak comment.
17676 (maybe_hot_edge_p): Likewise.
17677 (probably_never_executed): Likewise. Minor tweak.
17678 (probably_never_executed_bb_p): Likewise.
17679 (unlikely_executed_edge_p): Likewise.
17680 (probably_never_executed_edge_p): Likewise.
17681 (optimize_function_for_size_p): Likewise.
17682 (optimize_function_for_speed_p): Likewise.
17683 (function_optimization_type): Likewise.
17684 (optimize_bb_for_size_p): Likewise.
17685 (optimize_bb_for_speed_p): Likewise.
17686 (bb_optimization_type): Likewise.
17687 (optimize_edge_for_size_p): Likewise.
17688 (optimize_edge_for_speed_p): Likewise.
17689 (optimize_insn_for_size_p): Likewise.
17690 (optimize_insn_for_speed_p): Likewise.
17691 (optimize_loop_for_size_p): Likewise.
17692 (optimize_loop_for_speed_p): Likewise.
17693 (optimize_loop_nest_for_speed_p): Likewise.
17694 (optimize_loop_nest_for_size_p): Likewise.
17695 (predictable_edge_p): Likewise.
17696 (handle_missing_profiles): Minor tweak.
17697
17698 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17699
17700 * config/rs6000/predicates.md (pcrel_external_address): Update
17701 comment.
17702
17703 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17704
17705 PR target/85693
17706 * config/i386/mmx.md (usadv8qi): New expander.
17707
17708 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17709
17710 PR c++/90590
17711 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17712 with reserved names that are in a system header.
17713
17714 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17715
17716 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17717 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17718 (*vec_extractv2si_0_zext): Ditto.
17719 (*vec_extractv2si_1): Add (rm,x) alternative.
17720 (*vec_extractv2si_1_zext): New insn pattern.
17721 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17722 insn constraint.
17723
17724 2019-08-01 Richard Biener <rguenther@suse.de>
17725
17726 * domwalk.c (bb_postorder): Remove static variable.
17727 (cmp_bb_postorder): Adjust.
17728 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17729 (dom_walker::walk): Adjust.
17730
17731 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17732
17733 * sort.cc (sort_r_ctx): New struct.
17734 (reorder23): Make templated on context type.
17735 (reorder45): Ditto.
17736 (cmp1): Ditto. Adjust signature.
17737 (netsort): Ditto.
17738 (mergesort): Ditto.
17739 [CHECKING_P] (cmp2to3): New static function. Use it...
17740 (gcc_qsort) [CHECKING_P]: ...here.
17741 (gcc_sort_r): New function.
17742 * system.h (sort_r_cmp_fn): New function typedef.
17743 (qsort_chk): Adjust signature.
17744 (gcc_sort_r): Declare.
17745 * vec.c (qsort_chk_error): Adjust.
17746 (qsort_chk): Adjust.
17747
17748 2019-08-01 Richard Biener <rguenther@suse.de>
17749
17750 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17751 (compute_antic): Localize it here.
17752
17753 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17754
17755 * common/config/riscv/riscv-common.c: Check -march string ends
17756 with null.
17757
17758 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17759
17760 * ipa-devirt.c (type_warning_cmp): Make static.
17761 (decl_warning_cmp): Ditto.
17762
17763 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17764
17765 PR target/91050
17766 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17767 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17768 use of deleted rs6000_dejagnu_cpu_index variable.
17769 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17770 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17771 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17772 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17773 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17774 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17775
17776 2019-07-31 Richard Biener <rguenther@suse.de>
17777
17778 PR tree-optimization/91280
17779 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17780 Decompose MEM_REF manually for offset handling.
17781
17782 2019-07-31 Richard Biener <rguenther@suse.de>
17783
17784 PR tree-optimization/91293
17785 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17786 of reduction stmts.
17787
17788 2019-07-31 Matt Thomas <matt@3am-software.com>
17789 Nick Hudson <nick@nthcliff.demon.co.uk>
17790 Matthew Green <mrg@eterna.com.au>
17791 Maya Rashish <coypu@sdf.org>
17792
17793 * config.gcc (hppa*-*-netbsd*): New target.
17794 * config/pa/pa-netbsd.h: New file.
17795 * config/pa/pa32-netbsd.h: New file.
17796
17797 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17798
17799 PR tree-optimization/91201
17800 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17801
17802 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17803
17804 * config/gcn/gcn-valu.md
17805 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17806 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17807 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17808 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17809 struct ilist. Add nops for delayeduse insns.
17810 * config/gcn/gcn.md (delayeduse): New attribute.
17811 (*movbi): Remove s_waitcnt from stores.
17812 (*mov<mode>_insn): Likewise.
17813 (*movti_insn): Likewise. Add delayeduse attribute.
17814 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17815 (atomic_store<mode>): Remove or adjust s_waitcnt.
17816
17817 2019-07-31 Richard Biener <rguenther@suse.de>
17818
17819 * vr-values.h (vr_values::swap_vr_value): New.
17820 (vr_values::free_value_range): likewise.
17821 * vr-values.c (vr_values::swap_vr_value): Implement.
17822 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17823 Do not return a range or take a var.
17824 (evrp_range_analyzer::stack): Change back to recording a non-const
17825 value_range *.
17826 * gimple-ssa-evrp-analyze.c
17827 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17828 value-range.
17829 (evrp_range_analyzer::pop_to_marker): Adjust.
17830 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17831 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17832 no longer needed value-range.
17833
17834 2019-07-31 Martin Liska <mliska@suse.cz>
17835
17836 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17837 have size and (or) alignment as 2nd and later arguments.
17838 Mark all of them as necessary.
17839
17840 2019-07-31 Richard Biener <rguenther@suse.de>
17841
17842 PR tree-optimization/91178
17843 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17844 Use tail-recursion.
17845
17846 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17847
17848 PR tree-optimization/91201
17849 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17850 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17851 TARGET_AVX512F.
17852 (reduc_plus_scal_<mode>): Improve formatting by introducing
17853 a temporary.
17854
17855 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17856
17857 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17858 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17859 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17860 (aarch64_init_tme_builtins): New.
17861 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17862 (aarch64_expand_builtin_tme): New.
17863 (aarch64_expand_builtin): Handle TME builtins.
17864 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17865 __ARM_FEATURE_TME when enabled.
17866 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17867 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17868 (TARGET_TME): New.
17869 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17870 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17871 UNSPECV_TCANCEL.
17872 (tstart, ttest, tcommit, tcancel): New instructions.
17873 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17874 (__tcancel, __ttest): New.
17875 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17876 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17877 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17878 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17879 * config/arm/types.md: Add new tme type attr.
17880 * doc/invoke.texi: Document "tme".
17881
17882 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17883
17884 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17885 warn_unused_result attribute.
17886 (cmse_check_address_range): Add warn_unused_result attribute.
17887
17888 2019-07-31 Richard Biener <rguenther@suse.de>
17889
17890 PR tree-optimization/91257
17891 * tree-vrp.c (union_ranges): Unify equality and less tests
17892 by using compare_values. Re-order cheap tests first.
17893
17894 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17895
17896 PR middle-end/91301
17897 * gimplify.c (gimplify_omp_for): If for class iterator on
17898 distribute parallel for there is no data sharing clause
17899 on inner_for_stmt, look for private clause on combined
17900 parallel too and if found, move it to inner_for_stmt.
17901
17902 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17903
17904 * lra-int.h (lra_operand_data): Remove early_clobber field.
17905 (lra_insn_reg): Likewise.
17906 * lra.c (debug_operand_data): Update accordingly.
17907 (setup_operand_alternative): Likewise.
17908 (new_insn_reg): Likewise. Remove early_clobber parameter.
17909 (collect_non_operand_hard_regs): Update call accordingly.
17910 Don't assign to lra_insn_reg::early_clobber.
17911 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17912 and update calls to new_insn_reg.
17913 (lra_update_insn_regno_info): Update calls accordingly.
17914 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17915 alternative number as a parameter and test whether the operand
17916 is earlyclobbered in that particular alternative.
17917 (process_alt_operands): Update call accordingly. Use per-alternative
17918 checks for earyclobber here too.
17919 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17920 against zero for IRA_UNKNOWN_ALT.
17921
17922 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17923
17924 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17925
17926 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17927
17928 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17929 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17930
17931 2019-07-30 Martin Liska <mliska@suse.cz>
17932
17933 PR ipa/89330
17934 * cgraph.c (cgraph_edge::make_direct): Use
17935 edge->indirect_unknown_callee as edge->resolve_speculation can
17936 deallocate edge which is this pointer.
17937
17938 2019-07-30 Richard Biener <rguenther@suse.de>
17939
17940 PR tree-optimization/91257
17941 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17942
17943 2019-07-30 Martin Liska <mliska@suse.cz>
17944
17945 * doc/invoke.texi: Document new behavior.
17946 * lto-wrapper.c (cpuset_popcount): New function
17947 is a copy of libgomp/config/linux/proc.c.
17948 (init_num_threads): Likewise.
17949 (run_gcc): Automatically detect core count for -flto.
17950 (jobserver_active_p): New function.
17951
17952 2019-07-30 Richard Biener <rguenther@suse.de>
17953
17954 PR tree-optimization/91257
17955 * bitmap.h (bitmap_ior_into_and_free): Declare.
17956 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17957 whether to add the unliked element to the freelist.
17958 (bitmap_list_insert_element_after): Add defaulted param for
17959 an already allocated element.
17960 (bitmap_ior_into_and_free): New function.
17961 * tree-ssa-structalias.c (condense_visit): Reduce the
17962 ponts-to and edge bitmaps of the SCC members in a
17963 logarithmic fashion rather than all to one.
17964
17965 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17966
17967 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17968 parameter. When nonnull, make sure that the addition or subtraction
17969 has the same condition.
17970 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17971 for CFN_COND_MUL too.
17972
17973 2019-07-30 Richard Biener <rguenther@suse.de>
17974
17975 PR tree-optimization/91291
17976 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17977 constant values.
17978
17979 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17980
17981 PR middle-end/91216
17982 * omp-low.c (global_nonaddressable_vars): New variable.
17983 (use_pointer_for_field): For global decls, if they are non-addressable,
17984 remember it in the global_nonaddressable_vars bitmap, if they are
17985 addressable and in the global_nonaddressable_vars bitmap, ignore their
17986 TREE_ADDRESSABLE bit.
17987 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17988 vars in global_nonaddressable_vars bitmap.
17989 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17990
17991 PR target/91150
17992 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17993 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17994 comparison to unsigned HOST_WIDE_INT before shifting it left.
17995
17996 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17997
17998 * config/i386/i386.md (movstrict<mode>): Use register_operand
17999 predicate for operand 0. Add expander condition. Assert that
18000 operand 0 is a SUBREG RTX.
18001 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18002 Update operand constraints and insn condition.
18003 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18004 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18005 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18006 Update operand 0 constraints.
18007 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18008
18009 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18010
18011 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18012 when -m{code,data}-region are used without -mlarge.
18013 * config/msp430/msp430.c (msp430_option_override): Error when a
18014 non-default code or data region is used without -mlarge.
18015 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18016 attributes when they are used without -mlarge.
18017
18018 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18019
18020 PR target/70320
18021 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18022
18023 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18024
18025 PR middle-end/91242
18026 * wide-int.h (generic_wide_int::sext_elt): New function.
18027 * inchash.h (hash::add_wide_int): Use it instead of elt.
18028
18029 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18030
18031 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18032 CODE_FOR_arm_##.
18033 * config/arm/arm.md (<crc_variant>): Rename to...
18034 (arm_<crc_variant>): ... This.
18035 (<cdp>): Rename to...
18036 (arm_<cdp>): ... This.
18037 (<ldc>): Rename to...
18038 (arm_<ldc>): ... This.
18039 (<stc>): Rename to...
18040 (arm_<stc>): ... This.
18041 (<mcr>): Rename to...
18042 (arm_<mcr>): ... This.
18043 (<mrc>): Rename to...
18044 (arm_<mrc>): ... This.
18045 (<mcrr>): Rename to...
18046 (arm_<mcrr>): ... This.
18047 (<mrrc>): Rename to...
18048 (arm_<mrrc>): ... This.
18049
18050 2019-07-29 Richard Biener <rguenther@suse.de>
18051
18052 PR tree-optimization/91257
18053 * tree-ssa-sccvn.h (struct vn_avail): New.
18054 (struct vn_ssa_aux): Add avail member.
18055 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18056 member, add m_avail_freelist one.
18057 (rpo_elim::~rpo_elim): Remove.
18058 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18059 data structure.
18060 (rpo_elim::eliminate_push_avail): Likewise.
18061 (do_unwind): Likewise.
18062 (do_rpo_vn): Likewise.
18063
18064 2019-07-29 Richard Biener <rguenther@suse.de>
18065
18066 PR tree-optimization/91257
18067 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18068 most cases, instead call compare_values which handles the
18069 symbolic ranges we handle specially.
18070 (compare_values_warnv): Do not call operand_less_p but open-code
18071 the effective fold calls. Avoid converting so much.
18072
18073 2019-07-29 Martin Liska <mliska@suse.cz>
18074
18075 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18076 remove LHS of operator new call. It's handled latter.
18077
18078 2019-07-29 Richard Biener <rguenther@suse.de>
18079
18080 PR tree-optimization/91267
18081 * vr-values.c (vr_values::update_value_range): Add early return
18082 for effectively VARYING lattice entry.
18083
18084 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18085
18086 PR debug/86638
18087 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18088 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18089 necessary if keep_all_vdefs_p is true.
18090 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18091 that keep_all_vdefs_p is false.
18092 (mark_all_reaching_defs_necessary): Likewise.
18093 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18094
18095 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18096
18097 * common.opt (Og): Change the initial value of flag_dse to 0.
18098 * opts.c (default_options_table): Move OPT_ftree_dse from
18099 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18100 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18101 entry before the OPT_ftree_sra entry.
18102 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18103 of flags disabled by Og.
18104
18105 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18106
18107 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18108 variables for -Og.
18109
18110 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18111
18112 * doc/sourcebuild.texi (check-function-bodies): Document.
18113
18114 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18115
18116 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18117 VEC_DUPLICATE of a fixed-length vector even if the result
18118 is variable-length. Likewise fold a duplicate of a
18119 variable-length vector if the variable-length vector is
18120 itself a duplicate of a fixed-length sequence.
18121 (test_vector_ops_duplicate): Test more cases.
18122
18123 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18124
18125 * vector-builder.h (vector_builder): Add a shape template parameter.
18126 (vector_builder::new_unary_operation): New function, generalizing
18127 the old tree_vector_builder function.
18128 (vector_builder::new_binary_operation): Likewise.
18129 (vector_builder::binary_encoded_nelts): Likewise.
18130 * int-vector-builder.h (int_vector_builder): Update template
18131 parameters to vector_builder.
18132 (int_vector_builder::shape_nelts): New function.
18133 * rtx-vector-builder.h (rtx_vector_builder): Update template
18134 parameters to vector_builder.
18135 (rtx_vector_builder::shape_nelts): New function.
18136 (rtx_vector_builder::nelts_of): Likewise.
18137 (rtx_vector_builder::npatterns_of): Likewise.
18138 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18139 * tree-vector-builder.h (tree_vector_builder): Update template
18140 parameters to vector_builder.
18141 (tree_vector_builder::shape_nelts): New function.
18142 (tree_vector_builder::nelts_of): Likewise.
18143 (tree_vector_builder::npatterns_of): Likewise.
18144 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18145 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18146 (tree_vector_builder::new_binary_operation): Delete.
18147 (tree_vector_builder::binary_encoded_nelts): Likewise.
18148 * simplify-rtx.c: Include rtx-vector-builder.h.
18149 (distributes_over_addition_p): New function.
18150 (simplify_const_unary_operation)
18151 (simplify_const_binary_operation): Generalize handling of vector
18152 constants to include variable-length vectors.
18153 (test_vector_ops_series): Add more tests.
18154
18155 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18156
18157 PR lto/91222
18158 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18159 than INDENTIFIER_POINTER.
18160
18161 2019-07-28 Martin Liska <mliska@suse.cz>
18162
18163 PR ipa/89330
18164 * cgraph.c (symbol_table::create_edge): Always allocate
18165 a cgraph_edge.
18166 (symbol_table::free_edge): Store summary_id to
18167 edge_released_summary_ids if != -1;
18168 * cgraph.h (NEXT_FREE_NODE): Remove.
18169 (SET_NEXT_FREE_NODE): Likewise.
18170 (NEXT_FREE_EDGE): Likewise.
18171 (symbol_table::release_symbol): Store summary_id to
18172 cgraph_released_summary_ids if != -1;
18173 (symbol_table::allocate_cgraph_symbol): Always allocate
18174 a cgraph_node.
18175
18176 2019-07-28 Alan Modra <amodra@gmail.com>
18177
18178 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18179 gen_sibcall.
18180
18181 2019-07-28 Alan Modra <amodra@gmail.com>
18182
18183 PR target/91135
18184 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18185 define.
18186 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18187 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18188 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18189
18190 2019-07-28 Alan Modra <amodra@gmail.com>
18191
18192 PR target/91050
18193 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18194 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18195 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18196 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18197 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18198 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18199 in asm_default spec.
18200 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18201 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18202
18203 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18204
18205 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18206
18207 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18208
18209 PR target/89517
18210 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18211 * config/aarch64/aarch64-option-extensions.def: Add new comments
18212 and restore easier to read options.
18213
18214 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18215
18216 * convert.c (convert_to_real_1): Move part of conversion code...
18217 * match.pd: ...To here.
18218
18219 2019-07-26 Martin Jambor <mjambor@suse.cz>
18220
18221 PR ipa/89330
18222 * ipa-inline-transform.c (check_speculations_1): New function.
18223 (push_all_edges_in_set_to_vec): Likewise.
18224 (check_speculations): Use check_speculations_1, new parameter
18225 new_edges.
18226 (inline_call): Pass new_edges to check_speculations.
18227 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18228 NULL.
18229 (speculation_useful_p): Early return true if edge is inlined, remove
18230 later checks for inline_failed.
18231
18232 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18233
18234 PR rtl-optimization/91223
18235 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18236 matching with INOUT operand.
18237
18238 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18239
18240 * stmt.c (expand_case): Try to narrow the index type if it's larger
18241 than a word. Tidy up.
18242
18243 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18244
18245 * cif-code.def (NEVER_CALL): New code.
18246 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18247 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18248
18249 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18250
18251 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18252 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18253
18254 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18255
18256 * ipa-devirt.c (add_type_duplicate): Fix return value.
18257
18258 2019-07-25 Richard Biener <rguenther@suse.de>
18259
18260 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18261 type parameter and use it instead of guessing expression
18262 type from the first operand.
18263 (extract_range_from_binary_expr): Pass expr_type down.
18264
18265 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18266
18267 * config/arm/arm.md (SATrev): Change to code attribute.
18268 (*satsi_<SAT:code>): Adjust for the above.
18269 (*satsi_<SAT:code>_shift): Likewise.
18270
18271 2019-07-25 Richard Biener <rguenther@suse.de>
18272
18273 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18274 Make value_range * temporary const.
18275 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18276 Likewise.
18277 (evrp_range_analyzer::record_ranges_from_): Likewise.
18278 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18279 deal with having recorded a const one.
18280 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18281 Return a const value_range *.
18282 (evrp_range_analyzer::pop_value_range): Likewise.
18283 (evrp_range_analyzer::stack): Record const value_range *s.
18284 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18285 Adjust.
18286 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18287 (format_integer): Likewise.
18288 (sprintf_dom_walker::handle_gimple_call): Likewise.
18289 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18290 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18291 (vrp_prop::get_value_range): Adjust.
18292 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18293 modifying the lattice in-place.
18294 (vrp_prop::visit_stmt): Likewise.
18295 * vr-values.c (vr_values::get_lattice_entry): New private method.
18296 (vr_values::get_value_range): Wrap it and return a const
18297 value_range *.
18298 (vr_values::set_def_to_varying): New.
18299 (vr_values::set_defs_to_varying): Use it.
18300 (vr_values::update_value_range): Likewise.
18301 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18302 (values::op_with_constant_singleton_va): Likewise.
18303 (vr_values::extract_range_for_var_from_co): Likewise.
18304 (vr_values::extract_range_from_ssa_name): Likewise.
18305 (vr_values::extract_range_from_cond_expr): Likewise.
18306 (vr_values::extract_range_basic): Likewise.
18307 (compare_ranges): Take const value_range *, adjust.
18308 (compare_range_with_value): Likewise.
18309 (vrp_valueize): Adjust.
18310 (vrp_valueize_1): Likewise.
18311 (vr_values::get_vr_for_comparison): Return a const value_range *.
18312 (vr_values::compare_name_with_value): Adjust.
18313 (vr_values::compare_names): Likewise.
18314 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18315 Likewise.
18316 (vr_values::vrp_evaluate_conditional): Likewise.
18317 (find_case_label_ranges): Take a const value_range *.
18318 (vr_values::vrp_visit_switch_stmt): Adjust.
18319 (vr_values::extract_range_from_phi_node): Likewise.
18320 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18321 (vr_values::simplify_abs_using_ranges): Likewise.
18322 (test_for_singularity): Take a const value_range *.
18323 (range_fits_type_p): Likewise.
18324 (vr_values::simplify_cond_using_ranges_1): Adjust.
18325 (vr_values::simplify_cond_using_ranges_2): Likewise.
18326 (vr_values::simplify_switch_using_ranges): Likewise.
18327 (vr_values::simplify_float_conversion_usi): Likewise.
18328 (vr_values::two_valued_val_range_p): Likewise.
18329 * vr-values.h (vr_values::get_value_range): Return a const
18330 value_range *.
18331 (vr_values::set_def_to_varying): New.
18332 (vr_values::get_lattice_entry): New private method.
18333 (vr_values::get_vr_for_comparison): Return a const value_range *.
18334
18335 2019-07-25 Martin Liska <mliska@suse.cz>
18336 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18337
18338 PR c++/23383
18339 * common.opt: Add -fallocation-dce
18340 * gimple.c (gimple_call_operator_delete_p): New.
18341 * gimple.h (gimple_call_operator_delete_p): Likewise.
18342 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18343 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18344 DECL_IS_OPERATOR_DELETE_P.
18345 (mark_all_reaching_defs_necessary_1): Likewise.
18346 (propagate_necessity): Likewise.
18347 (eliminate_unnecessary_stmts): Handle
18348 gimple_call_operator_delete_p.
18349 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18350 Add packing of OPERATOR_DELETE.
18351 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18352 Similarly here.
18353 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18354 (DECL_SET_IS_OPERATOR_DELETE): New.
18355 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18356
18357 2019-07-25 Martin Liska <mliska@suse.cz>
18358
18359 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18360 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18361 * coverage.c (coverage_begin_function): Likewise.
18362 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18363 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18364 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18365 (sem_item::hash_referenced_symbol_properties): Likewise.
18366 * lto-streamer-out.c (hash_tree): Likewise.
18367 * predict.c (expr_expected_value_1): Likewise.
18368 * tree-inline.c (expand_call_inline): Likewise.
18369 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18370 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18371 * tree-core.h (enum function_decl_type): New enum.
18372 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18373 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18374 (set_function_decl_type): Likewise.
18375 (DECL_IS_OPERATOR_NEW_P): New.
18376 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18377 (DECL_LAMBDA_FUNCTION): Likewise.
18378 (DECL_LAMBDA_FUNCTION_P): Likewise.
18379 (DECL_IS_OPERATOR_NEW): Remove.
18380 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18381
18382 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18383
18384 * ipa-profile.c (get_most_common_single_value): Use
18385 get_nth_most_common_value.
18386 * profile.c (sort_hist_value): New function.
18387 (compute_value_histograms): Call sort_hist_value to sort the
18388 values after loading from disk.
18389 * value-prof.c (get_most_common_single_value): Rename to ...
18390 get_nth_most_common_value. Add input params n, return
18391 the n_th value and count.
18392 (gimple_divmod_fixed_value_transform): Use
18393 get_nth_most_common_value.
18394 (gimple_ic_transform): Likewise.
18395 (gimple_stringops_transform): Likewise.
18396 * value-prof.h (get_most_common_single_value): Add input params
18397 n, default to 0.
18398
18399 2019-07-25 Richard Biener <rguenther@suse.de>
18400
18401 PR tree-optimization/91236
18402 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18403 size of CONSTRUCTOR write. Fix buffer size we pass to
18404 native_encode_expr.
18405
18406 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18407
18408 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18409 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18410 r273773.
18411
18412 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18413
18414 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18415 explicitly disabled with --disable-initfini-array.
18416
18417 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18418
18419 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18420 if-exists.
18421
18422 2019-07-24 Martin Sebor <msebor@redhat.com>
18423
18424 PR tree-optimization/91183
18425 PR tree-optimization/86688
18426 * builtins.c (compute_objsize): Handle MEM_REF.
18427 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18428 (get_min_string_length): Remove.
18429 (count_nonzero_bytes): New function.
18430 (handle_char_store): Rename...
18431 (handle_store): to this. Handle multibyte stores via integer types.
18432 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18433 function name.
18434
18435 2019-07-24 Martin Sebor <msebor@redhat.com>
18436
18437 PR driver/80545
18438 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18439 (diagnostic_report_diagnostic): Same.
18440 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18441 (diagnostic_context::lang_mask): New data member.
18442 * ipa-pure-const.c (suggest_attribute): Use
18443 lang_hooks.option_lang_mask ().
18444 * opts-common.c (option_enabled): Handle new argument.
18445 (get_option_state): Pass an additional argument.
18446 * opts.c (print_filtered_help): Print supported languages for
18447 unsupported options. Adjust printing of current state.
18448 * opts.h (option_enabled): Add argument.
18449 * toplev.c (print_switch_values): Use lang_mask.
18450 (general_init): Set global_dc->lang_mask.
18451
18452 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18453
18454 PR bootstrap/87030
18455 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18456
18457 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18458
18459 * cgraphunit.c (symbol_table::compile): Start and stop
18460 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18461 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18462
18463 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18464
18465 * gimplify.c (flag_instrument_functions_exclude_p): Include
18466 namespace/class information in the printable name.
18467 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18468 to tokens entered into the vector.
18469
18470 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18471
18472 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18473 (get_static_chain): Call it instead of build_simple_mem_ref.
18474 (get_frame_field): Likewise.
18475 (get_nonlocal_debug_decl): Likewise.
18476 (convert_nonlocal_reference_op): Likewise.
18477
18478 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18479
18480 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18481 declaration.
18482 (arc_compute_frame_size): Millicode is disabled when compiling
18483 ISR.
18484 (arc_return_address_register): Likewise.
18485 (arc_compute_function_type): Likewise.
18486 (arc_compute_frame_size): Likewise.
18487 (secondary_reload_info): Likewise.
18488 (arc_get_unalign): Likewise.
18489 (arc_can_use_return_insn): Declare.
18490 * config/arc/arc.c (AUX_LP_START): Define
18491 (AUX_LP_END): Likewise.
18492 (arc_frame_info): Update gmask member to 64-bit datum.
18493 (GMASK_LEN): Update.
18494 (arc_compute_function_type): Make it static, move it forward.
18495 (arc_must_save_register): Update, consider the extra regs.
18496 (arc_compute_millicode_save_restore_regs): Update to use the 64
18497 bit gmask.
18498 (arc_compute_frame_size): Likewise.
18499 (arc_enter_leave_p): Likewise.
18500 (arc_save_callee_saves): Likewise.
18501 (arc_restore_callee_saves): Likewise.
18502 (arc_save_callee_enter): Likewise.
18503 (arc_restore_callee_leave): Likewise.
18504 (arc_save_callee_milli): Likewise.
18505 (arc_restore_callee_milli): Likewise.
18506 (arc_expand_prologue): Add new interrupt handling.
18507 (arc_return_address_register): Make it static, move it forward.
18508 (arc_expand_epilogue): Add new interrupt handling.
18509 (arc_get_unalign): Delete.
18510 (arc_epilogue_uses): Make sure we do not remove the extra
18511 saved/restored registers when interrupt.
18512 (arc_can_use_return_insn): New function.
18513 (push_reg): Likewise.
18514 (pop_reg): Likewise.
18515 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18516 procedures.
18517 (arc_restore_callee_saves): Likewise, but restoring.
18518 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18519 (R33_REG): Likewise.
18520 (R34_REG): Likewise.
18521 (R35_REG): Likewise.
18522 (R36_REG): Likewise.
18523 (R37_REG): Likewise.
18524 (R38_REG): Likewise.
18525 (R39_REG): Likewise.
18526 (R45_REG): Likewise.
18527 (R46_REG): Likewise.
18528 (R47_REG): Likewise.
18529 (R48_REG): Likewise.
18530 (R49_REG): Likewise.
18531 (R50_REG): Likewise.
18532 (R51_REG): Likewise.
18533 (R52_REG): Likewise.
18534 (R53_REG): Likewise.
18535 (R54_REG): Likewise.
18536 (R55_REG): Likewise.
18537 (R56_REG): Likewise.
18538 (R58_REG): Likewise.
18539 (type): Add rtie attribute.
18540 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18541 (movsi_insn): Accept moves to lp_count.
18542 (rtie): Update pattern.
18543 (simple_return): Simplify it, don't use this pattern as a return
18544 from an interrupt.
18545 (arc600_rtie): New pattern.
18546 (p_return_i): Clean up.
18547 (return): Likewise.
18548 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18549 family CPUs.
18550 * config/arc/predicates.md (move_src_operand): Consider lp_count
18551 as a register.
18552
18553 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18554
18555 * config/s390/predicates.md (addv_const_operand): New predicate.
18556 * config/s390/s390-modes.def (CCO): New condition code mode.
18557 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18558 (s390_branch_condition_mask): Likewise.
18559 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18560 ("mulv<mode>4"): New expanders.
18561 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18562 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18563 pattern definitions.
18564
18565 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18566
18567 PR middle-end/91166
18568 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18569 (define_predicates): Add entry for uniform_vector_p.
18570 (vec_same_elem_p): New match pattern.
18571
18572 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18573
18574 PR bootstrap/87030
18575 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18576 * config/i386/darwin32-biarch.h .. to here.
18577 * config/i386/darwin64-biarch.h: Adjust comments.
18578 * config/rs6000/darwin32-biarch.h: Likewise.
18579 * config/rs6000/darwin64-biarch.h: Likewise.
18580 * config.gcc: Missed commit from r273746
18581 (*-*-darwin*): Don't include CPU t-darwin here.
18582 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18583 an error message if i686-darwin configuration is attempted for
18584 Darwin >= 18.
18585
18586 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18587
18588 PR bootstrap/87030
18589 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18590 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18591 an error message if i686-darwin configuration is attempted for
18592 Darwin >= 18.
18593 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18594 (powerpc-*-darwin*): Use biarch files where needed.
18595 (powerpc64-*-darwin*): Likewise.
18596 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18597 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18598 arch case.
18599 * config/i386/darwin32-biarch.h: New.
18600 * config/i386/darwin64.h: Rename.
18601 * config/i386/darwin64-biarch.h: To this.
18602 * config/i386/t-darwin: Rename.
18603 * config/i386/t-darwin32-biarch: To this.
18604 * config/i386/t-darwin64: Rename.
18605 * config/i386/t-darwin64-biarch: To this.
18606 * config/rs6000/darwin32-biarch.h: New.
18607 * config/rs6000/darwin64.h: Rename.
18608 * config/rs6000/darwin64-biarch.h: To this.
18609 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18610 arch case.
18611 * config/rs6000/t-darwin8: Rename.
18612 * config/rs6000/t-darwin32-biarch: To this.
18613 * config/rs6000/t-darwin64 Rename.
18614 * config/rs6000/t-darwin64-biarch: To this.
18615
18616 2019-07-23 Martin Sebor <msebor@redhat.com>
18617
18618 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18619
18620 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18621
18622 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18623 (rh): New alias for it.
18624
18625 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18626
18627 * gdbhooks.py: Pass replace=True to
18628 gdb.printing.register_pretty_printer.
18629
18630 2019-07-23 Richard Biener <rguenther@suse.de>
18631
18632 PR debug/91231
18633 * lto-streamer-in.c (input_function): Drop inline-entry markers
18634 that ended up with an unknown location block.
18635
18636 2019-07-23 Richard Biener <rguenther@suse.de>
18637
18638 PR tree-optimization/83518
18639 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18640 init from a constant even when partial defs are already recorded.
18641
18642 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18643
18644 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18645 * config/i386/znver1.md: Enable patterns for znver2 and add store
18646 variants which use extra AGU unit.
18647
18648 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18649
18650 * config/i386/i386-options.c (ix86_option_override_internal): Default
18651 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18652 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18653 for ZNVER2.
18654
18655 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18656
18657 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18658 (znver2_costs): Update 256 bit SSE costs and multiplication.
18659
18660 2019-07-23 Jan Beulich <jbeulich@suse.com>
18661
18662 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18663 Require only AVX512F.
18664 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18665 alternative expanding to vpternlog.
18666
18667 2019-07-23 Martin Liska <mliska@suse.cz>
18668
18669 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18670 to -flto in dwarf producer string.
18671
18672 2019-07-23 Richard Biener <rguenther@suse.de>
18673
18674 * tree-cfg.c (label_for_bb): Remove global var.
18675 (main_block_label): Take label_for_bb as argument.
18676 (cleanup_dead_labels_eh): Likewise, adjust.
18677 (cleanup_dead_labels): Adjust.
18678
18679 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18680
18681 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18682 Configurations): Add documentation for __builtin_mtfsf.
18683
18684 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18685
18686 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18687 * config/riscv/riscv.c (riscv_constant_alignment): Use
18688 riscv_align_data_type.
18689 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18690 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18691 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18692 * config/riscv/riscv.opt (malign-data): New.
18693 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18694
18695 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18696
18697 * cgraph.c (dump_graphviz): New function.
18698 * cgraph.h (dump_graphviz): New function.
18699 * symtab.c (dump_graphviz): New function.
18700
18701 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18702
18703 * config/aarch64/aarch64-simd.md
18704 (*aarch64_simd_sra<mode>): New.
18705 * config/aarch64/iterators.md
18706 (SHIFTRT): New iterator.
18707 (sra_op): New attribute.
18708
18709 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18710
18711 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18712 callee-saved regs R4->R10 in an interrupt function that calls another
18713 function.
18714
18715 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18716
18717 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18718 (_mm_blendv_epi8): New.
18719
18720 2019-07-22 Richard Biener <rguenther@suse.de>
18721
18722 PR tree-optimization/91221
18723 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18724 restrict partial-def handling of empty constructors and
18725 memset to refs with known offset.
18726
18727 2019-07-22 Jan Beulich <jbeulich@suse.com>
18728
18729 * config/i386/sse.md (ternlogsuffix): New.
18730 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18731 AVX512F is in use.
18732 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18733
18734 2019-07-22 Martin Liska <mliska@suse.cz>
18735
18736 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18737 comment.
18738 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18739
18740 2019-07-22 Martin Liska <mliska@suse.cz>
18741
18742 * lto-section-in.c (lto_get_section_data):
18743 Use new function get_compression.
18744 * lto-streamer-out.c (produce_lto_section): Use
18745 set_compression to encode compression algorithm.
18746 * lto-streamer.h (struct lto_section): Do not
18747 use bitfields in the format.
18748
18749 2019-07-22 Martin Liska <mliska@suse.cz>
18750
18751 PR driver/91172
18752 * opts-common.c (decode_cmdline_option): Decode
18753 argument of -Werror and check it for a wrong language.
18754 * opts-global.c (complain_wrong_lang): Remove such case.
18755
18756 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18757
18758 * config/arc/arc.c (prepare_move_operands): Always use an
18759 intermediate register when storing a TLS symbols.
18760
18761 2019-07-22 Stafford Horne <shorne@gmail.com>
18762
18763 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18764 force_reg.
18765
18766 2019-07-22 Stafford Horne <shorne@gmail.com>
18767
18768 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18769 and munordered-float validations.
18770 * config/or1k/constraints.md (d): New register constraint.
18771 * config/or1k/predicates.md (fp_comparison_operator): New.
18772 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18773 operands.
18774 (or1k_expand_compare): Normalize unordered comparisons.
18775 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18776 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18777 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18778 * config/or1k/or1k.md (type): Add fpu.
18779 (fpu): New instruction reservation.
18780 (F, f, fr, fi, FI, FOP, fop): New.
18781 (<fop><F:mode>3): New ALU instruction definition.
18782 (float<fi><F:mode>2): New conversion instruction definition.
18783 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18784 (fpcmpcc): New code iterator.
18785 (*sf_fp_insn): New instruction definition.
18786 (cstore<F:mode>4): New expand definition.
18787 (cbranch<F:mode>4): New expand definition.
18788 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18789 munordered-float): New options.
18790 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18791 munordered-float.
18792
18793 2019-07-22 Stafford Horne <shorne@gmail.com>
18794
18795 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18796 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18797 documenation to be more clear.
18798 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18799 more clear.
18800 * config/or1k/or1k.opt (mrori): New option.
18801 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18802 msfimm, mshftimm): Rewrite documentation to be more clear.
18803 * config/or1k/or1k.md (insn_support): Add ror and rori.
18804 (enabled): Add conditions for ror and rori.
18805 (rotrsi3): Replace condition for shftimm with ror and rori.
18806
18807 2019-07-22 Stafford Horne <shorne@gmail.com>
18808
18809 PR target/90363
18810 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18811 (extend<mode>si2): Update predicate.
18812 * config/or1k/predicates.md (volatile_mem_operand): New.
18813 (reg_or_mem_operand): New.
18814
18815 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18816
18817 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18818 * config/rs6000/rs6000-call.c: ... to here.
18819
18820 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18821
18822 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18823 memory.
18824
18825 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18826
18827 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18828
18829 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18830
18831 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18832
18833 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18834
18835 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18836 (any_memory_operand): New predicate.
18837 (reg_or_mem_operand): Use it.
18838
18839 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18840
18841 PR target/91204
18842 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18843
18844 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18845
18846 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18847 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18848
18849 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18850
18851 * tree.def (OMP_LOOP): New tree code.
18852 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18853 (enum omp_clause_bind_kind): New enum.
18854 (struct tree_omp_clause): Add subcode.bind_kind.
18855 * tree.h (OMP_LOOP_CHECK): Rename to ...
18856 (OMP_LOOPING_CHECK): ... this.
18857 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18858 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18859 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18860 (OMP_CLAUSE_BIND_KIND): Define.
18861 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18862 bind clause entries.
18863 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18864 * tree-pretty-print.c (dump_omp_clause): Likewise.
18865 (dump_generic_node): Handle OMP_LOOP.
18866 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18867 (in_omp_construct): New variable.
18868 (is_gimple_stmt): Handle OMP_LOOP.
18869 (gimplify_scan_omp_clauses): For lastprivate don't set
18870 check_non_private if code == OMP_LOOP. For reduction clause
18871 on OMP_LOOP combined with parallel or teams propagate as shared
18872 on the combined construct. Handle OMP_CLAUSE_BIND.
18873 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18874 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18875 for constructs from a loop construct to gimplify_scan_omp_clauses.
18876 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18877 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18878 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18879 to match the implicit ORT_TARGET construct around whole body.
18880 Temporarily clear in_omp_construct when processing body.
18881 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18882 etc. temporarily set in_omp_construct when processing body.
18883 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18884 * omp-low.c (struct omp_context): Add loop_p.
18885 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18886 in that the original var might be private.
18887 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18888 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18889 addition of loop construct.
18890 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18891
18892 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18893 lastprivate non-addressable iterator of a collapse(1) simd.
18894
18895 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18896
18897 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18898 as in rs6000.c.
18899
18900 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18901
18902 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18903 refer to default conditions. Warn for the 'y' spec which is ignored
18904 by current linkers.
18905
18906 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18907
18908 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18909 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18910 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18911 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18912 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18913 init_cumulative_args, rs6000_promote_function_mode,
18914 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18915 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18916 rs6000_function_arg_boundary, rs6000_parm_offset,
18917 rs6000_parm_start, rs6000_arg_size,
18918 rs6000_darwin64_record_arg_advance_flush,
18919 rs6000_darwin64_record_arg_advance_recurse,
18920 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18921 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18922 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18923 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18924 rs6000_finish_function_arg, rs6000_function_arg,
18925 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18926 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18927 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18928 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18929 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18930 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18931 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18932 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18933 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18934 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18935 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18936 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18937 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18938 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18939 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18940 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18941 get_element_number, altivec_expand_vec_set_builtin,
18942 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18943 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18944 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18945 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18946 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18947 rs6000_expand_builtin, rs6000_vector_type,
18948 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18949 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18950 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18951 to rs6000-call.c.
18952 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18953 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18954 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18955 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18956 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18957 init_cumulative_args, rs6000_promote_function_mode,
18958 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18959 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18960 rs6000_function_arg_boundary, rs6000_parm_offset,
18961 rs6000_parm_start, rs6000_arg_size,
18962 rs6000_darwin64_record_arg_advance_flush,
18963 rs6000_darwin64_record_arg_advance_recurse,
18964 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18965 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18966 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18967 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18968 rs6000_finish_function_arg, rs6000_function_arg,
18969 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18970 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18971 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18972 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18973 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18974 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18975 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18976 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18977 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18978 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18979 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18980 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18981 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18982 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18983 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18984 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18985 get_element_number, altivec_expand_vec_set_builtin,
18986 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18987 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18988 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18989 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18990 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18991 rs6000_expand_builtin, rs6000_vector_type,
18992 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18993 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18994 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18995 to here from rs6000.c.
18996 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18997 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18998 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18999 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19000 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19001 rs6000_return_in_memory, rs6000_return_in_msb,
19002 rs6000_pass_by_reference, setup_incoming_varargs,
19003 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19004 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19005 rs6000_function_arg_padding, rs6000_function_arg,
19006 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19007 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19008 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19009 rs6000_passes_long_double, rs6000_passes_vector,
19010 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19011 altivec_builtin_mask_for_load) Add declarations.
19012 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19013 * config/config.gcc: Add new source file rs6000-call.c to garbage
19014 collector and extra_objs.
19015
19016 2019-07-19 Jeff Law <law@redhat.com>
19017
19018 PR tree-optimization/86061
19019 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19020 strncpy. Drop some trivial dead code.
19021 (maybe_trim_memstar_call): Handle strncpy.
19022
19023 2019-07-19 Richard Biener <rguenther@suse.de>
19024
19025 PR tree-optimization/91211
19026 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19027 memset encoding size.
19028
19029 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19030
19031 PR target/91204
19032 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19033
19034 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19035
19036 PR ipa/91194
19037 * ipa-inline.c (recursive_inlining): Fix limits check.
19038
19039 2019-07-19 Richard Biener <rguenther@suse.de>
19040
19041 PR tree-optimization/91200
19042 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19043 no PHI nodes in middle-bb.
19044
19045 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19046
19047 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19048 to +sve-bitperm.
19049 * config/aarch64/aarch64-option-extensions.def: Likewise.
19050
19051 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19052
19053 PR middle-end/91190
19054 * function.c (insert_temp_slot_address): Store into the hash table
19055 a copy of address to avoid RTL sharing issues.
19056
19057 2019-07-19 Richard Biener <rguenther@suse.de>
19058
19059 PR tree-optimization/91207
19060 Revert
19061 2019-07-17 Richard Biener <rguenther@suse.de>
19062
19063 PR tree-optimization/91178
19064 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19065 loads with a gap larger than the vector size always use
19066 VMAT_STRIDED_SLP.
19067 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19068 avoid loading vectors that are only contained in the gap
19069 and thus are not needed.
19070
19071 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19072
19073 * config/i386/i386.md (*addqi_2_slp): Remove.
19074 (*<code>qi_2_slp): Ditto.
19075
19076 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19077
19078 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19079 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19080 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19081 Rename function from rs6000_prefixed_address.
19082 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19083 TARGET_HAS_TOC.
19084 (TARGET_TOC): Likewise.
19085 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19086 rs6000.h.
19087 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19088 TARGET_HAS_TOC.
19089 (TARGET_TOC): Likewise.
19090 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19091 rs6000.h.
19092 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19093 TARGET_HAS_TOC.
19094 (TARGET_TOC): Likewise.
19095 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19096 check to require -mcmodel=medium for pc-relative addressing.
19097 (create_TOC_reference): Add assertion for TARGET_TOC.
19098 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19099 TARGET_NO_TOC.
19100 (rs6000_emit_move): Likewise.
19101 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19102 to 'TOC_alias_set'.
19103 (get_TOC_alias_set): Likewise.
19104 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19105 TARGET_NO_TOC.
19106 (rs6000_can_eliminate): Likewise.
19107 (rs6000_prefixed_address_mode_p): Rename function from
19108 rs6000_prefixed_address.
19109 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19110 TARGET_HAS_TOC and not pc-relative.
19111 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19112 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19113 TARGET_HAS_TOC.
19114 (TARGET_TOC): Likewise.
19115 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19116 rs6000.h.
19117
19118 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19119
19120 PR target/91188
19121 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19122 for operand 0. Do not use (match_dup) to match operand 1 with
19123 operand 0. Add check in insn constraint that either input operand
19124 matches operand 0. Use SWI12 mode iterator to also handle
19125 HImode operands.
19126 (*and<mode>_1_slp): Ditto.
19127 (*<code>qi_1_slp): Ditto.
19128 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19129 Do not use (match_dup) to match operand 1 with operand 0. Add
19130 check in insn constraint that operand 1 matches operand 0.
19131 Use SWI12 mode iterator to also handle HImode operands.
19132 (*ashl<mode>3_1_slp): Ditto.
19133 (*<shift_insn><mode>3_1_slp): Ditto.
19134 (*<rotate_insn><mode>3_1_slp): Ditto.
19135
19136 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19137
19138 * config/arm/arm-builtins.c
19139 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19140 (arm_expand_unop_builtin): Likewise.
19141 * config/arm/crypto.md
19142 (crypto_sha1h): Convert from define_insn to define_expand.
19143 (crypto_<crypto_pattern>): Likewise.
19144 (crypto_sha1h_lb): New define_insn.
19145 (crypto_<crypto_pattern>_lb): Likewise.
19146
19147 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19148
19149 PR target/90317
19150 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19151 (vsha1cq_u32): Likewise.
19152 (vsha1pq_u32): Likewise.
19153 (vsha1mq_u32): Likewise.
19154 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19155 vec select.
19156 (crypto_sha1c): Correct vec select.
19157 (crypto_sha1m): Likewise.
19158 (crypto_sha1p): Likewise.
19159
19160 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19161
19162 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19163 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19164 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19165 (subdi_zesidi_zesidi): Likewise.
19166 (negdi2_compare, negdi2_insn): Likewise.
19167 (negdi_extensidi): Likewise.
19168 (negdi_zero_extendsidi): Likewise.
19169 (arm_cmpdi_insn): Likewise.
19170 (subsi3_carryin): Use arm_borrow_operation.
19171 (subsi3_carryin_const): Likewise.
19172 (subsi3_carryin_const0): Likewise.
19173 (subsi3_carryin_compare): Likewise.
19174 (subsi3_carryin_compare_const): Likewise.
19175 (subsi3_carryin_compare_const0): Likewise.
19176 (subsi3_carryin_shift): Likewise.
19177 (rsbsi3_carryin_shift): Likewise.
19178 (negsi2_carryin_compare): Likewise.
19179
19180 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19181
19182 PR tree-optimization/91137
19183 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19184 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19185 Init, use and fini the above new field.
19186 (determine_base_object_1): New function.
19187 (determine_base_object): Reimplement using walk_tree.
19188
19189 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19190
19191 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19192 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19193 CLEANUP_FORCE_FAST_DCE is set.
19194 * ifcvt.c (rest_of_handle_if_conversion): Pass
19195 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19196 if-conversion succeeded.
19197
19198 2019-07-18 Richard Biener <rguenther@suse.de>
19199
19200 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19201 branches to make code less indented.
19202
19203 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19204
19205 PR middle-end/81824
19206 * attribs.c (decls_mismatched_attributes): Simplify the logic
19207 that avoids duplicates and false positives.
19208
19209 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19210
19211 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19212 data into data section when generating PIC code.
19213 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19214 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19215 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19216 return 2 for SOM and 0 for other targets.
19217
19218 2019-07-17 Jeff Law <law@redhat.com>
19219
19220 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19221 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19222 avoid unexpected switch statement fallthru.
19223
19224 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19225
19226 * config/i386/i386.md (*add<dwi>3_doubleword):
19227 Remove redundant constraints.
19228 (*add<mode>_1): Ditto.
19229 (*addhi_1): Ditto.
19230 (*addqi_1): Ditto.
19231 (*addqi_1_slp): Ditto.
19232 (*add<mode>_2): Ditto.
19233 (*addv<mode>4): Ditto.
19234 (*sub<dwi>3_doubleword): Ditto.
19235 (*sub<mode>_1): Ditto.
19236 (*subqi_1_slp): Ditto.
19237 (*sub<mode>_2): Ditto.
19238 (*subv<mode>4): Ditto.
19239 (*sub<mode>_3): Ditto.
19240 (@add<mode>3_carry): Ditto.
19241 (@sub<mode>3_carry): Ditto.
19242 (*add<mode>3_cc_overflow_1): Ditto.
19243 (*add<mode>3_zext_cc_overflow_2): Ditto.
19244 (*anddi_1): Ditto.
19245 (*and<mode>_1): Ditto.
19246 (*andqi_1): Ditto.
19247 (*andqi_1_slp): Ditto.
19248 (*anddi_2): Ditto.
19249 (*andqi_2_maybe_si): Ditto.
19250 (*and<mode>_2): Ditto.
19251 (*andqi_2_slp): Ditto.
19252 (*<code><mode>_1): Ditto.
19253 (*<code>qi_1): Ditto.
19254 (*<code>qi_1_slp): Ditto.
19255 (*<code><mode>_2): Ditto.
19256 (*<code>qi_2_slp): Ditto.
19257
19258 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19259
19260 * alias.c (record_component_aliases): Do not simplify pointed-to
19261 types of ODR types.
19262
19263 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19264
19265 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19266 partial reg stall on alternative 2.
19267
19268 2019-07-17 Richard Biener <rguenther@suse.de>
19269
19270 PR tree-optimization/91178
19271 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19272 lower SSA names to avoid quadratic behavior in the common case.
19273 * tree-data-ref.c (split_constant_offset): Add limit argument
19274 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19275 (split_constant_offset_1): Add limit argument and use it to
19276 limit SSA def walking. Optimize the common plus/minus case.
19277
19278 2019-07-17 Richard Biener <rguenther@suse.de>
19279
19280 PR tree-optimization/91178
19281 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19282 loads with a gap larger than the vector size always use
19283 VMAT_STRIDED_SLP.
19284 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19285 avoid loading vectors that are only contained in the gap
19286 and thus are not needed.
19287
19288 2019-07-17 Richard Biener <rguenther@suse.de>
19289
19290 PR tree-optimization/91180
19291 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19292 computation for memset partial defs.
19293
19294 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19295
19296 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19297 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19298 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19299 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19300 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19301 * omp-grid.c (grid_process_grid_body,
19302 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19303 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19304 == GF_OMP_FOR_KIND_SIMD.
19305 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19306 check_omp_nesting_restrictions, scan_omp_1_stmt,
19307 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19308 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19309 omp_find_scan): Likewise.
19310 * omp-expand.c (expand_omp_for): Likewise.
19311 * omp-general.c (omp_extract_for_data): Likewise.
19312
19313 PR tree-optimization/91157
19314 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19315 a vector boolean with scalar mode.
19316 (expand_vector_condition): Handle first operand being a vector boolean
19317 with scalar mode.
19318 (expand_vector_operations_1): For comparisons, don't bail out early
19319 if the return type is vector boolean with scalar mode, but comparison
19320 operand type is not.
19321
19322 2019-07-17 Richard Biener <rguenther@suse.de>
19323
19324 PR tree-optimization/91181
19325 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19326 IFN_LOADs as calls.
19327
19328 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19329
19330 * config/i386/i386.md (*testdi_1): Match CCZmode for
19331 constants that might have the SImode sign bit set.
19332 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19333 Use correct constraints for pentium pairing.
19334 (*test<mode>_1): Ditto.
19335
19336 2019-07-16 Jeff Law <law@redhat.com>
19337
19338 PR rtl-optimization/91173
19339 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19340 SSA_NAME with a constant value, fold its value into the offset
19341 and clear the base before calling gen_addr_rtx.
19342
19343 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19344
19345 PR rtl-optimization/91164
19346 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19347 invalidate dominance info.
19348
19349 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19350
19351 * read-md.h (md_reader::record_potential_iterator_use): Add a
19352 file_location parameter.
19353 * read-rtl.c (attribute_use::loc): New field.
19354 (map_attr_string): Take a file_location parameter. Report cases
19355 in which attributes map to multiple distinct values.
19356 (apply_attribute_uses): Update call accordingly.
19357 (md_reader::handle_overloaded_name): Likewise.
19358 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19359 nonnull strings.
19360 (record_attribute_use): Take a file_location parameter.
19361 Initialize attribute_use::loc.
19362 (md_reader::record_potential_iterator_use): Take a file_location
19363 parameter. Update call to record_attribute_use.
19364 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19365 (rtx_reader::read_rtx_code): Likewise.
19366 (rtx_reader::read_rtx_operand): Likewise. Record a location
19367 for implicitly-expanded empty strings.
19368
19369 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19370
19371 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19372 Use file_location instead of separate fields.
19373 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19374 separate filename and line number.
19375 * read-md.c (ptr_loc): As above.
19376 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19377 (md_reader::fprint_md_ptr_loc): Likewise.
19378 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19379 instead of a separate filename and line number.
19380 (md_reader::read_string): Update call accordingly.
19381
19382 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19383
19384 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19385 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19386 leaving the choice between SFDF and P implicit.
19387 (*mov<mode>_update2): Likewise.
19388 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19389 rather than leaving the choice betweem IBM128 and GPR implicit.
19390 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19391 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19392 QHSI implicit.
19393 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19394 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19395 * config/rs6000/vsx.md
19396 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19397 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19398 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19399 and VSX_EXTRACT_I implicit.
19400
19401 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19402
19403 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19404 Explicitly use <MOVEP1:MODE> for the mode attribute.
19405
19406 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19407
19408 PR bootstrap/91176
19409 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19410
19411 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19412
19413 PR target/91050
19414 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19415 .machine directive.
19416
19417 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19418
19419 * config/i386/i386.md (@test<mode>_ccno_1):
19420 Rename from test<mode>_ccno_1.
19421 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19422 (*testqi_1_maybe_si): Remove modrm attribute.
19423 (*test<mode>_1): Ditto.
19424 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19425 gen_test_ccno_1 and gen_extend_insn.
19426
19427 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19428
19429 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19430 to 0.
19431
19432 2019-07-15 Richard Biener <rguenther@suse.de>
19433
19434 PR middle-end/91162
19435 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19436 node make sure to replace all uses with something valid.
19437
19438 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19439
19440 PR tree-optimization/88497
19441 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19442 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19443 function undistribute_bitref_for_vector.
19444 (undistribute_bitref_for_vector): New function.
19445 (cleanup_vinfo_map): Likewise.
19446 (sort_by_mach_mode): Likewise.
19447
19448 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19449
19450 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19451 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19452 and testdi_ccno_1 using SWI48 mode attribute.
19453 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19454 x86_64_szext_general_operand.
19455 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19456 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19457 instead of genera_operand mode attribute.
19458
19459 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19460
19461 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19462 fopen and fclose to their respective types.
19463 (DotFn.invoke): Ditto.
19464
19465 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19466
19467 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19468 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19469 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19470 (array_index_predicate): Remove.
19471 (analyze_function_body): Account cost for variable ofsetted array
19472 indexing.
19473 (estimate_node_size_and_time): Do not compute array index hint.
19474 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19475 (inline_read_section): Do not read array index hint.
19476 (ipa_fn_summary_write): Do not write array index hint.
19477 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19478 * ipa-cp.c (hint_time_bonus): Remove.
19479 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19480 (ipa_fnsummary): Remove array_index.
19481 * ipa-inline.c (want_inline_small_function_p): Do not use
19482 array_index.
19483 (edge_badness): Likewise.
19484 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19485
19486 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19487
19488 PR target/91148
19489 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19490 superfluous "builtin function" phrasing.
19491
19492 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19493
19494 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19495 Break out from ...
19496 (aliasing_component_refs_walk): Break out from ...
19497 (aliasing_component_refs_p): ... here.
19498
19499 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19500
19501 PR target/91148
19502 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19503 "builtin function" phrasing.
19504
19505 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19506
19507 PR target/90723
19508 * recog.h (temporary_volatile_ok): New class.
19509 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19510 volatile_ok temporarily to true using temporary_volatile_ok.
19511 * expr.c (emit_block_move_via_cpymem): Likewise.
19512 * optabs.c (maybe_legitimize_operand): Likewise.
19513
19514 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19515
19516 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19517 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19518 uses inside of order(concurrent) constructs.
19519 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19520 OMP_CLAUSE_ORDER is seen.
19521 * omp-low.c (struct omp_context): Add order_concurrent member.
19522 (scan_sharing_clauses): Set ctx->order_concurrent if
19523 OMP_CLAUSE_ORDER is seen.
19524 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19525 of simd order(concurrent). Diagnose constructs not allowed inside of
19526 for order(concurrent).
19527 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19528 complaining about static double setjmp (double); or class static
19529 methods or non-global namespace setjmps.
19530 (omp_runtime_api_call): New function.
19531 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19532 order(concurrent) loops.
19533
19534 2019-07-12 Martin Sebor <msebor@redhat.com>
19535
19536 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19537 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19538 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19539 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19540
19541 2019-07-12 Jan Hubicka <jh@suse.cz>
19542
19543 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19544 (indirect_refs_may_alias_p): ... here.
19545 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19546 mem refs in the access paths.
19547
19548 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19549
19550 PR tree-optimization/89430
19551 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19552 store elimination for local variable without address escape.
19553
19554 2019-07-12 Jeff Law <law@redhat.com>
19555
19556 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19557 for the ".far" section.
19558
19559 2019-07-12 Richard Biener <rguenther@suse.de>
19560
19561 PR tree-optimization/91145
19562 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19563 chain check.
19564
19565 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19566
19567 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19568 rather than this_state as the lowering context for the ELSE
19569 seq in a GIMPLE_EH_ELSE.
19570
19571 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19572
19573 * vector-builder.h (vector_builder::elt): Allow already-supplied
19574 elements to be read back before building is complete.
19575
19576 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19577
19578 PR rtl-optimization/91136
19579 * df-core.c (ACCESSING REFS): Fix typos in comment.
19580 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19581 the beginning of the block to the initial set of live registers.
19582
19583 2019-07-12 Richard Biener <rguenther@suse.de>
19584
19585 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19586 * fold-const.c (get_array_ctor_element_at_index): Add
19587 ctor_idx output parameter informing the caller where in
19588 the constructor the element was (not) found. Add early exit
19589 for when the ctor is sorted.
19590 * gimple-fold.c (fold_array_ctor_reference): Support constant
19591 folding across multiple array elements.
19592
19593 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19594
19595 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19596 doesn't have location, set the current location to the function's end.
19597
19598 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19599
19600 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19601 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19602 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19603 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19604 * config/aarch64/aarch64-simd.md
19605 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19606 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19607 * config/aarch64/aarch64-sve.md
19608 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19609 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19610
19611 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19612
19613 * doc/md.texi: Document that @ patterns can have different
19614 numbers of operands.
19615 * genemit.c (handle_overloaded_gen): Handle this case.
19616 * genopinit.c (handle_overloaded_gen): Likewise.
19617 * gensupport.c (replace_operands_with_dups): Iterate over
19618 the new rtx's format rather than the old one's.
19619
19620 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19621
19622 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19623 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19624 order clause entries.
19625 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19626 * tree-pretty-print.c (dump_omp_clause): Likewise.
19627 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19628 Likewise.
19629 * omp-low.c (scan_sharing_clauses): Likewise.
19630 * tree-nested.c (convert_nonlocal_omp_clauses,
19631 convert_local_omp_clauses): Likewise.
19632
19633 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19634
19635 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19636 fallthrough target of current basic block isn't the placed
19637 right next.
19638
19639 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19640
19641 PR target/90980
19642 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19643 (_mm512_storeu_epi64): Likewise.
19644 (_mm512_loadu_epi32): Likewise.
19645 (_mm512_storeu_epi32): Likewise.
19646 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19647 (_mm_storeu_epi64): Likewise.
19648 (_mm256_storeu_epi32): Likewise.
19649 (_mm_storeu_epi32): Likewise.
19650
19651 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19652
19653 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19654
19655 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19656
19657 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19658 Handle Modula-2.
19659
19660 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19661
19662 PR target/91124
19663 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19664 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19665 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19666 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19667 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19668 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19669 define_insns.
19670 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19671 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19672 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19673 define_insns.
19674 (sse2_cvttpd2dq<mask_name>): Change into ...
19675 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19676 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19677 (*sse2_cvtpd2dq<mask_name>): Change into ...
19678 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19679 Add "C" constraint to const0_operand.
19680 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19681 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19682 changes.
19683
19684 PR target/91124
19685 * config/i386/i386-builtin-types.def
19686 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19687 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19688 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19689 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19690 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19691 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19692 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19693 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19694 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19695 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19696 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19697 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19698 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19699 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19700 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19701 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19702 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19703 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19704 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19705 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19706 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19707 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19708 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19709 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19710 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19711 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19712 __builtin_ia32_vpdpbusd_v4si_maskz,
19713 __builtin_ia32_vpdpbusds_v16si_mask,
19714 __builtin_ia32_vpdpbusds_v16si_maskz,
19715 __builtin_ia32_vpdpbusds_v8si_mask,
19716 __builtin_ia32_vpdpbusds_v8si_maskz,
19717 __builtin_ia32_vpdpbusds_v4si_mask,
19718 __builtin_ia32_vpdpbusds_v4si_maskz,
19719 __builtin_ia32_vpdpwssd_v16si_mask,
19720 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19721 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19722 __builtin_ia32_vpdpwssd_v4si_maskz,
19723 __builtin_ia32_vpdpwssds_v16si_mask,
19724 __builtin_ia32_vpdpwssds_v16si_maskz,
19725 __builtin_ia32_vpdpwssds_v8si_mask,
19726 __builtin_ia32_vpdpwssds_v8si_maskz,
19727 __builtin_ia32_vpdpwssds_v4si_mask,
19728 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19729 suffixed types rather than *_INT.
19730 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19731 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19732 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19733 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19734 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19735 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19736
19737 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19738
19739 * tree-vrp.c (intersect_ranges): If we know the intersection is
19740 empty, there is no need to conservatively add anything else to
19741 the set.
19742
19743 2019-07-11 Richard Biener <rguenther@suse.de>
19744
19745 PR middle-end/91131
19746 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19747 when the object is volatile and we have not cleared it even though
19748 there are no nonzero elements.
19749
19750 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19751
19752 * config/rs6000/predicates.md (cint34_operand): Update
19753 SIGNED_34BIT_OFFSET_P call.
19754 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19755 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19756 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19757 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19758 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19759 argument.
19760 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19761 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19762 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19763 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19764 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19765
19766 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19767
19768 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19769 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19770 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19771 (DEF_MIN_OSX_VERSION): New.
19772
19773 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19774
19775 * fold-const.c (fold_relational_const): Fix folding of
19776 vector-to-scalar NE_EXPRs.
19777 (test_vector_folding): Add more tests.
19778
19779 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19780
19781 PR target/91060
19782 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19783 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19784 (vec_setv2di_internal): Reexpress as...
19785 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19786 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19787 rather than gen_neon_vset_lane<mode>.
19788
19789 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19790
19791 PR target/91102
19792 * lra-constraints.c (process_alt_operands): Don't match user
19793 defined regs only if they are early clobbers.
19794
19795 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19796
19797 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19798
19799 2019-07-10 Richard Biener <rguenther@suse.de>
19800
19801 PR tree-optimization/91126
19802 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19803 native encoding offset for BYTES_BIG_ENDIAN.
19804 (vn_reference_lookup_3): Likewise.
19805
19806 2019-07-10 Richard Biener <rguenther@suse.de>
19807
19808 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19809 LHS whenever possible.
19810
19811 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19812
19813 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19814 from ...; work also on duplicated types.
19815 (nonoverlapping_component_refs_since_match): ... here
19816 (ncr_type_uid): Break out from ...
19817 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19818 available.
19819 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19820 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19821
19822 2019-07-09 Martin Sebor <msebor@redhat.com>
19823
19824 PR tree-optimization/90989
19825 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19826 optimization to just single character stores.
19827
19828 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19829
19830 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19831 Swap operands only once.
19832
19833 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19834
19835 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19836 for both call instructions.
19837
19838 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19839
19840 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19841 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19842
19843 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19844
19845 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19846 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19847 function from rs6000-logue.c back to rs6000.c.
19848 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19849
19850 2019-07-09 Martin Sebor <msebor@redhat.com>
19851
19852 PR c++/61339
19853 * auto-profile.c: Change class-key of PODs to struct and others
19854 to class.
19855 * basic-block.h: Same.
19856 * bitmap.c (bitmap_alloc): Same.
19857 * bitmap.h: Same.
19858 * builtins.c (expand_builtin_prefetch): Same.
19859 (expand_builtin_interclass_mathfn): Same.
19860 (expand_builtin_strlen): Same.
19861 (expand_builtin_mempcpy_args): Same.
19862 (expand_cmpstr): Same.
19863 (expand_builtin___clear_cache): Same.
19864 (expand_ifn_atomic_bit_test_and): Same.
19865 (expand_builtin_thread_pointer): Same.
19866 (expand_builtin_set_thread_pointer): Same.
19867 * caller-save.c (setup_save_areas): Same.
19868 (replace_reg_with_saved_mem): Same.
19869 (insert_restore): Same.
19870 (insert_save): Same.
19871 (add_used_regs): Same.
19872 * cfg.c (get_bb_copy): Same.
19873 (set_loop_copy): Same.
19874 * cfg.h: Same.
19875 * cfganal.h: Same.
19876 * cfgexpand.c (alloc_stack_frame_space): Same.
19877 (add_stack_var): Same.
19878 (add_stack_var_conflict): Same.
19879 (add_scope_conflicts_1): Same.
19880 (update_alias_info_with_stack_vars): Same.
19881 (expand_used_vars): Same.
19882 * cfghooks.c (redirect_edge_and_branch_force): Same.
19883 (delete_basic_block): Same.
19884 (split_edge): Same.
19885 (make_forwarder_block): Same.
19886 (force_nonfallthru): Same.
19887 (duplicate_block): Same.
19888 (lv_flush_pending_stmts): Same.
19889 * cfghooks.h: Same.
19890 * cfgloop.c (flow_loops_cfg_dump): Same.
19891 (flow_loop_nested_p): Same.
19892 (superloop_at_depth): Same.
19893 (get_loop_latch_edges): Same.
19894 (flow_loop_dump): Same.
19895 (flow_loops_dump): Same.
19896 (flow_loops_free): Same.
19897 (flow_loop_nodes_find): Same.
19898 (establish_preds): Same.
19899 (flow_loop_tree_node_add): Same.
19900 (flow_loop_tree_node_remove): Same.
19901 (flow_loops_find): Same.
19902 (find_subloop_latch_edge_by_profile): Same.
19903 (find_subloop_latch_edge_by_ivs): Same.
19904 (mfb_redirect_edges_in_set): Same.
19905 (form_subloop): Same.
19906 (merge_latch_edges): Same.
19907 (disambiguate_multiple_latches): Same.
19908 (disambiguate_loops_with_multiple_latches): Same.
19909 (flow_bb_inside_loop_p): Same.
19910 (glb_enum_p): Same.
19911 (get_loop_body_with_size): Same.
19912 (get_loop_body): Same.
19913 (fill_sons_in_loop): Same.
19914 (get_loop_body_in_dom_order): Same.
19915 (get_loop_body_in_custom_order): Same.
19916 (release_recorded_exits): Same.
19917 (get_loop_exit_edges): Same.
19918 (num_loop_branches): Same.
19919 (remove_bb_from_loops): Same.
19920 (find_common_loop): Same.
19921 (delete_loop): Same.
19922 (cancel_loop): Same.
19923 (verify_loop_structure): Same.
19924 (loop_preheader_edge): Same.
19925 (loop_exit_edge_p): Same.
19926 (single_exit): Same.
19927 (loop_exits_to_bb_p): Same.
19928 (loop_exits_from_bb_p): Same.
19929 (get_loop_location): Same.
19930 (record_niter_bound): Same.
19931 (get_estimated_loop_iterations_int): Same.
19932 (max_stmt_executions_int): Same.
19933 (likely_max_stmt_executions_int): Same.
19934 (get_estimated_loop_iterations): Same.
19935 (get_max_loop_iterations): Same.
19936 (get_max_loop_iterations_int): Same.
19937 (get_likely_max_loop_iterations): Same.
19938 * cfgloop.h (simple_loop_desc): Same.
19939 (get_loop): Same.
19940 (loop_depth): Same.
19941 (loop_outer): Same.
19942 (loop_iterator::next): Same.
19943 (loop_outermost): Same.
19944 * cfgloopanal.c (mark_irreducible_loops): Same.
19945 (num_loop_insns): Same.
19946 (average_num_loop_insns): Same.
19947 (expected_loop_iterations_unbounded): Same.
19948 (expected_loop_iterations): Same.
19949 (mark_loop_exit_edges): Same.
19950 (single_likely_exit): Same.
19951 * cfgloopmanip.c (fix_bb_placement): Same.
19952 (fix_bb_placements): Same.
19953 (remove_path): Same.
19954 (place_new_loop): Same.
19955 (add_loop): Same.
19956 (scale_loop_frequencies): Same.
19957 (scale_loop_profile): Same.
19958 (create_empty_if_region_on_edge): Same.
19959 (create_empty_loop_on_edge): Same.
19960 (loopify): Same.
19961 (unloop): Same.
19962 (fix_loop_placements): Same.
19963 (copy_loop_info): Same.
19964 (duplicate_loop): Same.
19965 (duplicate_subloops): Same.
19966 (loop_redirect_edge): Same.
19967 (can_duplicate_loop_p): Same.
19968 (duplicate_loop_to_header_edge): Same.
19969 (mfb_keep_just): Same.
19970 (has_preds_from_loop): Same.
19971 (create_preheader): Same.
19972 (create_preheaders): Same.
19973 (lv_adjust_loop_entry_edge): Same.
19974 (loop_version): Same.
19975 * cfgloopmanip.h: Same.
19976 * cgraph.h: Same.
19977 * cgraphbuild.c: Same.
19978 * combine.c (make_extraction): Same.
19979 * config/i386/i386-features.c: Same.
19980 * config/i386/i386-features.h: Same.
19981 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19982 (ix86_emit_outlined_ms2sysv_restore): Same.
19983 (ix86_noce_conversion_profitable_p): Same.
19984 (ix86_init_cost): Same.
19985 (ix86_simd_clone_usable): Same.
19986 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19987 Wstruct-not-pod.
19988 * coretypes.h: Same.
19989 * data-streamer-in.c (string_for_index): Change class-key of PODs
19990 to struct and others to class.
19991 (streamer_read_indexed_string): Same.
19992 (streamer_read_string): Same.
19993 (bp_unpack_indexed_string): Same.
19994 (bp_unpack_string): Same.
19995 (streamer_read_uhwi): Same.
19996 (streamer_read_hwi): Same.
19997 (streamer_read_gcov_count): Same.
19998 (streamer_read_wide_int): Same.
19999 * data-streamer.h (streamer_write_bitpack): Same.
20000 (bp_unpack_value): Same.
20001 (streamer_write_char_stream): Same.
20002 (streamer_write_hwi_in_range): Same.
20003 (streamer_write_record_start): Same.
20004 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20005 (add_cross_iteration_register_deps): Same.
20006 (build_intra_loop_deps): Same.
20007 * df-core.c (df_analyze): Same.
20008 (loop_post_order_compute): Same.
20009 (loop_inverted_post_order_compute): Same.
20010 * df-problems.c (df_rd_alloc): Same.
20011 (df_rd_simulate_one_insn): Same.
20012 (df_rd_local_compute): Same.
20013 (df_rd_init_solution): Same.
20014 (df_rd_confluence_n): Same.
20015 (df_rd_transfer_function): Same.
20016 (df_rd_free): Same.
20017 (df_rd_dump_defs_set): Same.
20018 (df_rd_top_dump): Same.
20019 (df_lr_alloc): Same.
20020 (df_lr_reset): Same.
20021 (df_lr_local_compute): Same.
20022 (df_lr_init): Same.
20023 (df_lr_confluence_n): Same.
20024 (df_lr_free): Same.
20025 (df_lr_top_dump): Same.
20026 (df_lr_verify_transfer_functions): Same.
20027 (df_live_alloc): Same.
20028 (df_live_reset): Same.
20029 (df_live_init): Same.
20030 (df_live_confluence_n): Same.
20031 (df_live_finalize): Same.
20032 (df_live_free): Same.
20033 (df_live_top_dump): Same.
20034 (df_live_verify_transfer_functions): Same.
20035 (df_mir_alloc): Same.
20036 (df_mir_reset): Same.
20037 (df_mir_init): Same.
20038 (df_mir_confluence_n): Same.
20039 (df_mir_free): Same.
20040 (df_mir_top_dump): Same.
20041 (df_word_lr_alloc): Same.
20042 (df_word_lr_reset): Same.
20043 (df_word_lr_init): Same.
20044 (df_word_lr_confluence_n): Same.
20045 (df_word_lr_free): Same.
20046 (df_word_lr_top_dump): Same.
20047 (df_md_alloc): Same.
20048 (df_md_simulate_one_insn): Same.
20049 (df_md_reset): Same.
20050 (df_md_init): Same.
20051 (df_md_free): Same.
20052 (df_md_top_dump): Same.
20053 * df-scan.c (df_insn_delete): Same.
20054 (df_insn_rescan): Same.
20055 (df_notes_rescan): Same.
20056 (df_sort_and_compress_mws): Same.
20057 (df_install_mws): Same.
20058 (df_refs_add_to_chains): Same.
20059 (df_ref_create_structure): Same.
20060 (df_ref_record): Same.
20061 (df_def_record_1): Same.
20062 (df_find_hard_reg_defs): Same.
20063 (df_uses_record): Same.
20064 (df_get_conditional_uses): Same.
20065 (df_get_call_refs): Same.
20066 (df_recompute_luids): Same.
20067 (df_get_entry_block_def_set): Same.
20068 (df_entry_block_defs_collect): Same.
20069 (df_get_exit_block_use_set): Same.
20070 (df_exit_block_uses_collect): Same.
20071 (df_mws_verify): Same.
20072 (df_bb_verify): Same.
20073 * df.h (df_scan_get_bb_info): Same.
20074 * doc/tm.texi: Same.
20075 * dse.c (record_store): Same.
20076 * dumpfile.h: Same.
20077 * emit-rtl.c (const_fixed_hasher::equal): Same.
20078 (set_mem_attributes_minus_bitpos): Same.
20079 (change_address): Same.
20080 (adjust_address_1): Same.
20081 (offset_address): Same.
20082 * emit-rtl.h: Same.
20083 * except.c (dw2_build_landing_pads): Same.
20084 (sjlj_emit_dispatch_table): Same.
20085 * explow.c (allocate_dynamic_stack_space): Same.
20086 (emit_stack_probe): Same.
20087 (probe_stack_range): Same.
20088 * expmed.c (store_bit_field_using_insv): Same.
20089 (store_bit_field_1): Same.
20090 (store_integral_bit_field): Same.
20091 (extract_bit_field_using_extv): Same.
20092 (extract_bit_field_1): Same.
20093 (emit_cstore): Same.
20094 * expr.c (emit_block_move_via_cpymem): Same.
20095 (expand_cmpstrn_or_cmpmem): Same.
20096 (set_storage_via_setmem): Same.
20097 (emit_single_push_insn_1): Same.
20098 (expand_assignment): Same.
20099 (store_constructor): Same.
20100 (expand_expr_real_2): Same.
20101 (expand_expr_real_1): Same.
20102 (try_casesi): Same.
20103 * flags.h: Same.
20104 * function.c (try_fit_stack_local): Same.
20105 (assign_stack_local_1): Same.
20106 (assign_stack_local): Same.
20107 (cut_slot_from_list): Same.
20108 (insert_slot_to_list): Same.
20109 (max_slot_level): Same.
20110 (move_slot_to_level): Same.
20111 (temp_address_hasher::equal): Same.
20112 (remove_unused_temp_slot_addresses): Same.
20113 (assign_temp): Same.
20114 (combine_temp_slots): Same.
20115 (update_temp_slot_address): Same.
20116 (preserve_temp_slots): Same.
20117 * function.h: Same.
20118 * fwprop.c: Same.
20119 * gcc-rich-location.h: Same.
20120 * gcov.c: Same.
20121 * genattrtab.c (check_attr_test): Same.
20122 (check_attr_value): Same.
20123 (convert_set_attr_alternative): Same.
20124 (convert_set_attr): Same.
20125 (check_defs): Same.
20126 (copy_boolean): Same.
20127 (get_attr_value): Same.
20128 (expand_delays): Same.
20129 (make_length_attrs): Same.
20130 (min_fn): Same.
20131 (make_alternative_compare): Same.
20132 (simplify_test_exp): Same.
20133 (tests_attr_p): Same.
20134 (get_attr_order): Same.
20135 (clear_struct_flag): Same.
20136 (gen_attr): Same.
20137 (compares_alternatives_p): Same.
20138 (gen_insn): Same.
20139 (gen_delay): Same.
20140 (find_attrs_to_cache): Same.
20141 (write_test_expr): Same.
20142 (walk_attr_value): Same.
20143 (write_attr_get): Same.
20144 (eliminate_known_true): Same.
20145 (write_insn_cases): Same.
20146 (write_attr_case): Same.
20147 (write_attr_valueq): Same.
20148 (write_attr_value): Same.
20149 (write_dummy_eligible_delay): Same.
20150 (next_comma_elt): Same.
20151 (find_attr): Same.
20152 (make_internal_attr): Same.
20153 (copy_rtx_unchanging): Same.
20154 (gen_insn_reserv): Same.
20155 (check_tune_attr): Same.
20156 (make_automaton_attrs): Same.
20157 (handle_arg): Same.
20158 * genextract.c (gen_insn): Same.
20159 (VEC_char_to_string): Same.
20160 * genmatch.c (print_operand): Same.
20161 (lower): Same.
20162 (parser::parse_operation): Same.
20163 (parser::parse_capture): Same.
20164 (parser::parse_c_expr): Same.
20165 (parser::parse_simplify): Same.
20166 (main): Same.
20167 * genoutput.c (output_operand_data): Same.
20168 (output_get_insn_name): Same.
20169 (compare_operands): Same.
20170 (place_operands): Same.
20171 (process_template): Same.
20172 (validate_insn_alternatives): Same.
20173 (validate_insn_operands): Same.
20174 (gen_expand): Same.
20175 (note_constraint): Same.
20176 * genpreds.c (write_one_predicate_function): Same.
20177 (add_constraint): Same.
20178 (process_define_register_constraint): Same.
20179 (write_lookup_constraint_1): Same.
20180 (write_lookup_constraint_array): Same.
20181 (write_insn_constraint_len): Same.
20182 (write_reg_class_for_constraint_1): Same.
20183 (write_constraint_satisfied_p_array): Same.
20184 * genrecog.c (optimize_subroutine_group): Same.
20185 * gensupport.c (process_define_predicate): Same.
20186 (queue_pattern): Same.
20187 (remove_from_queue): Same.
20188 (process_rtx): Same.
20189 (is_predicable): Same.
20190 (change_subst_attribute): Same.
20191 (subst_pattern_match): Same.
20192 (alter_constraints): Same.
20193 (alter_attrs_for_insn): Same.
20194 (shift_output_template): Same.
20195 (alter_output_for_subst_insn): Same.
20196 (process_one_cond_exec): Same.
20197 (subst_dup): Same.
20198 (process_define_cond_exec): Same.
20199 (mnemonic_htab_callback): Same.
20200 (gen_mnemonic_attr): Same.
20201 (read_md_rtx): Same.
20202 * ggc-page.c: Same.
20203 * gimple-loop-interchange.cc (dump_reduction): Same.
20204 (dump_induction): Same.
20205 (loop_cand::~loop_cand): Same.
20206 (free_data_refs_with_aux): Same.
20207 (tree_loop_interchange::interchange_loops): Same.
20208 (tree_loop_interchange::map_inductions_to_loop): Same.
20209 (tree_loop_interchange::move_code_to_inner_loop): Same.
20210 (compute_access_stride): Same.
20211 (compute_access_strides): Same.
20212 (proper_loop_form_for_interchange): Same.
20213 (tree_loop_interchange_compute_ddrs): Same.
20214 (prune_datarefs_not_in_loop): Same.
20215 (prepare_data_references): Same.
20216 (pass_linterchange::execute): Same.
20217 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20218 (unroll_jam_possible_p): Same.
20219 (fuse_loops): Same.
20220 (adjust_unroll_factor): Same.
20221 (tree_loop_unroll_and_jam): Same.
20222 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20223 (loop_versioning::expensive_stmt_p): Same.
20224 (loop_versioning::version_for_unity): Same.
20225 (loop_versioning::dump_inner_likelihood): Same.
20226 (loop_versioning::find_per_loop_multiplication): Same.
20227 (loop_versioning::analyze_term_using_scevs): Same.
20228 (loop_versioning::record_address_fragment): Same.
20229 (loop_versioning::analyze_expr): Same.
20230 (loop_versioning::analyze_blocks): Same.
20231 (loop_versioning::prune_conditions): Same.
20232 (loop_versioning::merge_loop_info): Same.
20233 (loop_versioning::add_loop_to_queue): Same.
20234 (loop_versioning::decide_whether_loop_is_versionable): Same.
20235 (loop_versioning::make_versioning_decisions): Same.
20236 (loop_versioning::implement_versioning_decisions): Same.
20237 * gimple-ssa-evrp-analyze.c
20238 (evrp_range_analyzer::record_ranges_from_phis): Same.
20239 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20240 (count_multiple_uses): Same.
20241 (split_group): Same.
20242 (imm_store_chain_info::output_merged_store): Same.
20243 (pass_store_merging::process_store): Same.
20244 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20245 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20246 (is_max): Same.
20247 (alloca_call_type): Same.
20248 (pass_walloca::execute): Same.
20249 * gimple-streamer-in.c (input_phi): Same.
20250 (input_gimple_stmt): Same.
20251 * gimple-streamer.h: Same.
20252 * godump.c (go_force_record_alignment): Same.
20253 (go_format_type): Same.
20254 (go_output_type): Same.
20255 (go_output_fndecl): Same.
20256 (go_output_typedef): Same.
20257 (keyword_hash_init): Same.
20258 (find_dummy_types): Same.
20259 * graph.c (draw_cfg_nodes_no_loops): Same.
20260 (draw_cfg_nodes_for_loop): Same.
20261 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20262 * hsa-brig.c: Same.
20263 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20264 * hsa-dump.c (dump_hsa_cfun): Same.
20265 * hsa-gen.c (gen_function_def_parameters): Same.
20266 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20267 * input.c (dump_line_table_statistics): Same.
20268 (test_lexer): Same.
20269 * input.h: Same.
20270 * internal-fn.c (get_multi_vector_move): Same.
20271 (expand_load_lanes_optab_fn): Same.
20272 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20273 (expand_GOMP_SIMT_EXIT): Same.
20274 (expand_GOMP_SIMT_LAST_LANE): Same.
20275 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20276 (expand_GOMP_SIMT_VOTE_ANY): Same.
20277 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20278 (expand_GOMP_SIMT_XCHG_IDX): Same.
20279 (expand_addsub_overflow): Same.
20280 (expand_neg_overflow): Same.
20281 (expand_mul_overflow): Same.
20282 (expand_call_mem_ref): Same.
20283 (expand_mask_load_optab_fn): Same.
20284 (expand_scatter_store_optab_fn): Same.
20285 (expand_gather_load_optab_fn): Same.
20286 * ipa-cp.c (ipa_get_parm_lattices): Same.
20287 (print_all_lattices): Same.
20288 (ignore_edge_p): Same.
20289 (build_toporder_info): Same.
20290 (free_toporder_info): Same.
20291 (push_node_to_stack): Same.
20292 (ipcp_lattice<valtype>::set_contains_variable): Same.
20293 (set_agg_lats_to_bottom): Same.
20294 (ipcp_bits_lattice::meet_with): Same.
20295 (set_single_call_flag): Same.
20296 (initialize_node_lattices): Same.
20297 (ipa_get_jf_ancestor_result): Same.
20298 (ipcp_verify_propagated_values): Same.
20299 (propagate_scalar_across_jump_function): Same.
20300 (propagate_context_across_jump_function): Same.
20301 (propagate_bits_across_jump_function): Same.
20302 (ipa_vr_operation_and_type_effects): Same.
20303 (propagate_vr_across_jump_function): Same.
20304 (set_check_aggs_by_ref): Same.
20305 (set_chain_of_aglats_contains_variable): Same.
20306 (merge_aggregate_lattices): Same.
20307 (agg_pass_through_permissible_p): Same.
20308 (propagate_aggs_across_jump_function): Same.
20309 (call_passes_through_thunk_p): Same.
20310 (propagate_constants_across_call): Same.
20311 (devirtualization_time_bonus): Same.
20312 (good_cloning_opportunity_p): Same.
20313 (context_independent_aggregate_values): Same.
20314 (gather_context_independent_values): Same.
20315 (perform_estimation_of_a_value): Same.
20316 (estimate_local_effects): Same.
20317 (value_topo_info<valtype>::add_val): Same.
20318 (add_all_node_vals_to_toposort): Same.
20319 (value_topo_info<valtype>::propagate_effects): Same.
20320 (ipcp_propagate_stage): Same.
20321 (ipcp_discover_new_direct_edges): Same.
20322 (same_node_or_its_all_contexts_clone_p): Same.
20323 (cgraph_edge_brings_value_p): Same.
20324 (gather_edges_for_value): Same.
20325 (create_specialized_node): Same.
20326 (find_more_scalar_values_for_callers_subset): Same.
20327 (find_more_contexts_for_caller_subset): Same.
20328 (copy_plats_to_inter): Same.
20329 (intersect_aggregates_with_edge): Same.
20330 (find_aggregate_values_for_callers_subset): Same.
20331 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20332 (decide_about_value): Same.
20333 (decide_whether_version_node): Same.
20334 (spread_undeadness): Same.
20335 (identify_dead_nodes): Same.
20336 (ipcp_store_vr_results): Same.
20337 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20338 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20339 (redirect_to_unreachable): Same.
20340 (edge_set_predicate): Same.
20341 (evaluate_conditions_for_known_args): Same.
20342 (evaluate_properties_for_edge): Same.
20343 (ipa_fn_summary_t::duplicate): Same.
20344 (ipa_call_summary_t::duplicate): Same.
20345 (dump_ipa_call_summary): Same.
20346 (ipa_dump_fn_summary): Same.
20347 (eliminated_by_inlining_prob): Same.
20348 (set_cond_stmt_execution_predicate): Same.
20349 (set_switch_stmt_execution_predicate): Same.
20350 (compute_bb_predicates): Same.
20351 (will_be_nonconstant_expr_predicate): Same.
20352 (phi_result_unknown_predicate): Same.
20353 (analyze_function_body): Same.
20354 (compute_fn_summary): Same.
20355 (estimate_edge_devirt_benefit): Same.
20356 (estimate_edge_size_and_time): Same.
20357 (estimate_calls_size_and_time): Same.
20358 (estimate_node_size_and_time): Same.
20359 (remap_edge_change_prob): Same.
20360 (remap_edge_summaries): Same.
20361 (ipa_merge_fn_summary_after_inlining): Same.
20362 (ipa_fn_summary_generate): Same.
20363 (inline_read_section): Same.
20364 (ipa_fn_summary_read): Same.
20365 (ipa_fn_summary_write): Same.
20366 * ipa-fnsummary.h: Same.
20367 * ipa-hsa.c (ipa_hsa_read_section): Same.
20368 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20369 * ipa-icf.c (sem_function::param_used_p): Same.
20370 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20371 * ipa-inline.c (edge_badness): Same.
20372 (inline_small_functions): Same.
20373 * ipa-polymorphic-call.c
20374 (ipa_polymorphic_call_context::stream_out): Same.
20375 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20376 (predicate::remap_after_inlining): Same.
20377 (predicate::stream_out): Same.
20378 * ipa-predicate.h: Same.
20379 * ipa-profile.c (ipa_profile_read_summary): Same.
20380 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20381 (count_formal_params): Same.
20382 (ipa_dump_param): Same.
20383 (ipa_alloc_node_params): Same.
20384 (ipa_print_node_jump_functions_for_edge): Same.
20385 (ipa_print_node_jump_functions): Same.
20386 (ipa_load_from_parm_agg): Same.
20387 (get_ancestor_addr_info): Same.
20388 (ipa_compute_jump_functions_for_edge): Same.
20389 (ipa_analyze_virtual_call_uses): Same.
20390 (ipa_analyze_stmt_uses): Same.
20391 (ipa_analyze_params_uses_in_bb): Same.
20392 (update_jump_functions_after_inlining): Same.
20393 (try_decrement_rdesc_refcount): Same.
20394 (ipa_impossible_devirt_target): Same.
20395 (update_indirect_edges_after_inlining): Same.
20396 (combine_controlled_uses_counters): Same.
20397 (ipa_edge_args_sum_t::duplicate): Same.
20398 (ipa_write_jump_function): Same.
20399 (ipa_write_indirect_edge_info): Same.
20400 (ipa_write_node_info): Same.
20401 (ipa_read_edge_info): Same.
20402 (ipa_prop_read_section): Same.
20403 (read_replacements_section): Same.
20404 * ipa-prop.h (ipa_get_param_count): Same.
20405 (ipa_get_param): Same.
20406 (ipa_get_type): Same.
20407 (ipa_get_param_move_cost): Same.
20408 (ipa_set_param_used): Same.
20409 (ipa_get_controlled_uses): Same.
20410 (ipa_set_controlled_uses): Same.
20411 (ipa_get_cs_argument_count): Same.
20412 * ipa-pure-const.c (analyze_function): Same.
20413 (pure_const_read_summary): Same.
20414 * ipa-ref.h: Same.
20415 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20416 * ipa-split.c (test_nonssa_use): Same.
20417 (dump_split_point): Same.
20418 (dominated_by_forbidden): Same.
20419 (split_part_set_ssa_name_p): Same.
20420 (find_split_points): Same.
20421 * ira-build.c (finish_loop_tree_nodes): Same.
20422 (low_pressure_loop_node_p): Same.
20423 * ira-color.c (ira_reuse_stack_slot): Same.
20424 * ira-int.h: Same.
20425 * ira.c (setup_reg_equiv): Same.
20426 (print_insn_chain): Same.
20427 (ira): Same.
20428 * loop-doloop.c (doloop_condition_get): Same.
20429 (add_test): Same.
20430 (record_reg_sets): Same.
20431 (doloop_optimize): Same.
20432 * loop-init.c (loop_optimizer_init): Same.
20433 (fix_loop_structure): Same.
20434 * loop-invariant.c (merge_identical_invariants): Same.
20435 (compute_always_reached): Same.
20436 (find_exits): Same.
20437 (may_assign_reg_p): Same.
20438 (find_invariants_bb): Same.
20439 (find_invariants_body): Same.
20440 (replace_uses): Same.
20441 (can_move_invariant_reg): Same.
20442 (free_inv_motion_data): Same.
20443 (move_single_loop_invariants): Same.
20444 (change_pressure): Same.
20445 (mark_ref_regs): Same.
20446 (calculate_loop_reg_pressure): Same.
20447 * loop-iv.c (biv_entry_hasher::equal): Same.
20448 (iv_extend_to_rtx_code): Same.
20449 (check_iv_ref_table_size): Same.
20450 (clear_iv_info): Same.
20451 (latch_dominating_def): Same.
20452 (iv_get_reaching_def): Same.
20453 (iv_constant): Same.
20454 (iv_subreg): Same.
20455 (iv_extend): Same.
20456 (iv_neg): Same.
20457 (iv_add): Same.
20458 (iv_mult): Same.
20459 (get_biv_step): Same.
20460 (record_iv): Same.
20461 (analyzed_for_bivness_p): Same.
20462 (record_biv): Same.
20463 (iv_analyze_biv): Same.
20464 (iv_analyze_expr): Same.
20465 (iv_analyze_def): Same.
20466 (iv_analyze_op): Same.
20467 (iv_analyze): Same.
20468 (iv_analyze_result): Same.
20469 (biv_p): Same.
20470 (eliminate_implied_conditions): Same.
20471 (simplify_using_initial_values): Same.
20472 (shorten_into_mode): Same.
20473 (canonicalize_iv_subregs): Same.
20474 (determine_max_iter): Same.
20475 (check_simple_exit): Same.
20476 (find_simple_exit): Same.
20477 (get_simple_loop_desc): Same.
20478 * loop-unroll.c (report_unroll): Same.
20479 (decide_unrolling): Same.
20480 (unroll_loops): Same.
20481 (loop_exit_at_end_p): Same.
20482 (decide_unroll_constant_iterations): Same.
20483 (unroll_loop_constant_iterations): Same.
20484 (compare_and_jump_seq): Same.
20485 (unroll_loop_runtime_iterations): Same.
20486 (decide_unroll_stupid): Same.
20487 (unroll_loop_stupid): Same.
20488 (referenced_in_one_insn_in_loop_p): Same.
20489 (reset_debug_uses_in_loop): Same.
20490 (analyze_iv_to_split_insn): Same.
20491 * lra-eliminations.c (lra_debug_elim_table): Same.
20492 (setup_can_eliminate): Same.
20493 (form_sum): Same.
20494 (lra_get_elimination_hard_regno): Same.
20495 (lra_eliminate_regs_1): Same.
20496 (eliminate_regs_in_insn): Same.
20497 (update_reg_eliminate): Same.
20498 (init_elimination): Same.
20499 (lra_eliminate): Same.
20500 * lra-int.h: Same.
20501 * lra-lives.c (initiate_live_solver): Same.
20502 * lra-remat.c (create_remat_bb_data): Same.
20503 * lra-spills.c (lra_spill): Same.
20504 * lra.c (lra_set_insn_recog_data): Same.
20505 (lra_set_used_insn_alternative_by_uid): Same.
20506 (init_reg_info): Same.
20507 (expand_reg_info): Same.
20508 * lto-cgraph.c (output_symtab): Same.
20509 (read_identifier): Same.
20510 (get_alias_symbol): Same.
20511 (input_node): Same.
20512 (input_varpool_node): Same.
20513 (input_ref): Same.
20514 (input_edge): Same.
20515 (input_cgraph_1): Same.
20516 (input_refs): Same.
20517 (input_symtab): Same.
20518 (input_offload_tables): Same.
20519 (output_cgraph_opt_summary): Same.
20520 (input_edge_opt_summary): Same.
20521 (input_cgraph_opt_section): Same.
20522 * lto-section-in.c (lto_free_raw_section_data): Same.
20523 (lto_create_simple_input_block): Same.
20524 (lto_free_function_in_decl_state_for_node): Same.
20525 * lto-streamer-in.c (lto_tag_check_set): Same.
20526 (lto_location_cache::revert_location_cache): Same.
20527 (lto_location_cache::input_location): Same.
20528 (lto_input_location): Same.
20529 (stream_input_location_now): Same.
20530 (lto_input_tree_ref): Same.
20531 (lto_input_eh_catch_list): Same.
20532 (input_eh_region): Same.
20533 (lto_init_eh): Same.
20534 (make_new_block): Same.
20535 (input_cfg): Same.
20536 (fixup_call_stmt_edges): Same.
20537 (input_struct_function_base): Same.
20538 (input_function): Same.
20539 (lto_read_body_or_constructor): Same.
20540 (lto_read_tree_1): Same.
20541 (lto_read_tree): Same.
20542 (lto_input_scc): Same.
20543 (lto_input_tree_1): Same.
20544 (lto_input_toplevel_asms): Same.
20545 (lto_input_mode_table): Same.
20546 (lto_reader_init): Same.
20547 (lto_data_in_create): Same.
20548 * lto-streamer-out.c (output_cfg): Same.
20549 * lto-streamer.h: Same.
20550 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20551 (generate_prolog_epilog): Same.
20552 (mark_loop_unsched): Same.
20553 (dump_insn_location): Same.
20554 (loop_canon_p): Same.
20555 (sms_schedule): Same.
20556 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20557 (expand_omp_for_generic): Same.
20558 (expand_omp_for_static_nochunk): Same.
20559 (expand_omp_for_static_chunk): Same.
20560 (expand_omp_simd): Same.
20561 (expand_omp_taskloop_for_inner): Same.
20562 (expand_oacc_for): Same.
20563 (expand_omp_atomic_pipeline): Same.
20564 (mark_loops_in_oacc_kernels_region): Same.
20565 * omp-offload.c (oacc_xform_loop): Same.
20566 * omp-simd-clone.c (simd_clone_adjust): Same.
20567 * optabs-query.c (get_traditional_extraction_insn): Same.
20568 * optabs.c (expand_vector_broadcast): Same.
20569 (expand_binop_directly): Same.
20570 (expand_twoval_unop): Same.
20571 (expand_twoval_binop): Same.
20572 (expand_unop_direct): Same.
20573 (emit_indirect_jump): Same.
20574 (emit_conditional_move): Same.
20575 (emit_conditional_neg_or_complement): Same.
20576 (emit_conditional_add): Same.
20577 (vector_compare_rtx): Same.
20578 (expand_vec_perm_1): Same.
20579 (expand_vec_perm_const): Same.
20580 (expand_vec_cond_expr): Same.
20581 (expand_vec_series_expr): Same.
20582 (maybe_emit_atomic_exchange): Same.
20583 (maybe_emit_sync_lock_test_and_set): Same.
20584 (expand_atomic_compare_and_swap): Same.
20585 (expand_atomic_load): Same.
20586 (expand_atomic_store): Same.
20587 (maybe_emit_op): Same.
20588 (valid_multiword_target_p): Same.
20589 (create_integer_operand): Same.
20590 (maybe_legitimize_operand_same_code): Same.
20591 (maybe_legitimize_operand): Same.
20592 (create_convert_operand_from_type): Same.
20593 (can_reuse_operands_p): Same.
20594 (maybe_legitimize_operands): Same.
20595 (maybe_gen_insn): Same.
20596 (maybe_expand_insn): Same.
20597 (maybe_expand_jump_insn): Same.
20598 (expand_insn): Same.
20599 * optabs.h (create_expand_operand): Same.
20600 (create_fixed_operand): Same.
20601 (create_output_operand): Same.
20602 (create_input_operand): Same.
20603 (create_convert_operand_to): Same.
20604 (create_convert_operand_from): Same.
20605 * optinfo.h: Same.
20606 * poly-int.h: Same.
20607 * predict.c (optimize_insn_for_speed_p): Same.
20608 (optimize_loop_for_size_p): Same.
20609 (optimize_loop_for_speed_p): Same.
20610 (optimize_loop_nest_for_speed_p): Same.
20611 (get_base_value): Same.
20612 (predicted_by_loop_heuristics_p): Same.
20613 (predict_extra_loop_exits): Same.
20614 (predict_loops): Same.
20615 (predict_paths_for_bb): Same.
20616 (predict_paths_leading_to): Same.
20617 (propagate_freq): Same.
20618 (pass_profile::execute): Same.
20619 * predict.h: Same.
20620 * profile-count.c (profile_count::differs_from_p): Same.
20621 (profile_probability::differs_lot_from_p): Same.
20622 * profile-count.h: Same.
20623 * profile.c (branch_prob): Same.
20624 * regrename.c (free_chain_data): Same.
20625 (mark_conflict): Same.
20626 (create_new_chain): Same.
20627 (merge_overlapping_regs): Same.
20628 (init_rename_info): Same.
20629 (merge_chains): Same.
20630 (regrename_analyze): Same.
20631 (regrename_do_replace): Same.
20632 (scan_rtx_reg): Same.
20633 (record_out_operands): Same.
20634 (build_def_use): Same.
20635 * regrename.h: Same.
20636 * reload.h: Same.
20637 * reload1.c (init_reload): Same.
20638 (maybe_fix_stack_asms): Same.
20639 (copy_reloads): Same.
20640 (count_pseudo): Same.
20641 (count_spilled_pseudo): Same.
20642 (find_reg): Same.
20643 (find_reload_regs): Same.
20644 (select_reload_regs): Same.
20645 (spill_hard_reg): Same.
20646 (fixup_eh_region_note): Same.
20647 (set_reload_reg): Same.
20648 (allocate_reload_reg): Same.
20649 (compute_reload_subreg_offset): Same.
20650 (reload_adjust_reg_for_icode): Same.
20651 (emit_input_reload_insns): Same.
20652 (emit_output_reload_insns): Same.
20653 (do_input_reload): Same.
20654 (inherit_piecemeal_p): Same.
20655 * rtl.h: Same.
20656 * sanopt.c (maybe_get_dominating_check): Same.
20657 (maybe_optimize_ubsan_ptr_ifn): Same.
20658 (can_remove_asan_check): Same.
20659 (maybe_optimize_asan_check_ifn): Same.
20660 (sanopt_optimize_walker): Same.
20661 * sched-deps.c (add_dependence_list): Same.
20662 (chain_to_prev_insn): Same.
20663 (add_insn_mem_dependence): Same.
20664 (create_insn_reg_set): Same.
20665 (maybe_extend_reg_info_p): Same.
20666 (sched_analyze_reg): Same.
20667 (sched_analyze_1): Same.
20668 (get_implicit_reg_pending_clobbers): Same.
20669 (chain_to_prev_insn_p): Same.
20670 (deps_analyze_insn): Same.
20671 (deps_start_bb): Same.
20672 (sched_free_deps): Same.
20673 (init_deps): Same.
20674 (init_deps_reg_last): Same.
20675 (free_deps): Same.
20676 * sched-ebb.c: Same.
20677 * sched-int.h: Same.
20678 * sched-rgn.c (add_branch_dependences): Same.
20679 (concat_insn_mem_list): Same.
20680 (deps_join): Same.
20681 (sched_rgn_compute_dependencies): Same.
20682 * sel-sched-ir.c (reset_target_context): Same.
20683 (copy_deps_context): Same.
20684 (init_id_from_df): Same.
20685 (has_dependence_p): Same.
20686 (change_loops_latches): Same.
20687 (bb_top_order_comparator): Same.
20688 (make_region_from_loop_preheader): Same.
20689 (sel_init_pipelining): Same.
20690 (get_loop_nest_for_rgn): Same.
20691 (make_regions_from_the_rest): Same.
20692 (sel_is_loop_preheader_p): Same.
20693 * sel-sched-ir.h (inner_loop_header_p): Same.
20694 (get_all_loop_exits): Same.
20695 * selftest.h: Same.
20696 * sese.c (sese_build_liveouts): Same.
20697 (sese_insert_phis_for_liveouts): Same.
20698 * sese.h (defined_in_sese_p): Same.
20699 * sreal.c (sreal::stream_out): Same.
20700 * sreal.h: Same.
20701 * streamer-hooks.h: Same.
20702 * target-globals.c (save_target_globals): Same.
20703 * target-globals.h: Same.
20704 * target.def: Same.
20705 * target.h: Same.
20706 * targhooks.c (default_has_ifunc_p): Same.
20707 (default_empty_mask_is_expensive): Same.
20708 (default_init_cost): Same.
20709 * targhooks.h: Same.
20710 * toplev.c: Same.
20711 * tree-affine.c (aff_combination_mult): Same.
20712 (aff_combination_expand): Same.
20713 (aff_combination_constant_multiple_p): Same.
20714 * tree-affine.h: Same.
20715 * tree-cfg.c (build_gimple_cfg): Same.
20716 (replace_loop_annotate_in_block): Same.
20717 (replace_uses_by): Same.
20718 (remove_bb): Same.
20719 (dump_cfg_stats): Same.
20720 (gimple_duplicate_sese_region): Same.
20721 (gimple_duplicate_sese_tail): Same.
20722 (move_block_to_fn): Same.
20723 (replace_block_vars_by_duplicates): Same.
20724 (move_sese_region_to_fn): Same.
20725 (print_loops_bb): Same.
20726 (print_loop): Same.
20727 (print_loops): Same.
20728 (debug): Same.
20729 (debug_loops): Same.
20730 * tree-cfg.h: Same.
20731 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20732 (chrec_fold_multiply_poly_poly): Same.
20733 (chrec_evaluate): Same.
20734 (chrec_component_in_loop_num): Same.
20735 (reset_evolution_in_loop): Same.
20736 (is_multivariate_chrec): Same.
20737 (chrec_contains_symbols): Same.
20738 (nb_vars_in_chrec): Same.
20739 (chrec_convert_1): Same.
20740 (chrec_convert_aggressive): Same.
20741 * tree-chrec.h: Same.
20742 * tree-core.h: Same.
20743 * tree-data-ref.c (dump_data_dependence_relation): Same.
20744 (canonicalize_base_object_address): Same.
20745 (data_ref_compare_tree): Same.
20746 (prune_runtime_alias_test_list): Same.
20747 (get_segment_min_max): Same.
20748 (create_intersect_range_checks): Same.
20749 (conflict_fn_no_dependence): Same.
20750 (object_address_invariant_in_loop_p): Same.
20751 (analyze_ziv_subscript): Same.
20752 (analyze_siv_subscript_cst_affine): Same.
20753 (analyze_miv_subscript): Same.
20754 (analyze_overlapping_iterations): Same.
20755 (build_classic_dist_vector_1): Same.
20756 (add_other_self_distances): Same.
20757 (same_access_functions): Same.
20758 (build_classic_dir_vector): Same.
20759 (subscript_dependence_tester_1): Same.
20760 (subscript_dependence_tester): Same.
20761 (access_functions_are_affine_or_constant_p): Same.
20762 (get_references_in_stmt): Same.
20763 (loop_nest_has_data_refs): Same.
20764 (graphite_find_data_references_in_stmt): Same.
20765 (find_data_references_in_bb): Same.
20766 (get_base_for_alignment): Same.
20767 (find_loop_nest_1): Same.
20768 (find_loop_nest): Same.
20769 * tree-data-ref.h (dr_alignment): Same.
20770 (ddr_dependence_level): Same.
20771 * tree-if-conv.c (fold_build_cond_expr): Same.
20772 (add_to_predicate_list): Same.
20773 (add_to_dst_predicate_list): Same.
20774 (phi_convertible_by_degenerating_args): Same.
20775 (idx_within_array_bound): Same.
20776 (all_preds_critical_p): Same.
20777 (pred_blocks_visited_p): Same.
20778 (predicate_bbs): Same.
20779 (build_region): Same.
20780 (if_convertible_loop_p_1): Same.
20781 (is_cond_scalar_reduction): Same.
20782 (predicate_scalar_phi): Same.
20783 (remove_conditions_and_labels): Same.
20784 (combine_blocks): Same.
20785 (version_loop_for_if_conversion): Same.
20786 (versionable_outer_loop_p): Same.
20787 (ifcvt_local_dce): Same.
20788 (tree_if_conversion): Same.
20789 (pass_if_conversion::gate): Same.
20790 * tree-if-conv.h: Same.
20791 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20792 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20793 (free_rdg): Same.
20794 (stmt_has_scalar_dependences_outside_loop): Same.
20795 (copy_loop_before): Same.
20796 (create_bb_after_loop): Same.
20797 (const_with_all_bytes_same): Same.
20798 (generate_memset_builtin): Same.
20799 (generate_memcpy_builtin): Same.
20800 (destroy_loop): Same.
20801 (build_rdg_partition_for_vertex): Same.
20802 (compute_access_range): Same.
20803 (data_ref_segment_size): Same.
20804 (latch_dominated_by_data_ref): Same.
20805 (compute_alias_check_pairs): Same.
20806 (fuse_memset_builtins): Same.
20807 (finalize_partitions): Same.
20808 (find_seed_stmts_for_distribution): Same.
20809 (prepare_perfect_loop_nest): Same.
20810 * tree-parloops.c (lambda_transform_legal_p): Same.
20811 (loop_parallel_p): Same.
20812 (reduc_stmt_res): Same.
20813 (add_field_for_name): Same.
20814 (create_call_for_reduction_1): Same.
20815 (replace_uses_in_bb_by): Same.
20816 (transform_to_exit_first_loop_alt): Same.
20817 (try_transform_to_exit_first_loop_alt): Same.
20818 (transform_to_exit_first_loop): Same.
20819 (num_phis): Same.
20820 (gen_parallel_loop): Same.
20821 (gather_scalar_reductions): Same.
20822 (get_omp_data_i_param): Same.
20823 (try_create_reduction_list): Same.
20824 (oacc_entry_exit_single_gang): Same.
20825 (parallelize_loops): Same.
20826 * tree-pass.h: Same.
20827 * tree-predcom.c (determine_offset): Same.
20828 (last_always_executed_block): Same.
20829 (split_data_refs_to_components): Same.
20830 (suitable_component_p): Same.
20831 (valid_initializer_p): Same.
20832 (find_looparound_phi): Same.
20833 (insert_looparound_copy): Same.
20834 (add_looparound_copies): Same.
20835 (determine_roots_comp): Same.
20836 (predcom_tmp_var): Same.
20837 (initialize_root_vars): Same.
20838 (initialize_root_vars_store_elim_1): Same.
20839 (initialize_root_vars_store_elim_2): Same.
20840 (finalize_eliminated_stores): Same.
20841 (initialize_root_vars_lm): Same.
20842 (remove_stmt): Same.
20843 (determine_unroll_factor): Same.
20844 (execute_pred_commoning_cbck): Same.
20845 (base_names_in_chain_on): Same.
20846 (combine_chains): Same.
20847 (pcom_stmt_dominates_stmt_p): Same.
20848 (try_combine_chains): Same.
20849 (prepare_initializers_chain_store_elim): Same.
20850 (prepare_initializers_chain): Same.
20851 (prepare_initializers): Same.
20852 (prepare_finalizers_chain): Same.
20853 (prepare_finalizers): Same.
20854 (insert_init_seqs): Same.
20855 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20856 (compute_overall_effect_of_inner_loop): Same.
20857 (add_to_evolution_1): Same.
20858 (add_to_evolution): Same.
20859 (follow_ssa_edge_binary): Same.
20860 (follow_ssa_edge_expr): Same.
20861 (backedge_phi_arg_p): Same.
20862 (follow_ssa_edge_in_condition_phi_branch): Same.
20863 (follow_ssa_edge_in_condition_phi): Same.
20864 (follow_ssa_edge_inner_loop_phi): Same.
20865 (follow_ssa_edge): Same.
20866 (analyze_evolution_in_loop): Same.
20867 (analyze_initial_condition): Same.
20868 (interpret_loop_phi): Same.
20869 (interpret_condition_phi): Same.
20870 (interpret_rhs_expr): Same.
20871 (interpret_expr): Same.
20872 (interpret_gimple_assign): Same.
20873 (analyze_scalar_evolution_1): Same.
20874 (analyze_scalar_evolution): Same.
20875 (analyze_scalar_evolution_for_address_of): Same.
20876 (get_instantiated_value_entry): Same.
20877 (loop_closed_phi_def): Same.
20878 (instantiate_scev_name): Same.
20879 (instantiate_scev_poly): Same.
20880 (instantiate_scev_binary): Same.
20881 (instantiate_scev_convert): Same.
20882 (instantiate_scev_not): Same.
20883 (instantiate_scev_r): Same.
20884 (instantiate_scev): Same.
20885 (resolve_mixers): Same.
20886 (initialize_scalar_evolutions_analyzer): Same.
20887 (scev_reset_htab): Same.
20888 (scev_reset): Same.
20889 (derive_simple_iv_with_niters): Same.
20890 (simple_iv_with_niters): Same.
20891 (expression_expensive_p): Same.
20892 (final_value_replacement_loop): Same.
20893 * tree-scalar-evolution.h (block_before_loop): Same.
20894 * tree-ssa-address.h: Same.
20895 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20896 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20897 (record_edge_info): Same.
20898 * tree-ssa-live.c (var_map_base_fini): Same.
20899 (remove_unused_locals): Same.
20900 * tree-ssa-live.h: Same.
20901 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20902 (pass_ch_vect::execute): Same.
20903 (pass_ch::process_loop_p): Same.
20904 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20905 (movement_possibility): Same.
20906 (outermost_invariant_loop): Same.
20907 (stmt_cost): Same.
20908 (determine_max_movement): Same.
20909 (invariantness_dom_walker::before_dom_children): Same.
20910 (move_computations): Same.
20911 (may_move_till): Same.
20912 (force_move_till_op): Same.
20913 (force_move_till): Same.
20914 (memref_free): Same.
20915 (record_mem_ref_loc): Same.
20916 (set_ref_stored_in_loop): Same.
20917 (mark_ref_stored): Same.
20918 (sort_bbs_in_loop_postorder_cmp): Same.
20919 (sort_locs_in_loop_postorder_cmp): Same.
20920 (analyze_memory_references): Same.
20921 (mem_refs_may_alias_p): Same.
20922 (find_ref_loc_in_loop_cmp): Same.
20923 (rewrite_mem_ref_loc::operator): Same.
20924 (first_mem_ref_loc_1::operator): Same.
20925 (sm_set_flag_if_changed::operator): Same.
20926 (execute_sm_if_changed_flag_set): Same.
20927 (execute_sm): Same.
20928 (hoist_memory_references): Same.
20929 (ref_always_accessed::operator): Same.
20930 (refs_independent_p): Same.
20931 (record_dep_loop): Same.
20932 (ref_indep_loop_p_1): Same.
20933 (ref_indep_loop_p): Same.
20934 (can_sm_ref_p): Same.
20935 (find_refs_for_sm): Same.
20936 (loop_suitable_for_sm): Same.
20937 (store_motion_loop): Same.
20938 (store_motion): Same.
20939 (fill_always_executed_in): Same.
20940 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20941 (estimated_unrolled_size): Same.
20942 (loop_edge_to_cancel): Same.
20943 (remove_exits_and_undefined_stmts): Same.
20944 (remove_redundant_iv_tests): Same.
20945 (unloop_loops): Same.
20946 (estimated_peeled_sequence_size): Same.
20947 (try_peel_loop): Same.
20948 (canonicalize_loop_induction_variables): Same.
20949 (canonicalize_induction_variables): Same.
20950 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20951 (name_info): Same.
20952 (stmt_after_inc_pos): Same.
20953 (contains_abnormal_ssa_name_p): Same.
20954 (niter_for_exit): Same.
20955 (find_bivs): Same.
20956 (mark_bivs): Same.
20957 (find_givs_in_bb): Same.
20958 (find_induction_variables): Same.
20959 (find_interesting_uses_cond): Same.
20960 (outermost_invariant_loop_for_expr): Same.
20961 (idx_find_step): Same.
20962 (add_candidate_1): Same.
20963 (add_iv_candidate_derived_from_uses): Same.
20964 (alloc_use_cost_map): Same.
20965 (prepare_decl_rtl): Same.
20966 (generic_predict_doloop_p): Same.
20967 (computation_cost): Same.
20968 (determine_common_wider_type): Same.
20969 (get_computation_aff_1): Same.
20970 (get_use_type): Same.
20971 (determine_group_iv_cost_address): Same.
20972 (iv_period): Same.
20973 (difference_cannot_overflow_p): Same.
20974 (may_eliminate_iv): Same.
20975 (determine_set_costs): Same.
20976 (cheaper_cost_pair): Same.
20977 (compare_cost_pair): Same.
20978 (iv_ca_cand_for_group): Same.
20979 (iv_ca_recount_cost): Same.
20980 (iv_ca_set_remove_invs): Same.
20981 (iv_ca_set_no_cp): Same.
20982 (iv_ca_set_add_invs): Same.
20983 (iv_ca_set_cp): Same.
20984 (iv_ca_add_group): Same.
20985 (iv_ca_cost): Same.
20986 (iv_ca_compare_deps): Same.
20987 (iv_ca_delta_reverse): Same.
20988 (iv_ca_delta_commit): Same.
20989 (iv_ca_cand_used_p): Same.
20990 (iv_ca_delta_free): Same.
20991 (iv_ca_new): Same.
20992 (iv_ca_free): Same.
20993 (iv_ca_dump): Same.
20994 (iv_ca_extend): Same.
20995 (iv_ca_narrow): Same.
20996 (iv_ca_prune): Same.
20997 (cheaper_cost_with_cand): Same.
20998 (iv_ca_replace): Same.
20999 (try_add_cand_for): Same.
21000 (get_initial_solution): Same.
21001 (try_improve_iv_set): Same.
21002 (find_optimal_iv_set_1): Same.
21003 (create_new_iv): Same.
21004 (rewrite_use_compare): Same.
21005 (remove_unused_ivs): Same.
21006 (determine_scaling_factor): Same.
21007 * tree-ssa-loop-ivopts.h: Same.
21008 * tree-ssa-loop-manip.c (create_iv): Same.
21009 (compute_live_loop_exits): Same.
21010 (add_exit_phi): Same.
21011 (add_exit_phis): Same.
21012 (find_uses_to_rename_use): Same.
21013 (find_uses_to_rename_def): Same.
21014 (find_uses_to_rename_in_loop): Same.
21015 (rewrite_into_loop_closed_ssa): Same.
21016 (check_loop_closed_ssa_bb): Same.
21017 (split_loop_exit_edge): Same.
21018 (ip_end_pos): Same.
21019 (ip_normal_pos): Same.
21020 (copy_phi_node_args): Same.
21021 (gimple_duplicate_loop_to_header_edge): Same.
21022 (can_unroll_loop_p): Same.
21023 (determine_exit_conditions): Same.
21024 (scale_dominated_blocks_in_loop): Same.
21025 (niter_for_unrolled_loop): Same.
21026 (tree_transform_and_unroll_loop): Same.
21027 (rewrite_all_phi_nodes_with_iv): Same.
21028 * tree-ssa-loop-manip.h: Same.
21029 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21030 (number_of_iterations_ne): Same.
21031 (assert_no_overflow_lt): Same.
21032 (assert_loop_rolls_lt): Same.
21033 (number_of_iterations_lt): Same.
21034 (adjust_cond_for_loop_until_wrap): Same.
21035 (tree_simplify_using_condition): Same.
21036 (simplify_using_initial_conditions): Same.
21037 (simplify_using_outer_evolutions): Same.
21038 (loop_only_exit_p): Same.
21039 (ssa_defined_by_minus_one_stmt_p): Same.
21040 (number_of_iterations_popcount): Same.
21041 (number_of_iterations_exit): Same.
21042 (find_loop_niter): Same.
21043 (finite_loop_p): Same.
21044 (chain_of_csts_start): Same.
21045 (get_val_for): Same.
21046 (loop_niter_by_eval): Same.
21047 (derive_constant_upper_bound_ops): Same.
21048 (do_warn_aggressive_loop_optimizations): Same.
21049 (record_estimate): Same.
21050 (get_cst_init_from_scev): Same.
21051 (record_nonwrapping_iv): Same.
21052 (idx_infer_loop_bounds): Same.
21053 (infer_loop_bounds_from_ref): Same.
21054 (infer_loop_bounds_from_array): Same.
21055 (infer_loop_bounds_from_pointer_arith): Same.
21056 (infer_loop_bounds_from_signedness): Same.
21057 (bound_index): Same.
21058 (discover_iteration_bound_by_body_walk): Same.
21059 (maybe_lower_iteration_bound): Same.
21060 (estimate_numbers_of_iterations): Same.
21061 (estimated_loop_iterations): Same.
21062 (estimated_loop_iterations_int): Same.
21063 (max_loop_iterations): Same.
21064 (max_loop_iterations_int): Same.
21065 (likely_max_loop_iterations): Same.
21066 (likely_max_loop_iterations_int): Same.
21067 (estimated_stmt_executions_int): Same.
21068 (max_stmt_executions): Same.
21069 (likely_max_stmt_executions): Same.
21070 (estimated_stmt_executions): Same.
21071 (stmt_dominates_stmt_p): Same.
21072 (nowrap_type_p): Same.
21073 (loop_exits_before_overflow): Same.
21074 (scev_var_range_cant_overflow): Same.
21075 (scev_probably_wraps_p): Same.
21076 (free_numbers_of_iterations_estimates): Same.
21077 * tree-ssa-loop-niter.h: Same.
21078 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21079 (idx_analyze_ref): Same.
21080 (analyze_ref): Same.
21081 (gather_memory_references_ref): Same.
21082 (mark_nontemporal_store): Same.
21083 (emit_mfence_after_loop): Same.
21084 (may_use_storent_in_loop_p): Same.
21085 (mark_nontemporal_stores): Same.
21086 (should_unroll_loop_p): Same.
21087 (volume_of_dist_vector): Same.
21088 (add_subscript_strides): Same.
21089 (self_reuse_distance): Same.
21090 (insn_to_prefetch_ratio_too_small_p): Same.
21091 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21092 (patch_loop_exit): Same.
21093 (find_or_create_guard_phi): Same.
21094 (easy_exit_values): Same.
21095 (connect_loop_phis): Same.
21096 (connect_loops): Same.
21097 (compute_new_first_bound): Same.
21098 (split_loop): Same.
21099 (tree_ssa_split_loops): Same.
21100 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21101 (is_maybe_undefined): Same.
21102 (tree_may_unswitch_on): Same.
21103 (simplify_using_entry_checks): Same.
21104 (tree_unswitch_single_loop): Same.
21105 (tree_unswitch_loop): Same.
21106 (tree_unswitch_outer_loop): Same.
21107 (empty_bb_without_guard_p): Same.
21108 (used_outside_loop_p): Same.
21109 (get_vop_from_header): Same.
21110 (hoist_guard): Same.
21111 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21112 (get_lsm_tmp_name): Same.
21113 * tree-ssa-loop.h: Same.
21114 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21115 (build_and_add_sum): Same.
21116 (no_side_effect_bb): Same.
21117 (get_ops): Same.
21118 (linearize_expr): Same.
21119 (should_break_up_subtract): Same.
21120 (linearize_expr_tree): Same.
21121 * tree-ssa-scopedtables.c: Same.
21122 * tree-ssa-scopedtables.h: Same.
21123 * tree-ssa-structalias.c (condense_visit): Same.
21124 (label_visit): Same.
21125 (dump_pred_graph): Same.
21126 (perform_var_substitution): Same.
21127 (move_complex_constraints): Same.
21128 (remove_preds_and_fake_succs): Same.
21129 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21130 (determine_bb_domination_status): Same.
21131 (duplicate_thread_path): Same.
21132 (thread_through_all_blocks): Same.
21133 * tree-ssa-threadupdate.h: Same.
21134 * tree-streamer-in.c (streamer_read_string_cst): Same.
21135 (input_identifier): Same.
21136 (unpack_ts_type_common_value_fields): Same.
21137 (unpack_ts_block_value_fields): Same.
21138 (unpack_ts_translation_unit_decl_value_fields): Same.
21139 (unpack_ts_omp_clause_value_fields): Same.
21140 (streamer_read_tree_bitfields): Same.
21141 (streamer_alloc_tree): Same.
21142 (lto_input_ts_common_tree_pointers): Same.
21143 (lto_input_ts_vector_tree_pointers): Same.
21144 (lto_input_ts_poly_tree_pointers): Same.
21145 (lto_input_ts_complex_tree_pointers): Same.
21146 (lto_input_ts_decl_minimal_tree_pointers): Same.
21147 (lto_input_ts_decl_common_tree_pointers): Same.
21148 (lto_input_ts_decl_non_common_tree_pointers): Same.
21149 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21150 (lto_input_ts_field_decl_tree_pointers): Same.
21151 (lto_input_ts_function_decl_tree_pointers): Same.
21152 (lto_input_ts_type_common_tree_pointers): Same.
21153 (lto_input_ts_type_non_common_tree_pointers): Same.
21154 (lto_input_ts_list_tree_pointers): Same.
21155 (lto_input_ts_vec_tree_pointers): Same.
21156 (lto_input_ts_exp_tree_pointers): Same.
21157 (lto_input_ts_block_tree_pointers): Same.
21158 (lto_input_ts_binfo_tree_pointers): Same.
21159 (lto_input_ts_constructor_tree_pointers): Same.
21160 (lto_input_ts_omp_clause_tree_pointers): Same.
21161 (streamer_read_tree_body): Same.
21162 * tree-streamer.h: Same.
21163 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21164 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21165 (vect_analyze_possibly_independent_ddr): Same.
21166 (vect_analyze_data_ref_dependence): Same.
21167 (vect_compute_data_ref_alignment): Same.
21168 (vect_enhance_data_refs_alignment): Same.
21169 (vect_analyze_data_ref_access): Same.
21170 (vect_check_gather_scatter): Same.
21171 (vect_find_stmt_data_reference): Same.
21172 (vect_create_addr_base_for_vector_ref): Same.
21173 (vect_setup_realignment): Same.
21174 (vect_supportable_dr_alignment): Same.
21175 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21176 (adjust_phi_and_debug_stmts): Same.
21177 (vect_set_loop_mask): Same.
21178 (add_preheader_seq): Same.
21179 (vect_maybe_permute_loop_masks): Same.
21180 (vect_set_loop_masks_directly): Same.
21181 (vect_set_loop_condition_masked): Same.
21182 (vect_set_loop_condition_unmasked): Same.
21183 (slpeel_duplicate_current_defs_from_edges): Same.
21184 (slpeel_add_loop_guard): Same.
21185 (slpeel_can_duplicate_loop_p): Same.
21186 (create_lcssa_for_virtual_phi): Same.
21187 (iv_phi_p): Same.
21188 (vect_update_ivs_after_vectorizer): Same.
21189 (vect_gen_vector_loop_niters_mult_vf): Same.
21190 (slpeel_update_phi_nodes_for_loops): Same.
21191 (slpeel_update_phi_nodes_for_guard1): Same.
21192 (find_guard_arg): Same.
21193 (slpeel_update_phi_nodes_for_guard2): Same.
21194 (slpeel_update_phi_nodes_for_lcssa): Same.
21195 (vect_do_peeling): Same.
21196 (vect_create_cond_for_alias_checks): Same.
21197 (vect_loop_versioning): Same.
21198 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21199 (vect_inner_phi_in_double_reduction_p): Same.
21200 (vect_analyze_scalar_cycles_1): Same.
21201 (vect_fixup_scalar_cycles_with_patterns): Same.
21202 (vect_get_loop_niters): Same.
21203 (bb_in_loop_p): Same.
21204 (vect_get_max_nscalars_per_iter): Same.
21205 (vect_verify_full_masking): Same.
21206 (vect_compute_single_scalar_iteration_cost): Same.
21207 (vect_analyze_loop_form_1): Same.
21208 (vect_analyze_loop_form): Same.
21209 (vect_active_double_reduction_p): Same.
21210 (vect_analyze_loop_operations): Same.
21211 (neutral_op_for_slp_reduction): Same.
21212 (vect_is_simple_reduction): Same.
21213 (vect_model_reduction_cost): Same.
21214 (get_initial_def_for_reduction): Same.
21215 (get_initial_defs_for_reduction): Same.
21216 (vect_create_epilog_for_reduction): Same.
21217 (vectorize_fold_left_reduction): Same.
21218 (vectorizable_reduction): Same.
21219 (vectorizable_induction): Same.
21220 (vectorizable_live_operation): Same.
21221 (loop_niters_no_overflow): Same.
21222 (vect_get_loop_mask): Same.
21223 (vect_transform_loop_stmt): Same.
21224 (vect_transform_loop): Same.
21225 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21226 (vect_determine_precisions): Same.
21227 (vect_pattern_recog_1): Same.
21228 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21229 * tree-vect-stmts.c (stmt_vectype): Same.
21230 (process_use): Same.
21231 (vect_init_vector_1): Same.
21232 (vect_truncate_gather_scatter_offset): Same.
21233 (get_group_load_store_type): Same.
21234 (vect_build_gather_load_calls): Same.
21235 (vect_get_strided_load_store_ops): Same.
21236 (vectorizable_simd_clone_call): Same.
21237 (vectorizable_store): Same.
21238 (permute_vec_elements): Same.
21239 (vectorizable_load): Same.
21240 (vect_transform_stmt): Same.
21241 (supportable_widening_operation): Same.
21242 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21243 (vec_info::free_stmt_vec_info): Same.
21244 (vect_free_loop_info_assumptions): Same.
21245 (vect_loop_vectorized_call): Same.
21246 (set_uid_loop_bbs): Same.
21247 (vectorize_loops): Same.
21248 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21249 * tree.c (add_tree_to_fld_list): Same.
21250 (fld_type_variant_equal_p): Same.
21251 (fld_decl_context): Same.
21252 (fld_incomplete_type_of): Same.
21253 (free_lang_data_in_binfo): Same.
21254 (need_assembler_name_p): Same.
21255 (find_decls_types_r): Same.
21256 (get_eh_types_for_runtime): Same.
21257 (find_decls_types_in_eh_region): Same.
21258 (find_decls_types_in_node): Same.
21259 (assign_assembler_name_if_needed): Same.
21260 * value-prof.c (stream_out_histogram_value): Same.
21261 * value-prof.h: Same.
21262 * var-tracking.c (use_narrower_mode): Same.
21263 (prepare_call_arguments): Same.
21264 (vt_expand_loc_callback): Same.
21265 (resolve_expansions_pending_recursion): Same.
21266 (vt_expand_loc): Same.
21267 * varasm.c (const_hash_1): Same.
21268 (compare_constant): Same.
21269 (tree_output_constant_def): Same.
21270 (simplify_subtraction): Same.
21271 (get_pool_constant): Same.
21272 (output_constant_pool_2): Same.
21273 (output_constant_pool_1): Same.
21274 (mark_constants_in_pattern): Same.
21275 (mark_constant_pool): Same.
21276 (get_section_anchor): Same.
21277 * vr-values.c (compare_range_with_value): Same.
21278 (vr_values::extract_range_from_phi_node): Same.
21279 * vr-values.h: Same.
21280 * web.c (unionfind_union): Same.
21281 * wide-int.h: Same.
21282
21283 2019-07-09 Martin Sebor <msebor@redhat.com>
21284
21285 PR c++/61339
21286 * align.h: Change class-key from class to struct and vice versa
21287 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21288 * alloc-pool.h: Same.
21289 * asan.c (shadow_mem_size): Same.
21290 * auto-profile.c: Same.
21291 * basic-block.h: Same.
21292 * bitmap.h: Same.
21293 * cfgexpand.c (set_rtl): Same.
21294 (expand_one_stack_var_at): Same.
21295 * cfghooks.h: Same.
21296 * cfgloop.h: Same.
21297 * cgraph.h: Same.
21298 * config/i386/i386.h: Same.
21299 * df-problems.c (df_print_bb_index): Same.
21300 * df-scan.c: Same.
21301 * df.h (df_single_use): Same.
21302 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21303 (layout::annotation_line_showed_range_p): Same.
21304 (get_printed_columns): Same.
21305 (correction::ensure_terminated): Same.
21306 (line_corrections::~line_corrections): Same.
21307 * dojump.h: Same.
21308 * dse.c: Same.
21309 * dump-context.h: Same.
21310 * dumpfile.h: Same.
21311 * dwarf2out.c: Same.
21312 * edit-context.c: Same.
21313 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21314 * flags.h: Same.
21315 * function.c (assign_stack_local): Same.
21316 * function.h: Same.
21317 * gcc.c: Same.
21318 * gcov.c (block_info::block_info): Same.
21319 * genattrtab.c: Same.
21320 * genextract.c: Same.
21321 * genmatch.c (comparison_code_p): Same.
21322 (id_base::id_base): Same.
21323 (decision_tree::print): Same.
21324 * genoutput.c: Same.
21325 * genpreds.c (write_one_predicate_function): Same.
21326 * genrecog.c (validate_pattern): Same.
21327 (find_operand_positions): Same.
21328 (optimize_subroutine_group): Same.
21329 (merge_pattern_transition::merge_pattern_transition): Same.
21330 (merge_pattern_info::merge_pattern_info): Same.
21331 (merge_state_result::merge_state_result): Same.
21332 (merge_into_state): Same.
21333 * gensupport.c: Same.
21334 * gensupport.h: Same.
21335 * ggc-common.c (init_ggc_heuristics): Same.
21336 * ggc-tests.c (test_union): Same.
21337 * gimple-loop-interchange.cc (dump_induction): Same.
21338 * gimple-loop-versioning.cc: Same.
21339 * gimple-match.h (gimple_match_cond::any_else): Same.
21340 * gimple-ssa-backprop.c: Same.
21341 * gimple-ssa-sprintf.c: Same.
21342 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21343 Same.
21344 (store_immediate_info::store_immediate_info): Same.
21345 (merged_store_group::apply_stores): Same.
21346 (get_location_for_stmts): Same.
21347 * gimple-ssa-strength-reduction.c: Same.
21348 * gimple-ssa-warn-alloca.c: Same.
21349 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21350 * godump.c (go_type_decl): Same.
21351 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21352 * hash-map.h: Same.
21353 * hash-set-tests.c (test_set_of_strings): Same.
21354 * hsa-brig.c: Same.
21355 * hsa-common.h: Same.
21356 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21357 * input.c (assert_loceq): Same.
21358 * input.h: Same.
21359 * ipa-cp.c: Same.
21360 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21361 * ipa-fnsummary.h: Same.
21362 * ipa-inline.h: Same.
21363 * ipa-prop.h: Same.
21364 * ipa-split.c (visit_bb): Same.
21365 * ira-int.h (minmax_set_iter_next): Same.
21366 * loop-invariant.c: Same.
21367 * loop-iv.c: Same.
21368 * lra-eliminations.c: Same.
21369 * lra-int.h: Same.
21370 * lra-lives.c (mark_regno_dead): Same.
21371 * lra-remat.c: Same.
21372 * lra-spills.c: Same.
21373 * lto-streamer.h: Same.
21374 * mem-stats.h: Same.
21375 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21376 * omp-low.c (omp_clause_aligned_alignment): Same.
21377 * optabs-query.h (get_vcond_eq_icode): Same.
21378 * optabs.h: Same.
21379 * opts.c (wrap_help): Same.
21380 * poly-int.h: Same.
21381 * predict.c (predict_paths_leading_to_edge): Same.
21382 * pretty-print.h: Same.
21383 * profile-count.h: Same.
21384 * read-md.h: Same.
21385 * read-rtl-function.c: Same.
21386 * ree.c: Same.
21387 * reginfo.c: Same.
21388 * regrename.c: Same.
21389 * regrename.h: Same.
21390 * reload.h: Same.
21391 * rtl-iter.h: Same.
21392 * rtl.h (costs_add_n_insns): Same.
21393 * sanopt.c: Same.
21394 * sched-int.h: Same.
21395 * sel-sched-ir.h: Same.
21396 * selftest.h: Same.
21397 * sese.h (vec_find): Same.
21398 * stmt.c: Same.
21399 * target-globals.h: Same.
21400 * tree-affine.c (aff_combination_find_elt): Same.
21401 * tree-affine.h: Same.
21402 * tree-data-ref.h: Same.
21403 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21404 * tree-predcom.c: Same.
21405 * tree-scalar-evolution.c (find_var_scev_info): Same.
21406 * tree-ssa-alias.h: Same.
21407 * tree-ssa-ccp.c: Same.
21408 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21409 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21410 (rewrite_mem_refs): Same.
21411 (execute_sm_if_changed): Same.
21412 (hoist_memory_references): Same.
21413 * tree-ssa-loop-ivopts.c (operator<=): Same.
21414 * tree-ssa-loop.h: Same.
21415 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21416 * tree-ssa-structalias.c: Same.
21417 * tree-switch-conversion.h (cluster::cluster): Same.
21418 (simple_cluster::simple_cluster): Same.
21419 * tree-vect-patterns.c (type_conversion_p): Same.
21420 * tree-vectorizer.c (dump_stmt_cost): Same.
21421 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21422 * tree.c (protected_set_expr_location): Same.
21423 * tree.h (desired_pro_or_demotion_p): Same.
21424 (fndecl_built_in_p): Same.
21425 * unique-ptr-tests.cc: Same.
21426 * var-tracking.c (delete_variable_part): Same.
21427 * varasm.c (assemble_real): Same.
21428 (tree_output_constant_def): Same.
21429 * vec.c: Same.
21430 * wide-int-bitmask.h: Same.
21431 * wide-int.h (decompose): Same.
21432
21433 2019-07-09 Richard Biener <rguenther@suse.de>
21434
21435 PR tree-optimization/91114
21436 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21437 find a vector type isn't fatal.
21438
21439 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21440
21441 * config/aarch64/aarch64-simd.md
21442 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21443 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21444 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21445 (*aarch64_crypto_aese_fused,
21446 *aarch64_crypto_aesd_fused): Update to new definition.
21447 * config/aarch64/aarch64.c
21448 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21449
21450 2019-07-09 Richard Biener <rguenther@suse.de>
21451
21452 * gimple-match.h (gimple_match_op::resimplify): New.
21453 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21454 gimple_resimplify4, gimple_resimplify5): Remove.
21455 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21456 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21457 Make static.
21458 (gimple_match_op::resimplify): New.
21459 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21460 according to availability. Use gimple_match_op::resimplify.
21461
21462 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21463
21464 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21465
21466 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21467
21468 * config/arm/crypto.md:
21469 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21470 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21471 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21472 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21473 * config/arm/arm.c
21474 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21475 * config/arm/aarch-common-protos.h
21476 (aarch_crypto_can_dual_issue): Remove.
21477 * config/arm/aarch-common.c
21478 (aarch_crypto_can_dual_issue): Likewise.
21479 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21480 * config/arm/cortex-a53.md: Likewise.
21481 * config/arm/cortex-a57.md: Likewise.
21482 * config/arm/iterators.md:
21483 (CRYPTO_BINARY): Redefine.
21484 (CRYPTO_UNARY): Removed.
21485 (CRYPTO_AES, CRYPTO_AESMC): New.
21486
21487 2019-07-09 Richard Biener <rguenther@suse.de>
21488
21489 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21490 (vn_reference_lookup_3): If the main ref has no access path recorded
21491 but orig_ref has use it to do access-path based disambiguation.
21492 (vn_reference_lookup_pieces): Adjust.
21493 (vn_reference_lookup): Pass down original ref if we valueized.
21494
21495 2019-07-09 Martin Liska <mliska@suse.cz>
21496
21497 * doc/extend.texi: Document influence on loop
21498 optimizers.
21499
21500 2019-07-09 Martin Liska <mliska@suse.cz>
21501
21502 * lto-compress.c (lto_normalized_zstd_level): Do not use
21503 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21504 of libzstd. One can use 0 as a default compression level.
21505
21506 2019-07-09 Martin Liska <mliska@suse.cz>
21507
21508 * doc/invoke.texi: Add link from -fprofile-dir option.
21509 Use better wording for 'gcno filename'.
21510
21511 2019-07-08 Martin Sebor <msebor@redhat.com>
21512
21513 PR middle-end/71924
21514 PR middle-end/90549
21515 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21516 comment.
21517 (args_loc_t): New type.
21518 (args_loc_t, locmap_t): same.
21519 (diag_returned_locals): New function.
21520 (is_addr_local): Same.
21521 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21522 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21523 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21524
21525 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21526
21527 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21528 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21529 and casts in offset when different, both through gimple stmts
21530 and through trees. Rewritten using loops to minimize code duplication
21531 for each operand.
21532
21533 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21534
21535 * emit-rtl.c (set_insn_locations): New function moved from...
21536 * function.c (set_insn_locations): ...here.
21537 * ira-emit.c (emit_moves): Propagate location of the first instruction
21538 to the inserted move instructions.
21539 * reg-stack.c (compensate_edge): Set the location if the sequence is
21540 inserted on the edge.
21541 * rtl.h (set_insn_locations): Declare.
21542
21543 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21544
21545 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21546 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21547 .machine string.
21548
21549 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21550
21551 PR rtl-optimization/88233
21552 * common.opt (fsplit-wide-types-early): New option.
21553 * common/config/rs6000/rs6000-common.c
21554 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21555 OPT_LEVELS_ALL.
21556 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21557 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21558 flag_split_wide_types_early.
21559 (pass_data_lower_subreg3): New.
21560 (pass_lower_subreg3): New.
21561 (make_pass_lower_subreg3): New.
21562 * passes.def (pass_lower_subreg2): Move after the loop passes.
21563 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21564 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21565 the pass pipeline; its previous place is taken by ...
21566 (make_pass_lower_subreg3): ... this.
21567
21568 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21569
21570 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21571 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21572
21573 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21574
21575 * config/s390/constraints.md: Add new jsc constraint.
21576 * config/s390/predicates.md: New predicates.
21577 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21578 * config/s390/s390.c (s390_valid_shift_count): New function.
21579 (print_shift_count_operand): Use s390_valid_shift_count.
21580 (print_operand): Likewise.
21581 * config/s390/s390.md: Use new predicate.
21582 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21583 * config/s390/vector.md: Use new predicate.
21584
21585 2019-07-08 Andrew Waterman <andrew@sifive.com>
21586 Jim Wilson <jimw@sifive.com>
21587
21588 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21589 bitsize instead of BITS_PER_WORD.
21590
21591 2019-07-08 Martin Liska <mliska@suse.cz>
21592
21593 * collect2.c (defined): Revert to before r254460.
21594 (scan_prog_file): Revert to before r254460.
21595
21596 2019-07-08 Richard Biener <rguenther@suse.de>
21597
21598 PR tree-optimization/83518
21599 * tree-ssa-sccvn.c: Include splay-tree.h.
21600 (struct pd_range, struct pd_data): New.
21601 (struct vn_walk_cb_data): Add data to track partial definitions.
21602 (vn_walk_cb_data::~vn_walk_cb_data): New.
21603 (vn_walk_cb_data::push_partial_def): New.
21604 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21605 (vn_reference_lookup_2): When partial defs are registered give up.
21606 (vn_reference_lookup_3): Track partial defs for memset and
21607 constructor zeroing and for defs from constants.
21608
21609 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21610
21611 * doc/install.texi (bootstrap-Og): Document.
21612
21613 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21614
21615 * config/riscv/pic.md (*local_pic_load_s<mode>)
21616 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21617 referenced by <mode>, giving...
21618 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21619 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21620 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21621 use <X:MODE> for the mode attribute.
21622
21623 2019-07-07 Jeff Law <law@redhat.com>
21624
21625 PR tree-optimization/91090
21626 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21627 in handling of ranges to simplify switch statements.
21628
21629 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21630
21631 * config/darwin.c (darwin_override_options): Make a final check on PIC
21632 options.
21633
21634 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21635
21636 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21637 on for kernel code.
21638
21639 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21640
21641 PR target/91068
21642 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21643 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21644 instead of matching them to "l" output operands.
21645
21646 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21647
21648 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21649 and check whether addr.reg is nonnull before using it.
21650
21651 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21652
21653 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21654 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21655 variable(s). For conditional lastprivate look through outer
21656 GIMPLE_OMP_SCAN context.
21657 (lower_omp_1): For conditional lastprivate look through outer
21658 GIMPLE_OMP_SCAN context.
21659
21660 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21661 member to combined_into_simd_safelen1.
21662 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21663 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21664 clauses if ctx->combined_into_simd_safelen1 put statements after the
21665 predicate conditionalized block rather than into it.
21666
21667 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21668
21669 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21670 operand 1.
21671 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21672 Make the choice of <mode> explicit, giving...
21673 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21674
21675 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21676
21677 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21678 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21679 of .md attributes.
21680 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21681 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21682 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21683 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21684 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21685 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21686 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21687 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21688 (*avx512f_scatterdi<mode>): Likewise.
21689 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21690
21691 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21692
21693 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21694 specify the mode iterator referenced by <mode>, giving...
21695 (*push1_h8300hs_<QHI:mode>): ...this.
21696
21697 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21698
21699 * config/gcn/gcn-valu.md
21700 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21701 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21702 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21703 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21704 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21705 but using the _exec comparison patterns.
21706 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21707 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21708 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21709 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21710 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21711 but using the _exec comparison patterns.
21712
21713 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21714
21715 * config/arm/sync.md
21716 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21717 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21718 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21719 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21720 <SIDI:cas_cmp_str>.
21721
21722 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21723
21724 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21725 (maybe_lookup_ctx): Add forward declaration.
21726 (omp_find_scan): Likewise. Walk into body of simd if composited
21727 with worksharing loop.
21728 (scan_omp_simd_scan): New function.
21729 (scan_omp_1_stmt): Call it.
21730 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21731 ctx->for_simd_scan_phase.
21732 (lower_rec_input_clauses): Do much less work for inscan reductions
21733 in ctx->for_simd_scan_phase is_simd regions.
21734 (lower_omp_scan): Set is_simd also on simd constructs composited
21735 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21736 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21737 emit their body after in simd constructs composited with worksharing
21738 loop.
21739 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21740
21741 * omp-low.c (omp_find_scan): Make static.
21742 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21743 the second loop, var2 represents the first partial sum and so needs
21744 to go before rprivb[ivar].
21745
21746 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21747
21748 * config/rs6000/rs6000-logue.c: Remove unused code.
21749
21750 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21751
21752 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21753
21754 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21755
21756 PR target/90712
21757 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21758 check with a frame laid out check.
21759
21760 2019-07-05 Richard Biener <rguenther@suse.de>
21761
21762 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21763 when comparing against a store with possibly the same value.
21764
21765 2019-07-05 Richard Biener <rguenther@suse.de>
21766
21767 PR tree-optimization/91091
21768 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21769 (walk_non_aliased_vuses): Likewise.
21770 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21771 (get_continuation_for_phi): New tbaa_p parameter and pass
21772 it down.
21773 (walk_non_aliased_vuses): Likewise.
21774 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21775 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21776 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21777 Likewise.
21778 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21779 (adjust_offsets_for_equal_base_address): New function.
21780 (vn_reference_lookup_3): Use it to catch more base equivalences.
21781 Handle and pass down tbaa_p flag.
21782 (vn_reference_lookup_pieces): Adjust.
21783 (vn_reference_lookup): Remove alias-set altering, instead pass
21784 down false as tbaa_p.
21785
21786 2019-07-05 Richard Biener <rguenther@suse.de>
21787
21788 PR tree-optimization/91091
21789 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21790 accesses can happen with -fno-strict-aliasing.
21791
21792 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21793
21794 * tree-ssa-alias.c (alias_stats): Add
21795 nonoverlapping_component_refs_since_match_p_must_overlap.
21796 (dump_alias_stats): Print it.
21797 (nonoverlapping_component_refs_since_match_p): Add early exit.
21798 (nonoverlapping_component_refs_p): Do not account early exit.
21799
21800 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21801
21802 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21803 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21804 (emit_eh_dispatch): Delete.
21805 (lower_catch): Emit the eh_dispatch manually and set the location of
21806 the first catch statement onto it.
21807 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21808 (lower_eh_dispatch): Propagate location.
21809 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21810 (eliminate_build): Likewise.
21811
21812 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21813
21814 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21815 phi nodes if possible.
21816 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21817 location info on the newly created statement.
21818 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21819 newly created increment if needed.
21820
21821 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21822
21823 PR middle-end/78884
21824 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21825 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21826 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21827 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21828 ctx->add_safelen1 is set.
21829
21830 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21831 GOMP_loop_start at the start of second worksharing loop in a scan.
21832 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21833 worksharing loop in a scan even if there are conditional lastprivates,
21834 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21835
21836 2019-07-04 Jan Hubicka <jh@suse.cz>
21837
21838 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21839 Fix check for match in the ref walk.
21840
21841 2019-07-04 Martin Liska <mliska@suse.cz>
21842
21843 * tree-ssa-loop-niter.c
21844 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21845 (estimate_numbers_of_iterations):
21846 Support __builtin_expect_with_probability for analysis
21847 of # of loop iterations.
21848
21849 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21850
21851 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21852 * except.c: Likewise.
21853 * expr.c (expand_expr_real_1): Reject it.
21854 * gimplify.c (gimplify_expr): Gimplify it, within
21855 TRY_FINALLY_EXPR.
21856 * tree-dump.c (dequeue_and_dump): Dump it.
21857 * tree-pretty-print.c (dump_generic_node): Likewise.
21858 * tree.c (block_may_fallthru): Handle it.
21859 * tree.def (EH_ELSE_EXPR): Introduce it.
21860 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21861 with GIMPLE_EH_ELSE as try/finally/else.
21862
21863 2019-07-04 Richard Biener <rguenther@suse.de>
21864
21865 PR ipa/91062
21866 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21867 parameter whether to disable GC collection.
21868 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21869 honor it.
21870 (execute_all_ipa_transforms): Likewise and pass it down.
21871 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21872 collection from applying IPA transforms.
21873 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21874 from applying IPA transforms.
21875
21876 2019-07-04 Richard Biener <rguenther@suse.de>
21877
21878 PR tree-optimization/90911
21879 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21880 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21881 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21882 scalar_loop_scaling.
21883 (vect_transform_loop): Scale scalar loop profile if needed.
21884 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21885 the loop copy from if-conversion adjust edge probabilities
21886 and scale the vectorized loop body profile, queue the scalar
21887 profile for updating after peeling.
21888
21889 2019-07-04 Jan Hubicka <jh@suse.cz>
21890
21891 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21892 parameters; return early for must-alias.
21893 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21894 outer types match, try nonoverlapping_component_refs
21895 if must-alias is not obvious.
21896 (indirect_refs_may_alias_p): Likewise.
21897 (refs_may_alias_p_2): Likewise.
21898
21899 2019-07-04 Richard Biener <rguenther@suse.de>
21900
21901 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21902 argument.
21903 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21904 globals into...
21905 (struct vn_walk_cb_data): New callback data struct.
21906 (vn_reference_lookup_2): Adjust.
21907 (vn_reference_lookup_3): Likewise.
21908 (vn_reference_lookup_pieces): Likewise.
21909 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21910 (visit_reference_op_load): Adjust.
21911
21912 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21913
21914 PR tree-optimization/91063
21915 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21916 stmt from stmts sequence before calling vect_init_vector_1.
21917 Formatting fix.
21918
21919 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21920
21921 PR target/88833
21922 * fwprop.c (reg_single_def_p): New function.
21923 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21924 (forward_propagate_into): New parameter reg_prop_only
21925 with default value false.
21926 Propagate def's src into loop only if SET_SRC and SET_DEST
21927 of def_set have single definitions.
21928 Likewise if reg_prop_only is set to true.
21929 (fwprop): New param fwprop_addr_p.
21930 Integrate fwprop_addr into fwprop.
21931 (fwprop_addr): Remove.
21932 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21933 to true.
21934 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21935 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21936 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21937
21938 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21939
21940 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21941 in worksharing loop scans.
21942
21943 PR tree-optimization/91074
21944 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21945 temporary.
21946
21947 PR rtl-optimization/90756
21948 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21949 for VECTOR_TYPE_P.
21950
21951 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21952
21953 * config/aarch64/aarch64.md: Remove redundant constraints from
21954 define_expand but keep some patterns untouched if they are
21955 specially selected by TARGET_SECONDARY_RELOAD hook.
21956 * config/aarch64/aarch64-sve.md: Likewise.
21957 * config/aarch64/atomics.md: Remove redundant constraints from
21958 define_expand.
21959 * config/aarch64/aarch64-simd.md: Likewise.
21960
21961 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21962
21963 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21964 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21965 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21966 clauses.
21967 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21968 DARWIN_NOPIE_SPEC.
21969
21970 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21971
21972 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21973 (STARTFILE_SPEC): Split crt3 into a separate spec.
21974 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21975 (DARWIN_CRT2_SPEC): New.
21976 (DARWIN_CRT3_SPEC): New.
21977 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21978 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21979 (DARWIN_CRT3_SPEC): New.
21980
21981 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21982
21983 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21984 Change the RTL attribute "length" from "4" to "*" to allow the
21985 length attribute to be adjusted automatically for prefixed load,
21986 store, and add immediate instructions.
21987 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21988 Likewise.
21989 (extendsi<mode>2, EXTSI iterator): Likewise.
21990 (movsi_internal1): Likewise.
21991 (movsi_from_sf): Likewise.
21992 (movdi_from_sf_zero_ext): Likewise.
21993 (mov<mode>_internal): Likewise.
21994 (movcc_internal1, QHI iterator): Likewise.
21995 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21996 (movsf_from_si): Likewise.
21997 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21998 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21999 (mov<mode>, FMOVE128 iterator): Likewise.
22000 (movdi_internal64): Likewise.
22001 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22002 Likewise.
22003 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22004 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22005 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22006 (vsx_splat_v4sf): Likewise.
22007
22008 2019-07-03 Mark Wielaard <mark@klomp.org>
22009
22010 PR debug/90981
22011 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22012 DW_AT_addr_base if there is actually a .debug_addr section with
22013 addresses.
22014 (output_addr_table): Add DWARF5 table header generation here after
22015 checking there are actually any addresses from...
22016 (dwarf2out_finish): ...here.
22017
22018 2019-07-03 Richard Biener <rguenther@suse.de>
22019
22020 PR middle-end/91069
22021 * match.pd (vec_perm -> bit_insert): Fix element read from
22022 first vector.
22023
22024 2019-07-03 Martin Liska <mliska@suse.cz>
22025
22026 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22027 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22028 condition.
22029 * generic-match-head.c: Include dbgcnt.h.
22030 * gimple-match-head.c: Likewise.
22031
22032 2019-07-03 Martin Liska <mliska@suse.cz>
22033
22034 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22035 (GCOV_COUNTER_V_TOPN): New.
22036 (GCOV_COUNTER_V_INDIR): Use _topn.
22037 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22038 (GCOV_TOPN_VALUES): New.
22039 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22040 (GCOV_TOPN_VALUES_COUNTERS): New.
22041 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22042 * tree-profile.c:
22043 (gimple_init_gcov_profiler): Rename variables from one_value
22044 to topn_values.
22045 (gimple_gen_one_value_profiler): Remove.
22046 (gimple_gen_topn_values_profiler): New function.
22047 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22048 names instead of SINGLE_VALUE.
22049 (stream_out_histogram_value): Likewise.
22050 (stream_in_histogram_value): Likewise.
22051 (get_most_common_single_value): Likewise.
22052 (gimple_divmod_fixed_value_transform): Likewise.
22053 (gimple_stringops_transform): Likewise.
22054 (gimple_divmod_values_to_profile): Likewise.
22055 (gimple_stringops_values_to_profile): Likewise.
22056 (gimple_find_values_to_profile): Likewise.
22057 * value-prof.h (enum hist_type): Rename to TOPN.
22058 (gimple_gen_one_value_profiler): Remove.
22059 (gimple_gen_topn_values_profiler): New.
22060
22061 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22062
22063 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22064 if it has the DW_AT_data_member_location attribute.
22065
22066 2019-07-03 Richard Biener <rguenther@suse.de>
22067
22068 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22069 dumping.
22070
22071 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22072
22073 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22074 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22075 (tlsdesc_small_sve_<mode>): Likewise.
22076
22077 2019-07-03 Martin Liska <mliska@suse.cz>
22078
22079 * Makefile.in: Define ZSTD_LIB.
22080 * common.opt: Adjust compression level
22081 to support also zstd levels.
22082 * config.in: Regenerate.
22083 * configure: Likewise.
22084 * configure.ac: Add --with-zstd and --with-zstd-include options
22085 and detect ZSTD.
22086 * doc/install.texi: Mention zstd dependency.
22087 * gcc.c: Print supported LTO compression algorithms.
22088 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22089 (lto_compression_zstd): Likewise.
22090 (lto_uncompression_zstd): Likewise.
22091 (lto_end_compression): Dispatch in between zlib and zstd.
22092 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22093 (lto_uncompression_zlib): Make it static.
22094 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22095 * lto-section-in.c (lto_get_section_data): Pass info
22096 about used compression.
22097 * lto-streamer-out.c: By default use zstd when possible.
22098 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22099 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22100
22101 2019-07-03 Martin Liska <mliska@suse.cz>
22102
22103 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22104 * lto-section-out.c (lto_destroy_simple_output_block): Never
22105 compress LTO_section_lto section.
22106 * lto-streamer-out.c (produce_asm): Do not set major_version
22107 and minor_version.
22108 (lto_output_toplevel_asms): Likewise.
22109 (produce_lto_section): New function.
22110 (lto_output): Call produce_lto_section.
22111 (lto_write_mode_table): Do not set major_version and
22112 minor_version.
22113 (produce_asm_for_decls): Likewise.
22114 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22115 type.
22116 (struct lto_header): Remove.
22117 (struct lto_section): New struct.
22118 (struct lto_simple_header): Do not inherit from lto_header.
22119 (struct lto_file_decl_data): Add lto_section_header field.
22120
22121 2019-07-03 Martin Liska <mliska@suse.cz>
22122
22123 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22124 dead assignemts.
22125 * reg-stack.c (check_asm_stack_operands): Likewise.
22126 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22127 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22128 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22129 force_expand_binop.
22130
22131 2019-07-03 Martin Liska <mliska@suse.cz>
22132
22133 PR tree-optimization/90892
22134 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22135 in string constants.
22136
22137 2019-07-03 Martin Liska <mliska@suse.cz>
22138
22139 PR middle-end/90899
22140 * multiple_target.c (create_dispatcher_calls): Add to comdat
22141 group only if set for ifunc.
22142
22143 2019-07-03 Martin Liska <mliska@suse.cz>
22144
22145 PR target/88056
22146 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22147 Define local_object_name in outer scope in order to handle
22148 use-after-scope issue.
22149
22150 2019-07-03 Martin Liska <mliska@suse.cz>
22151
22152 * common.opt: Add fprofile-note.
22153 * coverage.c (coverage_init): Append the option
22154 to bbg_file_name.
22155 * doc/invoke.texi: Document -fprofile-note.
22156
22157 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22158
22159 PR tree-optimization/91033
22160 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22161 vect_analyze_data_refs): Add bool * arguments.
22162 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22163 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22164 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22165 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22166 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22167 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22168 vect_analyze_data_refs caller.
22169
22170 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22171 clause.
22172 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22173 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22174 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22175 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22176 OMP_CLAUSE__SCANTEMP_ entry.
22177 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22178 * tree-pretty-print.c (dump_omp_clause): Likewise.
22179 * tree-nested.c (convert_nonlocal_omp_clauses,
22180 convert_local_omp_clauses): Likewise.
22181 * omp-general.h (struct omp_for_data): Add have_scantemp and
22182 have_nonctrl_scantemp members.
22183 * omp-general.c (omp_extract_for_data): Initialize them.
22184 * omp-low.c (struct omp_context): Add scan_exclusive member.
22185 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22186 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22187 ctx->scan_exclusive.
22188 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22189 of !ctx->scan_inclusive.
22190 (lower_rec_input_clauses): Simplify gimplification of dtors using
22191 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22192 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22193 loops. Don't add barrier for reduction_omp_orig_ref if
22194 ctx->scan_??xclusive.
22195 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22196 (lower_omp_scan): Use ctx->scan_exclusive instead
22197 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22198 reductions. Use new_vard != new_var instead of repeated
22199 omp_is_reference calls.
22200 (omp_find_scan, lower_omp_for_scan): New functions.
22201 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22202 inscan reductions.
22203 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22204 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22205 and fd->have_scantemp.
22206
22207 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22208 on worksharing loop propagate it as shared clause to containing
22209 combined parallel.
22210
22211 * omp-expand.c (expand_omp_for_static_nochunk,
22212 expand_omp_for_static_chunk): For nowait worksharing loop with
22213 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22214 at the end.
22215
22216 2019-07-02 qing zhao <qing.zhao@oracle.com>
22217
22218 PR preprocessor/90581
22219 * doc/cppopts.texi: Add document for -fmax-include-depth.
22220 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22221
22222 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22223
22224 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22225 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22226 (mmx_packssdw): Ditto.
22227 (mmx_punpckhbw): Ditto.
22228 (mmx_punpcklbw): Ditto.
22229 (mmx_punpckhwd): Ditto.
22230 (mmx_punpcklwd): Ditto.
22231 (mmx_punpckhdq): Ditto.
22232 (mmx_punpckldq): Ditto.
22233 (*vec_dupv4hi): Ditto.
22234 (*vec_dupv2si): Ditto.
22235 (mmx_pmovmskb): Ditto.
22236 * config/i386/sse.md (sse_cvtpi2ps): Use
22237 TARGET_SSE2 && SSE_REG_P in split condition.
22238 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22239 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22240 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22241 (ssse3_pshufbv8qi3): Ditto.
22242 (ssse3_palignrdi): Ditto.
22243
22244 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22245
22246 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22247 with inlined save and restore.
22248
22249 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22250
22251 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22252 to be inserted on single successor edge of the entry block. Then call
22253 commit_edge_insertions instead of inserting the instructions manually.
22254 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22255 RTL expansion and rebuild jump labels chain.
22256
22257 2019-07-02 Richard Biener <rguenther@suse.de>
22258
22259 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22260 TI_CHREC_KNOWN.
22261 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22262 Define here.
22263 * tree.c (build_common_tree_nodes): Initialize them.
22264 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22265 Make declarations comments.
22266 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22267 chrec_known): Remove definitions.
22268 (initialize_scalar_evolutions_analyzer): Remove.
22269 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22270 * tree-streamer.c (preload_common_nodes): Do not preload
22271 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22272
22273 2019-07-02 Jan Hubicka <jh@suse.cz>
22274
22275 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22276 sanity check.
22277
22278 2019-07-02 Jan Hubicka <jh@suse.cz>
22279
22280 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22281 to ..
22282 (nonoverlapping_component_refs_since_match_p): ... this one;
22283 handle also non-decl bases; return -1 if search gave up.
22284 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22285 nonoverlapping_component_refs_of_decl_p_no_alias to
22286 nonoverlapping_component_refs_since_match_p_may_alias,
22287 nonoverlapping_component_refs_since_match_p_no_alias.
22288 (dump_alias_stats): Update dumping.
22289 (aliasing_matching_component_refs_p): Break out from ...;
22290 dispatch to nonoverlapping_component_refs_for_decl_p
22291 and nonoverlapping_component_refs_since_match_p.
22292 (aliasing_component_refs_p): ... here; call
22293 nonoverlapping_component_refs_p in scenarios where we can not
22294 precisely determine base match.
22295 (decl_refs_may_alias_p): Use
22296 nonoverlapping_component_refs_since_match_p.
22297 (indirect_ref_may_alias_decl_p): Do not call
22298 nonoverlapping_component_refs_p.
22299 (indirect_refs_may_alias_p): Likewise.
22300
22301 2019-07-02 Jan Hubicka <jh@suse.cz>
22302
22303 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22304 to clobber of return value.
22305
22306 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22307
22308 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22309 for is_neon_type instructions that have not already been categorized.
22310
22311 2019-07-02 Richard Biener <rguenther@suse.de>
22312
22313 PR tree-optimization/58483
22314 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22315 for MEM_REF base hashing.
22316 (equal_mem_array_ref_p): Likewise for base comparison.
22317
22318 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22319
22320 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22321 parameterized name.
22322 (signbit<mode>2): Use that name. Simplify.
22323
22324 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22325
22326 PR middle-end/66726
22327 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22328 Tune heuristic from PR71016 to allow MIN / MAX.
22329
22330 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22331
22332 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22333 parameterized name.
22334 (abs<mode>2): Use that name. Simplify.
22335
22336 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22337
22338 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22339 parameterized name.
22340 (neg<mode>2): Use that name. Simplify.
22341
22342 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22343
22344 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22345 name.
22346 (abs<mode>2): Use that name. Simplify.
22347
22348 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22349
22350 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22351 name.
22352 (neg<mode>2): Use that name. Simplify.
22353
22354 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22355
22356 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22357 ("enabled" attribute): Handle sse_noavx isa attribute.
22358 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22359 Use TARGET_SSE && SSE_REGNO_P in split condition.
22360 (*vec_dupv2sf): Ditto.
22361
22362 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22363
22364 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22365 name.
22366 (floatsi<mode>2): Use that name. Simplify.
22367
22368 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22369
22370 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22371 parameterized name.
22372 (extenddf<mode>2_vsx): Make this a parameterized name.
22373 (extenddf<mode>2): Use those names. Simplify.
22374
22375 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22376
22377 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22378 name.
22379 (eh_return): Use that name. Simplify.
22380
22381 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22382
22383 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22384 (doloop_end): Use that name. Simplify.
22385
22386 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22387
22388 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22389 parameterized name.
22390 (indirect_jump): Use that name. Simplify.
22391
22392 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22393
22394 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22395 parameterized name.
22396 (abs<mode>2): Use that name. Simplify.
22397
22398 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22399
22400 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22401 parameterized name.
22402 (fix_trunc<mode>si2): Use that name. Simplify.
22403
22404 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22405
22406 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22407 (allocate_stack): Use that name. Simplify.
22408
22409 2019-07-01 Martin Sebor <msebor@redhat.com>
22410
22411 PR middle-end/90923
22412 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22413 (hash_map::get_or_insert): Same. Reformat comment.
22414 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22415 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22416 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22417 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22418 (hash_table::hash_table (const hash_table&)): Use copy ctor
22419 instead of assignment to copy elements.
22420
22421 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22422 John David Anglin <danglin@gcc.gnu.org>
22423
22424 PR target/90963
22425 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22426 using saved frame pointer.
22427
22428 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22429
22430 PR middle-end/64242
22431 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22432 Add frame clobber and schedule blockage.
22433
22434 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22435
22436 * doc/invoke.texi (Link Options): Further editorial changes to
22437 -flinker-output docs.
22438
22439 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22440
22441 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22442 Load both operands of a PLUS into registers separately.
22443
22444 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22445
22446 * config/s390/vector.md: Fix shift count operand printing.
22447
22448 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22449
22450 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22451
22452 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22453
22454 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22455 Use recog_data to test for an output operand.
22456
22457 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22458
22459 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22460 exclude any others that are disparaged or that are bound to need
22461 a reload or spill.
22462 (ira_get_dup_out_num): Expand comment.
22463
22464 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22465
22466 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22467 constraint string for each operand/alternative combo. Only handle
22468 '%' at the start of constraint strings, and look for it outside
22469 the main loop.
22470
22471 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22472
22473 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22474 alternative_mask instead of HARD_REG_SET to represent a
22475 bitmask of alternatives.
22476 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22477 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22478
22479 2019-07-01 Martin Liska <mliska@suse.cz>
22480
22481 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22482 use () for a constructor call.
22483 (test_applying_fixits_line_out_of_range): Likewise.
22484 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22485 argument.
22486 (free_page): Likewise.
22487
22488 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22489
22490 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22491 parameter names to match usage (no functional change).
22492 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22493
22494 2019-07-01 Richard Biener <rguenther@suse.de>
22495
22496 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22497 pass parameter.
22498 (pass_fre::execute): Honor it.
22499 * passes.def: Adjust pass_fre invocations to allow iterating,
22500 add non-iterating pass_fre before late threading/dom.
22501
22502 2019-07-01 Richard Biener <rguenther@suse.de>
22503
22504 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22505 TARGET_MEM_REF handling to also handle address-taken ones.
22506
22507 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22508
22509 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22510 hardware attributes): Document avx512vp2intersect.
22511
22512 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22513
22514 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22515 (abs<mode>2): New expander.
22516 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22517 Use CODE_FOR_ssse3_absv8qi2.
22518 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22519 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22520
22521 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22522
22523 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22524 to sse, sse_noavx and avx. Update all uses.
22525
22526 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22527
22528 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22529 (*mmx_<plusminus_insn><mode>3): Ditto.
22530 (*mmx_mulv4hi3"): Ditto.
22531 (*mmx_smulv4hi3_highpart): Ditto.
22532 (*mmx_umulv4hi3_highpart): Ditto.
22533 (*mmx_pmaddwd): Ditto.
22534 (*sse2_umulv1siv1di3): Ditto.
22535 (*mmx_<code>v4hi3): Ditto.
22536 (*mmx_<code>v8qi3): Ditto.
22537 (mmx_ashr<mode>3): Ditto.
22538 ("mmx_<shift_insn><mode>3): Ditto.
22539 (*mmx_eq<mode>3): Ditto.
22540 (mmx_gt<mode>3): Ditto.
22541 (mmx_andnot<mode>3): Ditto.
22542 (*mmx_<code><mode>3): Ditto.
22543 (*mmx_pinsrw): Ditto.
22544 (*mmx_pextrw): Ditto.
22545 (mmx_pshufw_1): Ditto.
22546 (*mmx_uavgv8qi3): Ditto.
22547 (*mmx_uavgv4hi3): Ditto.
22548 ("mmx_psadbw): Ditto.
22549 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22550 (sse_cvttps2pi): Ditto.
22551 (ssse3_pmaddubsw): Ditto.
22552 (*ssse3_pmulhrswv4hi3): Ditto.
22553 (ssse3_psign<mode>3): Ditto.
22554
22555 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22556
22557 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22558 adjustment for bit-fields to all aggregate types.
22559
22560 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22561
22562 * config/rs6000/predicates.md (pcrel_address): Use
22563 SYMBOL_REF_LOCAL_P to determine if a label is local.
22564 (pcrel_external_address): New predicate.
22565 (non_prefixed_mem_operand): Delete, predicate not used.
22566 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22567 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22568 addressing.
22569 (SYMBOL_REF_PCREL_P): Likewise.
22570
22571 PR target/91009
22572 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22573 alternative.
22574 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22575 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22576 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22577
22578 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22579
22580 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22581 override on extra_headers.
22582
22583 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22584
22585 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22586 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22587 from warning.
22588 (darwin_driver_init): Likewise.
22589
22590 2019-06-28 Jan Beulich <jbeulich@suse.com>
22591
22592 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22593 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22594 Eliminate redundant alternative.
22595
22596 2019-06-28 Jan Beulich <jbeulich@suse.com>
22597
22598 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22599 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22600 Use vector_operand.
22601
22602 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22603
22604 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22605 having a lower cost regardless of the speed option.
22606
22607 2019-06-28 Jan Beulich <jbeulich@suse.com>
22608
22609 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22610 vector_operand plus, on both alternatives, "Bm" constraint.
22611
22612 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22613
22614 * config/arm/arm.md: Remove redundant constraints from
22615 define_expand but leave reload_inm and reload_outm patterns
22616 untouched since they need special constraints to work.
22617 * config/arm/arm-fixed.md: Remove redundant constraints from
22618 define_expand.
22619 * config/arm/iwmmxt.md: Likewise.
22620 * config/arm/neon.md: Likewise.
22621 * config/arm/sync.md: Likewise.
22622 * config/arm/thumb1.md: Likewise.
22623 * config/arm/vec-common.md: Likewise.
22624
22625 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22626
22627 * doc/install.texi: Document --disable-tm-clone-registry.
22628
22629 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22630
22631 PR c++/91024
22632 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22633 statements.
22634
22635 PR tree-optimization/91010
22636 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22637 return true. Otherwise, don't call operand_equal_p if offset1 or
22638 offset2 is NULL and just return false.
22639
22640 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22641
22642 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22643 user-specified float mode choice for kernel mode code.
22644
22645 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22646
22647 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22648 spec.
22649
22650 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22651
22652 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22653 use longcall for 64b code.
22654
22655 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22656
22657 * builtins.c (get_memory_rtx): Fix comment.
22658 * optabs.def (movmem_optab): Change to cpymem_optab.
22659 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22660 (emit_block_move_hints): Change movmem to cpymem.
22661 * defaults.h: Change movmem to cpymem.
22662 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22663 (default_use_by_pieces_infrastructure_p): Ditto.
22664 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22665 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22666 to cpymem.
22667 * config/aarch64/aarch64.h: Change movmem to cpymem.
22668 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22669 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22670 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22671 movmem to cpymem.
22672 * config/arc/arc-protos.h: Change movmem to cpymem.
22673 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22674 * config/arc/arc.h: Change movmem to cpymem in comment.
22675 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22676 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22677 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22678 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22679 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22680 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22681 * config/avr/avr-protos.h: Change movmem to cpymem.
22682 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22683 avr_out_movmem): Change movmem to cpymem.
22684 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22685 Change movmem to cpymem.
22686 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22687 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22688 Change movmem to cpymem.
22689 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22690 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22691 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22692 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22693 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22694 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22695 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22696 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22697 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22698 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22699 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22700 expand_small_cpymem_or_setmem,
22701 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22702 expand_set_or_cpymem_constant_prologue,
22703 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22704 * config/i386/i386-protos.h: Change movmem to cpymem.
22705 * config/i386/i386.h: Change movmem to cpymem in comment.
22706 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22707 (setmem<mode>): Change expansion function name.
22708 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22709 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22710 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22711 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22712 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22713 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22714 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22715 to cpymem.
22716 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22717 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22718 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22719 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22720 Change movmem to cpymem.
22721 * config/mips/mips.h: Change movmem to cpymem.
22722 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22723 * config/nds32/nds32-memory-manipulation.c
22724 (nds32_expand_movmemsi_loop_unknown_size,
22725 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22726 nds32_expand_movmemsi_unroll,
22727 nds32_expand_movmemsi): Change movmem to cpymem.
22728 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22729 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22730 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22731 (pa_adjust_insn_length): Change call to compute_movmem_length.
22732 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22733 movmemdi, movmemdi_prereload,
22734 movmemdi_postreload): Change movmem to cpymem.
22735 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22736 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22737 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22738 * config/riscv/riscv.h: Change movmem to cpymem.
22739 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22740 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22741 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22742 movmem to cpymem.
22743 * config/s390/s390-protos.h: Change movmem to cpymem.
22744 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22745 s390_expand_insv): Change movmem to cpymem.
22746 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22747 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22748 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22749 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22750 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22751 for nonexistent function.
22752 * config/vax/vax.h: Change movmem to cpymem in comment.
22753 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22754 * config/visium/visium.h: Change movmem to cpymem in comment.
22755 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22756 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22757 * doc/md.texi: Change movmem to cpymem and update description to match.
22758 * doc/rtl.texi: Change movmem to cpymem.
22759 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22760 * doc/tm.texi: Regenerate.
22761
22762 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22763
22764 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22765 -fvariable-expansion-in-unroller by default.
22766 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22767 default for Power.
22768
22769 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22770
22771 Revert
22772 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22773 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22774
22775 * config.gcc(rs6000-*-*): Define target_gtfiles.
22776
22777 2019-06-27 Jan Hubicka <jh@suse.cz>
22778
22779 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22780 (add_type_duplicate): When odr hash is not allocated, to nothing.
22781 (odr_based_tbaa_p): New function.
22782 (set_type_canonical_for_odr_type): New function.
22783 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22784 set_type_canonical_for_odr_type): New.
22785 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22786 ODR based TBAA are not equivalent to non-ODR types.
22787
22788 2019-06-27 Martin Liska <mliska@suse.cz>
22789
22790 PR tree-optimization/90974
22791 PR rtl-optimization/90975
22792 PR rtl-optimization/90976
22793 PR target/91016
22794 PR tree-optimization/91017
22795 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22796 unused tmp.
22797 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22798 initial commit of IRA.
22799 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22800 of op0 and op1.
22801 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22802 Remove unused mode1.
22803 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22804 to new_stmt_info.
22805
22806 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22807
22808 PR target/90991
22809 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22810 instead of register_operand for operands[1], add m to its constraints
22811 if operands[2] uses "C" constraint. Ensure in condition that if
22812 operands[2] is not 0, then operands[1] is not a MEM. For last two
22813 alternatives, use unaligned loads instead of aligned if operands[1] is
22814 misaligned_operand.
22815
22816 2019-06-27 Martin Liska <mliska@suse.cz>
22817
22818 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22819 dead assignments.
22820 * bt-load.c (move_btr_def): Likewise.
22821 * builtins.c (expand_builtin_apply_args_1): Likewise.
22822 (expand_builtin_apply): Likewise.
22823 * cfgexpand.c (expand_asm_stmt): Likewise.
22824 (construct_init_block): Likewise.
22825 * cfghooks.c (verify_flow_info): Likewise.
22826 * cfgloopmanip.c (remove_path): Likewise.
22827 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22828 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22829 * combine.c (simplify_if_then_else): Likewise.
22830 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22831 (choose_basereg): Likewise.
22832 (ix86_expand_prologue): Likewise.
22833 (ix86_preferred_output_reload_class): Likewise.
22834 * cselib.c (cselib_record_sets): Likewise.
22835 * df-scan.c (df_scan_alloc): Likewise.
22836 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22837 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22838 * emit-rtl.c (try_split): Likewise.
22839 * graphite-scop-detection.c (assign_parameter_index_in_region):
22840 Likewise.
22841 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22842 * ira-color.c (setup_profitable_hard_regs): Likewise.
22843 * ira.c (rtx_moveable_p): Likewise.
22844 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22845 * read-rtl.c (read_subst_mapping): Likewise.
22846 * regrename.c (scan_rtx): Likewise.
22847 * reorg.c (fill_slots_from_thread): Likewise.
22848 * tree-inline.c (tree_function_versioning): Likewise.
22849 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22850 * tree-ssa-sink.c (statement_sink_location): Likewise.
22851 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22852 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22853 (vect_create_epilog_for_reduction): Likewise.
22854 * tree.c (build_nonstandard_integer_type): Likewise.
22855
22856 2019-06-27 Richard Biener <rguenther@suse.de>
22857
22858 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22859
22860 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22861
22862 PR tree-optimization/89772
22863 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22864 out-of-bound accesses checking.
22865
22866 2019-06-27 Martin Liska <mliska@suse.cz>
22867
22868 PR tree-optimization/91014
22869 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22870 when LHS is NULL_TREE.
22871
22872 2019-06-27 Martin Liska <mliska@suse.cz>
22873
22874 * symbol-summary.h (traverse): Pass
22875 argument a to the call of callback.
22876 (gt_ggc_mx): Mark arguments as unused.
22877 (gt_pch_nx): Likewise.
22878
22879 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22880
22881 PR target/62147
22882 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22883 finiteness.
22884
22885 2019-06-26 Jeff Law <law@redhat.com>
22886
22887 PR tree-optimization/90883
22888 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22889 (delete_dead_or_redundant_assignment): Likewise.
22890
22891 PR tree-optimization/90883
22892 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22893 * tree-ssa-dse.c: Update various comments to distinguish between
22894 dead and redundant stores.
22895 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22896 (dse_optimize_redundant_stores): New function.
22897 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22898 Distinguish between dead and redundant calls in dump output. All
22899 callers updated.
22900 (delete_dead_or_redundant_assignment): Similarly for assignments.
22901 (dse_optimize_stmt): Handle _CHK variants. For statements which
22902 store 0 into multiple memory locations, try to prove a subsequent
22903 store is redundant.
22904
22905 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22906
22907 PR target/89021
22908 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22909 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22910
22911 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22912
22913 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22914 (branch_islands): New extern.
22915 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22916 * config/rs6000/rs6000.c: .. here.
22917
22918 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22919
22920 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22921 (powerpc*-*-*) ... to here.
22922
22923 2019-06-26 Jeff Law <law@redhat.com>
22924
22925 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22926 memcpy, memmove and memset builtins.
22927 (maybe_trim_memstar_call): Likewise.
22928
22929 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22930
22931 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22932
22933 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22934
22935 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22936
22937 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22938
22939 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22940 declaration.
22941 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22942 "static".
22943 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22944 declaration.
22945
22946 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22947
22948 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22949
22950 2019-06-26 Richard Biener <rguenther@suse.de>
22951
22952 PR ipa/90982
22953 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22954
22955 2019-06-26 Richard Biener <rguenther@suse.de>
22956
22957 * lto-streamer.h (lto_bitmap_alloc): Remove.
22958 (lto_bitmap_free): Likewise.
22959 * lto-streamer.c (lto_bitmap_alloc): Remove.
22960 (lto_bitmap_free): Likewise.
22961 (lto_obstack): Likewise.
22962 (lto_obstack_initialized): Likewise.
22963 * lto-streamer-out.c (lto_output): Use own obstack for local
22964 bitmap, free it consistently.
22965
22966 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22967
22968 PR target/90991
22969 * config/i386/sse.md
22970 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22971 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22972 insns if operands[2] is misaligned_operand.
22973
22974 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22975
22976 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22977 TARGET_POWERPC64.
22978 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22979 to GPR.
22980
22981 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22982
22983 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22984
22985 2019-06-26 Martin Liska <mliska@suse.cz>
22986
22987 PR tree-optimization/90973
22988 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22989 epilogue_cost_vec instead of prologue_cost_vec for
22990 a epilogue cost.
22991
22992 2019-06-26 Martin Liska <mliska@suse.cz>
22993
22994 * bb-reorder.c (connect_better_edge_p): Add missing else
22995 statement in the middle of if-else statements.
22996
22997 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22998 H.J. Lu <hongjiu.lu@intel.com>
22999 Olga Makhotina <olga.makhotina@intel.com>
23000
23001 * common/config/i386/i386-common.c
23002 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23003 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23004 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23005 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23006 (ix86_handle_option): Handle -mavx512vp2intersect.
23007 * config/i386/avx512vp2intersectintrin.h: New.
23008 * config/i386/avx512vp2intersectvlintrin.h: New.
23009 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23010 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23011 AVX512VP2INTERSECT.
23012 * config/i386/i386-builtin-types.def: Add new types.
23013 * config/i386/i386-builtin.def: Add new builtins.
23014 * config/i386/i386-builtins.c: (enum processor_features): Add
23015 F_AVX512VP2INTERSECT.
23016 (static const _isa_names_table isa_names_table): Ditto.
23017 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23018 __AVX512VP2INTERSECT__.
23019 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23020 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23021 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23022 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23023 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23024 * config/i386/i386-options.c (ix86_target_string): Add
23025 -mavx512vp2intersect.
23026 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23027 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23028 P2HImode and P2QImode.
23029 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23030 number for P2QImode and P2HImode.
23031 (ix86_regmode_natural_size): New function.
23032 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23033 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23034 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23035 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23036 * config/i386/i386.opt: Add -mavx512vp2intersect.
23037 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23038 avx512vp2intersectvlintrin.h.
23039 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23040 (define_mode_iterator VI48_AVX512VP2VL): New.
23041 (avx512vp2intersect_2intersect<mode>,
23042 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23043 * config.gcc: Add avx512vp2intersectvlintrin.h and
23044 avx512vp2intersectintrin.h to extra_headers.
23045 * doc/invoke.texi: Document -mavx512vp2intersect.
23046
23047 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23048
23049 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23050
23051 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23052
23053 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23054 savres_routine_syms, savres_routine_name, morestack_ref,
23055 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23056 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23057 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23058 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23059 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23060 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23061 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23062 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23063 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23064 get_stack_clash_protection_probe_interval,
23065 get_stack_clash_protection_guard_size,
23066 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23067 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23068 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23069 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23070 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23071 gen_frame_mem_offset, rs6000_savres_routine_name,
23072 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23073 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23074 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23075 rs6000_global_entry_point_prologue_needed_p,
23076 rs6000_get_separate_components, rs6000_components_for_bb,
23077 rs6000_disqualify_components, rs6000_emit_prologue_components,
23078 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23079 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23080 rs6000_output_savres_externs, rs6000_output_function_prologue,
23081 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23082 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23083 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23084 rs6000_output_function_epilogue, gen_add3_const,
23085 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23086 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23087 to rs6000-logue.c.
23088 (machine_function): Moved to rs6000.h.
23089 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23090 rs6000-internal.h.
23091 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23092 savres_routine_syms, savres_routine_name, morestack_ref,
23093 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23094 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23095 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23096 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23097 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23098 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23099 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23100 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23101 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23102 get_stack_clash_protection_probe_interval,
23103 get_stack_clash_protection_guard_size,
23104 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23105 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23106 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23107 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23108 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23109 gen_frame_mem_offset, rs6000_savres_routine_name,
23110 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23111 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23112 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23113 rs6000_global_entry_point_prologue_needed_p,
23114 rs6000_get_separate_components, rs6000_components_for_bb,
23115 rs6000_disqualify_components, rs6000_emit_prologue_components,
23116 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23117 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23118 rs6000_output_savres_externs, rs6000_output_function_prologue,
23119 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23120 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23121 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23122 rs6000_output_function_epilogue, gen_add3_const,
23123 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23124 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23125 to here from rs6000.c.
23126 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23127 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23128 quad_address_offset_p) Moved to here from rs6000.c.
23129 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23130 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23131 collector.
23132
23133 2019-06-25 Martin Liska <mliska@suse.cz>
23134
23135 * hash-table.c (hashtab_chk_error): Move here from ...
23136 * hash-table.h (hashtab_chk_error): ... here.
23137
23138 2019-06-25 Martin Liska <mliska@suse.cz>
23139
23140 PR tree-optimization/90978
23141 * df-scan.c (df_update_entry_block_defs): Remove dead else
23142 branch.
23143 (df_update_exit_block_uses): Likewise.
23144
23145 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23146 Andrew Stubbs <ams@codesourcery.com>
23147
23148 * config.gcc (thread_file): Set to gcn for AMD GCN.
23149 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23150 (TARGET_EMUTLS_VAR_INIT): New hook.
23151
23152 2019-06-25 Martin Jambor <mjambor@suse.cz>
23153
23154 PR ipa/90939
23155 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23156
23157 2019-06-25 Richard Biener <rguenther@suse.de>
23158
23159 PR tree-optimization/90930
23160 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23161 into parallel form in the last pass instance.
23162
23163 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23164
23165 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23166 (arc_legitimize_pic_address): Simplify and cleanup the function.
23167 (SYMBOLIC_CONST): Remove.
23168 (prepare_pic_move): Likewise.
23169 (prepare_move_operands): Handle complex mov cases here.
23170 (arc_legitimize_address_0): Remove call to
23171 arc_legitimize_pic_address.
23172 (arc_legitimize_address): Remove call to
23173 arc_legitimize_tls_address.
23174 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23175 (movhi_insn): Likewise.
23176
23177 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23178
23179 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23180 PTRDIFF_TYPE.
23181 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23182 format of "__intN" types for UINTMAX_TYPE.
23183 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23184 format of "__intN" types for SIZETYPE.
23185 * tree.c (build_common_tree_nodes): Accept "__intN__"
23186 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23187 * doc/invoke.texi: Document that __intN__ disables pedantic
23188 warnings.
23189
23190 2019-06-25 Jan Hubicka <jh@suse.cz>
23191
23192 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23193 base2_alias_set is non-zero before doing TBAA based disambiguation.
23194
23195 2019-06-25 Martin Liska <mliska@suse.cz>
23196
23197 PR tree-optimization/90973
23198 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23199 of prologue and epilogue.
23200
23201 2019-06-24 Jan Hubicka <jh@suse.cz>
23202
23203 * ipa-utils.h (type_with_linkage_p): Verify that type is
23204 CXX_ODR_P.
23205 (odr_type_p): Remove extra return.
23206 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23207 hash STRING_FLAG only for arrays and integers.
23208 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23209 Update analogously.
23210 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23211 Likewise.
23212 * print-tree.c (print_node): Print cxx-odr-p
23213 and string-flag.
23214 * tree.c (need_assembler_name_p): Also check that type
23215 is CXX_ODR_TYPE_P
23216 (verify_type_variant): Update verification of SRING_FLAG;
23217 also check CXX_ODR_P.
23218 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23219 (TYPE_STRING_FLAG): Use it.
23220 (TYPE_CXX_ODR_P): New macro.
23221 * dwarf2out.c (gen_array_type_die): First check that type
23222 is an array and then test string flag.
23223
23224 2019-06-24 Richard Biener <rguenther@suse.de>
23225
23226 PR tree-optimization/90972
23227 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23228 in common code, dealing with STRING_CST properly.
23229
23230 2019-06-24 Richard Biener <rguenther@suse.de>
23231
23232 PR tree-optimization/90930
23233 PR tree-optimization/90316
23234 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23235 decrement of limit.
23236
23237 2019-06-24 Martin Sebor <msebor@redhat.com>
23238
23239 * tree-pretty-print.h: Remove unnecessary punctuation characters
23240 from a diagnostic.
23241 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23242
23243 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23244
23245 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23246 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23247 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23248
23249 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23250
23251 * config/rs6000/darwin.h: Handle GCC target pragma.
23252
23253 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23254
23255 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23256
23257 2019-06-22 Jeff Law <law@redhat.com>
23258
23259 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23260
23261 2019-06-22 Jan Hubicka <jh@suse.cz>
23262
23263 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23264 give up on bitfields; continue searching for different refs
23265 appearing later.
23266
23267 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23268
23269 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23270 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23271 containing the offset as possible simd lane access. Look through
23272 widening conversion. Move the
23273 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23274
23275 2019-06-21 Richard Biener <rguenther@suse.de>
23276
23277 PR tree-optimization/90930
23278 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23279 flag on new stmts to avoid re-processing them.
23280
23281 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23282
23283 PR c++/90875 - added -Wswitch-outside-range option
23284 * doc/invoke.texi (Wswitch-outside-range): Document.
23285
23286 2019-06-21 Jeff Law <law@redhat.com>
23287
23288 PR tree-optimization/90949
23289 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23290 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23291
23292 2019-06-21 Richard Biener <rguenther@suse.de>
23293
23294 PR debug/90914
23295 * dwarf2out.c (prune_unused_types_walk): Always consider
23296 function-local extern declarations as used.
23297
23298 2019-06-21 Richard Biener <rguenther@suse.de>
23299
23300 PR tree-optimization/90913
23301 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23302 the scalar variant of if-conversion versioning.
23303
23304 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23305
23306 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23307 create another "omp scan inscan exclusive" array if
23308 !ctx->scan_inclusive.
23309 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23310 (lower_omp_scan): Likewise.
23311 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23312 2-bit bitfield for simd_lane_access_p member.
23313 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23314 aux == (void *)-4 as simd lane access.
23315 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23316 comment with permutations to show the canonical permutation order.
23317 (vectorizable_scan_store): Handle exclusive scan.
23318 (vectorizable_store): Call vectorizable_scan_store even for
23319 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23320
23321 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23322 "omp simd array" arrays with one byte elements.
23323
23324 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23325
23326 * config/alpha/alpha.md (@unaligned_store<mode>):
23327 Rename from unaligned_store<mode>.
23328 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23329 * config/alpha/sync.md (@load_locked_<mode>): Rename
23330 from load_locked_<mode>.
23331 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23332 (@atomic_compare_and_swap<mode>_1): Rename
23333 from atomic_compare_and_swap<mode>_1.
23334 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23335 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23336 Use gen_reload_in_aligned and gen_unaligned_store.
23337 (emit_load_locked): Remove.
23338 (emit_store_conditional): Ditto.
23339 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23340 (alpha_split_compare_and_swap): Ditto.
23341 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23342 (alpha_split_compare_and_swap_12): Use gen_load_locked
23343 and gen_store_conditional.
23344 (alpha_split_atomic_exchange): Ditto.
23345 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23346 (alpha_split_atomic_exchange_12): Use gen_load_locked
23347 and gen_store_conditional.
23348
23349 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23350
23351 * config/aarch64/aarch64-errata.h: New file.
23352 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23353 (CA53_ERR_843419_SPEC): Delete.
23354 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23355 * config/aarch64/aarch64-linux.h: Likewise.
23356 * config/aarch64/aarch64-netbsd.h: Likewise.
23357 * config/aarch64/aarch64-freebsd.h: Likewise.
23358
23359 2019-06-20 Marek Polacek <polacek@redhat.com>
23360
23361 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23362
23363 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23364
23365 * config/rs6000/rs6000.md (isa attribute): Add support for
23366 for a future processor.
23367
23368 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23369
23370 PR target/54855
23371 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23372 standard scalar operation pattern for V2DF.
23373 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23374 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23375 (*ieee_<ieee_maxmin><mode>3): Likewise.
23376 (vec_setv2df_0): Likewise.
23377
23378 2019-06-20 Jan Hubicka <jh@suse.cz>
23379
23380 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23381 parameter; it has no use in gimple memory model.
23382 (indirect_ref_may_alias_decl_p): Update.
23383
23384 2019-06-20 Martin Liska <mliska@suse.cz>
23385
23386 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23387 to 10.
23388
23389 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23390
23391 * tree-vect-stmts.c (enum scan_store_kind): New type.
23392 (scan_store_can_perm_p): Change last argument from int * to
23393 vec<enum scan_store_kind> *, record precisely which permutations
23394 need whole vector left shift or that plus VEC_COND_EXPR.
23395 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23396 and additional VEC_COND_EXPR only for those iterations that need it.
23397
23398 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23399
23400 * config.gcc: Fix ARM --with-fpu checking and error message.
23401
23402 2019-06-19 Marek Polacek <polacek@redhat.com>
23403
23404 PR c++/60364 - noreturn after first decl not diagnosed.
23405 * attribs.c (get_attribute_namespace): No longer static.
23406 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23407 attributes.
23408 (attr_noreturn_exclusions): Make it extern.
23409 * attribs.h (get_attribute_namespace): Declare.
23410 * tree-inline.c (function_attribute_inlinable_p): Use
23411 get_attribute_name.
23412
23413 2019-06-19 Martin Sebor <msebor@redhat.com>
23414
23415 PR tree-optimization/90626
23416 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23417
23418 PR tree-optimization/90626
23419 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23420 (handle_builtin_string_cmp): Call it.
23421
23422 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23423
23424 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23425 and DARWIN_NOPIE_SPEC.
23426 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23427 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23428 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23429 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23430 (DARWIN_EXPORT_DYNAMIC): Delete.
23431 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23432 and pie options processing to darwin.h.
23433 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23434
23435 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23436
23437 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23438 in computing the number of options to be moved.
23439
23440 2019-06-19 Maya Rashish <coypu@sdf.org>
23441
23442 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23443 (CLEAR_INSN_CACHE) Use it.
23444
23445 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23446
23447 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23448
23449 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23450
23451 PR middle-end/84521
23452 * builtins.c (expand_builtin_setjmp_setup): Save
23453 hard_frame_pointer_rtx.
23454 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23455 restore fp.
23456 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23457 non-local goto.
23458 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23459 elimination code.
23460 (remove_reg_equal_offset_note): Remove unused function.
23461 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23462 code.
23463 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23464 (arc_builtin_setjmp_frame_value): Remove function.
23465 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23466 (avr_builtin_setjmp_frame_value): Remove function.
23467 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23468 (ix86_builtin_setjmp_frame_value): Remove function.
23469 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23470 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23471 (sparc_builtin_setjmp_frame_value): Remove function.
23472 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23473 (vax_builtin_setjmp_frame_value): Remove function.
23474 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23475 pointer if has_nonlocal_label.
23476
23477 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23478
23479 * doc/md.texi: Document vec_shl_<mode> pattern.
23480 * optabs.def (vec_shl_optab): New optab.
23481 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23482 argument, if == vec_shl_optab, check for left whole vector shift
23483 pattern rather than right shift.
23484 (expand_vec_perm_const): Add vec_shl_optab support.
23485 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23486 in the comment.
23487 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23488 can be handled by vec_shl_optab.
23489 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23490 (check_scan_store): Use it.
23491 (vectorizable_scan_store): If target can't do normal permutations,
23492 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23493 after it.
23494 * config/i386/sse.md (vec_shl_<mode>): New expander.
23495
23496 * omp-low.c (lower_rec_input_clauses): Handle references properly
23497 in inscan clauses.
23498 (lower_omp_scan): Likewise.
23499
23500 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23501
23502 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23503 mem_mode is BLKmode.
23504
23505 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23506
23507 PR target/90922
23508 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23509 pointer adjustment for the case of no callee-saved registers and
23510 stack frame bigger than 128 bytes.
23511
23512 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23513
23514 PR middle-end/90862
23515 * omp-low.c (check_omp_nesting_restrictions): Handle
23516 GF_OMP_TARGET_KIND_OACC_DECLARE.
23517
23518 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23519
23520 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23521 (@add<mode>3_carry): Rename from add<mode>3_carry.
23522 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23523 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23524 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23525 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23526 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23527 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23528 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23529 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23530 (cmpstrnsi): Use gen_cmp_1.
23531 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23532 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23533 (@umonitor_<mode>): Rename from umonitor_<mode>.
23534 * config/i386/i386-expand.c (ix86_expand_copysign):
23535 Use gen_copysign3_const and gen_copysign3_var.
23536 (ix86_expand_xorsign): Use gen_xorsign3_1.
23537 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23538 gen_sub3_carry_ccgz and gen_cmp1.
23539 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23540 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23541 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23542 (ix86_split_lshr): Ditto.
23543 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23544
23545 2019-06-18 Jason Merrill <jason@redhat.com>
23546
23547 * tree.c (build_constructor): Add MEM_STAT_DECL.
23548
23549 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23550
23551 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23552 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23553 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23554 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23555 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23556 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23557 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23558 Use CC_NZC instead of CC.
23559 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23560 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23561 (aarch64_print_operand): Handle E_CC_NZCmode.
23562 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23563 of gen_set_clobber_cc.
23564
23565 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23566
23567 * config/aarch64/aarch64-sve.md: Tabify file.
23568
23569 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23570
23571 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23572 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23573 * config/aarch64/aarch64-sve.md: Use it.
23574
23575 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23576
23577 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23578 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23579 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23580 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23581 (aarch64_expand_sve_vec_cmp_int): Use it.
23582 (aarch64_expand_sve_vec_cmp_float): Likewise.
23583 * config/aarch64/aarch64-sve.md: Likewise throughout.
23584
23585 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23586 Kugan Vivekanandarajah <kuganv@linaro.org>
23587
23588 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23589 (*cond_<optab><mode>_z): Fold into...
23590 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23591 operand 4 can be tied to operand 0 (either inherently or via RA).
23592
23593 2019-06-18 Richard Biener <rguenther@suse.de>
23594
23595 PR debug/90900
23596 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23597 as if optimized away.
23598
23599 2019-06-18 Tom de Vries <tdevries@suse.de>
23600
23601 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23602 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23603 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23604 Rename to ...
23605 (define_insn "@set_softstack_<mode>"): ... this.
23606 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23607 (define_insn "@omp_simt_enter_<mode>"): ... this.
23608 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23609 (define_insn "@omp_simt_exit_<mode>"): ... this.
23610
23611 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23612
23613 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23614 vf parameter. Restore the previous iv step of nscalars_step,
23615 but give it iv_type rather than compare_type. Tweak code order
23616 to match the comments.
23617 (vect_set_loop_condition_masked): Update accordingly.
23618 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23619 for iv_precision. Tweak comment formatting.
23620
23621 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23622
23623 * config/darwin.c: Strip trailing whitespace.
23624
23625 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23626
23627 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23628 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23629
23630 2019-06-18 Martin Jambor <mjambor@suse.cz>
23631
23632 PR ipa/90889
23633 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23634 caller does not have flag_ipa_cp set.
23635
23636 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23637
23638 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23639 from "*fold_left_plus_<mode>", updated operands order.
23640 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23641 * internal-fn.c (mask_fold_left_direct): New define.
23642 (expand_mask_fold_left_optab_fn): Likewise.
23643 (direct_mask_fold_left_optab_supported_p): Likewise.
23644 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23645 * optabs.def (mask_fold_left_plus_optab): New optab.
23646 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23647 masked internal_fn for a reduction ifn.
23648 (vectorize_fold_left_reduction): Add support for masking reductions.
23649
23650 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23651
23652 PR middle-end/80791
23653 * target.def (predict_doloop_p): New hook.
23654 * targhooks.h (default_predict_doloop_p): New declaration.
23655 * targhooks.c (default_predict_doloop_p): New function.
23656 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23657 * doc/tm.texi: Regenerate.
23658 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23659 (TARGET_PREDICT_DOLOOP_P): New macro.
23660 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23661
23662 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23663
23664 * omp-low.c (struct omp_context): Add scan_inclusive field.
23665 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23666 if inclusive scan.
23667 (struct omplow_simd_context): Add lastlane member.
23668 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23669 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23670 1 or 2 argument.
23671 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23672 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23673 (lower_omp_scan): New function.
23674 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23675 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23676 check 3rd argument if present rather than 2nd.
23677 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23678 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23679 2-bit bitfield.
23680 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23681 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23682 than 2nd.
23683 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23684 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23685 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23686 init.
23687 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23688 IFN_GOMP_SIMD_LANE argument.
23689 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23690 encoded ->aux value.
23691 * tree-vect-stmts.c: Include attribs.h.
23692 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23693 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23694 functions.
23695 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23696 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23697
23698 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23699
23700 PR target/62055
23701 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23702 (*nabs<mode>2_1): Ditto.
23703 (nabs sse-reg splitter): New splitter.
23704 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23705
23706 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23707
23708 PR bootstrap/90873.
23709 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23710 TMR index check.
23711
23712 2019-06-17 Tom de Vries <tdevries@suse.de>
23713
23714 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23715 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23716 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23717 ...
23718 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23719 match_operand 0.
23720 (define_insn "omp_simt_enter_insn"): Rename to ...
23721 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23722 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23723 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23724 gen_omp_simt_enter_si.
23725 (define_expand "omp_simt_exit"): New.
23726 (define_insn "omp_simt_exit"): Rename to ...
23727 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23728 match_operand 0.
23729
23730 2019-06-17 Matthew Green <mrg@eterna.com.au>
23731 Maya Rashish <coypu@sdf.org>
23732
23733 * config.gcc (aarch64*-*-netbsd*): New target.
23734 * config/aarch64/aarch64-netbsd.h: New file.
23735 * config/aarch64/t-aarch64-netbsd: Likewise.
23736
23737 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23738
23739 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23740 the access path from base to first VIEW_CONVERT_EXPR or
23741 BIT_FIELD_REF.
23742
23743 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23744
23745 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23746 access path on BIT_FIELD_REFs.
23747
23748 2019-06-17 Martin Liska <mliska@suse.cz>
23749
23750 PR ipa/90874
23751 * ipa-utils.h (odr_type_p): Remove dead code.
23752
23753 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23754
23755 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23756 alternative Solaris 11.4 format.
23757 * configure: Regenerate.
23758
23759 2019-06-17 Tom de Vries <tdevries@suse.de>
23760
23761 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23762 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23763 match_operand 0.
23764 (define_insn "call_value_insn"): Rename to ...
23765 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23766 match_operand 0.
23767 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23768 DI.
23769
23770 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23771
23772 PR middle-end/64242
23773 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23774 frame clobbers and schedule block.
23775 (builtin_longjmp): Likewise.
23776
23777 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23778
23779 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23780 describe how to perform MSPABI compliant 64-bit shift.
23781 * config/msp430/msp430.md (ashldi3): New define_expand.
23782 (ashrdi3): New define_expand.
23783 (lshrdi3): New define_expand.
23784
23785 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23786
23787 * doc/sourcebuild.texi: Document new effective target keyword
23788 longlong64.
23789
23790 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23791
23792 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23793 indirect_refs_may_alias_p): Revert accidental commits.
23794
23795 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23796 at the end of structures.
23797
23798 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23799
23800 * config/darwin.c (machopic_indirect_call_target): Use renamed
23801 darwin_picsymbol_stubs to decide on output.
23802 (darwin_override_options): Handle darwin_picsymbol_stubs.
23803 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23804 (LD64_VERSION): Revise default.
23805 * config/darwin.opt: (mpic-symbol-stubs): New option.
23806 (darwin_picsymbol_stubs): New variable.
23807 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23808 rename to TARGET_MACHO_PICSYM_STUBS.
23809 * config/i386/i386.c (output_pic_addr_const): Likewise.
23810 * config/i386/i386.h Likewise.
23811 * config/rs6000/darwin.h: Likewise.
23812 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23813 darwin_picsymbol_stubs.
23814
23815 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23816
23817 * config/darwin.opt (prebind, noprebind, seglinkedit,
23818 noseglinkedit): Add RejectNegative.
23819
23820 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23821
23822 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23823 in my previous patch.
23824
23825 2019-06-16 Tom de Vries <tdevries@suse.de>
23826
23827 PR tree-optimization/89376
23828 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23829
23830 2019-06-15 Maya Rashish <coypu@sdf.org>
23831
23832 * doc/invoke.texi (Spec Files): Update location of the
23833 Fortran spec file.
23834
23835 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23836
23837 * doc/extend.texi (Common Function Attributes): Clarify
23838 no_sanitize. Fix grammar.
23839
23840 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23841
23842 * tree-ssa-alias.c (alias_stats): Add
23843 nonoverlapping_component_refs_p_may_alias,
23844 nonoverlapping_component_refs_p_no_alias,
23845 nonoverlapping_component_refs_of_decl_p_may_alias,
23846 nonoverlapping_component_refs_of_decl_p_no_alias.
23847 (dump_alias_stats): Dump them.
23848 (nonoverlapping_component_refs_of_decl_p): Add stats.
23849 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23850 ARRAY_REF.
23851
23852 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23853
23854 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23855 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23856 only.
23857 (*anddi3_doubleword): Split before reload. Merge with
23858 anddi->zext pre-reload splitter.
23859 (*andndi3_doubleword): Split before reload.
23860 (*<code>di3_doubleword): Ditto.
23861 (*one_cmpldi2_doubleword): Ditto.
23862
23863 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23864
23865 PR middle-end/90779
23866 * gimplify.c: Include omp-offload.h and context.h.
23867 (gimplify_bind_expr): Add "omp declare target" attributes
23868 to static block scope variables inside of target region or target
23869 functions.
23870
23871 2019-06-15 Tom de Vries <tdevries@suse.de>
23872
23873 PR tree-optimization/90009
23874 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23875 Return NULL if bb contains IFN_UNIQUE.
23876
23877 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23878
23879 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23880 (un): New define_mode_attr.
23881 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23882 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23883 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23884 merge into ...
23885 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23886
23887 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23888
23889 * config/darwin.opt: Add RejectNegative where needed, reorder
23890 and add minimal functional descriptions.
23891
23892 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23893
23894 PR rtl-optimization/90765
23895 * calls.c (update_stack_alignment_for_call): New function.
23896 (expand_call): Call update_stack_alignment_for_call when
23897 outgoing parameter is passed in the stack.
23898 (emit_library_call_value_1): Likewise.
23899 * function.c (locate_and_pad_parm): Don't update
23900 stack_alignment_needed and preferred_stack_boundary.
23901
23902 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23903
23904 PR target/90877
23905 * config/i386/i386-features.c
23906 (dimode_scalar_chain::compute_convert_gain): Replace
23907 mmxsse_to_integer with sse_to_integer.
23908 * config/i386/i386.c (ix86_register_move_cost): Verify that
23909 moves between MMX and non-MMX units require secondary memory.
23910 Correct costs of moves between SSE and integer units.
23911 * config/i386/i386.h (processor_costs): Rename cost of moving
23912 SSE register to integer to sse_to_integer. Rename cost of
23913
23914 2019-06-14 Matt Thomas <matt@3am-software.com>
23915 Matthew Green <mrg@eterna.com.au>
23916 Nick Hudson <skrll@netbsd.org>
23917 Maya Rashish <coypu@sdf.org>
23918 Richard Earnshaw <rearnsha@arm.com>
23919
23920 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23921 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23922 * config/arm/netbsd-eabi.h: New file.
23923 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23924 redefining.
23925 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23926 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23927 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23928 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23929
23930 2019-06-14 Richard Biener <rguenther@suse.de>
23931
23932 * tree-loop-distribution.c (classify_partition): Return
23933 whether a reduction appeared in all partitions and do not
23934 stop builtin detection because of this.
23935 (distribute_loop): Sort a non-builtin partition last if
23936 there's a reduction in all partitions and make sure the
23937 partition prevailing as last is not a builtin.
23938
23939 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23940
23941 PR ipa/90401
23942 * ipa-prop.c (add_to_agg_contents_list): New function.
23943 (clobber_by_agg_contents_list_p): Likewise.
23944 (extract_mem_content): Likewise.
23945 (get_place_in_agg_contents_list): Delete.
23946 (determine_known_aggregate_parts): Renamed from
23947 determine_locally_known_aggregate_parts. New parameter
23948 aa_walk_budget_p.
23949
23950 2019-06-13 Martin Sebor <msebor@redhat.com>
23951
23952 PR tree-optimization/90662
23953 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23954 to the same type.
23955
23956 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23957
23958 PR bootstrap/90873
23959 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23960 dbase is not TARGET_MEM_REF.
23961
23962 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23963
23964 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23965 Update all uses.
23966 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23967 Do not generate DImode extends for 32bit targets.
23968 (and->zext post-reload splitter): Use gen_extend_insn
23969 instead of indirect functions.
23970 (anddi->zext pre-reload splitter): New.
23971 (*zext<mode>_doubleword_and): Remove.
23972 (*zext<mode>_doubleword): Ditto.
23973 (*zextsi_doubleword): Dittto.
23974
23975 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23976
23977 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23978 Use gen_sub3_insn instead of indirect function.
23979 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23980 indirect function.
23981 (ix86_adjust_counter): Ditto.
23982
23983 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23984 Lijia He <helijia@linux.ibm.com>
23985
23986 PR tree-optimization/77820
23987 * tree-ssa-threadedge.c
23988 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23989 function.
23990 (thread_across_edge): Add call to
23991 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23992
23993 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23994
23995 * config/darwin-driver.c (validate_macosx_version_min): New.
23996 (darwin_default_min_version): Cleanup and validate supplied version.
23997 (darwin_driver_init): Likewise and push cleaned version into opts.
23998
23999 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24000
24001 PR tree-optimization/90869
24002 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24003 converts in MEM_REF referencing decl rather than view converts
24004 from decl type to MEM_REF type.
24005
24006 2019-06-13 Richard Biener <rguenther@suse.de>
24007
24008 PR tree-optimization/90856
24009 * tree-sra.c (build_ref_for_model): Only use
24010 build_reconstructed_reference when address-spaces are the same.
24011
24012 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24013
24014 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24015 wrap ei variable name in the declaration in ()s.
24016 (nvptx_single): Actually use mode_label variable. Formatting fix.
24017
24018 2019-06-13 Richard Biener <rguenther@suse.de>
24019
24020 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24021 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24022 also return the condition stmt.
24023 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24024 loop we can version and version that, reusing the loop version
24025 created by if-conversion instead of versioning again.
24026
24027 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24028
24029 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24030 may_contain_p.
24031 * tree-vrp (value_range_base::may_contain_p): Call into
24032 value_inside_range.
24033 (value_inside_range): Make private inside value_range_base class.
24034 Take min/max from *this.
24035 (range_includes_p): Remove.
24036 * tree-vrp.h (value_range_base): Add value_inside_range.
24037 (range_includes_p): Remove.
24038 (range_includes_zero_p): Call may_contain_p.
24039 * vr-values.c (compare_range_with_value): Same.
24040
24041 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24042
24043 * doc/extend.texi (ARC Function Attributes): Update info.
24044
24045 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24046
24047 PR tree-optimization/89713
24048 * doc/invoke.texi (-ffinite-loops): Document new option.
24049 * common.opt (-ffinite-loops): New option.
24050 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24051 IFN_GOACC_LOOP calls as necessary.
24052 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24053 is finite.
24054 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24055 IFN_GOACC_LOOP call is not used.
24056 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24057
24058 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24059
24060 PR target/88838
24061 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24062 compare_type is not with Pmode size, we will create an IV with
24063 Pmode size with truncated use (i.e. converted to the correct type).
24064 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24065 (vect_iv_limit_for_full_masking): New. Factored out of
24066 vect_set_loop_condition_masked.
24067 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24068 (vect_iv_limit_for_full_masking): Declare.
24069
24070 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24071
24072 PR target/88834
24073 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24074 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24075 (get_alias_ptr_type_for_ptr_address): Likewise.
24076 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24077 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24078 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24079 allow_reg_index_p.
24080
24081 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24082
24083 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24084
24085 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24086
24087 * common/config/pru/pru-common.c: New file.
24088 * config.gcc: Add PRU target.
24089 * config/pru/alu-zext.md: New file.
24090 * config/pru/constraints.md: New file.
24091 * config/pru/predicates.md: New file.
24092 * config/pru/pru-opts.h: New file.
24093 * config/pru/pru-passes.c: New file.
24094 * config/pru/pru-pragma.c: New file.
24095 * config/pru/pru-protos.h: New file.
24096 * config/pru/pru.c: New file.
24097 * config/pru/pru.h: New file.
24098 * config/pru/pru.md: New file.
24099 * config/pru/pru.opt: New file.
24100 * config/pru/t-pru: New file.
24101 * doc/extend.texi: Document PRU pragmas.
24102 * doc/invoke.texi: Document PRU-specific options.
24103 * doc/md.texi: Document PRU asm constraints.
24104
24105 2019-06-12 Martin Sebor <msebor@redhat.com>
24106
24107 PR middle-end/90676
24108 * tree-pretty-print.c (dump_mem_ref): New function. Include
24109 MEM_REF type in output when different size than operand.
24110 (dump_generic_node): Move code to dump_mem_ref and call it.
24111
24112 2019-06-12 Martin Sebor <msebor@redhat.com>
24113
24114 PR tree-optimization/90662
24115 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24116 to arrays.
24117
24118 2019-06-12 Tom de Vries <tdevries@suse.de>
24119
24120 PR tree-optimization/90009
24121 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24122
24123 2019-06-12 Martin Liska <mliska@suse.cz>
24124
24125 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24126 the created map.
24127 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24128 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24129 Do not sanitize created maps.
24130
24131 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24132
24133 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24134 value_range::singleton_p.
24135 * tree-vrp.c (value_range_constant_singleton): Remove.
24136 * tree-vrp.h (value_range_constant_singleton): Remove.
24137 * vr-values.c (vr_values::singleton): Use
24138 value_range::singleton_p.
24139
24140 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24141
24142 PR target/90811
24143 * cfgexpand.c (align_local_variable): Add really_expand argument,
24144 don't SET_DECL_ALIGN if it is false.
24145 (add_stack_var): Add really_expand argument, pass it through to
24146 align_local_variable.
24147 (expand_one_stack_var_1): Pass true as really_expand to
24148 align_local_variable.
24149 (expand_one_ssa_partition): Pass true as really_expand to
24150 add_stack_var.
24151 (expand_one_var): Pass really_expand through to add_stack_var.
24152
24153 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24154
24155 * config/arm/iterators.md (VABAL): New int iterator.
24156 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24157 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24158 UNSPEC_VABAL_U values.
24159
24160 2019-06-12 Martin Liska <mliska@suse.cz>
24161
24162 * value-prof.c (stream_out_histogram_value): Only first value
24163 can't be negative.
24164
24165 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24166
24167 PR c/90760
24168 * symtab.c (symtab_node::set_section): Allow being called on aliases
24169 as long as they aren't analyzed yet.
24170
24171 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24172
24173 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24174 to `mips_set_text_contents_type' to indicate whether a
24175 non-debug insn follows.
24176
24177 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24178
24179 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24180 enabling -mpcrel by default.
24181 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24182 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24183 that the test against -mcpu=future is done first. Then test if
24184 -mprefixed-addr is on for -mpcrel.
24185 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24186
24187 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24188
24189 PR target/90811
24190 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24191 instead of and.u%d.
24192
24193 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24194
24195 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24196
24197 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24198
24199 PR c++/90449 - add -Winaccessible-base option.
24200 * doc/invoke.texi (Winaccessible-base): Document.
24201
24202 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24203
24204 PR tree-optimization/62041
24205 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24206
24207 2019-06-11 Jason Merrill <jason@redhat.com>
24208
24209 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24210 * tree.c (get_tree_code_name): Likewise.
24211 * print-tree.c (print_node): Only briefly print a node with an
24212 invalid code.
24213
24214 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24215
24216 PR bootstrap/90819
24217 * trans-mem.c (tm_memopt_compute_available): Add assertion
24218 that blocks is not empty. Formatting fix.
24219
24220 2019-06-11 Martin Liska <mliska@suse.cz>
24221
24222 PR c++/87847
24223 * hash-table.h: Extend create_gcc, add one parameter
24224 that is passed into hash_table::hash_table.
24225
24226 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24227
24228 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24229 New prototype.
24230 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24231 Emit clobber also for non-sse operations.
24232 (ix86_split_fp_absneg_operator): New function.
24233 * config/i386/i386.md (SSEMODEF): New mode iterator.
24234 (ssevecmodef): New mode attribute.
24235 (<code>tf2): Use absneg code iterator.
24236 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24237 Add three-operand AVX alternatives.
24238 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24239 Use absneg code iterator and X87MODEF mode iterator.
24240 (absneg fp_reg non-sse splitter): Call absneg code iterator
24241 and X87MODEF mode iterator.
24242 (absneg general_reg non-sse splitter): Use absneg code iterator
24243 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24244 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24245 code iterator. Add three-operand AVX alternative.
24246 (absneg sse_reg splitter): Use absneg code iterator
24247 and SSEMODEF mode iterator. Handle AVX operands.
24248 (absneg fp_reg splitter): Use absneg code iterator
24249 and MODEF mode iterator.
24250 (absneg general_reg splitter): Merge splitters using MODEF mode
24251 iterator. Use absneg code iterator. Call
24252 ix86_split_fp_absneg_operator.
24253 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24254 Do not enable for non-sse modes before reload.
24255 (CSGNMODE): Remove.
24256 (CSGNVMODE): Ditto.
24257 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24258 ssevecmodef mode attribute instaed of CSGNVMODE.
24259 (copysign<mode>3_const): Ditto.
24260 (copysign<mode>3_var): Ditto.
24261 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24262 Use absneg code iterator. Simplify code using std::swap.
24263 * config/i386/predicates.md (absneg_operator): Remove.
24264
24265 2019-06-10 Martin Sebor <msebor@redhat.com>
24266
24267 * gimple-fold.c (get_range_strlen): Update comment that didn't
24268 make it into r267503 or related commits.
24269
24270 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24271
24272 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24273 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24274
24275 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24276
24277 * tree.def (OMP_SCAN): New tree code.
24278 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24279 OMP_CLAUSE_EXCLUSIVE.
24280 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24281 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24282 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24283 OMP_CLAUSE_{IN,EX}CLUSIVE.
24284 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24285 * tree-nested.c (convert_nonlocal_reference_stmt,
24286 convert_local_reference_stmt, convert_gimple_call): Handle
24287 GIMPLE_OMP_SCAN.
24288 * tree-pretty-print.c (dump_omp_clause): Handle
24289 OMP_CLAUSE_{IN,EX}CLUSIVE.
24290 (dump_generic_node): Handle OMP_SCAN.
24291 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24292 * gimple.h (gomp_scan): New type.
24293 (is_a_helper <gomp_scan *>::test,
24294 is_a_helper <const gomp_scan *>::test): New templates.
24295 (gimple_build_omp_scan): Declare.
24296 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24297 gimple_omp_scan_set_clauses): New inline functions.
24298 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24299 * gimple.c (gimple_build_omp_scan): New function.
24300 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24301 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24302 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24303 GIMPLE_OMP_TASKGROUP.
24304 (dump_gimple_omp_scan): New function.
24305 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24306 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24307 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24308 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24309 (is_gimple_stmt): Handle OMP_SCAN.
24310 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24311 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24312 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24313 mentioned in nested #pragma omp scan. Handle
24314 OMP_CLAUSE_{IN,EX}CLUSIVE.
24315 (gimplify_expr): Handle OMP_SCAN.
24316 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24317 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24318 simd constructs.
24319 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24320 GIMPLE_OMP_SCAN.
24321
24322 2019-06-10 Martin Liska <mliska@suse.cz>
24323
24324 * ipa-cp.c (ignore_edge_p): New function.
24325 (build_toporder_info): Use it.
24326 * ipa-inline.c (ignore_edge_p): New function.
24327 (inline_small_functions): Use it.
24328 * ipa-pure-const.c (ignore_edge_for_nothrow):
24329 Verify opt_for_fn for caller and callee.
24330 (ignore_edge_for_pure_const): Likewise.
24331 * ipa-reference.c (ignore_edge_p): Extend to check
24332 for opt_for_fn.
24333 * ipa-utils.c (searchc): Refactor.
24334 * ipa-utils.h: Fix coding style.
24335
24336 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24337
24338 * config/arc/arc.c (arc_rtx_costs): Update costs.
24339
24340 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24341
24342 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24343 (arc_split_ior): Likewise.
24344 (arc_check_mov_const): Likewise.
24345 (arc_split_mov_const): Likewise.
24346 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24347 (arc_rtx_costs): Replace check Crr with Cax constraint.
24348 (prepare_move_operands): Cleanup, remove unused code.
24349 (arc_split_ior): New function.
24350 (arc_check_ior_const): Likewise.
24351 (arc_split_mov_const): Likewise.
24352 (arc_check_mov_const): Likewise.
24353 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24354 in define_insn_and_split pattern.
24355 (iorsi3): Likewise.
24356 (mulsi3_v2): Add new matching variant.
24357 (andsi3_i): Cleanup pattern.
24358 (rotrsi3_cnt1): Update pattern.
24359 (rotrsi3_cnt8): New pattern.
24360 (ashlsi2_cnt8): Likewise.
24361 (ashlsi2_cnt16): Likewise.
24362 * config/arc/constraints.md (C0p): Update constraint.
24363 (Crr): Remove it.
24364 (C0x): New pattern.
24365 (Cax): New pattern.
24366
24367 2019-06-10 Martin Liska <mliska@suse.cz>
24368
24369 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24370 Update coding style.
24371 (sem_item_optimizer::dump_cong_classes):
24372 Print how many items are in a non-singular class. Improve
24373 coding style.
24374
24375 2019-06-10 Martin Liska <mliska@suse.cz>
24376
24377 * value-prof.c (dump_histogram_value): Change dump format.
24378 (gimple_mod_subtract_transform): Remove legacy comment.
24379
24380 2019-06-10 Martin Liska <mliska@suse.cz>
24381
24382 * value-prof.c (dump_histogram_value): Print histogram values
24383 only if present.
24384
24385 2019-06-10 Martin Liska <mliska@suse.cz>
24386
24387 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24388 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24389 * ipa-profile.c (ipa_profile_generate_summary):
24390 Use get_most_common_single_value.
24391 * tree-profile.c (gimple_init_gcov_profiler):
24392 Instrument with __gcov_one_value_profiler_v2
24393 and __gcov_indirect_call_profiler_v4.
24394 * value-prof.c (dump_histogram_value):
24395 Print all values for HIST_TYPE_SINGLE_VALUE.
24396 (stream_out_histogram_value): Update assert for
24397 N values.
24398 (stream_in_histogram_value): Set number of
24399 counters for HIST_TYPE_SINGLE_VALUE.
24400 (get_most_common_single_value): New.
24401 (gimple_divmod_fixed_value_transform):
24402 Use get_most_common_single_value.
24403 (gimple_ic_transform): Likewise.
24404 (gimple_stringops_transform): Likewise.
24405 (gimple_find_values_to_profile): Set number
24406 of counters for HIST_TYPE_SINGLE_VALUE.
24407 * value-prof.h (get_most_common_single_value): New.
24408
24409 2019-06-10 Martin Liska <mliska@suse.cz>
24410
24411 * hash-map.h: Pass default value to hash_table ctor.
24412 * hash-table.h: Add default value to call of a ctor.
24413
24414 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24415
24416 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24417 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24418
24419 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24420
24421 PR target/90751
24422 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24423 Call pa_output_function_label.
24424 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24425 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24426 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24427 to declaration.
24428 (pa_linux_output_function_prologue): Declare.
24429 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24430 (pa_output_function_label): New.
24431 (pa_output_function_prologue): Revise to use pa_output_function_label.
24432 (pa_linux_output_function_prologue): New.
24433 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24434
24435 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24436
24437 * tree-vrp.h (value_range_base::intersect): New.
24438 (value_range::intersect_helper): Move from here...
24439 (value_range_base::intersect_helper): ...to here.
24440 * tree-vrp.c (value_range::intersect_helper): Rename to...
24441 (value_range_base::intersect_helper): ...this, and rewrite to
24442 return a value instead of modifying THIS in place.
24443 Also, move equivalence handling...
24444 (value_range::intersect): ...here, while calling intersect_helper.
24445 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24446 calling intersect.
24447 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24448 Same.
24449 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24450
24451 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24452
24453 * Makefile.in (genprogerr): Add condmd.
24454 (genprog): Remove it here.
24455
24456 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24457
24458 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24459
24460 2019-06-07 Richard Biener <rguenther@suse.de>
24461
24462 PR debug/90574
24463 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24464 that appear after user labels.
24465
24466 2019-06-07 Martin Liska <mliska@suse.cz>
24467
24468 * cselib.c (cselib_init): Disable hash table
24469 sanitization.
24470 * hash-set.h: Pass new default argument to m_table.
24471 * hash-table.c: Add global variable with hash table
24472 sanitization limit.
24473 * hash-table.h (Allocator>::hash_table): Add new argument
24474 to ctor.
24475 (hashtab_chk_error): New.
24476 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24477 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24478 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24479
24480 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24481
24482 * common.opt (flto-odr-type-merging): Ignore.
24483 * invoke.texi (-flto-odr-type-merging): Remove.
24484 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24485 (can_be_vtable_hashed_p): Remove.
24486 (hash_odr_vtable): Remove.
24487 (odr_vtable_hasher::hash): Remove.
24488 (types_same_for_odr): Remove.
24489 (types_odr_comparable): Remove.
24490 (odr_vtable_hasher::equal): Remove.
24491 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24492 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24493 (get_odr_type): Do not use vtable hash.
24494 (dump_odr_type): Remove commented out code.
24495 (build_type_inheritance_graph): Do not allocate vtable hash.
24496 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24497 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24498 (odr_type_p): Likewise.
24499 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24500 test.
24501
24502 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24503
24504 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24505 immediately after same_types_for_tbaa_p returns -1 and continue
24506 looking for possible exact match; if matching types are arrays
24507 watch for partial overlaps.
24508 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24509 (indirect_refs_may_alias_p): Do type based disambiguation first;
24510 update comment.
24511
24512 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24513
24514 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24515
24516 2019-06-07 Martin Liska <mliska@suse.cz>
24517
24518 * doc/invoke.texi: Remove param.
24519 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24520 Remove.
24521 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24522 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24523 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24524 * profile.c (instrument_values): Remove
24525 HIST_TYPE_INDIR_CALL_TOPN.
24526 * tree-profile.c (init_ic_make_global_vars):
24527 Always build __gcov_indirect_call only.
24528 (gimple_init_gcov_profiler): Remove usage
24529 of PARAM_INDIR_CALL_TOPN_PROFILE.
24530 (gimple_gen_ic_profiler): Likewise.
24531 * value-prof.c (dump_histogram_value): Likewise.
24532 (stream_in_histogram_value): Likewise.
24533 (gimple_indirect_call_to_profile): Likewise.
24534 (gimple_find_values_to_profile): Likewise.
24535 * value-prof.h (enum hist_type): Likewise.
24536
24537 2019-06-07 Martin Liska <mliska@suse.cz>
24538
24539 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24540 function.
24541
24542 2019-06-07 Martin Liska <mliska@suse.cz>
24543
24544 PR tree-optimization/78902
24545 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24546 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24547 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24548 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24549 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24550 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24551 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24552 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24553 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24554 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24555 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24556 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24557 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24558 New.
24559 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24560 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24561 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24562 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24563 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24564 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24565 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24566 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24567 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24568 warn_unused_result attribute.
24569 (BUILT_IN_STRDUP): Likewise.
24570 (BUILT_IN_STRNDUP): Likewise.
24571 (BUILT_IN_ALLOCA): Likewise.
24572 (BUILT_IN_CALLOC): Likewise.
24573 (BUILT_IN_MALLOC): Likewise.
24574 (BUILT_IN_REALLOC): Likewise.
24575
24576 2019-06-06 Jim Wilson <jimw@sifive.com>
24577
24578 PR target/89955
24579 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24580 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24581 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24582
24583 2019-06-06 Martin Sebor <msebor@redhat.com>
24584
24585 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24586 (handle_builtin_malloc): Remove trailing spaces.
24587 (handle_builtin_memset): Same.
24588 (handle_builtin_memcmp): Same.
24589 (compute_string_length): Same.
24590 (determine_min_objsize): Same.
24591 (handle_builtin_string_cmp): Same.
24592 (handle_char_store): Same. Break up excessively long line.
24593
24594 2019-06-06 Martin Jambor <mjambor@suse.cz>
24595
24596 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24597 check.
24598
24599 2019-06-06 Martin Jambor <mjambor@suse.cz>
24600
24601 * tree-sra.c (struct access): New field grp_same_access_path.
24602 (dump_access): Dump it.
24603 (build_reconstructed_reference): New function.
24604 (build_ref_for_model): Use it if possible.
24605 (path_comparable_for_same_access): New function.
24606 (same_access_path_p): Likewise.
24607 (sort_and_splice_var_accesses): Set the new flag.
24608 (analyze_access_subtree): Likewise.
24609 (propagate_subaccesses_across_link): Propagate zero value of the new
24610 flag down the access tree.
24611
24612 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24613
24614 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24615 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24616 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24617 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24618 Add gfx906.
24619
24620 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24621
24622 PR tree-optimization/90332
24623 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24624 Handle VALS containing two vectors.
24625 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24626 to...
24627 (@aarch64_combinez<mode>): ... This.
24628 (*aarch64_combinez_be<mode>): Rename to...
24629 (@aarch64_combinez_be<mode>): ... This.
24630 (vec_init<mode><Vhalf>): New define_expand.
24631 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24632
24633 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24634
24635 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24636 library functions only when not optimizing for size.
24637 (ashlsi3): Likewise.
24638 (ashrhi3): Likewise.
24639 (ashrsi3): Likewise.
24640 (lshrhi3): Likewise.
24641 (lshrsi3): Likewise.
24642
24643 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24644
24645 PR rtl-optimization/88751
24646 * ira.c (ira): Use the number of the actually referenced registers
24647 when calculating the threshold.
24648
24649 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24650
24651 * configure: Regenerate.
24652
24653 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24654
24655 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24656 register if it is in memory, so the shift can be emulated with a rotate
24657 instruction.
24658 (ashrhi3): Likewise.
24659 (lshrhi3): Likewise.
24660
24661 2019-06-06 Martin Liska <mliska@suse.cz>
24662
24663 PR tree-optimization/87954
24664 * match.pd: Simplify mult where both arguments are 0 or 1.
24665
24666 2019-06-06 Richard Biener <rguenther@suse.de>
24667
24668 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24669 put equivalences on UNDEFINED ranges.
24670 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24671 Make sure to drop defs of stmts added during simplification
24672 to VARYING.
24673
24674 2019-06-06 Richard Biener <rguenther@suse.de>
24675
24676 * tree-ssa-structalias.c: Include tree-cfg.h.
24677 (make_heapvar): Do not make heap vars artificial.
24678 (find_func_aliases_for_builtin_call): Handle stack allocation
24679 functions.
24680 (find_func_aliases): Delay processing of simple enough returns
24681 in non-IPA mode.
24682 (set_uids_in_ptset): Adjust.
24683 (find_what_var_points_to): Likewise.
24684 (solve_constraints): Do not dump points-to sets here.
24685 (compute_points_to_sets): Post-process return statements,
24686 amending the escaped solution. Dump points-to sets afterwards.
24687 (ipa_pta_execute): Dump points-to sets.
24688
24689 2019-06-06 Martin Liska <mliska@suse.cz>
24690
24691 PR web/87933
24692 * doc/install.texi: Fix HTML headers and
24693 titles for 'Installing GCC' pages.
24694
24695 2019-06-06 Martin Liska <mliska@suse.cz>
24696
24697 * ipa-icf-gimple.h (dump_message_1): Remove.
24698 (dump_message): Likewise.
24699 (return_false_with_message_1): Print also file.
24700 (return_false_with_msg): Likewise.
24701 (return_with_result): Likewise.
24702 (return_with_debug): Likewise.
24703 * ipa-icf.c (sem_function::equals_private): Remove call
24704 to dump_message.
24705
24706 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24707
24708 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24709 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24710 memory operand for it.
24711 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24712
24713 2019-06-05 Martin Sebor <msebor@redhat.com>
24714
24715 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24716 Adjust quoting and hyphenation.
24717 * convert.c (convert_to_real_1): Same.
24718 * gcc.c (driver_wrong_lang_callback): Same.
24719 (driver::handle_unrecognized_options): Same.
24720 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24721 * opts-common.c (cmdline_handle_error): Same.
24722 (read_cmdline_option): Same.
24723 * opts-global.c (complain_wrong_lang): Same.
24724 (print_ignored_options): Same.
24725 (handle_common_deferred_options): Same.
24726 * pretty-print.h: Same.
24727 * print-rtl.c (debug_bb_n_slim): Same.
24728 * sched-rgn.c (make_pass_sched_fusion): Same.
24729 * tree-cfg.c (verify_gimple_assign_unary): Same.
24730 (verify_gimple_label): Same.
24731 * tree-ssa-operands.c (verify_ssa_operands): Same.
24732 * varasm.c (do_assemble_alias): Same.
24733 (assemble_alias): Same.
24734
24735 2019-06-05 Richard Henderson <rth@twiddle.net>
24736
24737 * config/alpha/alpha.c (direct_return): Move down after
24738 struct machine_function definition; use saved frame_size;
24739 return bool.
24740 (struct machine_function): Add sa_mask, sa_size, frame_size.
24741 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24742 (alpha_compute_frame_layout): ... new function.
24743 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24744 (alpha_initial_elimination_offset): Use saved sa_size.
24745 (alpha_vms_initial_elimination_offset): Likewise.
24746 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24747 (alpha_expand_prologue): Use saved frame data. Merge integer
24748 and fp register save loops.
24749 (alpha_expand_epilogue): Likewise.
24750 (alpha_start_function): Use saved frame data.
24751 * config/alpha/alpha-protos.h (direct_return): Update.
24752 (alpha_sa_size): Remove.
24753
24754 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24755
24756 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24757 multiplication by a power-of-two value.
24758 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24759 and turn the modulo operation into a masking operation.
24760
24761 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24762
24763 PR debug/90733
24764 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24765 with VOIDmode inner operands.
24766
24767 2019-06-05 Richard Biener <rguenther@suse.de>
24768
24769 PR middle-end/90726
24770 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24771 turn an expression graph into a tree.
24772
24773 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24774
24775 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24776 member.
24777 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24778 treat it like explicit monotonic schedule modifier.
24779 (expand_omp_for): Initialize has_lastprivate_conditional.
24780 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24781 schedule modifier.
24782
24783 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24784 references, lookup in in hash map MEM_REF operand instead of the
24785 MEM_REF itself.
24786 (lower_omp_1): When looking for lastprivate conditional assignments,
24787 handle MEM_REFs with REFERENCE_TYPE operands.
24788
24789 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24790 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24791 and references a VLA. Handle references to non-VLAs if is_simd
24792 all privatization clauses like reductions.
24793 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24794 If omp_is_reference, use always omp simd arrays and set
24795 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24796 fails, emit reference initialization.
24797
24798 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24799
24800 PR target/89803
24801 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24802 _mm_mask_fpclass_sd_mask): New intrinsics.
24803 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24804 * config/i386/i386-builtin.def
24805 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24806 New builtins.
24807 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24808 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24809 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24810 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24811 case QI_FTYPE_V2SF_INT): Ditto.
24812 * config/i386/sse.md
24813 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24814 Extended to insnstructions with mask operands.
24815
24816 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24817
24818 * config/rs6000/constraints.md (define_register_constraint "wp"):
24819 Delete.
24820 (define_register_constraint "wq"): Delete.
24821 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24822 (rs6000_init_hard_regno_mode_ok): Adjust.
24823 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24824 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24825 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24826 (define_mode_attr VSa): Delete.
24827 (define_mode_attr VSisa): New.
24828 (rest of file): Adjust.
24829 * doc/md.texi (Machine Constraints): Adjust.
24830
24831 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24832
24833 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24834 (define_attr "enabled"): Handle those new isa values.
24835
24836 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24837
24838 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24839 (define_mode_attr VSr5): Delete.
24840 (define_mode_attr VStype_sqrt): Delete.
24841 (define_mode_iterator VSX_SPDP): Delete.
24842 (define_mode_attr VS_spdp_res): Delete.
24843 (define_mode_attr VS_spdp_insn): Delete.
24844 (define_mode_attr VS_spdp_type): Delete.
24845 (*vsx_sqrt<mode>2): Adjust.
24846 (vsx_<VS_spdp_insn>): Delete, split to...
24847 (vsx_xscvdpsp): ... this. New. And...
24848 (vsx_xvcvspdp): ... this. New. And...
24849 (vsx_xvcvdpsp): ... this. New.
24850
24851 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24852
24853 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24854 and V2DF.
24855 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24856 (rest of file): Adjust.
24857
24858 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24859
24860 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24861 (vsx_extract_<mode>_var): Ditto.
24862
24863 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24864
24865 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24866 with just "wa".
24867
24868 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24869
24870 * config/rs6000/constraints.md (define_register_constraint "ww"):
24871 Delete.
24872 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24873 (rs6000_init_hard_regno_mode_ok): Adjust.
24874 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24875 RS6000_CONSTRAINT_ww.
24876 * config/rs6000/rs6000.md: Adjust.
24877 * config/rs6000/vsx.md: Adjust.
24878 * doc/md.texi (Machine Constraints): Adjust.
24879
24880 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24881
24882 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24883 (define_mode_attr sd): New.
24884 (define_mode_attr s): New.
24885 (define_mode_attr Ftrad): Delete.
24886 (define_mode_attr Fvsx): Delete.
24887 (define_mode_attr Fs): Delete.
24888 (rest of file): Use the new mode attributes.
24889 * config.rs6000/vsx.md: Use the new mode attributes.
24890
24891 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24892
24893 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24894 with just "wa".
24895
24896 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24897
24898 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24899 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24900 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24901
24902 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24903
24904 PR target/78263
24905 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24906 C++ with strict ANSI requirements.
24907
24908 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24909
24910 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24911 computations when step is 1.
24912
24913 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24914
24915 * config/rs6000/constraints.md (define_register_constraint "wf"):
24916 Delete.
24917 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24918 (rs6000_init_hard_regno_mode_ok): Adjust.
24919 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24920 RS6000_CONSTRAINT_wf.
24921 * config/rs6000/rs6000.md: Adjust.
24922 * config/rs6000/vsx.md: Adjust.
24923 * doc/md.texi (Machine Constraints): Adjust.
24924
24925 2019-06-04 Andrew Pinski <apinski@marvell.com>
24926
24927 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24928 Fix ILP32 value.
24929
24930 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24931
24932 * config/rs6000/constraints.md (define_register_constraint "wd"):
24933 Delete.
24934 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24935 (rs6000_init_hard_regno_mode_ok): Adjust.
24936 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24937 RS6000_CONSTRAINT_wd.
24938 * config/rs6000/rs6000.md: Adjust.
24939 * config/rs6000/vsx.md: Adjust.
24940 * doc/md.texi (Machine Constraints): Adjust.
24941
24942 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24943
24944 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24945 (rest of file): Adjust.
24946
24947 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24948
24949 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24950 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24951 (vsx_splat_<mode>_reg): Adjust.
24952
24953 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24954
24955 * config/rs6000/constraints.md (define_register_constraint "ws"):
24956 Delete.
24957 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24958 (rs6000_init_hard_regno_mode_ok): Adjust.
24959 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24960 RS6000_CONSTRAINT_ws.
24961 * config/rs6000/rs6000.md: Adjust.
24962 * config/rs6000/vsx.md: Adjust.
24963 * doc/md.texi (Machine Constraints): Adjust.
24964
24965 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24966
24967 * config/rs6000/constraints.md (define_register_constraint "wv"):
24968 Delete.
24969 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24970 (rs6000_init_hard_regno_mode_ok): Adjust.
24971 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24972 RS6000_CONSTRAINT_wv.
24973 * config/rs6000/rs6000.md: Adjust.
24974 * config/rs6000/vsx.md: Adjust.
24975 * doc/md.texi (Machine Constraints): Adjust.
24976
24977 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24978
24979 * config/rs6000/constraints.md (define_register_constraint "wi"):
24980 Delete.
24981 (define_register_constraint "wt"): Delete.
24982 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24983 (rs6000_init_hard_regno_mode_ok): Adjust.
24984 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24985 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24986 * config/rs6000/rs6000.md: Adjust.
24987 * config/rs6000/vsx.md: Adjust.
24988 * doc/md.texi (Machine Constraints): Adjust.
24989
24990 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24991
24992 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24993 const.
24994 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24995 default_elf_asm_output_external.
24996
24997 2019-06-04 Martin Liska <mliska@suse.cz>
24998
24999 * ipa-icf.c (INCLUDE_LIST): Remove.
25000 (sem_item_optimizer::execute): Remove call to init_wpa.
25001 * ipa-icf.h (init_wpa): Remove.
25002
25003 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25004
25005 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25006 conditional on combined for simd.
25007 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25008 member.
25009 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25010 constructs, don't remove lastprivate_conditional_map, but instead set
25011 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25012 to parent construct temporaries.
25013 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25014 like !ctx->lastprivate_conditional_map.
25015 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25016 use up->outer context instead of up.
25017 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25018 gimple_omp_for_combined_p.
25019 (expand_omp_for_static_nochunk): Likewise.
25020 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25021 probably moved over into expand_omp_for_generic rather than being copied
25022 there.
25023
25024 2019-06-04 Martin Liska <mliska@suse.cz>
25025
25026 * value-prof.c (dump_histogram_value): Fix typo.
25027 (gimple_mod_subtract_transform): Likewise.
25028
25029 2019-06-04 Richard Biener <rguenther@suse.de>
25030
25031 PR middle-end/90726
25032 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25033 (tree_contains_chrecs): Likewise.
25034 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25035 exponential behaivor from ...
25036 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25037 ... here.
25038 (expression_expensive_p): Avoid exponential behavior and compute
25039 expanded size, rejecting any expansion.
25040 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25041 (idx_contains_abnormal_ssa_name_p): Likewise.
25042 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25043 (contains_abnormal_ssa_name_p): Simplify and use
25044 walk_tree_without_duplicates.
25045
25046 2019-06-04 Richard Biener <rguenther@suse.de>
25047
25048 PR tree-optimization/90738
25049 Revert
25050 2019-06-03 Richard Biener <rguenther@suse.de>
25051
25052 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25053 full reference tree and record in ref->ref.
25054 (vn_reference_lookup_3): Pass in original ref to
25055 ao_ref_init_from_vn_reference.
25056 (vn_reference_lookup): Likewise.
25057 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25058 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25059 Handle non-decl bases in the original reference.
25060
25061 2019-06-04 Martin Liska <mliska@suse.cz>
25062
25063 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25064 number of references.
25065 (sem_item_optimizer::do_congruence_step):
25066 (sem_item_optimizer::worklist_push): Dump how references
25067 a class has.
25068 (sem_item_optimizer::worklist_pop): Use heap.
25069 (sem_item_optimizer::process_cong_reduction): Likewise.
25070 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25071
25072 2019-06-04 Martin Liska <mliska@suse.cz>
25073
25074 * ipa-icf.h (struct sem_usage_pair_hash): New.
25075 (sem_usage_pair_hash::hash): Likewise.
25076 (sem_usage_pair_hash::equal): Likewise.
25077 (struct sem_usage_hash): Likewise.
25078 * ipa-icf.c (sem_item::sem_item): Initialize
25079 referenced_by_count.
25080 (sem_item::add_reference): Register a reference
25081 in ref_map and not in target->usages.
25082 (sem_item::setup): Remove initialization of
25083 dead vectors.
25084 (sem_item::~sem_item): Remove usage of dead vectors.
25085 (sem_item::dump): Remove dump of references.
25086 (sem_item_optimizer::sem_item_optimizer): Initialize
25087 m_references.
25088 (sem_item_optimizer::read_section): Remove useless
25089 dump.
25090 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25091 (sem_item_optimizer::build_graph): Pass m_references
25092 to ::add_reference.
25093 (sem_item_optimizer::verify_classes): Remove usage of dead
25094 vectors.
25095 (sem_item_optimizer::traverse_congruence_split): Return true
25096 when a class is split.
25097 (sem_item_optimizer::do_congruence_step_for_index): Use
25098 hash_map for look up of (sem_item *, index). That brings
25099 significant speed up.
25100 (sem_item_optimizer::do_congruence_step): Return true
25101 when a split is done.
25102 (congruence_class::is_class_used): Use referenced_by_count.
25103
25104 2019-06-04 Alan Modra <amodra@gmail.com>
25105
25106 PR target/90689
25107 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25108 error.
25109
25110 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25111
25112 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25113 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25114 (rs6000_secondary_reload_simple_move): Adjust.
25115 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25116 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25117 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25118 comment.
25119 (power6x): Adjust.
25120 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25121 (floatunssi<mode>2_lfiwzx): Adjust.
25122 (fix_trunc<mode>si2_stfiwx): Adjust.
25123 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25124 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25125 (mfpgpr): Mark as deprecated.
25126 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25127 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25128 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25129
25130 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25131
25132 * config/rs6000/constraints.md (define_register_constraint "wg"):
25133 Delete.
25134 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25135 RS6000_CONSTRAINT_wg.
25136 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25137 (rs6000_init_hard_regno_mode_ok): Adjust.
25138 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25139 Delete "wg" alternatives.
25140 * doc/md.texi (Machine Constraints): Adjust.
25141
25142 2019-06-03 Alan Modra <amodra@gmail.com>
25143
25144 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25145 (get_uncond_jump_length): Assert length less than INT_MAX and
25146 non-negative.
25147
25148 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25149
25150 PR middle-end/64242
25151 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25152 block.
25153 (expand_builtin_nonlocal_goto): Likewise.
25154
25155 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25156
25157 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25158 (aarch64_asm_output_external): Declare.
25159 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25160 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25161 (aarch64_asm_output_alias): New.
25162 (aarch64_asm_output_external): New.
25163 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25164 (ASM_OUTPUT_EXTERNAL): Define.
25165
25166 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25167 * tree-vrp.h (value_range_base::nonzero_p): New.
25168 (value_range_base::set_nonnull): Rename to...
25169 (value_range_base::set_nonzero): ...this.
25170 (value_range_base::set_null): Rename to...
25171 (value_range_base::set_zero): ...this.
25172 (value_range::set_nonnull): Remove.
25173 (value_range::set_null): Remove.
25174 * tree-vrp.c (range_is_null): Remove.
25175 (range_is_nonnull): Remove.
25176 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25177 instead of range_is_*null.
25178 (extract_range_from_unary_expr): Same.
25179 (value_range_base::set_nonnull): Rename to...
25180 (value_range_base::set_nonzero): ...this.
25181 (value_range::set_nonnull): Remove.
25182 (value_range_base::set_null): Rename to...
25183 (value_range_base::set_zero): ...this.
25184 (value_range::set_null): Remove.
25185 (extract_range_from_binary_expr): Rename set_*null uses to
25186 set_*zero.
25187 (extract_range_from_unary_expr): Same.
25188 (union_helper): Same.
25189 * vr-values.c (get_value_range): Use set_*zero instead of
25190 set_*null.
25191 (vr_values::extract_range_from_binary_expr): Same.
25192 (vr_values::extract_range_basic): Same.
25193
25194 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25195
25196 PR driver/90684
25197 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25198
25199 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25200
25201 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25202 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25203 Rename to...
25204 (aarch64_<su>abd<mode>_3): ... This.
25205 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25206
25207 2019-06-03 Richard Biener <rguenther@suse.de>
25208
25209 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25210 full reference tree and record in ref->ref.
25211 (vn_reference_lookup_3): Pass in original ref to
25212 ao_ref_init_from_vn_reference.
25213 (vn_reference_lookup): Likewise.
25214 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25215 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25216 Handle non-decl bases in the original reference.
25217
25218 2019-06-03 Martin Liska <mliska@suse.cz>
25219
25220 * doc/generic.texi: Remove Java Trees.
25221
25222 2019-06-03 Martin Liska <mliska@suse.cz>
25223
25224 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25225 returns 0 when operands are equal.
25226
25227 2019-06-03 Richard Biener <rguenther@suse.de>
25228
25229 PR tree-optimization/90716
25230 * tree-loop-distribution.c (destroy_loop): Process blocks in
25231 correct order.
25232
25233 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25234
25235 PR target/88837
25236 * vector-builder.h (vector_builder::count_dups): New method.
25237 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25238 Declare prototype.
25239 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25240 (vec_init<mode><Vel>): New pattern.
25241 * config/aarch64/aarch64.c (emit_insr): New function.
25242 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25243 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25244 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25245 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25246
25247 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25248
25249 PR tree-optimization/90681
25250 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25251 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25252 special case for SLP, but fail on non-groupped loads.
25253
25254 2019-06-03 Martin Liska <mliska@suse.cz>
25255
25256 * cfg.c (debug): Use TDF_DETAILS for debug and
25257 print edge info only once.
25258
25259 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25260
25261 PR fortran/90539
25262 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25263
25264 2019-06-01 Martin Sebor <msebor@redhat.com>
25265
25266 PR middle-end/90694
25267 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25268
25269 2019-05-31 Jan Hubicka <jh@suse.cz>
25270
25271 * alias.c: Include ipa-utils.h.
25272 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25273 * ipa-devirt.c (prevailing_odr_type): New.
25274 * ipa-utils.h (previaling_odr_type): Declare.
25275
25276 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25277 Hongtao Liu <hongtao.liu@intel.com>
25278
25279 PR target/89355
25280 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25281 NOTE_INSN_DELETED_LABEL check.
25282
25283 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25284 Robert Suchanek <robert.suchanek@mips.com>
25285
25286 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25287 and 3rd operands of the fmadd/fmsub/maddv builtin.
25288
25289 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25290
25291 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25292 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25293 on OMP_SIMD if not nested inside of worksharing loop that also has
25294 lastprivate conditional clause for the same decl.
25295 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25296 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25297 on simd.
25298 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25299 on simd construct.
25300 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25301 on simd construct.
25302 (lower_lastprivate_clauses): Likewise.
25303 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25304 calling lower_rec_input_clauses.
25305 (lower_omp_for): Likewise.
25306 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25307 clause on simd construct.
25308 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25309 OMP_CLAUSE__CONDTEMP_ clause is present.
25310
25311 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25312 ivar and lvar.
25313
25314 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25315
25316 PR c/43673
25317 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25318 TEX_D32, TEX_D64 or TEX_D128.
25319
25320 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25321
25322 * match.pd (~(vec?cst1:cst2)): New transformation.
25323
25324 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25325
25326 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25327 ((size_t)(A /[ex] B) CMP C): New transformation.
25328
25329 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25330
25331 * doc/md.texi: Document define_insn_and_rewrite.
25332 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25333 * gensupport.c (queue_elem): Update comment.
25334 (replace_operands_with_dups): New function.
25335 (gen_rewrite_sequence): Likewise.
25336 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25337 * read-rtl.c (apply_subst_iterator): Likewise.
25338 (add_condition_to_rtx, named_rtx_p): Likewise.
25339 (rtx_reader::read_rtx_operand): Likewise.
25340 * config/aarch64/aarch64-sve.md
25341 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25342 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25343 define_insn_and_rewrite.
25344 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25345 Remove separate define_split.
25346
25347 2019-05-31 Jan Hubicka <jh@suse.cz>
25348
25349 * tree-ssa-alias.c (type_has_components_p): New function.
25350 (aliasing_component_refs_p): Use it.
25351
25352 2019-05-31 Martin Liska <mliska@suse.cz>
25353
25354 * gdbhooks.py: Add const_tree to TreePrinter.
25355
25356 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25357
25358 PR debug/86964
25359 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25360 * doc/invoke.texi (Debugging Options): Document new default of
25361 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25362
25363 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25364
25365 PR tree-optimization/90671
25366 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25367 template_block used to be empty on the first call, don't use
25368 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25369 seq with bb_seq and set it with set_bb_seq.
25370
25371 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25372
25373 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25374
25375 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25376 Michael Meissner <meissner@linux.ibm.com>
25377
25378 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25379 (prefixed_mem_operand): Likewise.
25380 (non_prefixed_mem_operand): Likewise.
25381 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25382 prototype.
25383 * config/rs6000/rs6000.c (print_operand_address): Handle
25384 PC-relative addresses.
25385 (mode_supports_prefixed_address_p): New function.
25386 (rs6000_prefixed_address): New function.
25387 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25388 (SYMBOL_REF_PCREL_P): Likewise.
25389
25390 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25391
25392 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25393 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25394 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25395 is nested inside of parallel region, add _condtemp_ clause to both.
25396 * tree-nested.c (convert_nonlocal_omp_clauses,
25397 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25398 assertion failure.
25399 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25400 member.
25401 * omp-general.c (omp_extract_for_data): Compute it.
25402 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25403 (lower_rec_input_clauses): Likewise.
25404 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25405 clause is already present, just add one further one after it.
25406 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25407 (lower_send_shared_vars): Clear _condtemp_ vars.
25408 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25409 or section or taskgroup.
25410 * omp-expand.c (determine_parallel_type): Disallow combining only if
25411 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25412 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25413 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25414 expand_omp_for_static_chunk, expand_omp_for): Use
25415 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25416 determine if a special set of API routines are needed and if condtemp
25417 needs to be initialized, while always initialize cond_var if
25418 fd->lastprivate_conditional is non-zero.
25419
25420 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25421 Michael Meissner <meissner@linux.ibm.com>
25422
25423 * config/rs6000/constraints.md (eI): New constraint.
25424 * config/rs6000/predicates.md (cint34_operand): New predicate.
25425 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25426 (SIGNED_34BIT_OFFSET_P): Likewise.
25427 * doc/md.texi (eI): Document constraint.
25428
25429 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25430
25431 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25432
25433 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25434 Michael Meissner <meissner@linux.ibm.com>
25435
25436 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25437 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25438 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25439 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25440 (OTHER_FUTURE_MASKS): Likewise.
25441 (POWERPC_MASKS): Likewise.
25442 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25443 specified without -mprefixed-addr or -mcpu=future. Error if
25444 -mprefixed-addr is specified without -mcpu=future.
25445 (rs6000_opt_masks): Add entry for prefixed-addr.
25446 * rs6000.opt (mprefixed-addr): New option.
25447
25448 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25449
25450 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25451 cfun->is_thunk check.
25452
25453 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25454
25455 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25456 to length.
25457
25458 2019-05-30 Martin Liska <mliska@suse.cz>
25459
25460 * gdbinit.in: Fix 'ptc' command. Add trt
25461 that prints TREE_TYPE($).
25462
25463 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25464 Alan Modra <amodra@gmail.com>
25465
25466 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25467 calls here...
25468 (rs6000_indirect_call_template_1): ...and here.
25469 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25470 plt16_ha, plt16_lo, mtctr indirect calls. Use
25471 rs6000_pltseq_enum.
25472 (rs6000_decl_ok_for_sibcall): New function.
25473 (rs6000_function_ok_for_sibcall): Refactor.
25474 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25475 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25476 when pcrel. Reorganize.
25477 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25478 * rs6000.h (rs6000_pltseq_enum): New enum.
25479 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25480 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25481 (*pltseq_plt16_ha): Likewise.
25482 (*pltseq_plt16_lo): Likewise.
25483 (*pltseq_mtctr): Likewise.
25484 (*pltseq_plt_pcrel): New insn.
25485 (*call_local_aix): Handle @notoc calls.
25486 (*call_value_local_aix): Likewise.
25487 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25488 (*call_value_nonlocal_aix): Likewise.
25489 (*call_indirect_pcrel): New insn.
25490 (*call_value_indirect_pcrel): Likewise.
25491
25492 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25493
25494 * config/i386/sse.md (*save_multiple<mode>): Rename from
25495 save_multiple<mode>.
25496 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25497 (*restore_multiple_and_return<mode>): Rename from
25498 restore_multiple_and_return<mode>.
25499 (*restore_multiple_leave_return<mode>): Rename from
25500 restore_multiple_leave_return<mode>.
25501
25502 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25503
25504 * config.gcc (rx-*-linux*): New target.
25505 * config/rx/elf.opt: New file.
25506 * config/rx/linux.h: Likewise.
25507 * config/rx/t-linux: Likewise.
25508 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25509 make it zero.
25510 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25511 (ASM_APP_OFF): Likewise.
25512 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25513 moved elsewhere.
25514
25515 2019-05-29 Jan Hubicka <jh@suse.cz>
25516
25517 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25518 variants are pointer equivalent.
25519
25520 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25521
25522 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25523 * config/aarch64/aarch64-sve2.md: New file.
25524 (<u>avg<mode>3_floor): New pattern.
25525 (<u>avg<mode>3_ceil): Likewise.
25526 (*<sur>h<addsub><mode>): Likewise.
25527 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25528 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25529
25530 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25531
25532 PR bootstrap/90543
25533 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25534 for var_opt_string printing. In cl_optimization_print_diff, print
25535 (null) instead of invoking undefined behavior if one of the
25536 var_opt_string pointers is NULL and use && instead of first || in the
25537 guarding condition. For var_target_other options, handle const char *
25538 target variables similarly to const char * optimize node variables.
25539
25540 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25541
25542 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25543 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25544 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25545 Add autib1716 and pacib1716 initialisation.
25546 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25547 for autib1716 and pacib1716.
25548 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25549 aarch64_post_cfi_startproc): Define.
25550 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25551 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25552 aarch64_handle_pac_ret_protection): Set default sign key to A.
25553 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25554 aarch64_expand_prologue): Add check for b-key.
25555 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25556 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25557 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25558 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25559 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25560 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25561 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25562 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25563 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25564 pauth_hint_num_a with pauth_hint_num.
25565 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25566 pauth_hint_num_a with pauth_hint_num.
25567 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25568 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25569 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25570 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25571 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25572 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25573 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25574 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25575 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25576 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25577 UNSPEC_AUTIA1716 respectively.
25578 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25579 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25580 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25581 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25582 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25583 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25584
25585 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25586
25587 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25588 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25589 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25590 explicit clause on combined parallel into implicit shared clause.
25591 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25592 and firstprivate if the decl has one too from combined parallel to
25593 the worksharing construct.
25594
25595 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25596 Michael Meissner <meissner@linux.ibm.com>
25597
25598 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25599
25600 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25601
25602 * rtl.h (LABEL_REF_P): New #define.
25603
25604 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25605
25606 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25607
25608 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25609
25610 * internal-fn.c: Marked mask_load_direct as vectorizable.
25611 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25612 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25613 combined even if masks different with allow_slp_p param.
25614 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25615 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25616 dissolve SLP-only vectorizable groups when SLP has been discarded.
25617 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25618 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25619 masks.
25620 (vect_build_slp_tree_1): Fixed comment typo.
25621 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25622 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25623 loads for SLP only.
25624 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25625 vectorizable.
25626 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25627
25628 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25629
25630 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25631 Remove obsolete use_thunk reference.
25632 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25633 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25634 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25635 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25636 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25637 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25638 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25639 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25640 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25641
25642 2019-05-28 Nathan Sidwell <nathan@acm.org>
25643
25644 * tree.h (IDENTIFIER_ANON_P): New.
25645 (anon_aggrname_format, anon_aggname_p): Don't declare.
25646 (make_anon_name): Declare.
25647 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25648 (hash_tree): Likewise.
25649 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25650 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25651 (anon_cnt, make_anon_name): New.
25652
25653 2019-05-28 Martin Liska <mliska@suse.cz>
25654
25655 PR other/90315
25656 * opts-global.c (decode_options): Print help for all
25657 help_option_arguments.
25658 * opts.c (print_help): Add new argument.
25659 (common_handle_option): Remember all values into
25660 help_option_arguments.
25661 * opts.h (print_help): Add new argument.
25662
25663 2019-05-28 Martin Liska <mliska@suse.cz>
25664
25665 PR ipa/90555
25666 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25667 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25668 (func_checker::compare_bb): Call compare_loops.
25669
25670 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25671
25672 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25673 on sections construct.
25674 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25675 construct.
25676 (lower_omp_sections): Handle lastprivate conditional.
25677 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25678 lastprivate_conditional_map.
25679 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25680
25681 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25682 critical, taskgroup and section regions when looking for a region
25683 with non-NULL lastprivate_conditional_map.
25684
25685 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25686
25687 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25688 (*ix86_gen_sub3): Ditto.
25689 (*ix86_gen_sub3_carry): Ditto.
25690 (*ix86_gen_one_cmpl2): Ditto.
25691 (*ix86_gen_andsp): Ditto.
25692 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25693 (gen_and2_insn): New static function.
25694 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25695 Use gen_add3_insn instead of ix86_gen_add3.
25696 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25697 instead of ix86_gen_add3.
25698 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25699 Use gen_sub3_insn instead of ix86_gen_sub3.
25700 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25701 instead of ix86_gen_add3.
25702 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25703 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25704 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25705 * config/i386/i386-options.c (ix86_option_override_internal):
25706 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25707 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25708
25709 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25710
25711 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25712 and DW_OP_GNU_const_index opcodes.
25713
25714 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25715
25716 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25717
25718 2019-05-27 Richard Biener <rguenther@suse.de>
25719
25720 PR tree-optimization/90637
25721 * tree-ssa-sink.c (statement_sink_location): Honor the
25722 computed sink location for single-uses.
25723
25724 2019-05-27 Richard Biener <rguenther@suse.de>
25725
25726 PR middle-end/90610
25727 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25728 a bit-insert.
25729
25730 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25731
25732 * config/i386/i386.md (@sub<mode>3_carry): Rename
25733 from sub<mode>3_carry.
25734 (@leave_<mode>): New expander.
25735 (*leave): Rename from leave.
25736 (*leave_rex64): Rename from leave_rex64.
25737 (@monitorx_<mode>): Rename from monitorx_<mode>.
25738 (@clzero_<mode>): Rename from clzero_<mode>.
25739 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25740 from sse3_monitor_<mode>.
25741 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25742 (*ix86_gen_leave): Ditto.
25743 (*ix86_gen_monitor): Ditto.
25744 (*ix86_gen_monitorx): Ditto.
25745 (*ix86_gen_clzero): Ditto.
25746 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25747 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25748 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25749 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25750 Use gen_sse3_monitor instead of ix86_gen_monitor.
25751 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25752 instead of ix86_gen_monitorx.
25753 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25754 instead of ix86_gen_clzero.
25755 * config/i386/i386-options.c (ix86_option_override_internal):
25756 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25757 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25758
25759 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25760
25761 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25762 Rename from tls_global_dynamic_64_<mode>.
25763 (@tls_local_dynamic_base_64_<mode>): Rename from
25764 tls_local_dynamic_base_64_<mode>.
25765 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25766 Remove indirect function.
25767 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25768 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25769 instead of ix86_gen_tls_global_dynamic_64.
25770 Use gen_tls_local_dynamic_base_64 instead of
25771 ix86_gen_tls_local_dynamic_base_64.
25772 * config/i386/i386-options.c (ix86_option_override_internal):
25773 Do not initialize ix86_gen_tls_global_dynamic_64 and
25774 ix86_gen_tls_local_dynamic_base_64.
25775
25776 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25777
25778 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25779 Rename from pro_epilogue_adjust_stack_<mode>_add.
25780 (@pro_epilogue_adjust_stack_sub_<mode>)
25781 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25782 (@allocate_stack_worker_probe_<mode>):
25783 Rename from allocate_stack_worker_probe_<mode>.
25784 (allocate_stack): Use gen_allocate_stack_worker_probe.
25785 (probe_stack): Use gen_probe_stack_1.
25786 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25787 (@adjust_stack_and_probe_<mode>): Rename from
25788 adjust_stack_and_probe<mode>.
25789 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25790 (stack_protect_set): Use gen_stack_protect_set_1.
25791 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25792 (stack_protect_test): Use gen_stack_protect_test_1.
25793 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25794 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25795 Remove indirect function.
25796 (*ix86_gen_adjust_stack_and_probe): Ditto.
25797 (*ix86_gen_probe_stack_range): Ditto.
25798 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25799 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25800 (ix86_adjust_stack_and_probe_stack_clash): Use
25801 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25802 (ix86_adjust_stack_and_probe): Ditto.
25803 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25804 of ix86_gen_probe_stack_range.
25805 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25806 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25807 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25808 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25809 CODE_FOR_stack_protect_test_{si,di}.
25810 * config/i386/i386-options.c (ix86_option_override_internal):
25811 Do not initialize ix86_gen_allocate_stack_worker,
25812 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25813
25814 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25815
25816 * doc/invoke.texi (Link Options): Many editorial changes around
25817 -flinker-output.
25818
25819 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25820
25821 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25822 pre-Solaris 11 referene and most Studio compiler details.
25823
25824 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25825
25826 PR target/90530
25827 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25828 DImode to SImode in floating-point registers on 64-bit target.
25829 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25830 register_operand in xmpyu patterns.
25831
25832 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25833
25834 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25835 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25836 OMP_CLAUSE__REDUCTEMP_.
25837 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25838 OMP_CLAUSE__CONDTEMP_.
25839 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25840 * tree-pretty-print.c (dump_omp_clause): Likewise.
25841 * tree-nested.c (convert_nonlocal_omp_clauses,
25842 convert_local_omp_clauses): Likewise.
25843 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25844 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25845 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25846 on OMP_FOR.
25847 (gimplify_omp_for): Warn and disable conditional modifier from
25848 lastprivate on loop iterators.
25849 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25850 member.
25851 * omp-general.c (omp_extract_for_data): Initialize it.
25852 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25853 member.
25854 (delete_omp_context): Delete it.
25855 (lower_lastprivate_conditional_clauses): New function.
25856 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25857 handle lastprivate conditional clauses.
25858 (lower_reduction_clauses): Add CLIST argument, emit it into
25859 the critical section if any.
25860 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25861 lower_reduction_clauses callers.
25862 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25863 to lower_lastprivate_clauses.
25864 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25865 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25866 clist into a critical section if not emitted there already by
25867 lower_reduction_clauses.
25868 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25869 callers.
25870 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25871 conditional variables.
25872 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25873 clause is present.
25874 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25875 expand_omp_for_static_chunk): Handle lastprivate conditional.
25876 (expand_omp_for): Handle fd.lastprivate_conditional like
25877 fd.have_reductemp.
25878
25879 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25880
25881 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25882 kernel does not exit cleanly.
25883 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25884
25885 2019-05-24 Jason Merrill <jason@redhat.com>
25886
25887 Revert:
25888 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25889
25890 2019-05-24 Richard Biener <rguenther@suse.de>
25891
25892 PR testsuite/90607
25893 * tree-loop-distribution.c (struct partition): Add location
25894 member.
25895 (partition_alloc): Initialize all fields.
25896 (generate_memset_builtin): Use the location recorded in the
25897 partition for the generated call.
25898 (generate_memcpy_builtin): Likewise.
25899 (classify_partition): Record the location of a single store
25900 as location for the partition.
25901
25902 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25903
25904 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25905 for lo-part.
25906
25907 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25908
25909 PR target/90588
25910 * common/config/aarch64/aarch64-common.c
25911 (aarch64_rewrite_selected_cpu): Change local temporary variable
25912 type from unsigned long to uint64_t.
25913 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25914 aarch64_get_extension_string_for_isa_flags): Change declaration to
25915 match new definition by replacing unsigned long with uint64_t.
25916
25917 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25918
25919 PR target/90568
25920 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25921 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25922 Handle stack_protect_test_<mode> codegen similarly to corresponding
25923 sub instruction.
25924
25925 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25926
25927 * config/i386/darwin.h: Reject -mfentry*.
25928 * doc/sourcebuild.texi: Document mfentry target support.
25929
25930 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25931
25932 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25933 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25934 false for PC-relative functions.
25935 (rs6000_output_function_prologue): Change called function name to
25936 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25937 name,1" for PC-relative functions.
25938 (rs6000_elf_declare_function_name): Change called function name to
25939 rs6000_global_entry_point_prologue_needed_p.
25940
25941 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25942
25943 PR target/90552
25944 * config/i386/i386.c (gen_rtx_cost):
25945 Use ix86_tune_cost instead of ix86_cost.
25946
25947 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25948 Michael Meissner <meissner@linux.ibm.com>
25949 Segher Boessenkool <segher@kernel.crashing.org>
25950
25951 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25952 OPTION_MASK_PCREL.
25953 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25954 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25955 (rs6000_fndecl_pcrel_p): Likewise.
25956 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25957 error if -mpcrel is requested without -mcpu=future.
25958 (rs6000_opt_masks): Add entry for pcrel.
25959 (rs6000_fndecl_pcrel_p): New function.
25960 (rs6000_pcrel_p): Likewise.
25961 * config/rs6000/rs6000.opt (mpcrel): New option.
25962 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25963
25964 2019-05-23 Jan Hubicka <jh@suse.cz>
25965 Martin Liska <mliska@suse.cz>
25966
25967 PR tree-optimization/90576
25968 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25969 poly_int_tree_p.
25970 (aliasing_component_refs_p): Fix three way size compare conditional;
25971 give up earlier in case we can not decide on equivalence.
25972
25973 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25974 Michael Meissner <meissner@linux.ibm.com>
25975 Segher Boessenkool <segher@kernel.crashing.org>
25976
25977 * config.gcc: Add future cpu.
25978 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25979 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25980 #define.
25981 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25982 (RS6000_CPU): New instantiation for future cpu.
25983 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25984 PROCESSOR_FUTURE.
25985 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25986 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25987 * config/rs6000/rs6000-tables.opt: Regenerate.
25988 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25989 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25990 (rs6000_machine_from_flags): Handle future cpu.
25991 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25992 PROCESSOR_POWER9 for now.
25993 (rs6000_adjust_cost): Likewise.
25994 (rs6000_issue_rate): Likewise.
25995 (rs6000_register_move_cost): Likewise.
25996 (rs6000_opt_masks): Add entry for future.
25997 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25998 (MASK_FUTURE): New #define.
25999 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26000 * config/rs6000/rs6000.opt (mfuture): New target option.
26001 * doc/invoke.texi (mcpu): Add future cpu.
26002
26003 2019-05-23 Martin Liska <mliska@suse.cz>
26004
26005 PR c++/90587
26006 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26007 operation points to a temporary (pointed via tree_to_wide_ref)
26008 that is out of scope after the &.
26009
26010 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26011
26012 PR c++/90592
26013 * doc/extend.texi (Function Names): Add missing word.
26014
26015 2019-05-23 Richard Biener <rguenther@suse.de>
26016
26017 PR tree-optimization/88440
26018 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26019 at -O[2s]+.
26020 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26021 generated call.
26022 (generate_memcpy_builtin): Likewise.
26023 (distribute_loop): Pass in whether to only distribute patterns.
26024 (prepare_perfect_loop_nest): Also allow size optimization.
26025 (pass_loop_distribution::execute): When optimizing a loop
26026 nest for size allow pattern replacement.
26027
26028 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26029
26030 PR target/90568
26031 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26032 of xor.
26033
26034 2019-05-23 Martin Liska <mliska@suse.cz>
26035
26036 PR sanitizer/90570
26037 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26038 expression similarly to gimplify_decl_expr.
26039
26040 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26041
26042 * cse.c (cse_dump_path): s/dump_file/f.
26043
26044 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26045
26046 PR c++/90462
26047 * diagnostic-format-json.cc: Include "selftest.h".
26048 (json_from_expanded_location): Only add "file" key for non-NULL
26049 file strings.
26050 (json_from_location_range): Don't add "start" and "finish"
26051 children if they are UNKNOWN_LOCATION.
26052 (selftest::test_unknown_location): New selftest.
26053 (selftest::test_bad_endpoints): New selftest.
26054 (selftest::diagnostic_format_json_cc_tests): New function.
26055 * json.cc (json::object::get): New function.
26056 (selftest::test_object_get): New selftest.
26057 (selftest::json_cc_tests): Call it.
26058 * json.h (json::object::get): New decl.
26059 * selftest-run-tests.c (selftest::run_tests): Call
26060 selftest::diagnostic_format_json_cc_tests.
26061 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26062 decl.
26063
26064 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26065 Andrew Stubbs <amd@codesourcery.com>
26066
26067 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26068 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26069 (kernel): Rename to...
26070 (main_kernel): ... this.
26071 (load_image): Load _init_array and _fini_array kernels.
26072 (run): Add argument for kernel to run.
26073 (main): Run init_array_kernel before main_kernel, and
26074 fini_array_kernel after.
26075 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26076 amdgpu_hsa_kernel attribute on functions.
26077 (gcn_disable_constructors): Delete.
26078 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26079 * config/gcn/crt0.c (size_t): Define.
26080 (_init_array, _fini_array): New.
26081 (__preinit_array_start, __preinit_array_end,
26082 __init_array_start, __init_array_end,
26083 __fini_array_start, __fini_array_end): Declare weak references.
26084
26085 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26086
26087 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26088
26089 2019-05-22 Jason Merrill <jason@redhat.com>
26090
26091 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26092
26093 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26094
26095 PR target/88483
26096 * config/i386/i386-options.c (ix86_init_machine_status): Set
26097 stack_frame_required to true.
26098 * config/i386/i386.c (ix86_get_frame_size): New function.
26099 (ix86_frame_pointer_required): Replace get_frame_size with
26100 ix86_get_frame_size.
26101 (ix86_compute_frame_layout): Likewise.
26102 (ix86_find_max_used_stack_alignment): Changed to void. Set
26103 stack_frame_required.
26104 (ix86_finalize_stack_frame_flags): Always call
26105 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26106 ix86_get_frame_size.
26107 * config/i386/i386.h (machine_function): Add stack_frame_required.
26108
26109 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26110
26111 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26112
26113 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26114
26115 * common/config/aarch64/aarch64-common.c
26116 (struct aarch64_option_extension, struct processor_name_to_arch,
26117 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26118 aarch64_contains_opt,
26119 aarch64_get_extension_string_for_isa_flags): Change type of
26120 variables storing flags to uint64_t.
26121 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26122 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26123 * config/aarch64/aarch64.c (struct processor,
26124 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26125 aarch64_validate_march, aarch64_override_options,
26126 aarch64_option_print, aarch64_handle_attr_isa_flags,
26127 aarch64_declare_function_name, aarch64_start_file): Make flag
26128 variables uint64_t.
26129 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26130 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26131 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26132 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26133 * config/aarch64/driver-aarch64.c
26134 (struct aarch64_arch_extension, struct aarch64_core_data,
26135 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26136 flag variables uint64_t.
26137 * doc/invoke.texi: Add documentation for new arguments.
26138
26139 2019-05-22 Richard Biener <rguenther@suse.de>
26140
26141 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26142 rewrite ...
26143 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26144
26145 2019-05-22 Martin Liska <mliska@suse.cz>
26146
26147 PR lto/90500
26148 * doc/extend.texi: Document the change.
26149
26150 2019-05-22 Richard Biener <rguenther@suse.de>
26151
26152 PR tree-optimization/90450
26153 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26154 (mem_ref_hasher::equal): Check it.
26155 (mem_ref_alloc): Initialize it.
26156 (gather_mem_refs_stmt): Set it.
26157
26158 2019-05-22 Richard Biener <rguenther@suse.de>
26159
26160 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26161 Add ABS_EXPR.
26162 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26163 as ABSU_EXPR.
26164
26165 2019-05-22 Alan Modra <amodra@gmail.com>
26166
26167 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26168 (ASM_CPU_SPEC): Conditionally add -many.
26169 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26170 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26171 (rs6000_file_start): ..extracted from here, and modified to
26172 test all ISA bits.
26173 (rs6000_output_function_prologue): Emit .machine as necessary.
26174
26175 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26176
26177 PR middle-end/90553
26178 * ira-lives.c (process_bb_node_lives): Consider defs
26179 for a call insn to be die before the call, not after.
26180
26181 * function.c (assign_parm_setup_block): Raise alignment of
26182 stacked parameter only for STRICT_ALIGNMENT targets.
26183
26184 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26185
26186 * config/rs6000/constraints.md (define_register_constraint "wz"):
26187 Delete.
26188 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26189 RS6000_CONSTRAINT_wz.
26190 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26191 (rs6000_init_hard_regno_mode_ok): Adjust.
26192 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26193 * doc/md.texi (Machine Constraints): Adjust.
26194
26195 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26196
26197 * config/rs6000/constraints.md (define_register_constraint "wl"):
26198 Delete.
26199 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26200 RS6000_CONSTRAINT_wl.
26201 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26202 (rs6000_init_hard_regno_mode_ok): Adjust.
26203 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26204 * doc/md.texi (Machine Constraints): Adjust.
26205
26206 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26207
26208 * config/rs6000/constraints.md (define_register_constraint "wm"):
26209 Delete.
26210 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26211 RS6000_CONSTRAINT_wm.
26212 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26213 (rs6000_init_hard_regno_mode_ok): Adjust.
26214 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26215 * doc/md.texi (Machine Constraints): Adjust.
26216
26217 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26218
26219 * config/rs6000/constraints.md (define_register_constraint "wk"):
26220 Delete.
26221 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26222 RS6000_CONSTRAINT_wk.
26223 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26224 (rs6000_init_hard_regno_mode_ok): Adjust.
26225 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26226 * doc/md.texi (Machine Constraints): Adjust.
26227
26228 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26229
26230 * config/rs6000/constraints.md (define_register_constraint "wj"):
26231 Delete.
26232 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26233 RS6000_CONSTRAINT_wj.
26234 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26235 (rs6000_init_hard_regno_mode_ok): Adjust.
26236 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26237 (VS_64dm): Delete.
26238 * config/rs6000/vsx.md: Ditto.
26239 * doc/md.texi (Machine Constraints): Adjust.
26240
26241 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26242
26243 * config/rs6000/constraints.md (define_register_constraint "wh"):
26244 Delete.
26245 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26246 RS6000_CONSTRAINT_wh.
26247 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26248 (rs6000_init_hard_regno_mode_ok): Adjust.
26249 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26250 * doc/md.texi (Machine Constraints): Adjust.
26251
26252 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26253
26254 PR target/90547
26255 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26256 Avoid calling gen_lowpart with CONST operand.
26257
26258 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26259
26260 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26261 field template_last_to_copy.
26262 (ssa_create_duplicates): Set it, and use it. Attempt to
26263 preserve more debug stmts.
26264
26265 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26266
26267 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26268 (signbit<mode>2): New expander
26269
26270 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26271
26272 PR bootstrap/87338
26273 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26274 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26275
26276 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26277
26278 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26279 %ebx and %ecx bafore calling cpuid with leaf 1 or
26280 non-constant leaf argument.
26281
26282 2019-05-21 Alan Modra <amodra@gmail.com>
26283
26284 PR target/90545
26285 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26286 power9 direct move cost.
26287
26288 2019-05-21 Richard Biener <rguenther@suse.de>
26289
26290 PR middle-end/90510
26291 * fold-const.c (fold_read_from_vector): New function.
26292 * fold-const.h (fold_read_from_vector): Declare.
26293 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26294 single-element insert permutations. Canonicalize selector
26295 further and fix issue with last commit.
26296
26297 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26298
26299 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26300 parameter with default value false to declaration.
26301 (split_edges_for_insertion): New inline function. Wrapper for
26302 split_critical_edges with for_edge_insertion_p = true.
26303 * tree-cfg.c (split_critical_edges): Don't split non-critical
26304 edges if for_edge_insertion_p is false. Fix whitespace.
26305 * tree-ssa-pre.c (pass_pre::execute): Call
26306 split_edges_for_insertion instead of split_critical_edges.
26307 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26308 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26309 (pass_data_sink_code): Update function name in the comment.
26310
26311 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26312
26313 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26314 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26315 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26316 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26317 positives.
26318
26319 2019-05-21 Martin Liska <mliska@suse.cz>
26320
26321 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26322 an extra newline.
26323 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26324 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26325 vec_lvsr.
26326 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26327 Quote a C type.
26328 (rs6000_function_arg): Likewise.
26329 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26330 (rs6000_expand_ternop_builtin): Use interval syntax.
26331 (get_element_number): Likewise.
26332 (altivec_expand_builtin): Likewise.
26333 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26334
26335 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26336
26337 PR c++/59813
26338 PR target/90418
26339 * function.h (struct function): Add calls_eh_return member.
26340 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26341 gimplifying __builtin_eh_return call.
26342 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26343 to cfun.
26344 (expand_call_inline): Or in src_cfun->calls_eh_return into
26345 dst_cfun->calls_eh_return.
26346 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26347 cfun->calls_eh_return.
26348 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26349 * lto-streamer-out.c (output_struct_function_base): Write
26350 calls_eh_return.
26351
26352 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26353
26354 PR rtl-optimization/43147
26355 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26356 IX86_BUILTIN_SHUFPD.
26357
26358 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26359
26360 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26361 (refs_may_alias_p_1): ... here; update stats.
26362 (refs_may_alias_p): Do not update stats here.
26363
26364 2019-05-20 Richard Biener <rguenther@suse.de>
26365
26366 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26367 doesn't produce pointers.
26368 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26369 the first operand points to.
26370
26371 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26372
26373 * tree-ssa-alias.c (compare_sizes): New function.
26374 (sompare_type_sizes): New function
26375 (aliasing_component_refs_p): Use it.
26376 (indirect_ref_may_alias_decl_p): Likewise.
26377
26378 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26379
26380 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26381
26382 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26383
26384 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26385 (LIBLSAN_EARLY_SPEC): Likewise.
26386 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26387
26388 2019-05-20 Martin Liska <mliska@suse.cz>
26389
26390 * config/i386/i386.c (ix86_libc_has_fast_function):
26391 Add ATTRIBUTE_UNUSED for the argument.
26392
26393 2019-05-20 Richard Biener <rguenther@suse.de>
26394
26395 * gimple-match-head.c: Include vec-perm-indices.h.
26396 * generic-match-head.c: Likewise.
26397 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26398 is included.
26399 * fold-const.c (fold_vec_perm): Export.
26400 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26401 (match.pd): ...here.
26402
26403 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26404
26405 * cfgloop.h (struct loop): Add simdlen member.
26406 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26407 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26408 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26409 as new argument to autovectorize_vector_sizes target hook. If
26410 loop->simdlen, pick up vector size where the vectorization factor
26411 is equal to loop->simd, and if there is none, fall back to the first
26412 successful one.
26413 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26414 caller.
26415 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26416 * omp-general.c (omp_max_vf): Likewise.
26417 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26418 * tree-vect-slp.c (vect_slp_bb): Likewise.
26419 * target.def (autovectorize_vector_sizes): Add ALL argument and
26420 document it.
26421 * doc/tm.texi: Adjust documentation.
26422 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26423 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26424 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26425 bool argument.
26426 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26427 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26428 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26429 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26430 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26431 preferred vector size is not 512-bit or 256-bit, just put those
26432 unpreferred ones last.
26433
26434 2019-05-20 Martin Liska <mliska@suse.cz>
26435
26436 * targhooks.c (default_libc_has_fast_function): New function.
26437 * targhooks.h (default_libc_has_fast_function): Likewise.
26438
26439 2019-05-20 Martin Liska <mliska@suse.cz>
26440
26441 PR middle-end/90263
26442 * builtins.c (expand_builtin_memory_copy_args): When having a
26443 target with fast mempcpy implementation do now use memcpy.
26444 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26445 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26446 * doc/tm.texi: Likewise.
26447 * doc/tm.texi.in: Likewise.
26448 * target.def:
26449 * expr.c (emit_block_move_hints): Add 2 new arguments.
26450 * expr.h (emit_block_move_hints): Bail out when libcall
26451 to memcpy would be used.
26452
26453 2019-05-20 Martin Liska <mliska@suse.cz>
26454
26455 * profile-count.c: Add vertical spacing in order
26456 to separate functions.
26457 * profile-count.h: Likewise.
26458
26459 2019-05-20 Martin Liska <mliska@suse.cz>
26460
26461 * profile-count.h: Do not use full qualified
26462 names if possible.
26463 * profile-count.c (profile_count::to_frequency): Likewise.
26464
26465 2019-05-20 Martin Liska <mliska@suse.cz>
26466
26467 * profile-count.h (enum profile_quality): Use capital letters
26468 for enum value names. Use the adjusted names.
26469 * profile-count.c: Use the adjusted names.
26470
26471 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26472
26473 * config/rs6000/constraints.md (define_register_constraint "wH"):
26474 Delete.
26475 (define_register_constraint "wI"): Delete.
26476 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26477 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26478 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26479 (rs6000_init_hard_regno_mode_ok): Adjust.
26480 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26481 resp. "d", or with "wa" as appropriate, all with "p8v".
26482 * config/rs6000/vsx.md: Ditto.
26483 * doc/md.texi (Machine Constraints): Adjust.
26484
26485 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26486
26487 * config/rs6000/constraints.md (define_register_constraint "wy"):
26488 Delete.
26489 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26490 RS6000_CONSTRAINT_wy.
26491 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26492 (rs6000_init_hard_regno_mode_ok): Adjust.
26493 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26494 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26495 (define_mode_attr Fisa): New.
26496 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26497 * doc/md.texi (Machine Constraints): Adjust.
26498
26499 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26500
26501 * config/rs6000/constraints.md (define_register_constraint "wu"):
26502 Delete.
26503 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26504 RS6000_CONSTRAINT_wu.
26505 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26506 (rs6000_init_hard_regno_mode_ok): Adjust.
26507 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26508 both with "p8v".
26509 (define_mode_attr Fa): Delete.
26510 * config/rs6000/vsx.md: Ditto.
26511 * doc/md.texi (Machine Constraints): Adjust.
26512
26513 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26514
26515 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26516 Delete.
26517 (define_register_constraint "wK"): Delete.
26518 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26519 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26520 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26521 (rs6000_init_hard_regno_mode_ok): Adjust.
26522 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26523 Replace "wK" constraint by "wH" with "p9v".
26524 * config/rs6000/vsx.md: Ditto.
26525 * doc/md.texi (Machine Constraints): Adjust.
26526
26527 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26528
26529 * config/rs6000/constraints.md (define_register_constraint "wb"):
26530 Delete.
26531 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26532 RS6000_CONSTRAINT_wb.
26533 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26534 (rs6000_init_hard_regno_mode_ok): Adjust.
26535 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26536 * config/rs6000/vsx.md: Ditto.
26537 * doc/md.texi (Machine Constraints): Adjust.
26538
26539 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26540
26541 * config/rs6000/constraints.md (define_register_constraint "wo"):
26542 Delete.
26543 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26544 RS6000_CONSTRAINT_wo.
26545 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26546 (rs6000_init_hard_regno_mode_ok): Adjust.
26547 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26548 * config/rs6000/altivec.md: Ditto.
26549 * doc/md.texi (Machine Constraints): Adjust.
26550
26551 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26552
26553 * config/darwin-c.c (darwin_register_objc_includes): Do not
26554 prepend the sysroot when building gnu-runtime header search
26555 paths.
26556
26557 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26558
26559 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26560 instead of direct output of the asm.
26561
26562 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26563
26564 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26565 argument to be type bool (was int before).
26566 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26567 at first use. Use type bool for some variables. Fix a theoretical
26568 eh_return bug for svr4.
26569
26570 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26571
26572 * config/rs6000/rs6000.md (isa): New attribute.
26573 (enabled): New attribute.
26574
26575 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26576
26577 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26578 assemble_start_function and assemble_end_function.
26579
26580 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26581
26582 PR middle-end/89433
26583 * omp-general.c (oacc_verify_routine_clauses): Change formal
26584 parameters. Add checking if already marked with an OpenACC
26585 'routine' directive. Adjust all users.
26586
26587 PR middle-end/89433
26588 * omp-general.c (oacc_build_routine_dims): Move some of its
26589 processing into...
26590 (oacc_verify_routine_clauses): ... this new function.
26591 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26592
26593 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26594
26595 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26596 formating of picbase labels to match other ports.
26597
26598 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26599
26600 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26601 in the generated code.
26602
26603 2019-05-16 Martin Sebor <msebor@redhat.com>
26604
26605 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26606 identifiers, keywords, operators, and types in diagnostics. Correct
26607 quoting, spelling, and sentence capitalization issues.
26608 (expand_builtin_atomic_is_lock_free): Same.
26609 (fold_builtin_next_arg): Same.
26610 * cfgexpand.c (expand_one_var): Same.
26611 (tree_conflicts_with_clobbers_p): Same.
26612 (expand_asm_stmt): Same.
26613 (verify_loop_structure): Same.
26614 * cgraphunit.c (process_function_and_variable_attributes): Same.
26615 * collect-utils.c (collect_execute): Same.
26616 * collect2.c (maybe_run_lto_and_relink): Same.
26617 (is_lto_object_file): Same.
26618 (scan_prog_file): Same.
26619 * convert.c (convert_to_real_1): Same.
26620 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26621 * except.c (verify_eh_tree): Same.
26622 * gcc.c (execute): Same.
26623 (eval_spec_function): Same.
26624 (run_attempt): Same.
26625 (driver::set_up_specs): Same.
26626 (compare_debug_auxbase_opt_spec_function): Same.
26627 * gcov-tool.c (unlink_gcda_file): Same.
26628 (do_merge): Same.
26629 (do_rewrite): Same.
26630 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26631 * gimplify.c (gimplify_asm_expr): Same.
26632 (gimplify_adjust_omp_clauses): Same.
26633 * hsa-gen.c (gen_hsa_addr_insns): Same.
26634 (gen_hsa_insns_for_load): Same.
26635 (gen_hsa_cmp_insn_from_gimple): Same.
26636 (gen_hsa_insns_for_operation_assignment): Same.
26637 (gen_get_level): Same.
26638 (gen_hsa_alloca): Same.
26639 (omp_simple_builtin::generate): Same.
26640 (gen_hsa_atomic_for_builtin): Same.
26641 (gen_hsa_insns_for_call): Same.
26642 * input.c (dump_location_info): Same.
26643 * ipa-devirt.c (compare_virtual_tables): Same.
26644 * ira.c (ira_setup_eliminable_regset): Same.
26645 * lra-assigns.c (lra_assign): Same.
26646 * lra-constraints.c (lra_constraints): Same.
26647 * lto-streamer-in.c (lto_input_mode_table): Same.
26648 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26649 (merge_and_complain): Same.
26650 (compile_offload_image): Same.
26651 (compile_images_for_offload_targets): Same.
26652 (debug_objcopy): Same.
26653 (run_gcc): Same.
26654 (main): Same.
26655 * opts.c (print_specific_help): Same.
26656 (parse_no_sanitize_attribute): Same.
26657 (print_help): Same.
26658 (handle_param): Same.
26659 * plugin.c (add_new_plugin): Same.
26660 (parse_plugin_arg_opt): Same.
26661 (try_init_one_plugin): Same.
26662 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26663 operators, and types in diagnostics. Correct quoting and spelling
26664 issues.
26665 * read-rtl-function.c (parse_edge_flag_token): Same.
26666 (function_reader::parse_enum_value): Same.
26667 * reg-stack.c (check_asm_stack_operands): Same.
26668 * regcprop.c (validate_value_data): Same.
26669 * sched-rgn.c (make_pass_sched_fusion): Same.
26670 * stmt.c (check_unique_operand_names): Same.
26671 * targhooks.c (default_target_option_pragma_parse): Same.
26672 * tlink.c (recompile_files): Same.
26673 * toplev.c (process_options): Same.
26674 (do_compile): Same.
26675 * trans-mem.c (diagnose_tm_1): Same.
26676 (ipa_tm_scan_irr_block): Same.
26677 (ipa_tm_diagnose_transaction): Same.
26678 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26679 format a tree code name in a diagnostic.
26680 (verify_types_in_gimple_min_lval): Same.
26681 (verify_types_in_gimple_reference): Same.
26682 (verify_gimple_call): Same.
26683 (verify_gimple_assign_unary): Same.
26684 (verify_gimple_assign_binary): Same.
26685 (verify_gimple_assign_ternary): Same.
26686 (verify_gimple_assign_single): Same.
26687 (verify_gimple_switch): Same.
26688 (verify_gimple_label): Same.
26689 (verify_gimple_phi): Same.
26690 (verify_gimple_in_seq): Same.
26691 (verify_eh_throw_stmt_node): Same.
26692 (collect_subblocks): Same.
26693 (gimple_verify_flow_info): Same.
26694 (do_warn_unused_result): Same.
26695 * tree-inline.c (expand_call_inline): Same.
26696 * tree-into-ssa.c (update_ssa): Same.
26697 * tree.c (tree_int_cst_elt_check_failed): Same.
26698 (tree_vec_elt_check_failed): Same.
26699 (omp_clause_operand_check_failed): Same.
26700 (verify_type_variant): Same.
26701 (verify_type): Same.
26702 * value-prof.c (verify_histograms): Same.
26703 * varasm.c (assemble_start_function): Same.
26704
26705 2019-05-16 Martin Sebor <msebor@redhat.com>
26706
26707 * config/i386/i386-expand.c (get_element_number): Quote keywords
26708 and other internal names in diagnostics. Adjust other diagnostic
26709 formatting issues noted by -Wformat-diag.
26710 * config/i386/i386-features.c
26711 (ix86_mangle_function_version_assembler_name): Same.
26712 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26713 * config/i386/i386.c (ix86_function_type_abi): Same.
26714 (ix86_function_ms_hook_prologue): Same.
26715 (classify_argument): Same.
26716 (ix86_expand_prologue): Same.
26717 (ix86_md_asm_adjust): Same.
26718 (ix86_memmodel_check): Same.
26719
26720 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26721
26722 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26723 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26724 and fpxx modes.
26725
26726 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26727
26728 PR target/90497
26729 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26730 intrinsics without SSE/SSE2/SSSE3.
26731 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26732 check.
26733 (*mmx_uavgv8qi3): Likewise.
26734
26735 2019-05-17 Richard Biener <rguenther@suse.de>
26736
26737 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26738 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26739
26740 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26741
26742 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26743 vec_sldw insn pattern.
26744
26745 2019-05-17 Richard Biener <rguenther@suse.de>
26746
26747 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26748
26749 2019-05-17 Martin Liska <mliska@suse.cz>
26750
26751 PR driver/90496
26752 * toplev.c (output_stack_usage): With LTO and sanitizer it
26753 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26754 has no file location.
26755
26756 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26757
26758 PR c++/90484
26759 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26760 sz0 is equal to sz1, instead return false in that case.
26761
26762 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26763 has non-constant expression, force sctx.lane and use two
26764 argument IFN_GOMP_SIMD_LANE instead of single argument.
26765 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26766 two argument IFN_GOMP_SIMD_LANE without lhs.
26767 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26768 member.
26769 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26770 Define.
26771 (LOOP_REQUIRES_VERSIONING): Or in
26772 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26773 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26774 simd_if_cond.
26775 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26776 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26777 from simd if clause if needed.
26778
26779 2019-05-16 Richard Biener <rguenther@suse.de>
26780
26781 * tree-affine.c (expr_to_aff_combination): New function split
26782 out from...
26783 (tree_to_aff_combination): ... here.
26784 (aff_combination_expand): Avoid building a GENERIC tree.
26785
26786 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26787
26788 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26789 assemble_start_function and assemble_end_function calls.
26790 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26791 assemble_start_function and assemble_end_function.
26792 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26793 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26794 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26795 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26796 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26797 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26798 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26799 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26800 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26801 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26802 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26803 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26804 Likewise.
26805 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26806 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26807 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26808 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26809 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26810 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26811 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26812 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26813 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26814 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26815 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26816 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26817 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26818 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26819 Likewise.
26820 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26821 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26822 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26823
26824 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26825
26826 * tree-ssa-alias.c (alias_stats): Add
26827 aliasing_component_refs_p_may_alias and
26828 aliasing_component_refs_p_no_alias.
26829 (dump_alias_stats): Print aliasing_component_refs_p stats.
26830 (aliasing_component_refs_p): Update stats.
26831
26832 2019-05-16 Martin Liska <mliska@suse.cz>
26833
26834 PR lto/90500
26835 * multiple_target.c (expand_target_clones): Do not allow
26836 target_clones being used with a symbol that is an alias.
26837
26838 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26839
26840 PR tree-optimization/90394
26841 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26842 positives rather than ICE for cases where (code2 == NE_EXPR
26843 && code1 == BIT_AND_EXPR).
26844
26845 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26846
26847 PR fortran/90329
26848 * tree-core.h (struct tree_decl_common): Document
26849 decl_nonshareable_flag for PARM_DECLs.
26850 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26851 * calls.c (expand_call): Don't try tail call if caller
26852 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26853 passed on the stack and callee needs to pass any arguments on the
26854 stack.
26855 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26856 else if instead of series of mutually exclusive ifs. Handle
26857 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26858 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26859
26860 * lto-streamer.h (LTO_major_version): Bump to 9.
26861
26862 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26863
26864 PR tree-optimization/90106
26865 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26866 new parameter as new internal function call, also move it to new
26867 basic block.
26868 (use_internal_fn): Pass internal function call to
26869 shrink_wrap_one_built_in_call_with_conds.
26870
26871 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26872
26873 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26874 max_vf to 1.
26875 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26876 safelen_int and set loop->dont_vectorize.
26877
26878 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26879
26880 PR target/89021
26881 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26882 SSE/SSE2/SSSE3.
26883 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26884 Likewise.
26885 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26886 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26887 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26888 is defined.
26889
26890 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26891
26892 PR target/89021
26893 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26894 define_insn_and_split to support SSE emulation.
26895 (*vec_extractv2sf_0): Likewise.
26896 (*vec_extractv2sf_1): Likewise.
26897 (*vec_extractv2si_0): Likewise.
26898 (*vec_extractv2si_1): Likewise.
26899 (*vec_extractv2si_zext_mem): Likewise.
26900 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26901 (vec_extractv2sf_1 splitter): Likewise.
26902 (vec_extractv2sfsf): Likewise.
26903 (vec_setv2si): Likewise.
26904 (vec_extractv2si_1 splitter): Likewise.
26905 (vec_extractv2sisi): Likewise.
26906 (vec_setv4hi): Likewise.
26907 (vec_extractv4hihi): Likewise.
26908 (vec_setv8qi): Likewise.
26909 (vec_extractv8qiqi): Likewise.
26910 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26911 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26912 (vec_extractv2sisi): Likewise.
26913 (vec_extractv4hihi): Likewise.
26914 (vec_extractv8qiqi): Likewise.
26915 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26916 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26917 (vec_initv2sisi): Likewise.
26918 (vec_initv4hihi): Likewise.
26919 (vec_initv8qiqi): Likewise.
26920 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26921 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26922 (vec_setv4hi): Likewise.
26923 (vec_setv8qi): Likewise.
26924
26925 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26926
26927 PR target/89021
26928 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26929 TARGET_MMX_WITH_SSE.
26930 (MMXMODE:*mov<mode>_internal): Likewise.
26931 (MMXMODE:movmisalign<mode>): Likewise.
26932
26933 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26934
26935 PR target/89021
26936 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26937 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26938 (sse2_cvtpd2pi): Ditto.
26939 (sse2_cvttpd2pi): Ditto.
26940 (*vec_concatv2sf_sse4_1): Ditto.
26941 (*vec_concatv2sf_sse): Ditto.
26942 (*vec_concatv2si_sse4_1): Ditto.
26943 (*vec_concatv2si): Ditto.
26944 (*vec_concatv4si_0): Ditto.
26945 (*vec_concatv2di_0): Ditto.
26946
26947 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26948
26949 PR target/89021
26950 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26951
26952 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26953
26954 PR target/89021
26955 * config/i386/sse.md (ssse3_palignrdi): Changed to
26956 define_insn_and_split to support SSE emulation.
26957
26958 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26959
26960 PR target/89021
26961 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26962
26963 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26964
26965 PR target/89021
26966 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26967 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26968 SSE emulation.
26969
26970 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26971
26972 PR target/89021
26973 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26974 or TARGET_MMX_WITH_SSE.
26975 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26976
26977 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26978
26979 PR target/89021
26980 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26981
26982 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26983
26984 PR target/89021
26985 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26986 Changed to define_insn_and_split to support SSE emulation.
26987
26988 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26989
26990 PR target/89021
26991 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26992 Changed to define_insn_and_split to support SSE emulation.
26993
26994 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26995
26996 PR target/89021
26997 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26998 (*mmx_<emms>): This.
26999 (mmx_<emms>): New expander.
27000
27001 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27002
27003 PR target/89021
27004 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27005 support.
27006 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27007
27008 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27009
27010 PR target/89021
27011 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27012
27013 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27014
27015 PR target/89021
27016 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27017
27018 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27019
27020 PR target/89021
27021 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27022 TARGET_MMX_WITH_SSE.
27023 (*mmx_uavgv4hi3): Add SSE emulation.
27024
27025 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27026
27027 PR target/89021
27028 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27029 and TARGET_MMX_WITH_SSE.
27030 (*mmx_uavgv8qi3): Add SSE emulation.
27031
27032 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27033
27034 PR target/89021
27035 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27036 maskmovdqu for __MMX_WITH_SSE__.
27037
27038 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27039
27040 PR target/89021
27041 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27042 TARGET_MMX and TARGET_MMX_WITH_SSE.
27043 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27044
27045 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27046
27047 PR target/89021
27048 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27049 define_insn_and_split to support SSE emulation.
27050
27051 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27052
27053 PR target/89021
27054 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27055 and TARGET_MMX_WITH_SSE.
27056 (mmx_<code>v8qi3): Likewise.
27057 (smaxmin:<code>v4hi3): New.
27058 (umaxmin:<code>v8qi3): Likewise.
27059 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27060 (umaxmin:*mmx_<code>v8qi3): Likewise.
27061
27062 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27063
27064 PR target/89021
27065 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27066 TARGET_MMX_WITH_SSE.
27067 (*mmx_pinsrw): Add SSE emulation.
27068
27069 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27070
27071 PR target/89021
27072 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27073
27074 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27075
27076 PR target/89021
27077 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27078 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27079 SSE emulation.
27080
27081 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27082
27083 PR target/89021
27084 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27085 (sse_cvttps2pi): Likewise.
27086
27087 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27088
27089 PR target/89021
27090 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27091 TARGET_MMX_WITH_SSE.
27092 (mmx_pshufw_1): Add SSE emulation.
27093 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27094 TARGET_MMX_WITH_SSE to support SSE emulation.
27095
27096 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27097
27098 PR target/89021
27099 * config/i386/constraints.md (Yw): New constraint.
27100 * config/i386/mmx.md (*vec_dupv2si): Changed to
27101 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27102 support SSE emulation.
27103
27104 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27105
27106 PR target/89021
27107 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27108 TARGET_MMX_WITH_SSE.
27109 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27110 support.
27111 (mmx_gt<mode>3): Likewise.
27112
27113 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27114
27115 PR target/89021
27116 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27117 TARGET_MMX_WITH_SSE. Add SSE support.
27118
27119 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27120
27121 PR target/89021
27122 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27123 TARGET_MMX_WITH_SSE.
27124 (any_logic:<code><mode>3): New.
27125 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27126 Add SSE support.
27127
27128 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27129
27130 PR target/89021
27131 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27132 TARGET_MMX_WITH_SSE. Add SSE emulation.
27133 (mmx_<shift_insn><mode>3): Likewise.
27134 (ashr<mode>3): New.
27135 (<shift_insn><mode>3): Likewise.
27136
27137 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27138
27139 PR target/89021
27140 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27141 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27142
27143 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27144
27145 PR target/89021
27146 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27147 TARGET_MMX_WITH_SSE.
27148 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27149 SSE support.
27150
27151 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27152
27153 PR target/89021
27154 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27155 TARGET_MMX_WITH_SSE.
27156 (mulv4hi3): New.
27157 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27158 support.
27159
27160 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27161
27162 PR target/89021
27163 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27164 (plusminus:mmx_<plusminus_insn><mode>3): Check
27165 TARGET_MMX_WITH_SSE.
27166 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27167 (<plusminus_insn><mode>3): New.
27168 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27169 (*mmx_<plusminus_insn><mode>3): Likewise.
27170
27171 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27172
27173 PR target/89021
27174 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27175 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27176 prototype.
27177 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27178 define_insn_and_split to support SSE emulation.
27179 (mmx_punpcklbw): Likewise.
27180 (mmx_punpckhwd): Likewise.
27181 (mmx_punpcklwd): Likewise.
27182 (mmx_punpckhdq): Likewise.
27183 (mmx_punpckldq): Likewise.
27184
27185 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27186 Uros Bizjak <ubizjak@gmail.com>
27187
27188 PR target/89021
27189 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27190 New function.
27191 (ix86_split_mmx_pack): Likewise.
27192 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27193 New prototype.
27194 (ix86_split_mmx_pack): Likewise.
27195 * config/i386/i386.md (mmx_isa): New.
27196 (enabled): Also check mmx_isa.
27197 * config/i386/mmx.md (any_s_truncate): New code iterator.
27198 (s_trunsuffix): New code attr.
27199 (mmx_packsswb): Removed.
27200 (mmx_packssdw): Likewise.
27201 (mmx_packuswb): Likewise.
27202 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27203 MMX packsswb/packuswb with SSE2.
27204 (mmx_packssdw): Likewise.
27205 * config/i386/predicates.md (register_mmxmem_operand): New.
27206
27207 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27208
27209 PR target/89021
27210 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27211 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27212 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27213 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27214 (ix86_vector_mode_supported_p): Likewise.
27215 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27216
27217 2019-05-15 Martin Liska <mliska@suse.cz>
27218
27219 PR middle-end/90478
27220 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27221 Check for overflow.
27222
27223 2019-05-15 Richard Biener <rguenther@suse.de>
27224
27225 * tree-into-ssa.c (pass_build_ssa::execute): Run
27226 update_address_taken before going into SSA.
27227
27228 2019-05-15 Richard Biener <rguenther@suse.de>
27229
27230 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27231 as __BIT_FIELD_REF with type with -gimple.
27232
27233 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27234
27235 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27236 semantically equivalent branches (left over after prior refactorings).
27237
27238 2019-05-15 Richard Biener <rguenther@suse.de>
27239
27240 PR tree-optimization/88828
27241 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27242 bogus check.
27243
27244 2019-05-14 Richard Biener <rguenther@suse.de>
27245
27246 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27247 as __VIEW_CONVERT with -gimple.
27248
27249 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27250
27251 PR target/82920
27252 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27253 Darwin.
27254
27255 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27256
27257 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27258 define_split to become a define_insn_and_split.
27259
27260 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27261
27262 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27263 arguments.
27264 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27265 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27266 (sibcall_epilogue): Adjust.
27267 (epilogue): Adjust.
27268
27269 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27270
27271 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27272 to unsupported ones.
27273 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27274 * config.host: Likewise.
27275 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27276 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27277 __svr4__]: Remove "brand" fallback.
27278 [!KSTAT_DATA_STRING]: Remove.
27279 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27280 to *-*-solaris2*.
27281 (comdat_group): Likewise.
27282 (set_have_as_tls): Likewise.
27283 (gcc_cv_target_dl_iterate_phdr): Likewise.
27284 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27285 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27286 * configure: Regenerate.
27287 * doc/install.texi: Simplify Solaris target triplets.
27288 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27289 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27290 Remove Solaris 10 references.
27291 Remove obsolete Solaris bug reference.
27292 (Specific, sparc-sun-solaris2.10): Remove.
27293
27294 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27295
27296 * config/i386/i386.md (any_div): New code iterator.
27297 (paired_mod): New code attribute.
27298 (sgnprefix): Handle DIV and UDIV RTXes.
27299 (u): Ditto.
27300 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27301 and udivmod<mode>4 patterns using any_div code iterator.
27302 (divmod splitters): Macroize splitters using any_div code iterator.
27303 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27304 (*udivmodsi4_pow2_zext_2): Ditto.
27305 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27306 and *udivmod<mode>4_noext patterns using any_div code iterator.
27307 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27308 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27309 patterns using any_div code iterator.
27310 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27311 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27312 patterns using any_div code iterator.
27313 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27314 udivmodhiqi3 patterns using any_extend code iterator.
27315
27316 2019-05-14 Richard Biener <rguenther@suse.de>
27317 H.J. Lu <hongjiu.lu@intel.com>
27318
27319 PR tree-optimization/88828
27320 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27321 permuting in a single non-constant element not extracted
27322 from a vector.
27323
27324 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27325
27326 * internal-fn.def (SIGNBIT): New.
27327 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27328 defined.
27329 (signbitv4sf2): Likewise.
27330
27331 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27332
27333 PR target/90357
27334 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27335 next insn when the SRC reg is dead.
27336
27337 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27338
27339 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27340 (alloc_cand_and_find_basis): Ditto.
27341 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27342 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27343 (create_add_imm_cand, slsr_process_cast): Ditto.
27344 (slsr_process_copy, replace_mult_candidate): Ditto.
27345 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27346 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27347 (pass_strength_reduction::execute): Init the first NULL element.
27348
27349 2019-05-13 Nathan Sidwell <nathan@acm.org>
27350
27351 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27352 (run_attempt): Reformat line break.
27353
27354 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27355
27356 PR target/90418
27357 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27358 data registers in sibcall epilogues.
27359 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27360
27361 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27362
27363 PR target/89221
27364 * configure.ac (--enable-frame-pointer):
27365 Disable by default for cygwin and mingw.
27366 * configure: Regenerate.
27367
27368 2019-05-13 Nathan Sidwell <nathan@acm.org>
27369
27370 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27371 piece of code.
27372 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27373 (gen_member_die): Move abstract origin check earlier. Only VARs
27374 can be static_inline_p. Simplify splicing control flow.
27375
27376 2019-05-13 Richard Biener <rguenther@suse.de>
27377
27378 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27379 VIEW_CONVERT_EXPR.
27380 (vect_build_slp_tree_1): Likewise.
27381
27382 2019-05-13 Richard Biener <rguenther@suse.de>
27383
27384 PR tree-optimization/90402
27385 * tree-if-conv.c (tree_if_conversion): Value number only
27386 the loop body by making the latch an exit of the region
27387 as well.
27388 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27389 processing PHIs.
27390 (do_rpo_vn): Deal with multiple edges into the entry block
27391 that are not backedges inside the region by skipping PHIs
27392 of the entry block.
27393
27394 2019-05-13 Richard Biener <rguenther@suse.de>
27395
27396 PR tree-optimization/90316
27397 * tree-ssa-pre.c (insert_aux): Fold into ...
27398 (insert): ... this function. Use a RPO walk to reduce the
27399 number of required iterations.
27400
27401 2019-05-13 Martin Liska <mliska@suse.cz>
27402
27403 PR tree-optimization/90416
27404 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27405 string instead of passing the second part as va_arg argument.
27406
27407 2019-05-13 Martin Liska <mliska@suse.cz>
27408
27409 PR gcov-profile/90380
27410 * gcov.c (handle_cycle): Do not support zero cycle count,
27411 it should not be possible.
27412 (path_contains_zero_cycle_arc): New function.
27413 (circuit): Ignore zero cycle arc counts.
27414
27415 2019-05-13 Martin Liska <mliska@suse.cz>
27416
27417 PR gcov-profile/90380
27418 * gcov.c (enum loop_type): Remove the enum and
27419 the operator.
27420 (handle_cycle): Assert that we should not reach
27421 a negative count.
27422 (circuit): Use loop_found instead of a tri-state loop_type.
27423 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27424 happen.
27425
27426 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27427
27428 PR target/82920
27429 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27430 (ix86_output_indirect_branch_via_reg): Use output mechanism
27431 accounting for __USER_LABEL_PREFIX__.
27432 (ix86_output_indirect_branch_via_push): Likewise.
27433 (ix86_output_function_return): Likewise.
27434 (ix86_output_indirect_function_return): Likewise.
27435
27436 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27437
27438 * doc/md.texi: Document use of code attributes in rtx patterns.
27439 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27440 * read-rtl.c (find_code): Split out search loops into...
27441 (maybe_find_code): ...this new function.
27442 (check_code_iterator): Make the error message more informative.
27443 (check_code_attribute): New function.
27444 (rtx_reader::rtx_alloc_for_name): Likewise.
27445 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27446 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27447 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27448 <max_opp> directly as an rtx code instead of via a match_operator.
27449 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27450 (<su>abd<mode>_3): Update accordingly.
27451
27452 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27453
27454 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27455 is given, print the state of the EH "save world" computation for
27456 Darwin.
27457
27458 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27459
27460 PR c++/59813
27461 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27462 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27463
27464 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27465
27466 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27467 Use pinsrd for TARGET_SSE4_1.
27468 * config/i386/sse.md (movdi_to_sse): Ditto.
27469
27470 2019-05-10 Richard Biener <rguenther@suse.de>
27471
27472 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27473 (do_rpo_vn): Initialize next_value_id.
27474
27475 2019-05-10 Martin Liska <mliska@suse.cz>
27476
27477 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27478 Fix plural form.
27479
27480 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27481
27482 PR tree-optimization/90385
27483 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27484 arguments of the exit phis.
27485
27486 PR c++/90383
27487 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27488 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27489 id->do_not_fold.
27490 (copy_tree_body_r): Likewise.
27491 (copy_fn): Set id.do_not_fold to true.
27492
27493 2019-05-10 Martin Liska <mliska@suse.cz>
27494
27495 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27496 Reapply changes from r269790.
27497
27498 2019-05-10 Martin Liska <mliska@suse.cz>
27499
27500 PR middle-end/90340
27501 * doc/invoke.texi: New params.
27502 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27503 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27504 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27505 Use it.
27506 * tree-switch-conversion.h (struct jump_table_cluster):
27507 Likewise.
27508
27509 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27510
27511 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27512
27513 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27514
27515 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27516
27517 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27518
27519 PR rtl-optimization/88879
27520 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27521
27522 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27523
27524 PR target/90405
27525 * config/arm/arm.c (callee_saved_reg_p): Move before
27526 thumb_find_work_register.
27527 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27528 thumb_find_work_register. Only call df_get_live_out once.
27529 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27530 (thumb_find_work_register): Use
27531 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27532 algorithms to locate a spare call clobbered reg.
27533
27534 2019-05-09 Martin Liska <mliska@suse.cz>
27535
27536 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27537 and MAX_EXPR in GIMPLE FE format.
27538
27539 2019-05-09 Martin Liska <mliska@suse.cz>
27540
27541 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27542 * gimple-pretty-print.c (dump_gimple_bb_header):
27543 Dump BB count.
27544 (pp_cfg_jump): Dump edge probability.
27545 * profile-count.c (profile_quality_as_string): Simplify
27546 with a static array.
27547 (parse_profile_quality): New function.
27548 (profile_count::dump): Simplify with a static array.
27549 (profile_count::from_gcov_type): Add new argument.
27550 * profile-count.h (parse_profile_quality): Likewise.
27551 * predict.h (set_hot_bb_threshold): New.
27552 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27553 New param.
27554 * predict.c (get_hot_bb_threshold): Set from the new param.
27555 (set_hot_bb_threshold): New.
27556
27557 2019-05-09 Richard Biener <rguenther@suse.de>
27558
27559 PR tree-optimization/90395
27560 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27561 rewrite vector stores that throw internally.
27562
27563 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27564
27565 * cif-code.def (CHKP): Remove.
27566
27567 PR target/89221
27568 * configure.ac (--enable-frame-pointer): Disable by default for
27569 GNU systems.
27570 * configure: Regenerate.
27571
27572 2019-05-09 Alan Modra <amodra@gmail.com>
27573
27574 PR target/89271
27575 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27576 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27577 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27578 cost for general <-> vsx when direct moves are available.
27579 Cost union classes at minimal cost for any reg in the class.
27580 Correct calculation for moves between vsx, float, and altivec.
27581 Don't return a low cost for moves between special regs. Don't
27582 use hard coded register numbers.
27583 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27584 (rs6000_ira_change_pseudo_allocno_class): New function.
27585 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27586 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27587 alternatives.
27588 (movsi_internal1): Don't disparage vector alternatives.
27589 (mov<mode>_internal): Likewise, excepting alternative that
27590 will be split.
27591 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27592 we <- b alternative.
27593
27594 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27595
27596 PR c++/59813
27597 PR tree-optimization/89060
27598 * tree-ssa-live.h (live_vars_map): New typedef.
27599 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27600 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27601 (struct compute_live_vars_data): New type.
27602 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27603 live_vars_at_stmt, destroy_live_vars): New functions.
27604 * tree-tailcall.c: Include tree-ssa-live.h.
27605 (live_vars, live_vars_vec): New global variables.
27606 (find_tail_calls): Perform variable life analysis before punting.
27607 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27608 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27609 member.
27610 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27611 Perform variable life analysis to select variables that really need
27612 clobbers added.
27613 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27614 instead set id->eh_landing_pad_dest and assert it is the same.
27615 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27616
27617 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27618 Richard Earnshaw <rearnsha@arm.com>
27619
27620 PR target/88167
27621 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27622 function.
27623 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27624 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27625 register if both the epilogue and prologue can use call-clobbered
27626 regs.
27627 (thumb1_unexpanded_epilogue): Use
27628 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27629 picking temporaries for restoring high regs to match that of the
27630 prologue where possible.
27631 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27632 the list of work registers. Detect if the return address is still live
27633 at the end of the prologue and avoid using it for a work register if so.
27634 If the return address is not live, add LR to the list of pushable regs
27635 after the first pass.
27636
27637 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27638
27639 PR tree-optimization/90078
27640 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27641 (INFTY): Increase the value for infinite cost.
27642 (struct comp_cost): Promote type of members to int64_t.
27643 (infinite_cost): Don't set complexity in initialization.
27644 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27645 overflows to infinite_cost.
27646 (adjust_setup_cost): Promote type of parameter and cost computation
27647 to int64_t.
27648 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27649 int64_t.
27650 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27651 cost computation to int64_t.
27652 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27653 int64_t's format specifier in dump.
27654
27655 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27656
27657 PR tree-optimization/90240
27658 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27659 with respect to scaling factor pre-computed for each basic block.
27660 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27661 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27662 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27663 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27664 live range for array of loop's basic blocks. Cleanup aux field of
27665 loop's basic blocks.
27666
27667 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27668
27669 PR tree-optimization/90356
27670 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27671
27672 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27673
27674 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27675 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27676 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27677 (ix86_handle_option): Handle -mavx512bf16.
27678 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27679 to extra_headers.
27680 * config/i386/avx512bf16vlintrin.h: New.
27681 * config/i386/avx512bf16intrin.h: New.
27682 * config/i386/cpuid.h (bit_AVX512BF16): New.
27683 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27684 * config/i386/i386-builtin-types.def: Add new types.
27685 * config/i386/i386-builtin.def: Add new builtins.
27686 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27687 __AVX512BF16__.
27688 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27689 (ix86_option_override_internal): Handle BF16.
27690 (ix86_valid_target_attribute_inner_p): Ditto.
27691 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27692 * config/i386/i386-builtin.c (enum processor_features): Add
27693 F_AVX512BF16.
27694 (static const _isa_names_table isa_names_table): Ditto.
27695 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27696 (PTA_AVX512BF16): Ditto.
27697 * config/i386/i386.opt: Add -mavx512bf16.
27698 * config/i386/immintrin.h: Include avx512bf16intrin.h
27699 and avx512bf16vlintrin.h.
27700 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27701 avx512f_cvtneps2bf16_<mode><mask_name>,
27702 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27703 * config/i386/subst.md (mask_half): Add new subst.
27704 * doc/invoke.texi: Document -mavx512bf16.
27705
27706 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27707
27708 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27709 Delete declaration.
27710 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27711 (rs6000_debug_legitimize_reload_address): Delete.
27712 (rs6000_legitimize_reload_address_ptr): Delete.
27713 (rs6000_option_override_internal): Adjust.
27714 (mem_operand_gpr): Adjust comment.
27715 (legitimate_lo_sum_address_p): Ditto.
27716 (rs6000_legitimize_reload_address): Delete.
27717 (rs6000_debug_legitimize_reload_address): Delete.
27718 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27719
27720 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27721
27722 PR target/89765
27723 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27724 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27725 to compute vector element selector for both constant and variable
27726 operands.
27727
27728 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27729
27730 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27731 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27732 ashrdi3_cvt using SWI48 mode iterator.
27733
27734 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27735
27736 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27737 (aarch64_<su>abd<mode>_3): Likewise.
27738 (*aarch64_<su>abd<mode>_3): New define_insn.
27739 (<sur>sad<vsi2qi>): New define_expand.
27740 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27741 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27742 (build_vect_cond_expr): Likewise.
27743
27744 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27745
27746 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27747 clobbers outside of accessible_reg_set.
27748 * config/i386/i386.c (ix86_conditional_register_usage):
27749 Disable register sets by clearing corresponding bits in
27750 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27751 call_used_regs and don't clear corresponding reg_names array members.
27752
27753 2019-05-07 Richard Biener <rguenther@suse.de>
27754
27755 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27756 not specified still compute a comp_vectype for invariant
27757 compares.
27758
27759 2019-05-07 Richard Biener <rguenther@suse.de>
27760
27761 PR tree-optimization/90316
27762 * tree-ssa-pre.c (translate_vuse_through_block): When
27763 same_valid is NULL do not bother to search for a virtual
27764 PHI continuation.
27765 (phi_translate_1): When operands changed we cannot keep
27766 the same value-number so do not bother to ask whether
27767 that's possible from translate_vuse_through_block.
27768
27769 2019-05-07 Martin Liska <mliska@suse.cz>
27770
27771 * bitmap.c (bitmap_register): Come up with
27772 alloc_descriptor_max_uid and assign it for
27773 a new bitmap.
27774 (register_overhead): Use get_descriptor as
27775 a descriptor.
27776 (release_overhead): New.
27777 (bitmap_elem_to_freelist): Call it.
27778 (bitmap_elt_clear_from): Likewise.
27779 (bitmap_obstack_free): Likewise.
27780 (bitmap_move): Sensitively release memory.
27781 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27782 (bitmap_initialize): Initialize alloc_descriptor to zero.
27783 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27784
27785 2019-05-07 Richard Biener <rguenther@suse.de>
27786
27787 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27788 we build a SLP node. Remove max_size and limiting.
27789 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27790
27791 2019-05-07 Richard Biener <rguenther@suse.de>
27792
27793 PR tree-optimization/90316
27794 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27795 limit by reference.
27796 (walk_non_aliased_vuses): Take walking limit argument.
27797 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27798 walking if it is reached instead of just counting.
27799 (get_continuation_for_phi): Likewise.
27800 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27801 limiting to the callback.
27802 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27803 (vn_reference_lookup_3): Likewise.
27804 (vn_reference_lookup_pieces): Likewise.
27805 (vn_reference_lookup): Likewise.
27806 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27807 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27808 (avail_exprs_stack::lookup_avail_expr): Likewise.
27809
27810 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27811
27812 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27813 for comparaible types in the second direction even if first one
27814 hits incomparable type.
27815
27816 2019-05-07 Richard Biener <rguenther@suse.de>
27817
27818 PR lto/90369
27819 * lto-wrapper.c (debug_objcopy): Use the original filename
27820 including archive offset for the filename used for -save-temps.
27821
27822 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27823
27824 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27825 detection.
27826
27827 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27828 Hongtao Liu <hongtao.liu@intel.com>
27829
27830 PR target/89750
27831 PR target/86444
27832 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27833 Modified, original implementation isn't correct.
27834
27835 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27836
27837 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27838 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27839 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27840 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27841 (FRAME_POINTER_REGNUM): Change numbering.
27842 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27843 (alt_reg_names): Adjust.
27844 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27845 fixed.
27846 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27847 (DWARF_FRAME_REGISTERS): Delete.
27848 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27849 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27850 Adjust.
27851 (REG_ALLOC_ORDER): Adjust.
27852 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27853 (REG_CLASS_CONTENTS): Adjust.
27854 (RETURN_ADDR_RTX): Change comment.
27855 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27856 instead of 67.
27857 (REGISTER_NAMES): Adjust.
27858 (ADDITIONAL_REGISTER_NAMES): Adjust.
27859 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27860
27861 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27862
27863 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27864 Delete.
27865 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27866 (DWARF_FRAME_REGISTERS): Adjust.
27867 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27868 Adjust.
27869 (REG_ALLOC_ORDER): Adjust.
27870 (enum reg_class): Delete SPR_REGS.
27871 (REG_CLASS_NAMES): Delete SPR_REGS.
27872 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27873 (REGISTER_NAMES): Adjust.
27874 (ADDITIONAL_REGISTER_NAMES): Adjust.
27875 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27876 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27877 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27878 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27879 (htm_spr_regno): Delete.
27880 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27881 argument.
27882 (rs6000_dbx_register_number): Adjust.
27883
27884 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27885
27886 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27887
27888 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27889
27890 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27891 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27892
27893 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27894
27895 PR tree-optimization/88709
27896 PR tree-optimization/90271
27897 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27898 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27899 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27900 variable.
27901 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27902 of the store merging group is larger than
27903 PARAM_STORE_MERGING_MAX_SIZE parameter.
27904 (split_group): Add bzero_first argument. If set, always emit first
27905 the first store which must be = {} of the whole area and then for the
27906 rest of the stores consider all zero bytes as paddings.
27907 (imm_store_chain_info::output_merged_store): Check if first store
27908 is = {} of the whole area and if yes, determine which setting of
27909 bzero_first for split_group gives smaller number of stores. Adjust
27910 split_group callers.
27911 (lhs_valid_for_store_merging_p): Allow decls.
27912 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27913 no elts.
27914 (pass_store_merging::process_store): Likewise.
27915
27916 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27917
27918 PR target/89424
27919 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27920 handling of V1TImode.
27921
27922 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27923
27924 PR target/89221
27925 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27926 and enable_frame_pointer ...
27927 * configure.ac: ... here. Update help strings for
27928 --enable-frame-pointer.
27929 * configure: Regenerate.
27930 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27931 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27932 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27933 (USE_X86_64_FRAME_POINTER): Ditto.
27934
27935 2019-05-06 Martin Liska <mliska@suse.cz>
27936
27937 * config.gcc: Append to target_gtfiles and fix indentation.
27938
27939 2019-05-06 Richard Biener <rguenther@suse.de>
27940
27941 PR tree-optimization/90358
27942 * tree-vect-stmts.c (get_group_load_store_type): Properly
27943 detect unused upper half of load.
27944 (vectorizable_load): Likewise.
27945
27946 2019-05-06 Richard Biener <rguenther@suse.de>
27947
27948 PR tree-optimization/88828
27949 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27950 (simplify_vector_constructor): ...here. Handle constants in
27951 the constructor.
27952
27953 2019-05-06 Richard Biener <rguenther@suse.de>
27954
27955 PR tree-optimization/90328
27956 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27957 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27958 is valid in the loop nest before using it.
27959 (initialize_data_dependence_relation): Adjust.
27960 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27961 loop as loop-nest to dr_may_alias_p.
27962
27963 2019-05-06 Richard Biener <rguenther@suse.de>
27964
27965 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27966
27967 2019-05-06 Richard Biener <rguenther@suse.de>
27968
27969 PR tree-optimization/90316
27970 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27971 compute target on demand.
27972 (get_continuation_for_phi): Remove code walking stmts to
27973 get to a target virtual operand which could end up being
27974 quadratic.
27975
27976 2019-05-06 Martin Liska <mliska@suse.cz>
27977
27978 PR sanitizer/90312
27979 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27980 when -mabi is selected to a non-default version.
27981
27982 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27983 Martin Liska <mliska@suse.cz>
27984
27985 * Makefile.in: Add lto-dump.texi.
27986 * cgraph.h: Add new functions get_visibility_string and
27987 get_symtab_type_string.
27988 * doc/gcc.texi: Include lto-dump section.
27989 * doc/lto-dump.texi: New file.
27990 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27991 (parse_dump_option): Factor out this function.
27992 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27993 (parse_dump_option): Export the function.
27994 * symtab.c (symtab_node::get_visibility_string): New function.
27995 (symtab_node::get_symtab_type_string): Likewise.
27996
27997 2019-05-06 Martin Liska <mliska@suse.cz>
27998
27999 * config/i386/i386-builtins.c: New file.
28000 * config/i386/i386-builtins.h: New file.
28001 * config/i386/i386-expand.c: New file.
28002 * config/i386/i386-expand.h: New file.
28003 * config/i386/i386-features.c: New file.
28004 * config/i386/i386-features.h: New file.
28005 * config/i386/i386-options.c: New file.
28006 * config/i386/i386-options.h: New file.
28007 * config.gcc: Add new files into extra_objs and
28008 target_gtfiles.
28009 * config/i386/i386.c: Split content of the file
28010 into newly introduced files.
28011 * config/i386/i386.h: Declare common variables
28012 and macros.
28013 * config/i386/t-i386: Define dependencies for new files.
28014
28015 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28016
28017 PR target/89400
28018 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28019 Restrict 'all' variant to 32-bit configurations.
28020 (unaligned_loadhiu): Likewise.
28021 (unaligned_storehi): Likewise.
28022 (unaligned_storesi): Likewise.
28023 (unaligned_loadhis): Disable when compiling for thumb1.
28024
28025 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28026
28027 PR tree-optimization/90269
28028 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28029 Ignore clobbers.
28030
28031 2019-05-03 Martin Liska <mliska@suse.cz>
28032
28033 * hash-map.h: Add is_empty function.
28034 * hash-set.h: Likewise.
28035 * hash-table.h: Likewise.
28036 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28037 elements () == 0 (and similar usages).
28038 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28039 * gimplify.c (gimplify_bind_expr): Likewise.
28040 (gimplify_switch_expr): Likewise.
28041 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28042 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28043 * postreload-gcse.c (dump_hash_table): Likewise.
28044 (gcse_after_reload_main): Likewise.
28045 * predict.c (combine_predictions_for_bb): Likewise.
28046 * tree-parloops.c (reduction_phi): Likewise.
28047 (separate_decls_in_region): Likewise.
28048 (transform_to_exit_first_loop): Likewise.
28049 (gen_parallel_loop): Likewise.
28050 (gather_scalar_reductions): Likewise.
28051 (try_create_reduction_list): Likewise.
28052 * var-tracking.c (dump_vars): Likewise.
28053 (emit_notes_for_changes): Likewise.
28054 (vt_emit_notes): Likewise.
28055
28056 2019-05-03 Richard Biener <rguenther@suse.de>
28057
28058 PR tree-optimization/90316
28059 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28060 before running VN.
28061
28062 2019-05-03 Richard Biener <rguenther@suse.de>
28063
28064 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28065 peeling for gaps by loading only lower halves of vectors
28066 if possible.
28067 (vectorizable_load): Likewise.
28068
28069 2019-05-03 Richard Biener <rguenther@suse.de>
28070
28071 PR middle-end/89518
28072 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28073
28074 2019-05-03 Richard Biener <rguenther@suse.de>
28075
28076 PR middle-end/87314
28077 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28078 Handle STRING_CST vs DECL or STRING_CST.
28079
28080 2019-05-03 Richard Biener <rguenther@suse.de>
28081
28082 PR tree-optimization/88963
28083 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28084 vector loads feeding only BIT_FIELD_REFs to component
28085 loads. Rewrite stores fed by CONSTRUCTORs to component
28086 stores.
28087
28088 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28089
28090 * opts.h (finish_options): Remove lang_mask argument.
28091 (print_help, help_option_argument): Declare.
28092 * opts.c (print_help): Remove forward declaration, no longer static.
28093 (finish_options): Remove lang_mask argument, don't call print_help
28094 here.
28095 * opts-global.c (decode_options): Adjust finish_option caller, call
28096 print_help here.
28097
28098 PR tree-optimization/90303
28099 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28100 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28101
28102 2019-05-03 Richard Biener <rguenther@suse.de>
28103
28104 PR tree-optimization/89698
28105 * gimple-fold.c (canonicalize_constructor_val): Early out
28106 for constants, handle unfolded INTEGER_CSTs as they appear in
28107 C++ virtual table ctors.
28108
28109 2019-05-03 Richard Biener <rguenther@suse.de>
28110
28111 * passes.c (execute_function_todo): Remove dead code.
28112
28113 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28114
28115 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28116 the internal register number, for any "real" register.
28117
28118 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28119
28120 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28121 correct numbers for TFHAR, TFIAR, TEXASR.
28122
28123 2019-05-02 Richard Biener <rguenther@suse.de>
28124
28125 PR tree-optimization/89653
28126 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28127 update-address-taken before the pass.
28128 * passes.def (pass_tree_loop_init): Put comment before it.
28129
28130 2019-05-02 Richard Biener <rguenther@suse.de>
28131
28132 PR tree-optimization/89509
28133 * tree-ssa-structalias.c (compute_dependence_clique): Look
28134 at the first subvar when determining whether it is restrict.
28135
28136 2019-05-02 Richard Biener <rguenther@suse.de>
28137
28138 PR tree-optimization/90273
28139 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28140 useless debug stmts.
28141
28142 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28143
28144 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28145 ACLE branch.
28146 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28147 SVE ACLE branch.
28148 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28149 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28150 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28151 (vectorizable_reduction): Use the functions above to vectorize in a
28152 fully masked loop codes that don't have a conditional internal
28153 function.
28154
28155 2019-05-02 Martin Liska <mliska@suse.cz>
28156
28157 * cgraphclones.c: Call valid_attribute_p with 1 for
28158 target_clone.
28159 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28160 it's for target attribute.
28161 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28162 Add new boolean argument.
28163 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28164 Likewise.
28165 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28166 to ix86_valid_target_attribute_inner_p.
28167 (ix86_valid_target_attribute_p): Pass flags argument to
28168 ix86_valid_target_attribute_inner_p.
28169 (get_builtin_code_for_version): Use 0 as it's target attribute.
28170
28171 2019-05-02 Martin Liska <mliska@suse.cz>
28172
28173 * gcc.c (process_command): Add dummy file only
28174 if n_infiles == 0.
28175 * opts-global.c (decode_options): Pass lang_mask.
28176 * opts.c (print_help): New function.
28177 (finish_options): Print --help if help_option_argument
28178 is set.
28179 (common_handle_option): Factor out content of OPT__help_
28180 into print_help.
28181 * opts.h (finish_options): Add new argument.
28182
28183 2019-05-02 Martin Liska <mliska@suse.cz>
28184
28185 PR target/88809
28186 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28187 With -minline-all-stringops use inline expansion using 4B loop.
28188 * doc/invoke.texi: Document the change of
28189 -minline-all-stringops.
28190
28191 2019-05-01 Jeff Law <law@redhat.com>
28192
28193 PR tree-optimization/88797
28194 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28195 PHI feeds a conditional on the RHS of an assignment.
28196
28197 2019-04-30 Andrew Waterman <andrew@sifive.com>
28198 Jim Wilson <jimw@sifive.com>
28199
28200 * config/riscv/constraints.md (L): New.
28201 * config/riscv/predicates.md (lui_operand): New.
28202 (sfb_alu_operand): New.
28203 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28204 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28205 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28206 * config/riscv/risc.md (type): Add sfb_alu.
28207 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28208 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28209 (branch_zero<mode>): Delete.
28210 (mov<mode>cc): New.
28211 (mov<GPR:mode><X:mode>cc): Likewise.
28212 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28213
28214 2019-04-30 Nathan Sidwell <nathan@acm.org>
28215
28216 * tree.h (MARK_TS_EXP): New.
28217
28218 2019-04-30 Martin Liska <mliska@suse.cz>
28219
28220 * opts.c (enable_warning_as_error): Provide hints
28221 for unknown options.
28222
28223 2019-04-30 Martin Liska <mliska@suse.cz>
28224
28225 PR debug/90288
28226 * doc/invoke.texi: Add missing dash for gas-locview-support
28227 and gno-as-locview-support.
28228
28229 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28230
28231 PR target/89093
28232 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28233 whitespace at the start of target attribute string.
28234
28235 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28236
28237 PR target/86538
28238 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28239 Define __ARM_FEATURE_ATOMICS.
28240
28241 2019-04-30 Martin Liska <mliska@suse.cz>
28242
28243 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28244 into built_in_function enum. Remove code for endp == 2 and
28245 use BUILT_IN_* constants.
28246 (gimple_fold_builtin): Call the function with fcode.
28247
28248 2019-04-30 Martin Liska <mliska@suse.cz>
28249
28250 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28251 DECL_FUNCTION_CODE into ix86_builtins enum before
28252 the switch statement.
28253
28254 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28255
28256 PR tree-optimization/89475
28257 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28258 calls.
28259
28260 2019-04-30 Martin Liska <mliska@suse.cz>
28261
28262 PR translation/90274
28263 * opts.c (print_filtered_help): Wrap string in _(...).
28264
28265 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28266
28267 PR tree-optimization/90240
28268 Revert:
28269 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28270
28271 PR tree-optimization/90078
28272 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28273 checks for infinite_cost overflow.
28274
28275 2019-04-29 Jeff Law <law@redhat.com>
28276
28277 * passes.def: Move -Wrestrict pass after copy propagation.
28278
28279 2019-04-29 Maya Rashish <coypu@sdf.org>
28280
28281 * config.gcc (default_gnu_indirect_function): Default to yes
28282 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28283 sparc*-*-netbsd*, x86_64-*-netbsd*.
28284
28285 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28286
28287 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28288 where cond2 is NE_EXPR.
28289 (is_value_included_in): Update comment.
28290
28291 2019-04-29 Richard Biener <rguenther@suse.de>
28292
28293 PR tree-optimization/90278
28294 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28295 EH on comparison simplification.
28296
28297 2019-04-29 Jason Merrill <jason@redhat.com>
28298
28299 PR c++/82081 - tail call optimization breaks noexcept
28300 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28301 nothrow function to a might-throw function into a tail call.
28302
28303 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28304
28305 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28306 (DDR_INNER_LOOP): Likewise.
28307 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28308 (initialize_data_dependence_relation): Likewise.
28309 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28310
28311 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28312
28313 PR rtl-optimization/90257
28314 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28315 return value.
28316
28317 Revert the revert:
28318 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28319
28320 PR target/90178
28321 Revert:
28322 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28323
28324 Revert the revert:
28325 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28326
28327 Revert:
28328 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28329
28330 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28331
28332 2019-04-29 Richard Biener <rguenther@suse.de>
28333
28334 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28335 rhs issue a reset.
28336
28337 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28338
28339 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28340 varasm.h, and netbsd-protos.h.
28341
28342 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28343
28344 PR target/89261
28345 * config/i386/i386-protos.h (ix86_data_alignment): Change
28346 the second argument type to unsigned int.
28347 * config/i386/i386.c (ix86_data_alignment): Change "align"
28348 argument type to unsigned int.
28349
28350 2019-04-27 Martin Liska <mliska@suse.cz>
28351
28352 PR middle-end/90258
28353 * opt-suggestions.c (option_proposer::build_option_suggestions):
28354 When get_valid_option_values returns empty values, add the
28355 misspelling candidate.
28356
28357 2019-04-26 Jim Wilson <jimw@sifive.com>
28358
28359 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28360 parameter.
28361 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28362 Pass orig_mode to riscv_build_integer.
28363 (riscv_split_integer): Pass mode to riscv_move_integer.
28364 (riscv_legitimize_const_move): Likewise.
28365 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28366 promoted_mode. Replace force_reg call with code to load constant into
28367 promoted reg and then subreg it for the store.
28368 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28369 riscv_move_integer.
28370
28371 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28372
28373 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28374 corrupt codes.
28375
28376 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28377
28378 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28379 commentary about the encoding of precision.
28380
28381 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28382
28383 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28384 * config/i386/t-freebsd64: New file.
28385 * config.gcc: Add the t-freebsd64 for multilib support.
28386
28387 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28388
28389 * doc/extend.texi (vector_size): Add missing comma after @xref.
28390
28391 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28392
28393 * BASE-VER: Set to 10.0.0.
28394
28395 2019-04-25 Richard Biener <rguenther@suse.de>
28396
28397 PR middle-end/89765
28398 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28399 VIEW_CONVERT_EXPR into one operating on an rvalue.
28400
28401 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28402
28403 PR target/89929
28404 * config/i386/i386.c (feature_priority): Moved to file scope.
28405 (processor_features): Likewise.
28406 (processor_model): Likewise.
28407 (_arch_names_table): Likewise.
28408 (arch_names_table): Likewise.
28409 (_feature_list): Removed.
28410 (feature_list): Likewise.
28411 (_isa_names_table): Moved to file scope. Add priority.
28412 (isa_names_table): Likewise.
28413 (get_builtin_code_for_version): Replace feature_list with
28414 isa_names_table. Update error message for P_ZERO priority.
28415
28416 2019-04-25 Richard Biener <rguenther@suse.de>
28417
28418 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28419 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28420
28421 2019-04-24 Jeff Law <law@redhat.com>
28422
28423 PR tree-optimization/90037
28424 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28425 * passes.def: Replace all instance of phi-only cprop with the
28426 lattice propagator. Move propagation pass from after erroneous
28427 path isolation to before erroneous path isolation.
28428 * tree-ssa-phionlycprop.c: Remove.
28429
28430 2019-04-24 Richard Biener <rguenther@suse.de>
28431
28432 PR middle-end/90213
28433 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28434 by size and BITS_PER_UNIT on poly-wide-ints.
28435
28436 2019-04-25 Richard Biener <rguenther@suse.de>
28437
28438 PR middle-end/90194
28439 * match.pd: Add pattern to simplify view-conversion of an
28440 empty constructor.
28441
28442 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28443
28444 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28445 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28446 for Go on 32 bit AIX.
28447 * config/rs6000/aix72.h: Likewise.
28448
28449 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28450
28451 PR target/90193
28452 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28453 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28454
28455 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28456
28457 PR target/89952
28458 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28459 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28460 for restored hard frame pointer.
28461 (s390_sched_dependencies_evaluation): Implement new target hook.
28462 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28463
28464 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28465
28466 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28467 * config/arc/arc.c (arc_init): Cleanup warning message.
28468 (arc_override_options): Likewise.
28469
28470 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28471
28472 PR target/90187
28473 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28474 a register if both if_true and if_false are MEMs.
28475
28476 PR tree-optimization/90208
28477 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28478 after labels of new_bb, not before them.
28479
28480 PR tree-optimization/90211
28481 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28482 which are not SSA_NAMEs.
28483
28484 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28485
28486 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28487 AArch64.
28488 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28489
28490 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28491
28492 PR rtl-optimization/87979
28493 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28494 not equal zero.
28495
28496 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28497
28498 PR rtl-optimization/84032
28499 * modulo-sched.c (ps_insn_find_column): Change condition so that
28500 branch will always be the last insn in a row inside partial
28501 schedule.
28502
28503 2019-04-23 Richard Biener <rguenther@suse.de>
28504
28505 PR debug/90131
28506 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28507 dest_single_pred_p argument.
28508 (remove_forwarder_block): Adjust.
28509 (remove_forwarder_block_with_phi): Likewise.
28510
28511 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28512 Bernd Edlinger <bernd.edlinger@hotmail.de>
28513 Jakub Jelinek <jakub@redhat.com>
28514
28515 PR target/89093
28516 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28517 if used with general-regs-only.
28518 (arm_conditional_register_usage): Don't add non-general regs if
28519 general-regs-only.
28520 (arm_valid_target_attribute_rec): Handle general-regs-only.
28521 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28522 general-regs-only.
28523 (TARGET_HARD_FLOAT_SUB): Define.
28524 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28525 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28526 (TARGET_REALLY_IWMMXT2): Likewise.
28527 * config/arm/arm.opt: Add -mgeneral-regs-only.
28528 * doc/extend.texi: Document ARM general-regs-only target.
28529 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28530
28531 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28532
28533 PR tree-optimization/90078
28534 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28535 checks for infinite_cost overflow.
28536
28537 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28538
28539 PR tree-optimization/90021
28540 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28541 and check univariate against it.
28542 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28543 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28544
28545 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28546
28547 PR target/90178
28548 Revert:
28549 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28550
28551 Revert the revert:
28552 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28553
28554 Revert:
28555 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28556
28557 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28558
28559 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28560
28561 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28562 names using operand format, rather than hard-wired.
28563 (speculation_barrier): Likewise.
28564
28565 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28566
28567 PR tree-optimization/88055
28568 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28569 (gen_one_condition): Use it if !HONOR_NANS.
28570
28571 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28572
28573 PR middle-end/90139
28574 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28575 assign_temp instead of gen_reg_rtx.
28576
28577 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28578
28579 PR translation/90118
28580 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28581 Add missing space before %<.
28582
28583 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28584
28585 PR rtl-optimization/87871
28586 * ira-lives.c (make_object_dead): Don't add conflicts to
28587 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28588
28589 2019-04-18 Martin Sebor <msebor@redhat.com>
28590
28591 PR middle-end/89797
28592 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28593 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28594 assuming type size fits in SHWI.
28595
28596 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28597
28598 PR ipa/85051
28599 * ipa-inline.c (flatten_function): New parameter UPDATE.
28600 (ipa_inline, early_inliner): Use it.
28601
28602 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28603
28604 * fold-const.c (int_const_binop): Return early on failure.
28605
28606 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28607
28608 PR middle-end/85164
28609 * combine.c (force_int_to_mode): Cast the argument rather than
28610 the result of known_alignment.
28611 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28612
28613 2019-04-18 Richard Biener <rguenther@suse.de>
28614
28615 PR debug/90131
28616 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28617 out from ...
28618 (remove_forwarder_block): ... here.
28619 (remove_forwarder_block_with_phi): Also move debug stmts here.
28620
28621 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28622
28623 PR translation/79183
28624 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28625 inform where appropriate.
28626
28627 2019-04-18 Richard Biener <rguenther@suse.de>
28628
28629 * tree.c (get_qualified_type): Put found type variants at the
28630 head of the variant list.
28631
28632 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28633
28634 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28635
28636 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28637
28638 PR target/90125
28639 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28640 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28641 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28642 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28643 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28644
28645 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28646
28647 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28648 even for allocno's with no conflicts.
28649 (print_conflicts): Print an extra newline.
28650
28651 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28652
28653 * auto-inc-dec.c (attempt_change): Set the alignment of the
28654 temporary memory to that of the original.
28655
28656 2019-04-17 Joao Moreira <jmoreira@suse.de>
28657
28658 * targhooks.c (default_print_patchable_function_entry): Emit
28659 __patchable_function_entries section with writable flags to allow
28660 relocation resolution.
28661
28662 2019-04-17 Jonny Grant <jg@jguk.org>
28663
28664 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28665
28666 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28667
28668 PR middle-end/90095
28669 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28670 on lowpart SUBREGs.
28671
28672 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28673
28674 * config/arc/arc.c (arc_init): Format diagnostic string.
28675 (arc_override_options): Likewise.
28676 (check_if_valid_regno_const): Likewise.
28677 (arc_reorg): Likewise.
28678
28679 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28680
28681 PR target/17108
28682 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28683 name.
28684 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28685 name.
28686 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28687 (*movdi_update1): Use Pmode.
28688 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28689 (movdi_<mode>_update_stack): Rename to ...
28690 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28691 use Pmode.
28692 (*movsi_update1): Use Pmode.
28693 (*movsi_update2): Use Pmode.
28694 (movsi_update): Rename to ...
28695 (movsi_<mode>_update): ... this. Use Pmode.
28696 (movsi_update_stack): Fix condition.
28697 (*movhi_update1): Use Pmode. Fix argument to
28698 avoiding_indexed_address_p.
28699 (*movhi_update2): Ditto.
28700 (*movhi_update3): Ditto.
28701 (*movhi_update4): Ditto.
28702 (*movqi_update1): Ditto.
28703 (*movqi_update2): Ditto.
28704 (*movqi_update3): Ditto.
28705 (*movsf_update1, *movdf_update1): Merge, rename to...
28706 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28707 avoiding_indexed_address_p. Add "size" attribute.
28708 (*movsf_update2, *movdf_update2): Merge, rename to...
28709 (*mov<mode>_update2): This. Ditto.
28710 (*movsf_update3): Use Pmode. Fix argument to
28711 avoiding_indexed_address_p.
28712 (*movsf_update4): Ditto.
28713 (allocate_stack): Simplify condition. Adjust pattern names.
28714
28715 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28716
28717 PR target/89093
28718 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28719 whitespace at the start of target attribute string.
28720
28721 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28722
28723 PR target/84369
28724 * config/rs6000/power9.md: Add store forwarding bypass.
28725
28726 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28727
28728 PR debug/89528
28729 * valtrack.c (dead_debug_insert_temp): Reset debug references
28730 to the return value of a call being removed.
28731
28732 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28733
28734 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28735 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28736 implement target hook.
28737 (arc_memory_move_cost): New function.
28738 (TARGET_REGISTER_MOVE_COST): Define.
28739 (TARGET_MEMORY_MOVE_COST): Likewise.
28740 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28741 (MEMORY_MOVE_COST): Likewise.
28742
28743 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28744
28745 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28746 (sibcall_value_insn): Likewise.
28747 * config/arc/constraints.md (Rs5): Remove.
28748
28749 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28750
28751 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28752 for last two fake registers.
28753 (arc_conditional_register_usage): Make sure fake frame and arg
28754 pointer regs are in general regs class.
28755 (FRAME_POINTER_MASK): Remove.
28756 (RETURN_ADDR_MASK): Remove.
28757 (arc_must_save_register): Use hard frame regnum.
28758 (frame_restore_reg): Use hard_frame_pointer_rtx.
28759 (arc_save_callee_saves): Likewise.
28760 (arc_restore_callee_saves): Likewise.
28761 (arc_save_callee_enter): Likewise.
28762 (arc_restore_callee_leave): Likewise.
28763 (arc_save_callee_milli): Likewise.
28764 (arc_eh_return_address_location): Likewise.
28765 (arc_check_multi): Use hard frame regnum.
28766 (arc_can_eliminate): Likewise.
28767 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28768 for register allocator.
28769 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28770 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28771 (FRAME_POINTER_REGNUM): Change it to a fake register.
28772 (HARD_FRAME_POINTER_REGNUM): Defined.
28773 (ARG_POINTER_REGNUM): Change it to a new fake register.
28774 (ELIMINABLE_REGS): Update.
28775 (REGISTER_NAMES): Update names.
28776 * config/arc/arc.md (LP_START): Remove.
28777 (LP_END): Likewise.
28778 (shift_si3_loop): Update pattern.
28779
28780 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28781
28782 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28783 to avoid delay slot scheduling.
28784 (arc_must_save_register): Don't save SP.
28785 * config/arc/arc.md (stack_tie): Remove.
28786 (UNSPEC_ARC_STKTIE): Likewise.
28787
28788 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28789 Shiva Chen <shiva0217@gmail.com>
28790
28791 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28792 code gen with large shift amount.
28793
28794 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28795
28796 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28797 subreg.
28798
28799 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28800
28801 PR target/90096
28802 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28803 print -m64/-mx32/-m32 if it is true.
28804 (ix86_debug_options, ix86_function_specific_print): Pass true as
28805 ADD_ABI_P to ix86_target_string.
28806 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28807 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28808 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28809
28810 PR rtl-optimization/90082
28811 * dce.c (can_delete_call): New function.
28812 (deletable_insn_p, mark_insn): Use it.
28813
28814 PR tree-optimization/90090
28815 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28816 throw internally.
28817 (is_division_by_square): Likewise. Formatting fix.
28818
28819 2019-04-16 Richard Biener <rguenther@suse.de>
28820
28821 PR tree-optimization/56049
28822 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28823 equality check if alias-set zero will prevail.
28824
28825 2019-04-15 Jeff Law <law@redhat.com>
28826
28827 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28828 size and alignment as unsigned.
28829
28830 2019-04-15 Richard Biener <rguenther@suse.de>
28831
28832 PR debug/90074
28833 * tree-loop-distribution.c (destroy_loop): Preserve correct
28834 debug info.
28835
28836 2019-04-15 Richard Biener <rguenther@suse.de>
28837
28838 PR tree-optimization/90071
28839 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28840 abnormal operands from def stmts.
28841
28842 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28843
28844 PR rtl-optimization/89794
28845 * combine.c (count_auto_inc): New function.
28846 (try_combine): Count how many auto_inc expressions there were in the
28847 original instructions. Ensure we have the same number in the new
28848 instructions. Remove the code that tried to ensure auto_inc side
28849 effects on i1 and i0 are not lost.
28850
28851 2019-04-15 Richard Biener <rguenther@suse.de>
28852
28853 PR ipa/88936
28854 * tree.h (auto_var_p): Declare.
28855 * tree.c (auto_var_p): New function, split out from ...
28856 (auto_var_in_fn_p): ... here.
28857 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28858 member.
28859 (new_var_info): Initialize it.
28860 (set_uids_in_ptset): Also set the shadow variable uid if required.
28861 (ipa_pta_execute): Postprocess points-to solutions assigning
28862 shadow variable uids for locals that may reach their containing
28863 function recursively.
28864 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28865 assert but instead check whether the points-to solution is
28866 a singleton.
28867
28868 2019-04-15 Martin Jambor <mjambor@suse.cz>
28869
28870 PR ipa/pr89693
28871 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28872 the thunk chain.
28873
28874 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28875
28876 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28877
28878 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28879 Kito Cheng <kito.cheng@gmail.com>
28880 Shiva Chen <shiva0217@gmail.com>
28881
28882 * config/nds32/nds32-md-auxiliary.c
28883 (nds32_legitimize_pic_address): Use new PIC pattern.
28884 (nds32_legitimize_tls_address): Use new TLS pattern.
28885 (nds32_output_symrel): New.
28886 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28887 (nds32_alloc_relax_group_id): Ditto.
28888 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28889 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28890 relax_group_id.
28891 (nds32_group_tls_insn): Ditto.
28892 (nds32_group_float_insns): Ditto.
28893 * config/nds32/nds32.md (tls_le): New.
28894 (sym_got): Ditto.
28895
28896 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28897
28898 * configure: Add nds32 target for dwarf2 debug_line checking.
28899 * configure.ac: Regenerated.
28900
28901 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28902
28903 PR lto/89358
28904 * ipa-devirt.c (skip_in_fields_list_p): New.
28905 (odr_types_equivalent_p): Use it.
28906
28907 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28908
28909 PR target/89093
28910 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28911 instead of strncmp when checking for thumb and arm. Formatting fixes.
28912
28913 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28914
28915 * doc/install.texi: Document --with-target-system-zlib.
28916
28917 2019-04-12 Martin Sebor <msebor@redhat.com>
28918
28919 PR c/88383
28920 PR c/89288
28921 PR c/89798
28922 PR c/89797
28923 * targhooks.c (default_vector_alignment): Avoid assuming
28924 argument fits in SHWI.
28925 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28926 a shift expression.
28927 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28928
28929 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28930
28931 PR rtl-optimization/89965
28932 * dce.c: Include rtl-iter.h.
28933 (struct check_argument_load_data): New type.
28934 (check_argument_load): New function.
28935 (find_call_stack_args): Check for loads from stack slots still tracked
28936 in sp_bytes and punt if any is found.
28937
28938 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28939
28940 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28941
28942 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28943 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28944
28945 2019-04-12 Martin Liska <mliska@suse.cz>
28946
28947 PR middle-end/89970
28948 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28949 in error message.
28950 (separate_attrs): Handle multiple 'default's.
28951 (expand_target_clones): Rework error handling code.
28952
28953 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28954
28955 PR target/87532
28956 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28957 mode of vector rather than mode of destination for move instruction.
28958 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28959 Use QI inner mode with V16QI vector mode.
28960
28961 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28962
28963 PR target/52726
28964 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28965 "invalid %%t operand" in output_operand_lossage message.
28966
28967 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28968
28969 * config/s390/predicates.md (permute_pattern_operand): New
28970 predicate.
28971 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28972 operand for the permute pattern.
28973 ("*vec_perm<mode>"): New insn definition.
28974 ("bswap<mode>"): Generate the permute pattern operand in the
28975 expander and perform the operand reloads for pre arch13 level
28976 already.
28977 ("*bswap<mode>_emu"): Rename to ...
28978 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28979 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28980 Add the USE operand for the permute pattern.
28981 ("*vec_set_bswap_vec<mode>"): Likewise.
28982
28983 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28984
28985 PR c/89946
28986 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28987 and gcc_unreachable if it fails, just call tree_to_uhwi which
28988 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28989 Start warning message with a lower-case letter. Formatting fixes.
28990
28991 PR rtl-optimization/90026
28992 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28993 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28994 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28995 in cfglayout mode, use emit_barrier_after_bb.
28996
28997 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28998
28999 PR rtl-optimization/87763
29000 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29001 New Instruction.
29002
29003 2019-04-11 Tom de Vries <tdevries@suse.de>
29004
29005 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29006 max macro using statement expression.
29007
29008 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29009
29010 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29011 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29012 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29013 read_only_private_data_section using xcoff_private_rodata_section_name.
29014 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29015
29016 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29017
29018 PR target/90016
29019 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29020
29021 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29022
29023 PR rtl-optimization/89965
29024 * dce.c (sp_based_mem_offset): New function.
29025 (find_call_stack_args): Use sp_based_mem_offset.
29026
29027 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29028
29029 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29030
29031 2019-04-11 Richard Biener <rguenther@suse.de>
29032
29033 PR tree-optimization/90020
29034 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29035 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29036 * tree-ssa-pre.c (compute_avail): Use it to not put
29037 possibly trapping references after a call that might not
29038 return into EXP_GEN.
29039 * gcse.c (compute_hash_table_work): Do not elide
29040 marking a block containing a call if the call might not
29041 return.
29042
29043 2019-04-11 Richard Biener <rguenther@suse.de>
29044
29045 PR tree-optimization/90018
29046 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29047 Test both SLP and interleaving variants.
29048
29049 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29050
29051 * config/s390/8561.md: New file.
29052 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29053 Add arch13 cpu model.
29054 * config/s390/s390-opts.h (enum processor_type): Likewise.
29055 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29056 (s390_get_unit_mask): Likewise.
29057 (s390_is_fpd): Likewise.
29058 (s390_is_fxd): Likewise.
29059 * config/s390/s390.h (s390_tune_attr): Likewise.
29060 * config/s390/s390.md: Include arch13 pipeline description.
29061 * config/s390/s390.opt: Add arch13.
29062
29063 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29064
29065 PR rtl-optimization/87763
29066 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29067 New prototype.
29068 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29069 New function.
29070 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29071 New instruction.
29072 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29073 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29074 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29075 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29076
29077 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29078
29079 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29080 "Although" in -fipa-icf documentation.
29081
29082 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29083 of using multiple -g options.
29084
29085 2019-04-10 Martin Liska <mliska@suse.cz>
29086
29087 PR gcov-profile/89959
29088 * doc/gcov.texi: Make documentation of -x option
29089 more precise.
29090
29091 2019-04-10 Richard Biener <rguenther@suse.de>
29092
29093 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29094 member.
29095 (DR_GROUP_SAME_DR_STMT): Remove.
29096 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29097 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29098 replace with assert.
29099 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29100 (vect_record_grouped_load_vectors): Remove unreachable code.
29101
29102 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29103
29104 PR target/90016
29105 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29106 obsolete reference to N.
29107
29108 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29109
29110 PR middle-end/90025
29111 * expr.c (store_expr): Set properly size on the MEM passed to
29112 clear_storage.
29113
29114 PR c++/90010
29115 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29116 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29117 translation is needed, and when translation is needed, only append
29118 ... if the string length is hostsz or more bytes long. Avoid using
29119 strncpy or strcat.
29120
29121 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29122
29123 PR target/90024
29124 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29125 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29126 into three.
29127 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29128 differences directly.
29129 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29130
29131 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29132
29133 PR translation/90011
29134 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29135 from diagnostics.
29136 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29137 diagnostics.
29138 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29139 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29140 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29141 trailing space from -gsplit-dwarf diagnostics.
29142
29143 PR tree-optimization/89998
29144 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29145 instead of integer_type_node if possible, don't add ranges if return
29146 type is not compatible with int.
29147 * gimple-fold.c (gimple_fold_builtin_sprintf,
29148 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29149 integer_type_node.
29150
29151 2019-04-09 Martin Liska <mliska@suse.cz>
29152
29153 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29154 * doc/install.texi: Document the new config.
29155
29156 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29157
29158 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29159 use gimple_expr_type for load and store calls. Skip over the
29160 condition argument in a conditional internal function.
29161 Protect use of TREE_INT_CST_LOW.
29162
29163 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29164
29165 PR target/90015
29166 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29167 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29168 trailing period from it too.
29169
29170 2019-04-08 wu yuan <wuyuan5@huawei.com>
29171
29172 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29173 * config/aarch64/aarch64.md: Add "tsv110.md".
29174 * config/aarch64/tsv110.md: New file.
29175
29176 2019-04-08 Richard Biener <rguenther@suse.de>
29177
29178 PR tree-optimization/90006
29179 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29180 calls like lrint.
29181
29182 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29183
29184 PR target/83033
29185 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29186 construction.
29187 (fma_root_node): Likewise.
29188 (func_fma_steering): Likewise.
29189
29190 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29191
29192 PR rtl-optimization/89865
29193 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29194
29195 PR rtl-optimization/89865
29196 * config/i386/i386.md
29197 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29198 numbers not to clash with the additional operands[4].
29199 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29200 with extra register copy in the middle.
29201
29202 2019-04-08 Martin Liska <mliska@suse.cz>
29203
29204 PR gcov-profile/89961
29205 * doc/gcov.texi: Document data_file.
29206 * gcov.c (generate_results): Add data_info into JSON output.
29207
29208 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29209
29210 PR tree-optimization/89725
29211 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29212 loop's chrec as invariant symbol.
29213 * tree-chrec.h (chrec_contains_symbols): New parameter.
29214 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29215 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29216 function of loops not in DDR's loop_nest.
29217 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29218
29219 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29220
29221 PR target/89623
29222 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29223 Mask.
29224
29225 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29226
29227 PR target/89945
29228 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29229 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29230
29231 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29232
29233 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29234 targetm.fixed_condition_code_regs.
29235
29236 2019-04-05 Richard Biener <rguenther@suse.de>
29237
29238 PR debug/89892
29239 PR debug/89905
29240 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29241 debug bind stmts but reset them if they are not valid at the
29242 destination.
29243
29244 2019-04-05 Martin Liska <mliska@suse.cz>
29245
29246 PR translation/89936
29247 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29248 order to wrap keywords or arguments.
29249 * collect2.c (main): Likewise.
29250 (scan_prog_file): Likewise.
29251 (scan_libraries): Likewise.
29252 * common/config/riscv/riscv-common.c
29253 (riscv_subset_list::parsing_subset_version): Likewise.
29254 (riscv_subset_list::parse_std_ext): Likewise.
29255 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29256 Likewise.
29257 * config/arm/arm.c (arm_option_override): Likewise.
29258 * config/cris/cris.c (cris_print_operand): Likewise.
29259 * config/darwin-c.c (darwin_pragma_options): Likewise.
29260 (darwin_pragma_unused): Likewise.
29261 (darwin_pragma_ms_struct): Likewise.
29262 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29263 * config/i386/i386.c (print_reg): Likewise.
29264 (ix86_print_operand): Likewise.
29265 * config/i386/xm-djgpp.h: Likewise.
29266 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29267 * config/m32c/m32c.c (m32c_option_override): Likewise.
29268 * config/msp430/msp430.c (msp430_option_override): Likewise.
29269 * config/nds32/nds32.c (nds32_option_override): Likewise.
29270 * config/nvptx/mkoffload.c (main): Likewise.
29271 * config/rx/rx.c (rx_print_operand): Likewise.
29272 (valid_psw_flag): Likewise.
29273 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29274 (vms_pragma_nomember_alignment): Likewise.
29275 (vms_pragma_extern_model): Likewise.
29276 * lto-wrapper.c (compile_offload_image): Likewise.
29277 * omp-offload.c (oacc_parse_default_dims): Likewise.
29278 * symtab.c (symtab_node::verify_base): Likewise.
29279 * tlink.c (recompile_files): Likewise.
29280 (start_tweaking): Likewise.
29281 * tree-profile.c (parse_profile_filter): Likewise.
29282
29283 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29284
29285 PR tree-optimization/89956
29286 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29287 multiple negates of the same value.
29288
29289 2019-04-04 Martin Sebor <msebor@redhat.com>
29290
29291 PR middle-end/89957
29292 PR middle-end/89911
29293 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29294 have the same precision since the function crashes otherwise.
29295 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29296 has non-zero arguments.
29297
29298 2019-04-04 Martin Sebor <msebor@redhat.com>
29299
29300 PR middle-end/89934
29301 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29302 out if the number of arguments is less than expected.
29303
29304 2019-04-04 Jeff Law <law@redhat.com>
29305
29306 PR rtl-optimization/89399
29307 * ree.c (combine_set_extension): Use single_set rather than
29308 digging into PATTERN for items on the candidate list.
29309 (combine_reaching_defs): Likewise.
29310
29311 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29312
29313 PR rtl-optimization/46590
29314 * loop-invariant.c (find_defs): Move df_remove_problem and
29315 df_process_deferred_rescans to move_invariants.
29316 Move df_live_add_problem and df_live_set_all_dirty calls
29317 to move_invariants.
29318 (move_invariants): Likewise.
29319 (move_loop_invariants): Likewise, making the df_live calls
29320 conditional on -O. Remove the problem again if we added it
29321 locally.
29322
29323 2019-04-03 qing zhao <qing.zhao@oracle.com>
29324
29325 PR tree-optimization/89730
29326 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29327 -flive-patching=inline-only-static.
29328 (can_inline_edge_by_limits_p): Add the checking for
29329 -flive-patching=inline-only-static and grant always_inline
29330 even when -flive-patching=inline-only-static is specified.
29331
29332 2019-04-03 Jeff Law <law@redhat.com>
29333
29334 PR rtl-optimization/81025
29335 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29336
29337 2019-04-03 Richard Biener <rguenther@suse.de>
29338
29339 PR tree-optimization/84101
29340 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29341 regs.h for hard_regno_nregs.
29342 (cfun_returns): New helper.
29343 (vect_model_store_cost): When vectorizing a store to a decl
29344 we return and the function ABI returns in a multi-reg location
29345 account for the possible spilling that will happen.
29346
29347 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29348
29349 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29350 displacement addresses for vector mode operands.
29351
29352 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29353
29354 * config/arc/arc.c (GMASK_LEN): Define.
29355 (arc_restore_callee_saves): Restore first blink when
29356 !optimize_size.
29357
29358 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29359
29360 * doc/extend.texi: Add deprecated comment on sign-return-address
29361 function attribute and add mbranch-protection.
29362 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29363
29364 2019-04-03 Richard Biener <rguenther@suse.de>
29365
29366 PR lto/89896
29367 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29368 the all target phony.
29369
29370 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29371
29372 PR target/89902
29373 PR target/89903
29374 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29375 Return false for variable DImode shifts.
29376 (dimode_scalar_chain::compute_convert_gain): Do not handle
29377 register count operand in variable DImode shifts.
29378 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29379 count argument of a variable shift instruction to a vector register.
29380 (dimode_scalar_chain::convert_reg): Remove support to convert
29381 count argument of a variable shift instruction.
29382
29383 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29384
29385 PR rtl-optimization/84206
29386 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29387 iterating over loop headers.
29388
29389 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29390
29391 PR rtl-optimization/85876
29392 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29393 beyond the original fence.
29394
29395 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29396
29397 * config.gcc: Mark spu* targets as deprecated/obsolete.
29398
29399 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29400
29401 * config/s390/s390-builtin-types.def: New builtin function type
29402 definitions. Remove unused types.
29403 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29404 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29405 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29406 overloaded builtins.
29407 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29408 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29409 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29410 (vec_double, vec_signed, vec_unsigned): Define to use the new
29411 overloaded builtins.
29412 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29413 Remove expanders.
29414
29415 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29416
29417 * config/s390/s390-builtin-types.def: New builtin function type
29418 definitions.
29419 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29420 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29421 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29422 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29423 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29424 constant definitions.
29425 * config/s390/vecintrin.h (vec_search_string_cc)
29426 (vec_search_string_until_zero_cc): New builtin name definitions.
29427 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29428 expanders.
29429 ("vec_vstrs<mode>"): New insn definition.
29430
29431 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29432
29433 * config/s390/s390-builtin-types.def: Add new builtin function
29434 types.
29435 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29436 New overloaded builtins.
29437 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29438 s390_vsrd.
29439 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29440 (UNSPEC_VEC_SLDBYTE): ... this.
29441 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29442 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29443 definitions.
29444 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29445 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29446 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29447
29448 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29449
29450 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29451 New insn definition.
29452 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29453 * config/s390/vector.md (V_HW_HSD): ... here.
29454
29455 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29456
29457 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29458 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29459 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29460 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29461 New insn definitions.
29462
29463 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29464
29465 * config/s390/s390-builtin-types.def: Add new builtin function type.
29466 * config/s390/s390-builtins.def: Add overloaded builtin
29467 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29468 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29469 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29470 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29471 ("eltswap<mode>"): New expander.
29472 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29473 insn definitions.
29474
29475 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29476
29477 * config/s390/s390-builtin-types.def: Add new builtin function types.
29478 * config/s390/s390-builtins.def: Add overloaded builtin
29479 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29480 instructions.
29481 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29482 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29483 ("bswap<mode>"): New expander.
29484 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29485
29486 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29487
29488 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29489 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29490 vector builtin version number in __VEC__.
29491
29492 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29493
29494 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29495 iterators.
29496 (SFSI): New mode attribute.
29497 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29498 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29499 rename to ...
29500 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29501 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29502 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29503 ("floatsi<mode>2"): Add wcefb instruction.
29504
29505 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29506
29507 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29508 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29509 mode iterators.
29510 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29511 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29512 support 32 bit fp-int conversions. Rename to ...
29513 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29514 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29515 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29516 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29517 ... to these.
29518
29519 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29520
29521 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29522 if-then-else constructs if we can use the select instruction.
29523 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29524
29525 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29526
29527 * config/s390/s390.md ("*popcountdi_arch13_cc")
29528 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29529 definition.
29530 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29531 Append _z196 to make it ...
29532 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29533 ("popcounthi2_z196"): ... this.
29534 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29535 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29536
29537 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29538
29539 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29540 certain compares for arch13 in order to make use of the condition
29541 code result produced by the new instructions.
29542 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29543 nxrk, and nxgrk instruction patterns.
29544 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29545 (inv_no): Add new code iterator together with some attributes.
29546 ("*andc_split_<mode>"): Disable splitter for arch13.
29547 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29548 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29549 ("*<ANDOR:bitops_name>c<GPR:mode>")
29550 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29551 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29552 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29553 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29554
29555 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29556
29557 * common/config/s390/s390-common.c (processor_flags_table): New
29558 entry for arch13.
29559 * config.gcc: Support arch13 with the --with-arch= configure flag.
29560 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29561 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29562 * config/s390/s390.c (s390_get_sched_attrmask)
29563 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29564 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29565 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29566 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29567 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29568 definitions.
29569 * config/s390/s390.opt: Support arch13 as processor type in
29570 command line options.
29571
29572 2019-04-02 Martin Liska <mliska@suse.cz>
29573
29574 PR translation/89912
29575 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29576 Fix param description of graphite-max-arrays-per-scop.
29577
29578 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29579
29580 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29581 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29582 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29583
29584 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29585
29586 PR rtl-optimization/85412
29587 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29588 sel_sched_region_1, not after.
29589
29590 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29591
29592 PR rtl-optimization/86928
29593 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29594 compute_live if necessary.
29595 (sel_redirect_edge_and_branch): Likewise.
29596
29597 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29598
29599 PR rtl-optimization/89865
29600 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29601 register if it is a part of small class.
29602
29603 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29604
29605 PR rtl-optimization/87273
29606 * sel-sched-ir.c (merge_fences): Remove assert.
29607
29608 2019-04-01 Richard Biener <rguenther@suse.de>
29609
29610 PR tree-optimization/46590
29611 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29612 (dom_walker::m_reachability): Add in place of...
29613 (dom_walker::m_skip_unreachable_blocks): ...this.
29614 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29615 Move complex initialization ...
29616 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29617 lazily and initialize edge flags on each invocation.
29618 (dom_walker::bb_reachable): Use m_reachability.
29619
29620 2019-04-01 Martin Liska <mliska@suse.cz>
29621
29622 PR driver/89861
29623 * opt-suggestions.c (option_proposer::build_option_suggestions):
29624 Add variant without any argument in order to provide better
29625 hints.
29626
29627 2019-04-01 Richard Biener <rguenther@suse.de>
29628
29629 PR c/71598
29630 * gimple.c: Include langhooks.h.
29631 (gimple_get_alias_set): Treat enumeral types as the underlying
29632 integer type.
29633
29634 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29635 Eric Botcazou <ebotcazou@adacore.com>
29636
29637 PR rtl-optimization/89862
29638 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29639 that operates on the full registers for WORD_REGISTER_OPERATIONS
29640 architectures.
29641
29642 2019-03-29 Jim Wilson <jimw@sifive.com>
29643
29644 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29645 Clear MASK_RVC and then set if C subset supported.
29646
29647 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29648
29649 PR c/89872
29650 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29651 non-addressable complit into its initializer if it is volatile.
29652
29653 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29654
29655 * opts-common.c (integral_argument): Set errno properly in one case.
29656
29657 2019-03-29 Martin Liska <mliska@suse.cz>
29658
29659 * doc/invoke.texi: Remove -Wchkp from documentation.
29660
29661 2019-03-29 Martin Liska <mliska@suse.cz>
29662
29663 * dbgcnt.c (print_limit_reach): New function.
29664 (dbg_cnt): Use it.
29665
29666 2019-03-29 Martin Liska <mliska@suse.cz>
29667
29668 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29669 (dbg_cnt_process_opt): Parse first tokens aas
29670 dbg_cnt_process_single_pair is also using strtok.
29671
29672 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29673
29674 PR rtl-optimization/87485
29675 * function.c (expand_function_end): Move stack_protect_epilogue
29676 before loading of return value into hard register(s).
29677
29678 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29679
29680 PR middle-end/89621
29681 * tree-inline.h (struct copy_body_data): Add
29682 dont_remap_vla_if_no_change flag.
29683 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29684 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29685 and remap_type_2 returns false.
29686 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29687 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29688 only from where it is copied to nested contexts.
29689
29690 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29691
29692 PR target/89865
29693 * config/i386/i386.md (RMW operation with LEA peephole):
29694 Use LEAMODE mode attribute instead of SWI mode iterator for
29695 LEA pattern.
29696
29697 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29698
29699 PR target/89848
29700 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29701 Also process XEXP (src, 0) of a shift insn.
29702
29703 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29704
29705 PR middle-end/89725
29706 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29707 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29708
29709 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29710
29711 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29712 test.
29713 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29714 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29715 immediately after first one with df_analyze in between, but rather
29716 process all bbs, queueing ones that need second pass in a worklist,
29717 df_analyze, process queued debug insn changes and if second pass is
29718 needed, process bbs from worklist, df_analyze, process queued debug
29719 insns again.
29720
29721 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29722 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29723 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29724
29725 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29726
29727 PR c/79022
29728 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29729 definition.
29730
29731 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29732
29733 PR target/85667
29734 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29735 function for 32-bit MS_ABI.
29736 (function_value_ms_32): New function.
29737
29738 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29739
29740 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29741 (movdi): Call gen_movdi_symbol_save_scc.
29742 (gen_movdi_symbol_save_scc): New insn and split.
29743
29744 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29745
29746 PR rtl-optimization/89313
29747 * function.c (matching_constraint_num): New static function.
29748 (match_asm_constraints_1): Use it. Fixup white space and comment.
29749 Don't replace inputs with non-matching constraints which conflict
29750 with early clobber outputs.
29751
29752 2019-03-27 Jeff Law <law@redhat.com>
29753
29754 PR rtl-optimization/87761
29755 PR rtl-optimization/89826
29756 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29757 slightly later.
29758 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29759 note problem to get REG_DEAD/REG_UNUSED notes updated.
29760
29761 2019-03-27 Richard Biener <rguenther@suse.de>
29762
29763 PR tree-optimization/89463
29764 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29765 queue edges to remove.
29766 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29767 dead stmts. Delay edge removal until PHIs are removed to
29768 make debug-stmt creation not confused by seemingly degenerate
29769 PHIs.
29770
29771 2019-03-27 Alan Modra <amodra@gmail.com>
29772
29773 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29774 throughout file.
29775 * config/rs6000/darwin.h: Likewise.
29776 * config/rs6000/rs6000.c: Likewise.
29777
29778 2019-03-27 Alan Modra <amodra@gmail.com>
29779
29780 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29781 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29782
29783 2019-03-26 Andrew Waterman <andrew@sifive.com>
29784 Jim Wilson <jimw@sifive.com>
29785
29786 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29787 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29788 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29789 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29790 (generic_alu): Add auipc to type list.
29791 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29792 (riscv_microarchitecture): Declare.
29793 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29794 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29795 field.
29796 (riscv_microarchitecture): New.
29797 (sifive_7_tune_info): New.
29798 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29799 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29800 entries.
29801 (riscv_store_data_bypass_p): New.
29802 (riscv_option_override): Set riscv_microarchitecture from
29803 cpu->microarchitecture.
29804 * config/riscv/riscv.md: Include sifive-7.md.
29805 (type): Add auipc.
29806 (tune): New.
29807 (auipc<mode>): Change type to auipc.
29808 (restore_stack_nonlocal): New.
29809 * config/riscv/sifive-7.md: New.
29810 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29811
29812 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29813
29814 PR target/89827
29815 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29816 Also process XEXP (src, 0) of a shift insn.
29817
29818 2019-03-26 Richard Biener <rguenther@suse.de>
29819
29820 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29821 (copy_debug_stmt): Likewise.
29822 (expand_call_inline): Likewise.
29823 (copy_bb): Avoid redundant lookup & set of gimple_block.
29824 * gimple-low.c (lower_gimple_return): Likewise.
29825 (lower_builtin_setjmp): Likewise.
29826
29827 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29828
29829 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29830 is constant 0, turn into static const data member initialized to false.
29831 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29832 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29833
29834 2019-03-26 Jason Merrill <jason@redhat.com>
29835 Jakub Jelinek <jakub@redhat.com>
29836
29837 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29838 method.
29839 (mem_alloc_description::release_object_overhead): Fix comment typos.
29840 * hash-table.h (hash_table::~hash_table): Call
29841 release_instance_overhead only if m_entries is non-NULL, otherwise
29842 call unregister_descriptor.
29843
29844 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29845
29846 PR tree-optimization/81740
29847 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29848 In case of outer loop vectorization, check for backward dependence
29849 at the inner loop if outer loop dependence is reversed.
29850
29851 2019-03-26 Alan Modra <amodra@gmail.com>
29852
29853 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29854 rs6000_vector_mem init. Correct wI and wJ comment.
29855
29856 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29857
29858 PR rtl-optimization/88347
29859 PR rtl-optimization/88423
29860 * sched-deps.c (sched_analyze_insn): Take into account that for
29861 tablejumps the barrier appears after a label and a jump_table_data.
29862
29863 2019-03-25 Martin Sebor <msebor@redhat.com>
29864
29865 PR c/89812
29866 * c-common.c (check_user_alignment): Rename local. Correct maximum
29867 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29868 convert it to UHWI when it fits.
29869
29870 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29871
29872 PR debug/86964
29873 * dwarf2out.c (premark_used_variables): New function.
29874 (prune_unused_types_walk): Do not mark not premarked external
29875 variables.
29876 (prune_unused_types): Call premark_used_variables.
29877
29878 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29879
29880 PR rtl-optimization/89676
29881 * lra-constraints.c (curr_insn_transform): Do match reload for
29882 early clobbers when the match was successful only for different
29883 registers.
29884
29885 2019-03-25 Martin Sebor <msebor@redhat.com>
29886
29887 * doc/extend.texi (Common Type Attributes): Document vector_size.
29888 (Common Variable Attributes): Mention size constraint. Correct
29889 quoting and typos.
29890 (Vector Extensions): Use @dfn when defining bas type. Clarify
29891 base type and size constraints.
29892
29893 2019-03-25 Richard Biener <rguenther@suse.de>
29894
29895 PR tree-optimization/89789
29896 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29897 changes from non-undefined back to undefined.
29898
29899 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29900
29901 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29902 heap string and a gc string, but since this variable is unknown to
29903 ggc the gc string might get reused and corrupted. Fixed by always
29904 using a heap string.
29905
29906 2019-03-25 Richard Biener <rguenther@suse.de>
29907
29908 PR tree-optimization/89779
29909 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29910 to remove IV defs, delay actual removal.
29911 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29912 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29913 very end, properly also reset loop control IV information.
29914
29915 2019-03-25 Richard Biener <rguenther@suse.de>
29916
29917 PR tree-optimization/89802
29918 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29919 move EH data to folded stmt.
29920
29921 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29922
29923 * config/s390/s390-builtin-types.def: Remove few unused types and
29924 fix sort order for others.
29925
29926 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29927
29928 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29929 expected and found types with -mdebug during builtin matching.
29930
29931 2019-03-25 Richard Biener <rguenther@suse.de>
29932
29933 PR middle-end/89790
29934 * fold-const.c (operand_equal_p): Revert last change with
29935 updated comment.
29936
29937 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29938
29939 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29940 notes for the result of the __tls_get_addr calls.
29941 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29942
29943 2019-03-24 Jeff Law <law@redhat.com>
29944
29945 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29946
29947 PR rtl-optimization/87761
29948 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29949 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29950 as needed.
29951 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29952 rescans. Reprocess blocks as needed, calling df_analyze before
29953 reprocessing. Always call df_analyze before fixing up debug bind
29954 insns.
29955
29956 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29957
29958 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29959 big endian.
29960
29961 2019-03-22 Andrew Pinski <apinski@marvell.com>
29962
29963 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29964 attrribute for uxtw.
29965
29966 2019-03-26 Jeff Law <law@redhat.com>
29967
29968 PR rtl-optimization/87761
29969 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29970 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29971 (mips_split_move): Accept new INSN argument. Try to forward SRC
29972 into the next instruction.
29973 (mips_split_move_insn): Pass INSN through to mips_split_move.
29974
29975 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29976
29977 PR rtl-optimization/89676
29978 * lra-constraints.c (curr_insn_transform): Do match reload for
29979 early clobbers even if the match was successful.
29980
29981 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29982
29983 PR c++/87481
29984 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29985
29986 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29987
29988 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29989
29990 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29991
29992 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29993 <avx512>_fmsub_<mode>_mask3<round_name>,
29994 <avx512>_fnmadd_<mode>_mask3<round_name>,
29995 <avx512>_fnmsub_<mode>_mask3<round_name>,
29996 avx512f_vmfmadd_<mode>_mask3<round_name>,
29997 avx512f_vmfmsub_<mode>_mask3<round_name>,
29998 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29999 instead of register_operand and %v instead of v for match_operand 1.
30000 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30001 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30002 <round_nimm_predicate> instead of register_operand and %v instead of v
30003 for match_operand 1.
30004
30005 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30006 <avx512>_fmadd_<mode>_mask3<round_name>,
30007 <avx512>_fmsub_<mode>_mask<round_name>,
30008 <avx512>_fmsub_<mode>_mask3<round_name>,
30009 <avx512>_fnmadd_<mode>_mask<round_name>,
30010 <avx512>_fnmadd_<mode>_mask3<round_name>,
30011 <avx512>_fnmsub_<mode>_mask<round_name>,
30012 <avx512>_fnmsub_<mode>_mask3<round_name>,
30013 <avx512>_fmaddsub_<mode>_mask<round_name>,
30014 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30015 <avx512>_fmsubadd_<mode>_mask<round_name>,
30016 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30017 <round_nimm_predicate> instead of nonimmediate_operand.
30018 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30019 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30020 Use register_operand instead of <round_nimm_predicate> for the
30021 operand that needs to match output.
30022 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30023 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30024 Likewise. Formatting fixes.
30025
30026 PR target/89784
30027 * config/i386/i386.c (enum ix86_builtins): Remove
30028 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30029 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30030 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30031 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30032 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30033 __builtin_ia32_vfmsubss3_mask3): New builtins.
30034 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30035 avx512f_vmfmadd_<mode>_mask3<round_name>,
30036 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30037 *avx512f_vmfmsub_<mode>_mask<round_name>,
30038 avx512f_vmfmsub_<mode>_mask3<round_name>,
30039 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30040 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30041 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30042 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30043 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30044 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30045 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30046 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30047 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30048 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30049 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30050 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30051 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30052 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30053 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30054 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30055 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30056 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30057 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30058 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30059 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30060 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30061 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30062 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30063 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30064 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30065 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30066 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30067
30068 2019-03-21 Martin Sebor <msebor@redhat.com>
30069
30070 PR tree-optimization/89350
30071 * builtins.c (compute_objsize): Also ignore offsets whose upper
30072 bound is negative.
30073 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30074 (builtin_memref::builtin_memref): Initialize new member.
30075 Allow EXPR to be null.
30076 (builtin_memref::extend_offset_range): Replace local with a member.
30077 Avoid assuming pointer offsets are unsigned.
30078 (builtin_memref::set_base_and_offset): Determine base object
30079 before computing offset range.
30080 (builtin_access::builtin_access): Handle memset.
30081 (builtin_access::generic_overlap): Replace local with a member.
30082 (builtin_access::strcat_overlap): Same.
30083 (builtin_access::overlap): Same.
30084 (maybe_diag_overlap): Same.
30085 (maybe_diag_access_bounds): Same.
30086 (wrestrict_dom_walker::check_call): Handle memset.
30087 (check_bounds_or_overlap): Same.
30088
30089 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30090 Jakub Jelinek <jakub@redhat.com>
30091
30092 PR lto/89692
30093 * tree.c (fld_type_variant, fld_incomplete_type_of,
30094 fld_process_array_type): Call fld->pset.add and don't call
30095 add_tree_to_fld_list if it returns true.
30096 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30097 non-marked types from TYPE_NEXT_VARIANT list.
30098 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30099
30100 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30101
30102 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30103 to false, if true, don't alloc_entries during construction, but defer
30104 it to the first method that needs m_entries allocated.
30105 (hash_table::hash_table, hash_table::~hash_table,
30106 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30107 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30108 hash_table::clear_slot, hash_table::traverse_noresize,
30109 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30110 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30111 false.
30112 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30113 NO_INSERT instead of find_with_hash.
30114 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30115 hash_set::m_table): Add Lazy to template params of hash_table.
30116 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30117 * attribs.c (test_attribute_exclusions): Likewise.
30118 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30119 hash_set. Add tests for hash_set with Lazy = true.
30120
30121 2019-03-21 Richard Biener <rguenther@suse.de>
30122
30123 PR tree-optimization/89779
30124 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30125 checks with respect to released SSA names now having error_mark_node
30126 type.
30127 * fold-const.c (operand_equal_p): Likewise.
30128
30129 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30130
30131 PR target/89775
30132 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30133 available to ...
30134 (s390_optimize_register_info): Use global_not_special_regno_p to
30135 check for global regs.
30136
30137 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30138
30139 PR target/89752
30140 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30141 update this_alternative nor this_alternative_set.
30142
30143 2019-03-19 Jim Wilson <jimw@sifive.com>
30144
30145 PR target/89411
30146 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30147 align, size, offset. Use them to handle a BLKmode reference. Update
30148 comment.
30149 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30150
30151 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30152
30153 PR rtl-optimization/89768
30154 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30155 instead of GEN_INT.
30156 (unroll_loop_runtime_iterations): Likewise.
30157
30158 2019-03-19 Martin Sebor <msebor@redhat.com>
30159
30160 PR tree-optimization/89644
30161 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30162 rather than endptr as an indicator of nul-termination.
30163
30164 PR tree-optimization/89644
30165 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30166 arrays in determining sequence sizes in strncpy and stpncpy.
30167
30168 2019-03-19 Martin Liska <mliska@suse.cz>
30169
30170 PR middle-end/89737
30171 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30172 unlikely_edges if there's an edge that belongs to both these sets.
30173
30174 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30175
30176 PR target/89746
30177 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30178 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30179 go via a stack temporary.
30180
30181 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30182
30183 PR target/89378
30184 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30185 instead of gen_rtx_SUBREG.
30186 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30187
30188 2019-03-19 Richard Biener <rguenther@suse.de>
30189
30190 PR debug/88389
30191 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30192
30193 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30194
30195 PR lto/87809
30196 PR lto/89335
30197 * tree.c (free_lang_data_in_decl): Do not free context of C++
30198 destrutors.
30199
30200 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30201
30202 PR target/89506
30203 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30204 subs for the first alternative except when operands[3] is 1.
30205
30206 PR target/89752
30207 * gimplify.c (gimplify_asm_expr): For output argument with
30208 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30209 diagnose error.
30210
30211 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30212
30213 PR rtl-optimization/89753
30214 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30215 explicit unrolling factor even more robust.
30216
30217 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30218
30219 PR target/89726
30220 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30221 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30222 signed zeros, do another copysign after the compensation.
30223
30224 2019-03-18 Martin Sebor <msebor@redhat.com>
30225
30226 PR tree-optimization/89720
30227 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30228 more conservatively, the same as anti-range.
30229
30230 2019-03-18 Richard Biener <rguenther@suse.de>
30231
30232 PR middle-end/88945
30233 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30234 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30235 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30236 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30237
30238 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30239
30240 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30241 Extend queue to 1024 entries.
30242 Add "consumed" field.
30243 (gomp_print_output): Remove print_index parameter.
30244 Add final parameter.
30245 Change limit to unsigned.
30246 Use consumed field to implement circular buffer.
30247 Detect interrupted print in final pass.
30248 Flush output at the end.
30249 (run): Update gomp_print_output usage.
30250 (main): Initialize kernargs->output_data.consumed.
30251
30252 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30253
30254 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30255 calculation of the minimum number of scalar iterations for
30256 fully-predicated loops.
30257
30258 2019-03-18 Martin Jambor <mjambor@suse.cz>
30259
30260 PR tree-optimization/89546
30261 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30262 any propagation to its children took place.
30263
30264 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30265
30266 PR target/89627
30267 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30268 parameter, and make use of it.
30269 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30270
30271 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30272
30273 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30274 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30275 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30276 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30277 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30278 match what the ops is doing.
30279 (push_multi_fp_blink): Likewise.
30280 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30281 compiling for size and elf target.
30282 (arc_save_callee_enter): Adjust note to match what enter/leave
30283 operation does.
30284
30285 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30286
30287 * config/arc/arc.md (tst_movb): Fix constraint.
30288
30289 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30290
30291 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30292
30293 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30294
30295 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30296 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30297 reg_alloc_order references.
30298 (size_alloc_order): Define.
30299 (arc_adjust_reg_alloc_order): New function.
30300 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30301 order.
30302 (ADJUST_REG_ALLOC_ORDER): Define.
30303 (HONOR_REG_ALLOC_ORDER): Likewise.
30304
30305 2019-03-18 Richard Biener <rguenther@suse.de>
30306
30307 PR target/87561
30308 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30309 loads and stores a bit more.
30310
30311 2019-03-18 Richard Biener <rguenther@suse.de>
30312
30313 PR target/87561
30314 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30315 load pessimization to stores as well.
30316
30317 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30318
30319 PR middle-end/86979
30320 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30321 successor, use NULL as its av set.
30322
30323 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30324
30325 PR rtl-optimization/89721
30326 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30327
30328 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30329
30330 PR target/87532
30331 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30332 When handling vec_extract, use modular arithmetic to allow
30333 constant selectors greater than vector length.
30334 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30335 V1TImode vectors to have constant selector values greater than 0.
30336 Use modular arithmetic to compute vector index.
30337 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30338 index for in-memory vectors. Correct code generation for
30339 in-register vectors.
30340 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30341 compute index.
30342
30343 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30344
30345 PR c++/88534
30346 PR c++/88537
30347 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30348 VAR_DECL args.
30349
30350 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30351
30352 PR c++/89709
30353 * tree.c (inchash::add_expr): Strip any location wrappers.
30354 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30355 after hash verification.
30356
30357 PR debug/89704
30358 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30359 SIGN_EXTEND and ZERO_EXTEND.
30360
30361 2019-03-14 Jason Merrill <jason@redhat.com>
30362 Jakub Jelinek <jakub@redhat.com>
30363
30364 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30365 than if is_empty (*slot).
30366 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30367 existing elt and for elt removal.
30368 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30369 of already removed elt.
30370
30371 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30372
30373 PR target/89650
30374 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30375 REG_EH_REGION note.
30376
30377 2019-03-14 Martin Liska <mliska@suse.cz>
30378
30379 PR other/89712
30380 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30381
30382 2019-03-14 Richard Biener <rguenther@suse.de>
30383
30384 PR target/89711
30385 * config/i386/i386.c (make_resolver_func): Properly set
30386 DECL_CONTEXT on the RESULT_DECL.
30387 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30388
30389 2019-03-14 Richard Biener <rguenther@suse.de>
30390
30391 * gimple-pretty-print.c: Include cfgloop.h.
30392 (dump_gimple_phi): Adjust.
30393 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30394 (pp_cfg_jump): Adjust.
30395 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30396 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30397 (lower_phi_internal_fn): Remove.
30398 (verify_gimple_call): Remove IFN_PHI special-casing.
30399 (dump_function_to_file): Dump IL state.
30400 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30401 done to deal with PHI nodes being present in non-SSA state.
30402
30403 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30404
30405 PR ipa/89684
30406 * multiple_target.c (create_dispatcher_calls): Change
30407 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30408 In the node->iterate_referring loop, push *ref rather than ref, call
30409 ref->remove_reference () and always pass 0 to iterate_referring.
30410
30411 PR rtl-optimization/89679
30412 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30413 would contain a paradoxical SUBREG.
30414
30415 2019-03-14 Richard Biener <rguenther@suse.de>
30416
30417 PR tree-optimization/89710
30418 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30419 safe_dyn_cast.
30420
30421 2019-03-14 Martin Liska <mliska@suse.cz>
30422
30423 * coverage.c (coverage_begin_function): Stream also
30424 end_column.
30425 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30426 documentation about function declaration location.
30427 * gcov-dump.c (tag_function): Print whole range
30428 of function declaration.
30429 * gcov.c (struct function_info): Add end_column field.
30430 (function_info::function_info): Initialize it.
30431 (output_json_intermediate_file): Output {start,end}_column
30432 fields.
30433 (read_graph_file): Read end_column.
30434
30435 2019-03-14 Richard Biener <rguenther@suse.de>
30436
30437 PR middle-end/89698
30438 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30439 that the access types are similar.
30440
30441 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30442
30443 PR tree-optimization/89703
30444 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30445 aren't compatible also with builtin_decl_explicit. Check pure
30446 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30447 and BUILT_IN_STPNCPY{,_CHK}.
30448
30449 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30450
30451 PR target/89523
30452 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30453 addr32 prefix to VSIB address for X32.
30454 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30455 "%M2" to opcode.
30456 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30457 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30458 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30459 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30460 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30461 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30462 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30463 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30464 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30465 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30466 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30467 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30468 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30469 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30470 (*avx512f_scatterdi<mode>): Likewise.
30471
30472 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30473
30474 PR target/85860
30475 * lra-constraints.c (inherit_in_ebb): Update
30476 potential_reload_hard_regs along with live_hard_regs.
30477
30478 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30479
30480 PR debug/89498
30481 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30482 DWARF_OFFSET_SIZE.
30483 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30484
30485 2019-03-13 Martin Sebor <msebor@redhat.com>
30486
30487 PR tree-optimization/89662
30488 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30489 has a size.
30490
30491 2019-03-13 Richard Biener <rguenther@suse.de>
30492
30493 PR middle-end/89677
30494 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30495 throw FP expressions at tree-affine.
30496
30497 2019-03-14 Richard Biener <rguenther@suse.de>
30498
30499 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30500 dump negative integer constants using _Literal (type) -num.
30501
30502 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30503
30504 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30505 nonlocal_value member.
30506
30507 PR middle-end/88588
30508 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30509 (ipa_simd_modify_function_body): Handle PHIs.
30510
30511 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30512
30513 * config/s390/s390.c (s390_option_override_internal): Use more
30514 aggressive inlining parameters.
30515
30516 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30517
30518 * config/s390/3906.md: New file.
30519 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30520 (LONGRUNNING_THRESHOLD): Remove.
30521 (MAX_SCHED_MIX_SCORE): Decrease.
30522 (MAX_SCHED_MIX_DISTANCE): Decrease.
30523 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30524 (struct s390_sched_state): New struct to hold scheduling state.
30525 (S390_SCHED_STATE_NORMAL): Remove.
30526 (S390_SCHED_STATE_CRACKED): Remove.
30527 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30528 (s390_get_sched_attrmask): Use new attribute.
30529 (s390_get_unit_mask): Use new units.
30530 (s390_is_fpd): New function.
30531 (s390_is_fxd): New function.
30532 (s390_is_longrunning): New function.
30533 (s390_sched_score): Use new functions.
30534 (s390_sched_reorder): Likewise.
30535 (s390_sched_variable_issue): Rework and use new functions.
30536 (s390_sched_init): Use new functions.
30537 * config/s390/s390.h (s390_tune_attr): Add z14.
30538 * config/s390/s390.md: Add z14.
30539
30540 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30541
30542 * config/s390/2964.md: Update pipeline description.
30543 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30544 (LONGRUNNING_THRESHOLD): Remove.
30545 (LATENCY_FACTOR): Remove.
30546 (s390_get_unit_mask): Add unit.
30547 (s390_sched_score): Use fxd/fpd.
30548 (s390_sched_variable_issue): Use fxd/fpd.
30549
30550 2019-03-12 Martin Liska <mliska@suse.cz>
30551
30552 * config/i386/i386.c: Reword an error message.
30553
30554 2019-03-12 Martin Jambor <mjambor@suse.cz>
30555
30556 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30557 terminate with newline.
30558
30559 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30560
30561 PR target/52726
30562 * config/s390/s390.md (tabort): Use %wd instead of
30563 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30564 letters and periods.
30565 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30566 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30567 's with %< and %>.
30568
30569 PR middle-end/89663
30570 * builtins.c (expand_builtin_int_roundingfn,
30571 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30572 gcc_unreachable if validate_arglist fails.
30573
30574 2019-03-12 Richard Biener <rguenther@suse.de>
30575
30576 PR tree-optimization/89664
30577 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30578 free the occurance tree after the early out.
30579
30580 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30581
30582 PR middle-end/89655
30583 PR bootstrap/89656
30584 * vr-values.c (vr_values::update_value_range): If
30585 old_vr->varying_p (), don't update it, make new_vr also VARYING
30586 and return false.
30587
30588 2019-03-11 Martin Liska <mliska@suse.cz>
30589
30590 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30591 Fix double string quoting.
30592
30593 2019-03-11 Martin Liska <mliska@suse.cz>
30594
30595 * collect-utils.c (collect_wait): Wrap apostrophes
30596 in gcc internal format with %'.
30597 * collect2.c (main): Likewise.
30598 (scan_prog_file): Likewise.
30599 (scan_libraries): Likewise.
30600 * config/i386/i386.c (ix86_expand_call): Likewise.
30601 (ix86_handle_interrupt_attribute): Likewise.
30602 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30603 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30604 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30605 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30606 * symtab.c (symtab_node::verify_base): Likewise.
30607 * tree-cfg.c (verify_gimple_label): Likewise.
30608 * tree.c (verify_type_variant): Likewise.
30609
30610 2019-03-11 Martin Liska <mliska@suse.cz>
30611
30612 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30613 in a string format message and fix GNU coding style.
30614 (expand_builtin_set_thread_pointer): Likewise.
30615 * common/config/aarch64/aarch64-common.c
30616 (aarch64_rewrite_selected_cpu): Likewise.
30617 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30618 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30619 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30620 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30621 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30622 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30623 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30624 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30625 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30626 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30627 Likewise.
30628 * common/config/riscv/riscv-common.c
30629 (riscv_subset_list::parsing_subset_version): Likewise.
30630 (riscv_subset_list::parse_std_ext): Likewise.
30631 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30632 (riscv_subset_list::parse): Likewise.
30633 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30634 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30635 (aarch64_override_options_internal): Likewise.
30636 (aarch64_validate_mcpu): Likewise.
30637 (aarch64_validate_march): Likewise.
30638 (aarch64_validate_mtune): Likewise.
30639 (aarch64_override_options): Likewise.
30640 * config/alpha/alpha.c (alpha_option_override): Likewise.
30641 * config/arc/arc.c (arc_init): Likewise.
30642 (parse_mrgf_banked_regs_option): Likewise.
30643 (arc_override_options): Likewise.
30644 (arc_expand_builtin_aligned): Likewise.
30645 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30646 (arm_expand_builtin): Likewise.
30647 * config/arm/arm.c (arm_option_check_internal): Likewise.
30648 (arm_configure_build_target): Likewise.
30649 (arm_option_override): Likewise.
30650 (arm_options_perform_arch_sanity_checks): Likewise.
30651 (arm_handle_cmse_nonsecure_entry): Likewise.
30652 (arm_handle_cmse_nonsecure_call): Likewise.
30653 (arm_tls_referenced_p): Likewise.
30654 (thumb1_expand_prologue): Likewise.
30655 * config/avr/avr.c (avr_option_override): Likewise.
30656 * config/bfin/bfin.c (bfin_option_override): Likewise.
30657 * config/c6x/c6x.c (c6x_option_override): Likewise.
30658 * config/cr16/cr16.c (cr16_override_options): Likewise.
30659 * config/cris/cris.c (cris_option_override): Likewise.
30660 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30661 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30662 * config/darwin.c (darwin_override_options): Likewise.
30663 * config/frv/frv.c (frv_expand_builtin): Likewise.
30664 * config/h8300/h8300.c (h8300_option_override): Likewise.
30665 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30666 (ix86_option_override_internal): Likewise.
30667 (warn_once_call_ms2sysv_xlogues): Likewise.
30668 (ix86_expand_prologue): Likewise.
30669 (split_stack_prologue_scratch_regno): Likewise.
30670 (ix86_warn_parameter_passing_abi): Likewise.
30671 * config/ia64/ia64.c (fix_range): Likewise.
30672 * config/m68k/m68k.c (m68k_option_override): Likewise.
30673 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30674 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30675 (mips_set_compression_mode): Likewise.
30676 * config/mmix/mmix.c (mmix_option_override): Likewise.
30677 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30678 * config/msp430/msp430.c (msp430_option_override): Likewise.
30679 * config/nds32/nds32.c (nds32_option_override): Likewise.
30680 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30681 (nios2_option_override): Likewise.
30682 (nios2_expand_custom_builtin): Likewise.
30683 * config/nvptx/mkoffload.c (main): Likewise.
30684 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30685 * config/pa/pa.c (fix_range): Likewise.
30686 (pa_option_override): Likewise.
30687 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30688 (riscv_option_override): Likewise.
30689 * config/rl78/rl78.c (rl78_option_override): Likewise.
30690 * config/rs6000/aix61.h: Likewise.
30691 * config/rs6000/aix71.h: Likewise.
30692 * config/rs6000/aix72.h: Likewise.
30693 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30694 * config/rs6000/freebsd64.h: Likewise.
30695 * config/rs6000/linux64.h: Likewise.
30696 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30697 (rs6000_expand_zeroop_builtin): Likewise.
30698 (rs6000_expand_mtfsb_builtin): Likewise.
30699 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30700 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30701 (rs6000_invalid_builtin): Likewise.
30702 (rs6000_expand_split_stack_prologue): Likewise.
30703 * config/rs6000/rtems.h: Likewise.
30704 * config/rx/rx.c (valid_psw_flag): Likewise.
30705 (rx_expand_builtin): Likewise.
30706 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30707 * config/s390/s390.c (s390_expand_builtin): Likewise.
30708 (s390_function_profiler): Likewise.
30709 (s390_option_override_internal): Likewise.
30710 (s390_option_override): Likewise.
30711 * config/sh/sh.c (sh_option_override): Likewise.
30712 (sh_builtin_saveregs): Likewise.
30713 (sh_fix_range): Likewise.
30714 * config/sh/vxworks.h: Likewise.
30715 * config/sparc/sparc.c (sparc_option_override): Likewise.
30716 * config/spu/spu.c (spu_option_override): Likewise.
30717 (fix_range): Likewise.
30718 * config/visium/visium.c (visium_option_override): Likewise.
30719 (visium_handle_interrupt_attr): Likewise.
30720 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30721 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30722 (dbg_cnt_process_opt): Likewise.
30723 * dwarf2out.c (output_dwarf_version): Likewise.
30724 * except.c (expand_eh_return): Likewise.
30725 * gcc.c (defined): Likewise.
30726 (driver_handle_option): Likewise.
30727 (process_command): Likewise.
30728 (compare_files): Likewise.
30729 (driver::prepare_infiles): Likewise.
30730 (driver::do_spec_on_infiles): Likewise.
30731 (driver::maybe_run_linker): Likewise.
30732 * omp-offload.c (oacc_parse_default_dims): Likewise.
30733 * opts-global.c (handle_common_deferred_options): Likewise.
30734 * opts.c (parse_sanitizer_options): Likewise.
30735 (common_handle_option): Likewise.
30736 (enable_warning_as_error): Likewise.
30737 * passes.c (enable_disable_pass): Likewise.
30738 * plugin.c (parse_plugin_arg_opt): Likewise.
30739 (default_plugin_dir_name): Likewise.
30740 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30741 (default_pch_valid_p): Likewise.
30742 * toplev.c (init_asm_output): Likewise.
30743 (process_options): Likewise.
30744 (toplev::run_self_tests): Likewise.
30745 * tree-cfg.c (verify_gimple_call): Likewise.
30746 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30747 (tree_inlinable_function_p): Likewise.
30748 * var-tracking.c (vt_find_locations): Likewise.
30749
30750 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30751
30752 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30753 only on the else branch.
30754
30755 2019-03-11 Martin Liska <mliska@suse.cz>
30756
30757 * gcov.c (output_intermediate_json_line): Print function
30758 name of each line.
30759 (output_json_intermediate_file): Add new argument.
30760 * doc/gcov.texi: Document the change.
30761
30762 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30763
30764 PR rtl-optimization/89588
30765 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30766 explicit unrolling factor more robust.
30767
30768 2019-03-11 Richard Biener <rguenther@suse.de>
30769
30770 PR tree-optimization/89649
30771 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30772 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30773 on the prolog and epilog loops.
30774 (vect_loop_versioning): Return copy of loop.
30775 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30776 on the non-vectorized version of the loop.
30777
30778 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30779
30780 PR target/68924
30781 * config/i386/sse.md (*vec_extractv2di_0_sse):
30782 Add (=r,x) alternative and corresponding splitter.
30783
30784 2019-03-10 Martin Jambor <mjambor@suse.cz>
30785
30786 PR tree-optimization/85762
30787 PR tree-optimization/87008
30788 PR tree-optimization/85459
30789 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30790 it points to if there is a type changing MEM_REF. Adjust all callers.
30791 (build_accesses_from_assign): Disable total scalarization if
30792 contains_vce_or_bfcref_p returns true through the new parameter, for
30793 both rhs and lhs.
30794
30795 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30796
30797 PR c/88568
30798 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30799 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30800
30801 PR target/79645
30802 * common.opt (fdiagnostics-show-labels,
30803 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30804 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30805 gas-locview-support, ginline-points, ginternal-reset-location-views):
30806 Terminate description text with a dot.
30807 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30808 * config/mcore/mcore.opt (m210, m340): Likewise.
30809 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30810 mnops=): Start description text with a capital letter.
30811 * config/arc/arc.opt (msize-level=): Likewise.
30812 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30813 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30814 mnewlib): Likewise.
30815 * config/ft32/ft32.opt (msim): Likewise.
30816 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30817 (mnodiv, mnopm): Terminate description text with a dot.
30818 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30819 a colon.
30820 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30821 Likewise.
30822 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30823 text.
30824
30825 PR rtl-optimization/89634
30826 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30827 are modified in BB_END (e->src) instruction.
30828
30829 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30830
30831 PR target/79926
30832 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30833 messages more amenable to translation, and improve wording.
30834
30835 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30836
30837 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30838 ud- and du-chains between phases.
30839
30840 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30841
30842 PR debug/89631
30843 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30844 instead of POLY_INT_CST.
30845
30846 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30847
30848 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30849 requirement.
30850
30851 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30852
30853 PR target/68924
30854 PR target/78782
30855 PR target/87558
30856 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30857 (_mm_storeu_si64): Ditto.
30858
30859 2019-03-08 Martin Liska <mliska@suse.cz>
30860
30861 PR target/86952
30862 * config/i386/i386.c (ix86_option_override_internal): Disable
30863 jump tables when retpolines are used.
30864
30865 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30866
30867 PR go/63560
30868 * ipa-split.c (execute_split_functions): Do not split
30869 'noinline' or 'section' function.
30870
30871 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30872
30873 PR target/79846
30874 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30875 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30876 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30877
30878 PR ipa/80000
30879 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30880 from diagnostics. Formatting fixes.
30881
30882 PR target/85665
30883 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30884 warn_odr diagnostics.
30885
30886 PR other/80058
30887 * lra-constraints.c (process_alt_operands): Avoid one space before
30888 " at the end of line and another after " on another line in a string
30889 literal.
30890 * attribs.c (handle_dll_attribute): Likewise.
30891 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30892
30893 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30894 warning_at or inform messages in G_() if there is no ?:.
30895
30896 PR tree-optimization/89550
30897 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30898 returned true. Formatting fixes.
30899 (expand_builtin_strnlen): Formatting fixes.
30900 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30901 if warning_at returned true.
30902 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30903
30904 2019-03-08 Richard Biener <rguenther@suse.de>
30905
30906 PR middle-end/89578
30907 * cfgloop.h (struct loop): Add owned_clique field.
30908 * cfgloopmanip.c (copy_loop_info): Copy it.
30909 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30910 cliques.
30911 * tree-inline.c (copy_loops): Remap owned_clique.
30912 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30913 * lto-streamer-out.c (output_cfg): Likewise.
30914
30915 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30916
30917 PR target/80190
30918 * config/darwin.c: Include intl.h.
30919 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30920 composing the message out of two separate parts.
30921
30922 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30923
30924 PR target/80003
30925 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30926 doesn't start with a capital letter and doesn't end with a dot.
30927 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30928 with a capital letter.
30929 (ix86_mangle_function_version_assembler_name): Likewise.
30930 (ix86_generate_version_dispatcher_body): Likewise.
30931 (fold_builtin_cpu): Likewise.
30932 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30933 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30934 translators, wrap full type name in %qs.
30935
30936 PR translation/79999
30937 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30938 depend clause with source (or sink) modifier.
30939 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30940
30941 PR target/89602
30942 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30943 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30944 (avx512f_load<mode>_mask): New define_expand.
30945 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30946 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30947 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30948 __builtin_ia32_movess_mask): New builtins.
30949 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30950 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30951 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30952 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30953
30954 2019-03-07 Martin Jambor <mjambor@suse.cz>
30955
30956 PR lto/87525
30957 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30958 for extern inline functions.
30959
30960 2019-03-07 Martin Jambor <mjambor@suse.cz>
30961
30962 PR ipa/88235
30963 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30964 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30965 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30966 have multiple callees. At the end check if declarations match as
30967 opposed to cgraph_nodes.
30968
30969 2019-03-07 Martin Liska <mliska@suse.cz>
30970
30971 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30972 which is equivalent to searching for this in clones chain.
30973 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30974 names with a neighbour and special case first node in a chain.
30975
30976 2019-01-25 Jason Merrill <jason@redhat.com>
30977
30978 PR c++/80916 - spurious "static but not defined" warning.
30979 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30980 for an internal symbol with DECL_EXTERNAL.
30981
30982 2019-04-07 Richard Biener <rguenther@suse.de>
30983
30984 PR middle-end/89618
30985 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30986 * tree-inline.c (copy_loops): Simplify.
30987
30988 2019-03-07 Martin Liska <mliska@suse.cz>
30989
30990 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30991
30992 2019-03-07 Richard Biener <rguenther@suse.de>
30993
30994 PR tree-optimization/89595
30995 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30996 stmt iterator as reference, take boolean output parameter to
30997 indicate whether the stmt was removed and thus the iterator
30998 already advanced.
30999 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31000 stmts created by folding.
31001
31002 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31003
31004 PR c++/89585
31005 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31006 at toplevel.
31007
31008 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31009
31010 PR rtl-optimization/88845
31011 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31012 LRA.
31013 * lra.c (remove_scratches_1): New function.
31014 (remove_scratches): Use it.
31015 (lra_emit_move): Likewise.
31016
31017 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31018
31019 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31020 unaligned_access variable.
31021 * config/arc/arc.c (arc_override_options): Set unaligned access
31022 default on for HS CPUs.
31023 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31024
31025 2019-03-06 Martin Liska <mliska@suse.cz>
31026
31027 PR gcov-profile/89577
31028 * doc/gcov.texi: Prefer to use --coverage.
31029 * doc/sourcebuild.texi: Likewise.
31030
31031 2019-03-02 Jason Merrill <jason@redhat.com>
31032
31033 PR c++/86485 - -Wmaybe-unused with empty class ?:
31034 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31035
31036 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31037
31038 PR target/89587
31039 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31040 if_multiarch.
31041
31042 PR middle-end/89590
31043 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31044 exactly one argument.
31045
31046 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31047 Richard Sandiford <richard.sandiford@arm.com>
31048
31049 PR tree-optimization/89570
31050 * match.pd (vec_cond into cond_op simplification): Don't use
31051 get_conditional_internal_fn, use as_internal_fn (cond_op).
31052
31053 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31054
31055 PR target/89222
31056 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31057 to decide when to split off a non-zero offset from a symbol.
31058 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31059 in function symbols.
31060
31061 2019-03-05 Richard Biener <rguenther@suse.de>
31062
31063 PR tree-optimization/89594
31064 * tree-if-conv.c (pass_if_conversion::execute): Handle
31065 case where .LOOP_VECTORIZED_FUNCTION was removed.
31066
31067 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31068
31069 PR bootstrap/89560
31070 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31071 instead alloca it only when needed with the needed size.
31072
31073 PR tree-optimization/89570
31074 * match.pd (vec_cond into cond_op simplification): Guard with
31075 vectorized_internal_fn_supported_p test and #if GIMPLE.
31076
31077 PR tree-optimization/89566
31078 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31079 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31080 Punt if get_user_idx_format succeeds, but idx_format argument is
31081 not provided or doesn't have pointer type, or if idx_args is above
31082 number of provided arguments.
31083
31084 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31085
31086 PR tree-optimization/89437
31087 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31088
31089 2019-03-04 Richard Biener <rguenther@suse.de>
31090
31091 PR middle-end/89572
31092 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31093 safe_dyn_cast.
31094
31095 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31096
31097 PR tree-optimization/89487
31098 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31099 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31100 (distribute_loop): Don't do runtime alias check if there is non-
31101 addressable data reference.
31102 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31103 is a register variable.
31104
31105 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31106
31107 PR target/89506
31108 * config/arm/arm.md (cmpsi2_addneg): Use
31109 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31110 If operands[2] is 0 or INT_MIN, force use of subs.
31111 (*compare_scc splitter): Use gen_int_mode.
31112 (*negscc): Likewise.
31113 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31114
31115 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31116 Monk Chiang <sh.chiang04@gmail.com>
31117
31118 * common/config/riscv/riscv-common.c: Include sstream.
31119 (riscv_subset_list::to_string): New.
31120 (riscv_arch_str): Likewise.
31121 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31122 * config.in: Regen.
31123 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31124 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31125 (riscv_emit_attribute): New.
31126 (riscv_file_start): Emit attribute if needed.
31127 (riscv_option_override): Init riscv_emit_attribute_p.
31128 * config/riscv/riscv.opt (mriscv-attribute): New option.
31129 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31130 * configure: Regen.
31131 * doc/install.texi: Document --with-riscv-attribute.
31132 * doc/invoke.texi: Document -mriscv-attribute.
31133
31134 * common/config/riscv/riscv-common.c:
31135 Include config/riscv/riscv-protos.h.
31136 (INCLUDE_STRING): Defined.
31137 (RISCV_DONT_CARE_VERSION): Defined.
31138 (riscv_subset_t): Declare.
31139 (riscv_subset_t::riscv_subset_t): New.
31140 (riscv_subset_list): Declare.
31141 (riscv_subset_list::riscv_subset_list): New.
31142 (riscv_subset_list::~riscv_subset_list): Likewise.
31143 (riscv_subset_list::parsing_subset_version): Likewise.
31144 (riscv_subset_list::parse_std_ext): Likewise.
31145 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31146 (riscv_subset_list::add): Likewise.
31147 (riscv_subset_list::lookup): Likewise.
31148 (riscv_subset_list::xlen): Likewise.
31149 (riscv_subset_list::parse): Likewise.
31150 (riscv_supported_std_ext): Likewise.
31151 (current_subset_list): Likewise.
31152 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31153 parse.
31154
31155 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31156
31157 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31158 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31159 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31160
31161 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31162
31163 PR rtl-optimization/85899
31164 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31165 fallthru edges leading to the exit block.
31166
31167 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31168
31169 PR target/89517
31170 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31171 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31172
31173 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31174
31175 PR tree-optimization/89535
31176 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31177 for each operand. Calculate the fallback choice for mask operands
31178 and pass it to vect_get_vec_def_for_operand.
31179
31180 2019-03-01 Richard Biener <rguenther@suse.de>
31181
31182 PR middle-end/89541
31183 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31184 get virtual operands.
31185 (get_expr_operands): Handle CONST_DECL like other decls.
31186
31187 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31188
31189 PR middle-end/89503
31190 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31191 on DECL_P and EXPR_P.
31192
31193 2019-03-01 Richard Biener <rguenther@suse.de>
31194
31195 PR middle-end/89497
31196 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31197 argument, defaulted to zero.
31198 * passes.c (execute_function_todo): Pass down SSA update flags
31199 to cleanup_tree_cfg.
31200 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31201 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31202 form if requested.
31203 (cleanup_tree_cfg): Get and pass down SSA update flags.
31204
31205 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31206
31207 PR bootstrap/89539
31208 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31209 early_lto_debug argument.
31210
31211 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31212
31213 PR tree-optimization/89536
31214 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31215 only whether bit #0 of the value is 0 instead of the entire value.
31216
31217 2019-02-28 Marek Polacek <polacek@redhat.com>
31218
31219 PR c++/87068 - missing diagnostic with fallthrough statement.
31220 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31221 at the end of a seq, save its location to walk_stmt_info.
31222 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31223 a switch.
31224
31225 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31226
31227 PR lto/88585
31228 * tree.c (find_atomic_core_type): Move ahead in file.
31229 (check_base_type): Correctly compare alignments of atomic types.
31230
31231 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31232
31233 PR target/89455
31234 * config/i386/i386.c (get_builtin_code_for_version): Identify
31235 Westmere from PCLMUL, instead of AES.
31236
31237 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31238
31239 PR target/89434
31240 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31241 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31242 -UINTVAL (...).
31243
31244 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31245
31246 PR target/88530
31247 * config/aarch64/aarch64-option-extensions.def: Document it.
31248 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31249 if empty hwcaps.
31250
31251 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31252
31253 PR c/89520
31254 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31255 builtins if they don't have a single scalar floating point argument.
31256 Formatting fixes.
31257
31258 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31259
31260 PR rtl-optimization/89490
31261 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31262 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31263 block section is not mergeable.
31264
31265 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31266
31267 PR target/70341
31268 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31269 old define_insn to ...
31270 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31271 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31272 Rename old define_insn to ...
31273 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31274 (thumb2_casesi_internal_pic): New define_expand. Rename old
31275 define_insn to ...
31276 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31277 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31278 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31279
31280 2019-02-27 Richard Biener <rguenther@suse.de>
31281
31282 PR debug/88878
31283 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31284
31285 2019-02-27 Richard Biener <rguenther@suse.de>
31286
31287 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31288 building.
31289
31290 2019-02-27 Richard Biener <rguenther@suse.de>
31291
31292 PR debug/88878
31293 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31294 parameter, prefix section name with .gnu.debuglto_ if true.
31295 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31296 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31297
31298 2019-02-27 Richard Biener <rguenther@suse.de>
31299
31300 PR debug/89514
31301 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31302 rather than on use_debug_types, doing what output_die does.
31303 (value_format): Likewise.
31304
31305 2019-02-27 Martin Jambor <mjambor@suse.cz>
31306 Martin Sebor <msebor@redhat.com>
31307
31308 * doc/invoke.texi (Warning Options): Reword description of
31309 -Wno-absolute-value.
31310
31311 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31312
31313 PR tree-optimization/89280
31314 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31315 builtin_setjmp_setup_bb): New functions.
31316 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31317 When visiting __builtin_setjmp_setup block, queue in special
31318 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31319 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31320 from visited after the loop if they don't have any visited successor
31321 blocks.
31322
31323 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31324
31325 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31326 New function.
31327 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31328
31329 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31330
31331 PR c++/89507
31332 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31333 with types other than sizetype/ssizetype.
31334
31335 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31336
31337 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31338 (enum sparc_processor_type): ...this.
31339 (enum sparc_code_model_type): New enumeration type.
31340 (enum sparc_memory_model_type): Tweak comments.
31341 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31342 (mtune): Likewise.
31343 (mcmodel): Use sparc_code_model enumeration and variable.
31344 (sparc_code_model): New enumeration.
31345 (mdebug): Add Undocumented marker.
31346 * config/sparc/sparc.h (enum cmodel): Delete.
31347 (sparc_cmodel): Likewise.
31348 (TARGET_CM_MEDLOW): Adjust to above renaming.
31349 (TARGET_CM_MEDMID): Likewise.
31350 (TARGET_CM_MEDANY): Likewise.
31351 (TARGET_CM_EMBMEDANY): Likewise.
31352 * config/sparc/sparc.c (sparc_cmodel): Delete.
31353 (sparc_option_override): Remove string/value mapping support for the
31354 code model. Move code and memory model support to after the handling
31355 of target flags. Do private machine setup last.
31356 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31357 (sparc_legitimize_reload_address): Likewise.
31358 (sparc_output_mi_thunk): Likewise.
31359 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31360
31361 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31362
31363 PR tree-optimization/89500
31364 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31365 (handle_builtin_strlen): Remove noncst_bound variable. Always
31366 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31367 cst if the first cst bytes starting at x are known to be non-zero,
31368 even if the string is not zero terminated. Don't try to modify
31369 *si for strnlen. Update strlen_to_stridx only for strlen or if
31370 we can prove strnlen returns the same value as strlen would.
31371
31372 2019-02-26 Martin Liska <mliska@suse.cz>
31373
31374 * alloc-pool.h (struct pool_usage): Remove extra
31375 print_dash_line.
31376 * bitmap.h (struct bitmap_usage): Likewise.
31377 * ggc-common.c (struct ggc_usage): Likewise.
31378 * mem-stats.h (struct mem_usage): Likewise.
31379 (mem_alloc_description::dump): Print dash lines
31380 here and repeat header at the end of a table report.
31381 It's then more readable.
31382 * tree-phinodes.c (phinodes_print_statistics): Make
31383 horizontal alignment.
31384 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31385 * vec.c (struct vec_usage): Remove extra print_dash_line.
31386 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31387
31388 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31389
31390 * doc/extend.texi (__builtin_object_size):
31391 Use @pxref instead of @xref inside parenthesis.
31392 (__builtin_has_attribute): Add missing comma after @xref.
31393 (__builtin_object_size): Ditto.
31394 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31395
31396 2019-02-26 Jeff Law <law@redhat.com>
31397
31398 PR rtl-optimization/87761
31399 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31400 detect obviously dead insns and delete them.
31401
31402 2019-02-26 Richard Biener <rguenther@suse.de>
31403
31404 PR tree-optimization/89505
31405 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31406 to handle restrict pointed-to vars with multiple subvars
31407 correctly.
31408
31409 2019-02-26 Richard Biener <rguenther@suse.de>
31410
31411 PR tree-optimization/89489
31412 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31413
31414 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31415
31416 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31417 and move around comment.
31418 <BIT_AND_EXPR>: Likewise.
31419 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31420
31421 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31422
31423 PR target/89474
31424 * config/i386/i386.c (remove_partial_avx_dependency): Call
31425 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31426 after changing possibly many instructions to use that pseudo. Fix up
31427 insertion of v4sf_const0 setter at the start of bb.
31428
31429 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31430
31431 PR c/80409
31432 * doc/extend.texi (Variadic Pointer Args): New section.
31433
31434 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31435 Martin Sebor <msebor@gmail.com>
31436
31437 * common.opt (Wattribute-alias): Likewise.
31438 * doc/invoke.texi (Option Summary): List general form of
31439 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31440 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31441 Add cross-references.
31442 (-Wattribute-alias): Rewrite and correct default. Mention
31443 considered attributes (same as for -Wmissing-attributes).
31444
31445 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31446
31447 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31448 (_mm_cvtpd_ps): Likewise.
31449 (_mm_cvttpd_epi32): Likewise.
31450
31451 PR target/89338
31452 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31453 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31454
31455 PR target/89339
31456 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31457
31458 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31459
31460 PR target/88530
31461 * common/config/aarch64/aarch64-common.c
31462 (struct aarch64_option_extension): Add is_synthetic.
31463 (all_extensions): Use it.
31464 (TARGET_OPTION_INIT_STRUCT): Define hook.
31465 (struct gcc_targetm_common): Moved to end.
31466 (all_extensions_by_on): New.
31467 (opt_ext_cmp, typedef opt_ext): New.
31468 (aarch64_option_init_struct): New.
31469 (aarch64_contains_opt): New.
31470 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31471 * config/aarch64/aarch64-option-extensions.def
31472 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31473 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31474 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31475 Set is_synthetic to false.
31476 (crypto): Set is_synthetic to true.
31477 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31478 SYNTHETIC.
31479
31480 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31481
31482 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31483 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31484 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31485 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31486 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31487 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31488 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31489 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31490 Rename ...
31491 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31492 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31493 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31494 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31495 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31496 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31497 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31498 vfmlsl_laneq_high_f16): ... To this.
31499 * config/arm/neon.md: Update comments.
31500
31501 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31502
31503 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31504 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31505 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31506 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31507 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31508 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31509 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31510 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31511 Rename ...
31512 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31513 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31514 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31515 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31516 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31517 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31518 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31519 vfmlslq_laneq_high_f16): ... To this.
31520
31521 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31522
31523 PR rtl-optimization/86096
31524 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31525 comparing mw_order values.
31526
31527 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31528
31529 PR target/89434
31530 * config/arm/arm.md (*subsi3_carryin_const): Use
31531 arm_neg_immediate_operand predicate instead of
31532 arm_not_immediate_operand, "L" constraint instead of "K" and
31533 print it using %n2 instead of %B2.
31534 (*subsi3_carryin_const0): New define_insn.
31535 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31536 instead of arm_not_operand and "I" constraint instead of "K" and
31537 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31538 another match_operand and in the condition check that it is negation
31539 of operands[2].
31540 (*subsi3_carryin_compare_const0): New define_ins.
31541 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31542 *subsi3_carryin_const.
31543 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31544 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31545
31546 PR target/89438
31547 * config/arm.vfp.md (*negdf2_vfp): Use
31548 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31549 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31550
31551 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31552
31553 PR rtl-optimization/89445
31554 * simplify-rtx.c (simplify_ternary_operation): Don't use
31555 simplify_merge_mask on operands that may trap.
31556 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31557 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31558 second operand is CONST_VECTOR, check if any element could be zero.
31559 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31560 their operands can trap.
31561
31562 2019-02-23 Martin Sebor <msebor@redhat.com>
31563
31564 * gimple-ssa-sprintf.c (target_strtol): Rename...
31565 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31566 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31567 check for range error.
31568
31569 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31570
31571 PR driver/69471
31572 * opts-common.c (prune_options): Also prune joined switches
31573 with Negative and RejectNegative.
31574 * config/i386/i386.opt (march=): Add Negative(march=).
31575 (mtune=): Add Negative(mtune=).
31576 * doc/options.texi: Document Negative used together with Joined
31577 and RejectNegative.
31578
31579 2019-02-22 Martin Sebor <msebor@redhat.com>
31580
31581 * doc/extend.texi (Other Builtins): Add
31582 __builtin_is_constant_evaluated.
31583
31584 2019-02-22 Richard Biener <rguenther@suse.de>
31585
31586 PR tree-optimization/87609
31587 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31588
31589 2019-02-22 Jeff Law <law@redhat.com>
31590
31591 PR rtl-optimization/87761
31592 * config/mips/mips.md: Add new combiner pattern to recognize
31593 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31594
31595 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31596
31597 PR target/89324
31598 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31599 destination register in peepholes generating patterns for ADDS/SUBS.
31600 (add<mode>3_compare0,
31601 *addsi3_compare0_uxtw, add<mode>3_compareC,
31602 add<mode>3_compareV_imm, add<mode>3_compareV,
31603 *adds_<optab><ALLX:mode>_<GPI:mode>,
31604 *subs_<optab><ALLX:mode>_<GPI:mode>,
31605 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31606 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31607 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31608 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31609 sub<mode>3_compare1): Allow stack pointer for source register.
31610 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31611
31612 2019-02-22 Martin Sebor <msebor@redhat.com>
31613
31614 PR tree-optimization/88993
31615 PR tree-optimization/88853
31616 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31617 New helper.
31618 (sprintf_dom_walker::call_info::is_string_func): New helper.
31619 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31620 for formatted string functions.
31621 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31622
31623 2019-02-22 Martin Sebor <msebor@redhat.com>
31624
31625 PR c/89425
31626 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31627 unreachable subexpressions.
31628
31629 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31630 Hongtao Liu <hongtao.liu@intel.com>
31631 Sunil K Pandey <sunil.k.pandey@intel.com>
31632
31633 PR target/87007
31634 * config/i386/i386-passes.def: Add
31635 pass_remove_partial_avx_dependency.
31636 * config/i386/i386-protos.h
31637 (make_pass_remove_partial_avx_dependency): New.
31638 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31639 New function.
31640 (pass_data_remove_partial_avx_dependency): New.
31641 (pass_remove_partial_avx_dependency): Likewise.
31642 (make_pass_remove_partial_avx_dependency): Likewise.
31643 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31644 (*extendsfdf2): Add avx_partial_xmm_update.
31645 (truncdfsf2): Likewise.
31646 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31647 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31648
31649 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31650
31651 PR middle-end/85598
31652 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31653 analysis for pass.
31654
31655 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31656
31657 PR target/89444
31658 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31659 (PTA_SKYLAKE): Add PTA_AES.
31660 (PTA_GOLDMONT): Likewise.
31661
31662 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31663
31664 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31665 instruction if enabled.
31666 (aarch64_override_options): Remove reference to return address key.
31667
31668 2019-02-22 Richard Biener <rguenther@suse.de>
31669
31670 PR tree-optimization/89440
31671 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31672 not necessary assert.
31673
31674 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31675
31676 PR fortran/72741
31677 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31678 (oacc_replace_fn_attrib_attr): ... this new function.
31679 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31680 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31681
31682 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31683
31684 * config/arm/arm-cpus.in (ares): Rename to...
31685 (neoverse-n1): ... This. Add ares as alias.
31686 * config/arm/arm-tables.opt: Regenerate.
31687 * config/arm/arm-tune.md: Likewise.
31688 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31689
31690 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31691
31692 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31693 * config/aarch64/aarch64-tune.md: Regenerate.
31694 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31695
31696 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31697
31698 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31699 (neoversen1_tunings): ... This.
31700 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31701 (neoverse-n1): New CPU.
31702 * config/aarch64/aarch64-tune.md: Regenerate.
31703 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31704
31705 2019-02-22 Richard Biener <rguenther@suse.de>
31706
31707 PR middle-end/87609
31708 * cfghooks.h (dependence_hash): New typedef.
31709 (struct copy_bb_data): New type.
31710 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31711 (duplicate_block): Likewise.
31712 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31713 (copy_bbs): Create and pass down copy_bb_data.
31714 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31715 (rtl_duplicate_bb): Likewise.
31716 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31717 remap dependence info.
31718
31719 2019-02-22 Richard Biener <rguenther@suse.de>
31720
31721 PR tree-optimization/87609
31722 * tree-core.h (tree_base): Document special clique values.
31723 * tree-inline.c (remap_dependence_clique): Do not use the
31724 special clique value of one.
31725 (maybe_set_dependence_info): Use clique one.
31726 (clear_dependence_clique): New callback.
31727 (compute_dependence_clique): Clear clique one from all refs
31728 before assigning it (again).
31729
31730 2019-02-21 Martin Sebor <msebor@redhat.com>
31731
31732 * doc/extend.texi (__clear_cache): Correct signature.
31733
31734 2019-02-21 Ian Lance Taylor <iant@golang.org>
31735
31736 PR go/89170
31737 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31738 than output_constant_def.
31739 (add_constant_to_table): New static function.
31740 (output_constant_def): Call add_constant_to_table.
31741 (tree_output_constant_def): Likewise.
31742
31743 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31744
31745 PR c++/89285
31746 * builtins.c (fold_builtin_arith_overflow): If first two args are
31747 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31748 to ifn.
31749
31750 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31751
31752 PR target/87412
31753 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31754 error for -mindirect-branch/-mfunction-return with incompatible
31755 -fcf-protection.
31756
31757 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31758
31759 PR bootstrap/88714
31760 * constraints.md (q): Remove.
31761 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31762 instead of q.
31763
31764 2019-02-21 Martin Jambor <mjambor@suse.cz>
31765
31766 PR hsa/89302
31767 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31768 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31769 (omp_adjust_for_condition): ...here. Added necessary parameters.
31770 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31771 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31772 proper values to new parameters of omp_adjust_for_condition.
31773
31774 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31775
31776 PR middle-end/89412
31777 * expr.c (expand_assignment): If result is a MEM, use change_address
31778 instead of simplify_gen_subreg.
31779
31780 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31781 David Malcolm <dmalcolm@redhat.com>
31782
31783 PR middle-end/89091
31784 * fold-const.c (decode_field_reference): Return NULL_TREE if
31785 lang_hooks.types.type_for_size returns NULL. Check it before
31786 overwriting *exp_. Use return NULL_TREE instead of return 0.
31787
31788 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31789
31790 PR middle-end/88074
31791 PR middle-end/89415
31792 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31793 buggy mpc_norm.
31794
31795 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31796
31797 PR target/89397
31798 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31799 TARGET_SSE in addition to TARGET_SSE_MATH.
31800
31801 (ix86_excess_precision): Ditto.
31802 (ix86_float_exceptions_rounding_supported_p): Ditto.
31803 (use_rsqrt_p): Ditto.
31804 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31805
31806 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31807
31808 PR c/89410
31809 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31810 linenum_arith_t when determining if two adjacent line spans are
31811 close enough to merge.
31812 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31813 lines within each line_span.
31814
31815 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31816
31817 PR target/86487
31818 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31819 paradoxical SUBREGS.
31820
31821 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31822
31823 PR target/88100
31824 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31825 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31826 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31827 range checking it.
31828
31829 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31830
31831 * config/gcn/gcn.c (print_operand): Fix typo.
31832
31833 2019-02-19 Richard Biener <rguenther@suse.de>
31834
31835 PR middle-end/88074
31836 * toplev.c (do_compile): Initialize mpfr's exponent range
31837 based on available float modes.
31838
31839 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31840
31841 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31842 as long as the epilogue isn't completed.
31843
31844 2019-02-18 Martin Sebor <msebor@redhat.com>
31845
31846 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31847 __has_cpp_attribute, and __has_include.
31848
31849 2019-02-18 Martin Sebor <msebor@redhat.com>
31850
31851 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31852
31853 2019-02-18 Martin Sebor <msebor@redhat.com>
31854
31855 PR middle-end/89294
31856 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31857 expression.
31858 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31859
31860 2019-02-18 Richard Biener <rguenther@suse.de>
31861
31862 PR tree-optimization/89296
31863 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31864 of no-warning flag to cases that might emit the bogus warning.
31865
31866 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31867
31868 PR bootstrap/88714
31869 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31870 "q" constraint.
31871 * config/arm/vfp.md (*movdi_vfp): Likewise.
31872 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31873 "q" constraint for operands[0].
31874
31875 PR target/89369
31876 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31877 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31878 pattern in a temporary buffer.
31879 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31880 than 64-operands[2].
31881
31882 PR target/89361
31883 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31884 s390_indirect_branch_settings): Define unconditionally.
31885 (s390_set_current_function): Likewise, but guard the whole body except
31886 the s390_indirect_branch_settings call with
31887 #if S390_USE_TARGET_ATTRIBUTE.
31888 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31889
31890 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31891 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31892 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31893 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31894 HOST_WIDE_INT_1U instead of 1ULL.
31895 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31896 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31897 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31898 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31899 instead of 1UL.
31900 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31901 instead of 1ul.
31902
31903 2019-02-18 Martin Jambor <mjambor@suse.cz>
31904
31905 PR tree-optimization/89209
31906 * tree-sra.c (create_access_replacement): New optional parameter
31907 reg_tree. Use it as a type if non-NULL and access type is not of
31908 a register type.
31909 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31910 to create_access_replacement.
31911 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31912 Check lacc is non-NULL before attempting to re-create it on the RHS.
31913
31914 2019-02-18 Martin Liska <mliska@suse.cz>
31915
31916 PR ipa/89306
31917 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31918 by default.
31919 (symbol_table::free_edge): Recycle m_summary_id.
31920 * cgraph.h (get_summary_id): New.
31921 (symbol_table::release_symbol): Set m_summary_id to -1
31922 by default.
31923 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31924 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31925 function_summary to fast_function_summary.
31926 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31927 * ipa-pure-const.c (class funct_state_summary_t):
31928 Switch from function_summary to fast_function_summary.
31929 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31930 (class ipa_ref_opt_summary_t): Switch from function_summary
31931 to fast_function_summary.
31932 * symbol-summary.h (class function_summary_base): New class
31933 that is created from base of former function_summary.
31934 (function_summary_base::unregister_hooks): New.
31935 (class function_summary): Inherit from function_summary_base.
31936 (class call_summary_base): New class
31937 that is created from base of former call_summary.
31938 (class call_summary): Inherit from call_summary_base.
31939 (struct is_same): New.
31940 (class fast_function_summary): New summary class.
31941 (class fast_call_summary): New summary class.
31942 * vec.h (vec_safe_grow_cleared): New function.
31943
31944 2019-02-18 Martin Liska <mliska@suse.cz>
31945
31946 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31947 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31948 * doc/tm.texi: Document new target hook.
31949 * doc/tm.texi.in: Likewise.
31950 * target.def: Add new target macro.
31951 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31952 suffixes.
31953
31954 2019-02-17 Alan Modra <amodra@gmail.com>
31955
31956 PR target/89271
31957 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31958 output reg on add insn.
31959 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31960
31961 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31962
31963 PR target/89372
31964 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31965 (PMULHRSW): Likewise.
31966 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31967 TARGET_AVX2.
31968 (ssse3_pmulhrswv4hi3): New expander.
31969
31970 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31971
31972 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31973 MMX. Add isa attribute.
31974
31975 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31976
31977 PR rtl-optimization/66152
31978 * builtins.h (c_readstr): Declare.
31979 * builtins.c (c_readstr): Remove forward declaration. Add
31980 null_terminated_p argument, if false, read all bytes from the
31981 string instead of stopping after '\0'.
31982 * expr.c (string_cst_read_str): New function.
31983 (store_expr): Use string_cst_read_str instead of
31984 builtin_strncpy_read_str. Try to store by pieces the whole
31985 exp_len first, and only if that fails, split it up into
31986 store by pieces followed by clear_storage. Formatting fix.
31987
31988 * config/i386/i386.md (*movqi_internal): Remove static from
31989 buf variable. Use output_asm_insn (buf, operands); return "";
31990 instead of return buf;.
31991 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31992 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31993 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31994
31995 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31996
31997 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31998 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31999 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32000 (CC1_SPEC): Likewise.
32001 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32002
32003 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32004
32005 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32006 the base address on 64-bit strict-alignment platforms.
32007
32008 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32009
32010 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32011
32012 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32013
32014 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32015
32016 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32017
32018 PR rtl-optimization/88308
32019 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32020 on copied instruction.
32021
32022 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32023
32024 * final.c (insn_current_reference_address): Replace test on JUMP_P
32025 with test on jump_to_label_p.
32026 * config/visium/visium-passes.def: New file.
32027 * config/visium/t-visium (PASSES_EXTRA): Define.
32028 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32029 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32030 (TRAMPOLINE_ALIGNMENT): Define.
32031 * config/visium/visium.c (visium_option_override): Do not register
32032 the machine-specific reorg pass here.
32033 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32034 for the GR6.
32035 (output_branch): Adjust threshold for long branch instruction.
32036 * config/visium/visium.md (cpu): Move around.
32037 (length): Adjust for the GR6.
32038
32039 2019-02-15 Richard Biener <rguenther@suse.de>
32040 Jakub Jelinek <jakub@redhat.com>
32041
32042 PR tree-optimization/89278
32043 * tree-loop-distribution.c: Include tree-eh.h.
32044 (generate_memset_builtin, generate_memcpy_builtin): Call
32045 rewrite_to_non_trapping_overflow on builtin->size before passing it
32046 to force_gimple_operand_gsi.
32047
32048 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32049
32050 PR other/89342
32051 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32052 optimize_debug.
32053 * opth-gen.awk: Likewise.
32054
32055 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32056
32057 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32058 Enable MMX, SSE and SSE2 by default.
32059 * config/i386/i386.c (ix86_option_override_internal): Do not
32060 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32061
32062 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32063
32064 PR rtl-optimization/89354
32065 * combine.c (make_extraction): Punt if extraction_mode is narrower
32066 than len bits.
32067
32068 2019-02-14 Maya Rashish <coypu@sdf.org>
32069
32070 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32071 * config/netbsd-d.c: New file.
32072 * config/t-netbsd: Add netbsd-d.o
32073
32074 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32075
32076 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32077 affects_type_identity to true for aarch64_vector_pcs.
32078 (aarch64_comp_type_attributes): New function.
32079 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32080
32081 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32082
32083 PR target/88850
32084 * config/arm/iterators.md (ANY64): Add V4HF.
32085
32086 2019-02-14 Martin Liska <mliska@suse.cz>
32087
32088 PR rtl-optimization/89242
32089 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32090 process a transformation.
32091
32092 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32093
32094 PR tree-optimization/89314
32095 * fold-const.c (fold_binary_loc): Cast strlen argument to
32096 const char * before dereferencing it. Formatting fixes.
32097
32098 PR middle-end/89284
32099 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32100
32101 2019-02-13 Ian Lance Taylor <iant@golang.org>
32102
32103 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32104 and set current index for other optimizations.
32105
32106 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32107
32108 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32109 nonimmediate_operand as operand 2 predicate.
32110 (vec_set<VF2_512_256:mode>_0): Ditto.
32111 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32112 (*vec_concatv2si): Remove alternative 2.
32113 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32114 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32115 (vec_concatv2di): Split alternatives 4,5,6 to ...
32116 (*vec_concatv2di_0) ... new pattern.
32117
32118 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32119
32120 PR target/89190
32121 * config/arm/arm.c (ldm_stm_operation_p) Set
32122 addr_reg_in_reglist correctly for first register.
32123 (load_multiple_sequence): Remove dead base check.
32124 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32125
32126 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32127
32128 PR target/88847
32129 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32130 Expose as @aarch64_pred_mov.
32131 * config/aarch64/aarch64.c (aarch64_classify_address):
32132 Use expand_insn which legitimizes operands.
32133
32134 2019-02-13 Martin Liska <mliska@suse.cz>
32135
32136 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32137 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32138 and pointer_offset fields.
32139 (initialize_argument_information): Remove usage of dead
32140 fields.
32141 * cgraph.h (struct cgraph_thunk_info): Remove
32142 add_pointer_bounds_args.
32143 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32144 fields.
32145 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32146 fields.
32147 * config/i386/i386.c (ix86_function_arg_advance): Remove
32148 unrelated comment.
32149 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32150 (def_builtin): Remove usage of dead fields.
32151 (ix86_add_new_builtins): Likewise.
32152 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32153 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32154 (sem_function::init): Likewise.
32155 (sem_variable::merge): Likewise.
32156 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32157 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32158 * lto-cgraph.c (lto_output_node): Likewise.
32159 (lto_output_varpool_node): Likewise.
32160 (input_node): Likewise.
32161 (input_varpool_node): Likewise.
32162 * lto-streamer-out.c (lto_output): Likewise.
32163 * tree-inline.c (expand_call_inline): Remove usage of
32164 assign_stmts.
32165 * tree-inline.h (struct copy_body_data): Likewise.
32166 * varpool.c (varpool_node::dump): Likewise.
32167
32168 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32169
32170 PR middle-end/89303
32171 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32172 into pt->vars_contains_escaped_heap instead of setting
32173 pt->vars_contains_escaped_heap to it.
32174
32175 PR middle-end/89281
32176 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32177 INTVAL (size), compare it to GET_MODE_MASK instead of
32178 1 << GET_MODE_BITSIZE.
32179
32180 PR target/89290
32181 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32182 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32183 -mcmodel=large.
32184
32185 2019-02-13 Martin Liska <mliska@suse.cz>
32186
32187 PR lto/88858
32188 * cfgrtl.c (remove_barriers_from_footer): New function.
32189 (try_redirect_by_replacing_jump): Use it.
32190 (cfg_layout_redirect_edge_and_branch): Likewise.
32191
32192 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32193
32194 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32195 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32196 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32197 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32198 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32199 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32200 New BU_CRYPTO_2.
32201 * config/rs6000/rs6000.c (builtin_function_type)
32202 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32203 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32204 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32205 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32206 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32207
32208 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32209
32210 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32211 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32212
32213 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32214
32215 PR target/89229
32216 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32217 268678 and revision 268657.
32218 (*movti_internal): Likewise.
32219
32220 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32221
32222 PR target/89233
32223 * config/s390/s390.c (s390_decompose_address): Update comment.
32224 (s390_check_qrst_address): Reject invalid address forms after
32225 LRA.
32226
32227 2019-02-12 Martin Liska <mliska@suse.cz>
32228
32229 PR lto/88876
32230 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32231 we need default values of funct_state for a function that
32232 is not optimized.
32233
32234 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32235
32236 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32237 the object to pick the size of stores on strict-alignment platforms.
32238
32239 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32240 (*movdi_insn_sp32): Likewise.
32241 (*movdi_insn_sp64): Likewise.
32242
32243 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32244
32245 PR lto/88677
32246 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32247 types that needs constructiong.
32248 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32249
32250 2019-02-12 Richard Biener <rguenther@suse.de>
32251
32252 PR tree-optimization/89253
32253 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32254 duplicate the loop.
32255
32256 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32257
32258 PR lto/88147
32259 * input.c (selftest::test_line_offset_overflow): New selftest.
32260 (selftest::input_c_tests): Call it.
32261
32262 2019-02-11 Martin Sebor <msebor@redhat.com>
32263
32264 PR tree-optimization/88771
32265 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32266 when -Wstringop-overflow is set.
32267 (builtin_memref::builtin_memref): Adjust excessive upper bound
32268 only when lower bound is not excessive.
32269 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32270 -Wstringop-ovefflow.
32271 (maybe_diag_offset_bounds): Rename...
32272 (maybe_diag_access_bounds): ...to this.
32273 (check_bounds_or_overlap): Adjust for name change above.
32274
32275 2019-02-11 Martin Sebor <msebor@redhat.com>
32276
32277 PR c++/87996
32278 * builtins.c (max_object_size): Move from here...
32279 * builtins.h (max_object_size): ...and here...
32280 * tree.c (max_object_size): ...to here...
32281 * tree.h (max_object_size): ...and here.
32282
32283 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32284
32285 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32286 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32287 for correct semantics.
32288
32289 2019-02-11 Alan Modra <amodra@gmail.com>
32290
32291 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32292 -mlongcall and -mpltseq.
32293 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32294 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32295 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32296 * config/rs6000/sysv4.opt (mpltseq): New option.
32297 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32298 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32299 support is lacking. Don't allow -mpltseq with -mbss-plt.
32300 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32301 -mpltseq given for ELFv1.
32302 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32303 Only use UNSPEC_PLTSEQ for inline PLT calls.
32304 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32305 use UNSPEC_PLTSEQ for inline PLT calls.
32306 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32307 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32308 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32309 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32310 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32311 (pltseq_mtctr_<mode>): Likewise.
32312
32313 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32314
32315 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32316 Solaris ld.
32317 * configure: Regenerate.
32318
32319 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32320
32321 PR bootstrap/88714
32322 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32323 instead of r.
32324
32325 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32326
32327 * function.c (assign_parm_setup_block): Use the stored
32328 size, not the passed size, when allocating stack-space,
32329 also for a parameter with alignment larger than
32330 MAX_SUPPORTED_STACK_ALIGNMENT.
32331
32332 2019-02-11 Martin Liska <mliska@suse.cz>
32333
32334 PR ipa/89009
32335 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32336 * ipa-inline.c (inline_small_functions): Likewise.
32337 * ipa-pure-const.c (propagate_pure_const): Likewise.
32338 (propagate_nothrow): Likewise.
32339 * ipa-reference.c (propagate): Likewise.
32340 * ipa-utils.c (struct searchc_env): Remove unused field.
32341 (searchc): Always search across AVAIL_INTERPOSABLE.
32342 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32343 the only called IPA pure const can properly not propagate
32344 across interposable boundary.
32345 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32346
32347 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32348
32349 * config/nds32/nds32.md (call_internal, call_value_internal,
32350 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32351
32352 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32353
32354 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32355 typo.
32356
32357 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32358
32359 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32360 in comments
32361
32362 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32363
32364 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32365
32366 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32367
32368 PR tree-optimization/89268
32369 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32370 if preds is non-NULL.
32371
32372 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32373
32374 PR lto/89272
32375 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32376 polymorphic types.
32377
32378 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32379
32380 * config/nds32/nds32.md (trap): New pattern.
32381
32382 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32383
32384 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32385 dwarf span.
32386
32387 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32388
32389 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32390 to split POST_INC.
32391
32392 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32393
32394 * ipa-visibility.c (localize_node): Also do not localize
32395 LDPR_PREVAILING_DEF_IRONLY_EXP.
32396
32397 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32398
32399 PR lto/87957
32400 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32401 instead of type_with_linkage.
32402
32403 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32404
32405 PR ipa/88755
32406 * params.def (uninlined-function-insns, uninlined-function-time,
32407 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32408 bound so we don't get overflows.
32409
32410 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32411
32412 * config/rs6000/rs6000-string.c (expand_compare_loop,
32413 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32414 memcmp/strncmp.
32415
32416 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32417
32418 PR middle-end/89246
32419 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32420 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32421 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32422
32423 2019-02-09 Alan Modra <amodra@gmail.com>
32424
32425 PR target/88343
32426 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32427 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32428 setup.
32429
32430 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32431
32432 PR middle-end/88560
32433 * lra-constraints.c (process_alt_operands): Don't increase reject
32434 for memory when offset memory is required.
32435
32436 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32437
32438 * config/s390/vector.md: Implement vector copysign.
32439
32440 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32441
32442 * expr.c (expand_constructor): Correct indentations.
32443
32444 2019-02-08 Richard Biener <rguenther@suse.de>
32445
32446 PR tree-optimization/89247
32447 * tree-if-conv.c: Include tree-cfgcleanup.h.
32448 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32449 (tree_if_conversion): Pass through predicate vector.
32450 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32451 inline, see if any if-converted loops we refrece in
32452 LOOP_VECTORIZED calls vanished and fixup.
32453 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32454
32455 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32456
32457 * config/s390/constraints.md (jdd): New constraint.
32458
32459 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32460
32461 PR target/89229
32462 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32463 upper 16 vector registers without TARGET_AVX512VL.
32464 (*movti_internal): Likewise.
32465
32466 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32467
32468 PR rtl-optimization/89234
32469 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32470 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32471 (copy_reg_eh_region_note_backward): Likewise.
32472
32473 2019-02-08 Richard Biener <rguenther@suse.de>
32474
32475 PR middle-end/89223
32476 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32477 doesn't fit in HWI.
32478 (analyze_subscript_affine_affine): Handle failure from
32479 initialize_matrix_A.
32480
32481 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32482
32483 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32484 cfun everywhere.
32485
32486 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32487
32488 PR tree-optimization/86637
32489 PR tree-optimization/89235
32490 * tree-vect-loop.c (optimize_mask_stores): Add an
32491 auto_purge_vect_location sentinel to ensure that vect_location is
32492 purged on exit.
32493 * tree-vectorizer.c
32494 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32495 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32496 to ensure that vect_location is purged on exit.
32497 (pass_slp_vectorize::execute): Likewise, replacing the manual
32498 reset.
32499 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32500
32501 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32502
32503 * config/aarch64/iterators.md (max_opp): New code_attr.
32504 (USMAX): New code iterator.
32505 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32506 (aarch64_smax): Likewise.
32507 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32508 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32509 MINUS (MAX MIN).
32510
32511 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32512
32513 PR target/89229
32514 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32515 for TARGET_AVX512VL.
32516 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32517
32518 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32519
32520 * config/s390/s390-builtin-types.def: Add new types.
32521 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32522 (s390_vec_xlw4): Make the memory operand into a const pointer.
32523 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32524 float.
32525 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32526 a new vector type with the alignment of the scalar memory operand.
32527
32528 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32529 Jakub Jelinek <jakub@redhat.com>
32530
32531 PR bootstrap/88714
32532 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32533 arm_count_ldrdstrd_insns): New declarations.
32534 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32535 MINUS.
32536 (valid_operands_ldrd_strd): New function.
32537 (arm_count_ldrdstrd_insns): New function.
32538 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32539 sets instead of single DImode set and define new insns to match this.
32540
32541 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32542
32543 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32544 Make it a C initializer.
32545
32546 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32547
32548 PR/target 88850
32549 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32550
32551 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32552
32553 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32554 Use neon_dot<q> for type.
32555 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32556
32557 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32558
32559 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32560 Use neon_dot<q> for type.
32561 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32562 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32563
32564 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32565
32566 PR rtl-optimization/89225
32567 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32568 sizes check.
32569
32570 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32571
32572 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32573 after restoring registers saved to allocate the frame on Windows.
32574
32575 2019-02-06 Richard Biener <rguenther@suse.de>
32576
32577 PR tree-optimization/89182
32578 * graphite.h (cached_scalar_evolution_in_region): Declare.
32579 * graphite.c (struct seir_cache_key): New.
32580 (struct sese_scev_hash): Likewise.
32581 (seir_cache): New global.
32582 (cached_scalar_evolution_in_region): New function.
32583 (graphite_transform_loops): Allocate and release seir_cache.
32584 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32585 cached_scalar_evolution_in_region.
32586 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32587 Simplify.
32588 (scop_detection::graphite_can_represent_expr: Use
32589 cached_scalar_evolution_in_region.
32590 (scop_detection::stmt_simple_for_scop_p): Likewise.
32591 (find_params_in_bb): Likewise.
32592 (gather_bbs::before_dom_children): Likewise.
32593 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32594 (add_loop_constraints): Likewise.
32595
32596 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32597
32598 PR middle-end/89210
32599 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32600 operand to new_unary_operation only if both element types are integral
32601 and it isn't a widening conversion. Return NULL_TREE if
32602 new_unary_operation failed.
32603
32604 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32605
32606 PR target/88856
32607 * config/s390/s390.md: Remove load and test FP splitter.
32608
32609 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32610
32611 PR target/89112
32612 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32613 expand_compare_loop, expand_block_compare_gpr,
32614 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32615 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32616 #include "profile-count.h" and "predict.h" for types and functions
32617 needed to work with REG_BR_PROB notes.
32618
32619 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32620
32621 PR target/89112
32622 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32623 for the long branch case.
32624
32625 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32626
32627 PR target/89188
32628 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32629 can throw, non-call exceptions are enabled and we can't delete
32630 dead exceptions or alter cfg. Set must_clean if
32631 delete_insn_and_edges returns true, don't set it blindly for calls.
32632 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32633
32634 PR rtl-optimization/89195
32635 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32636 of the original MEM.
32637
32638 2019-02-05 Martin Liska <mliska@suse.cz>
32639
32640 PR gcov-profile/89000
32641 * gcov.c (function_summary): Remove argument.
32642 (file_summary): New function.
32643 (print_usage): Replace tabs with spaces.
32644 (generate_results): Use new function file_summary.
32645
32646 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32647
32648 PR target/89186
32649 * optabs.c (prepare_cmp_insn): Pass x and y to
32650 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32651
32652 2019-02-05 Richard Biener <rguenther@suse.de>
32653
32654 PR middle-end/89150
32655 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32656 (struct bitmap_element): Drop chain_prev so we properly recurse on
32657 the prev member, supporting tree views.
32658 (struct bitmap_head): GTY skip the obstack member.
32659
32660 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32661
32662 PR c/88698
32663 * doc/extend.texi (Vector Extensions): Add an example of using vector
32664 types together with x86 intrinsics.
32665
32666 2019-02-04 Alan Modra <amodra@gmail.com>
32667
32668 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32669 str[] size to 160, and comment.
32670
32671 2019-02-04 Alan Modra <amodra@gmail.com>
32672
32673 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32674 (rs6000_pltseq_template): Guard output of TLS markers with
32675 TARGET_TLS_MARKERS.
32676 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32677 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32678 to use inline PLT sequences.
32679 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32680 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32681 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32682
32683 2019-02-04 Martin Liska <mliska@suse.cz>
32684
32685 PR ipa/88985
32686 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32687 out when ipa_fn_summaries does not contain entry for callee.
32688
32689 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32690
32691 * config/sparc/sparc.h: Remove superfluous blank lines.
32692 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32693 (got_register_rtx): ...this.
32694 (sparc_got): Adjust to above renaming.
32695 (sparc_tls_got): Likewise.
32696 (sparc_delegitimize_address): Likewise.
32697 (sparc_output_mi_thunk): Likewise.
32698 (sparc_init_pic_reg): Likewise.
32699 (save_local_or_in_reg_p): Fix test on the GOT register.
32700 (USE_HIDDEN_LINKONCE): Move around.
32701 (get_pc_thunk_name): Likewise.
32702 (gen_load_pcrel_sym): Likewise.
32703 (load_got_register): Likewise.
32704
32705 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32706
32707 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32708 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32709
32710 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32711
32712 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32713 into consideration.
32714
32715 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32716
32717 * config.gcc (with_nds32_lib, glibc):
32718 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32719 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32720 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32721
32722 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32723
32724 PR target/89071
32725 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32726 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32727 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32728 (*rcpsf2_sse): Ditto.
32729 (*rsqrtsf2_sse): Ditto.
32730 (sse4_1_round<mode<2): Ditto.
32731
32732 2019-02-03 Richard Biener <rguenther@suse.de>
32733
32734 PR debug/87295
32735 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32736 orig.
32737
32738 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32739
32740 PR middle-end/87887
32741 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32742 Punt with warning on aggregate return or argument types. Ignore
32743 type/mode checking for uniform arguments.
32744
32745 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32746
32747 * combine.c (try_combine): Do not print "Can't combine" messages unless
32748 printing failed combination attempts.
32749
32750 2019-02-01 Martin Jambor <mjambor@suse.cz>
32751
32752 PR hsa/87863
32753 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32754 segment and global segment variables before making them static.
32755
32756 2019-02-01 Martin Jambor <mjambor@suse.cz>
32757
32758 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32759 missed optimization dump with dump_enabled_p.
32760
32761 2019-02-01 Richard Biener <rguenther@suse.de>
32762
32763 PR middle-end/88597
32764 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32765 the instantiate cache.
32766 (instantiate_scev_binary): Elide second operand procesing
32767 if equal to the first.
32768 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32769 (chrec_contains_undetermined): Likewise.
32770 (tree_contains_chrecs): Likewise.
32771
32772 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32773
32774 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32775
32776 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32777
32778 PR tree-optimization/89143
32779 * wide-int-range.h (wide_int_range_absu): Declare.
32780 * wide-int-range.cc (wide_int_range_absu): New function.
32781 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32782
32783 PR tree-optimization/88107
32784 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32785 instead of assertion that eh_region_outermost is non-NULL, if it
32786 is NULL, set *ALL to true and return NULL.
32787 (move_sese_region_to_fn): Adjust caller, if all is set, call
32788 duplicate_eh_regions with NULL region.
32789
32790 2019-02-01 Richard Biener <rguenth@suse.de>
32791
32792 PR rtl-optimization/88593
32793 * mode-switching.c (optimize_mode_switching): Free dominators before
32794 calling cleanup_cfg.
32795
32796 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32797
32798 PR tree-optimization/88932
32799 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32800
32801 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32802
32803 PR middle-end/89137
32804 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32805 bogus clang warning.
32806
32807 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32808
32809 PR target/89071
32810 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32811 alternative to avoid partial SSE register stall for TARGET_AVX.
32812 (truncdfsf2): Ditto.
32813 (sse4_1_round<mode>2): Ditto.
32814
32815 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32816
32817 PR tree-optimization/89008
32818 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32819 process anything of the form X * 0.
32820
32821 2019-01-31 Richard Biener <rguenther@suse.de>
32822
32823 PR tree-optimization/89135
32824 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32825 with abnormal preds.
32826
32827 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32828
32829 PR sanitizer/89124
32830 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32831 always_inline callees into no_sanitize_address callers.
32832
32833 2019-01-31 Richard Biener <rguenther@suse.de>
32834
32835 PR rtl-optimization/89115
32836 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32837
32838 2019-01-30 Martin Sebor <msebor@redhat.com>
32839
32840 PR other/89106
32841 * doc/extend.texi (cast to a union): Correct and expand.
32842
32843 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32844
32845 PR rtl-optimization/87246
32846 * lra-constraints.c (simplify_operand_subreg): Reload memory
32847 in subreg if the address became invalid.
32848
32849 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32850
32851 PR target/87064
32852 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32853 Disable for little-endian.
32854
32855 2019-01-30 Richard Biener <rguenther@suse.de>
32856
32857 PR rtl-optimization/89115
32858 * opts.c (default_options_optimization): Reduce
32859 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32860 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32861 to the default.
32862
32863 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32864
32865 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32866 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32867 type of vector element when vec_extract is implemented by direct
32868 move.
32869
32870 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32871
32872 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32873
32874 2019-01-30 Richard Biener <rguenther@suse.de>
32875
32876 PR tree-optimization/89111
32877 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32878 canonicalization to appropriately sized access types.
32879
32880 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32881
32882 PR c++/89105
32883 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32884 for arguments to functions that are TU-local and shouldn't be
32885 referenced by assembly.
32886
32887 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32888
32889 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32890 after '='.
32891
32892 2019-01-29 Martin Sebor <msebor@redhat.com>
32893
32894 PR c/88956
32895 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32896
32897 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32898
32899 PR c++/66676
32900 PR ipa/89104
32901 * omp-simd-clone.c (simd_clone_clauses_extract)
32902 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32903 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32904
32905 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32906
32907 * config.gcc: Force .init_array for ARC.
32908
32909 2019-01-29 Richard Biener <rguenther@suse.de>
32910
32911 PR debug/87295
32912 * dwarf2out.c (collect_skeleton_dies): New helper.
32913 (copy_decls_for_unworthy_types): Call it.
32914 (build_abbrev_table): Assert we do not try to replace
32915 DW_AT_signature refs with local refs.
32916
32917 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32918
32919 PR middle-end/89002
32920 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32921 for lastprivate/linear IV, push gimplify context around gimplify_assign
32922 and, if it needed any temporaries, pop it into a gimple bind around the
32923 sequence.
32924
32925 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32926
32927 * common.opt (-Wattribute-alias): Remove "no-" from name.
32928 Make -Wattribute-alias command line option and
32929 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32930
32931 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32932
32933 PR target/89073
32934 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32935 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32936 x86 ISA options.
32937 (bmi2): Add missing @opindex.
32938 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32939 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32940 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32941 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32942 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32943 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32944 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32945 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32946 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32947 xsavec, xsaveopt and xsaves options.
32948
32949 2019-01-28 Richard Biener <rguenther@suse.de>
32950
32951 PR debug/89076
32952 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32953 support removal.
32954
32955 2019-01-28 Richard Biener <rguenther@suse.de>
32956
32957 PR tree-optimization/88739
32958 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32959 BIT_FIELD_REFs only are applied to mode-precision operands
32960 when they are integral.
32961 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32962 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32963 BIT_FIELD_REFs of non-mode-precision integral operands.
32964
32965 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32966
32967 PR target/87214
32968 * config/i386/sse.md
32969 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32970 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32971 first constants in pairs are multiples of 2. Formatting fixes.
32972 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32973 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32974 first constants in each quadruple are multiples of 4. Formatting fixes.
32975
32976 2019-01-26 Martin Jambor <mjambor@suse.cz>
32977
32978 PR ipa/88933
32979 * tree-inline.c: Include tree-cfgcleanup.h.
32980 (delete_unreachable_blocks_update_callgraph): Move...
32981 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32982 ...here, make externally visible, make second argument bool, adjust
32983 all callers.
32984 * tree-cfgcleanup.c: Include cgraph.h.
32985 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32986 Declare.
32987 * ipa-prop.c: Include tree-cfgcleanup.h.
32988 (ipcp_transform_function): Call
32989 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32990
32991 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32992
32993 PR rtl-optimization/88846
32994 * ira.c (process_set_for_memref_referenced_p): New.
32995 (memref_referenced_p): Add new param. Use
32996 process_set_for_memref_referenced_p. Add new switch cases.
32997 (memref_used_between_p): Pass new arg to memref_referenced_p.
32998
32999 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33000
33001 PR target/88469
33002 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33003 argument ABI_BREAK. Set to true if the calculated alignment has
33004 changed in gcc-9. Check bit-fields for their base type alignment.
33005 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33006 (aarch64_function_arg_boundary): Likewise.
33007 (aarch64_gimplify_va_arg_expr): Likewise.
33008
33009 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33010
33011 PR middle-end/89037
33012 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33013 instead of accessing TREE_INT_CST_ELT directly.
33014
33015 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33016
33017 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33018 fenv_exceptions description.
33019
33020 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33021
33022 PR rtl-optimization/87763
33023 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33024 Allow SUBREG when matching CC_NZmode compare.
33025
33026 2019-01-25 Richard Biener <rguenther@suse.de>
33027
33028 PR tree-optimization/89049
33029 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33030 Look at the pattern stmt to determine if the stmt is vectorized.
33031
33032 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33033
33034 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33035 (pred_mov<mode>): Handle all-register forms using both a new
33036 alternative and a split.
33037
33038 2019-01-25 Richard Biener <rguenther@suse.de>
33039
33040 PR tree-optimization/86865
33041 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33042 Reject non-do-while loops.
33043
33044 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33045
33046 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33047 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33048 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33049 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33050 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33051 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33052 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33053 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33054 vlogical_operand, gpc_reg_operand, int_reg_operand,
33055 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33056 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33057 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33058 (save_world_operation, restore_world_operation, lmw_operation,
33059 stmw_operation): Use MEM_P and REG_P.
33060 (tie_operand): Use MEM_P.
33061 (vrsave_operation, crsave_operation): Use REG_P.
33062 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33063 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33064 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33065 (call_operand): Use HARD_REGISTER_P.
33066 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33067 Use CONST_INT_P.
33068 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33069 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33070 quad_aligned_load_p, replace_swapped_aligned_store,
33071 recombine_lvx_pattern, replace_swapped_aligned_load,
33072 recombine_stvx_pattern): Use MEM_P.
33073 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33074 Use MEM_P and SYMBOL_REF_P.
33075 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33076 (insn_is_swappable_p): Use REG_P and MEM_P.
33077 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33078 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33079 Use CONST_INT_P.
33080 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33081 Use CONST_DOUBLE_P.
33082 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33083 CONST_WIDE_INT_P.
33084 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33085 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33086 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33087 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33088 reg_or_subregno:
33089 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33090 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33091 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33092 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33093 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33094 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33095 rs6000_split_logical_di): Use CONST_INT_P.
33096 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33097 REG_P and SYMBOL_REF_P.
33098 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33099 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33100 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33101 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33102 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33103 (small_data_operand, print_operand_address): Use CONST_INT_P and
33104 SYMBOL_REF_P.
33105 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33106 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33107 Use HARD_REGISTER_NUM_P.
33108 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33109 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33110 SUBREG_P and SYMBOL_REF_P.
33111 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33112 and HARD_REGISTER_NUM_P.
33113 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33114 reg_or_subregno.
33115 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33116 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33117 MEM_P and REG_P.
33118 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33119 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33120 find_addr_reg): Use REG_P.
33121 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33122 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33123 (offsettable_ok_by_alignment, constant_pool_expr_p,
33124 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33125 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33126 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33127 rs6000_assemble_integer, create_TOC_reference,
33128 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33129 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33130 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33131 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33132 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33133 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33134 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33135 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33136 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33137 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33138 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33139 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33140 and cbranch<mode>4): Use CONST_INT_P.
33141 (multiple define_splits): Use REG_P and SUBREG_P.
33142 (define_expands call, call_value): Use MEM_P.
33143 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33144 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33145 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33146 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33147 and HARD_REGISTER_NUM_P.
33148 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33149
33150 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33151
33152 PR rtl-optimization/88948
33153 * rtl.h (prepare_copy_insn): New prototype.
33154 * gcse.c (prepare_copy_insn): New function, split out from
33155 process_insert_insn.
33156 (process_insert_insn): Use prepare_copy_insn.
33157 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33158 instead of gen_move_insn.
33159
33160 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33161
33162 PR debug/89006
33163 * config/i386/i386.c (ix86_pic_register_p): Return true for
33164 UNSPEC_SET_GOT too.
33165
33166 PR tree-optimization/88964
33167 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33168 punt if HONOR_SNANS (chrec).
33169
33170 PR middle-end/89015
33171 * tree-nested.c (convert_nonlocal_reference_stmt,
33172 convert_local_reference_stmt, convert_tramp_reference_stmt,
33173 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33174 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33175 or GIMPLE_OMP_TASK.
33176
33177 PR tree-optimization/89027
33178 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33179 for "omp simd array" variables.
33180
33181 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33182
33183 PR target/88469
33184 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33185 force the alignment of m_val.
33186
33187 2019-01-24 Richard Biener <rguenther@suse.de>
33188
33189 PR lto/87187
33190 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33191 When in "legacy" debug mode make sure to reset self-origins.
33192
33193 2019-01-24 Martin Liska <mliska@suse.cz>
33194
33195 PR gcov-profile/88994
33196 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33197 result will be always smaller or equal to the original.
33198 * gcov.c (mangle_name): Fix else branch where we should
33199 also copy to PTR and shift the pointer.
33200
33201 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33202
33203 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33204 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33205
33206 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33207
33208 * common/config/i386/i386-common.c
33209 (OPTION_MASK_ISA_ENQCMD_SET,
33210 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33211 (ix86_handle_option): Handle -menqcmd.
33212 * config.gcc (enqcmdintrin.h): New header file.
33213 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33214 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33215 -menqcmd.
33216 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33217 function type.
33218 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33219 __builtin_ia32_enqcmds): New builtins.
33220 * config/i386/i386-c.c (__ENQCMD__): New macro.
33221 * config/i386/i386-option.c (ix86_target_string): Add
33222 -menqcmd.
33223 (ix86_valid_target_attribute_inner_p): Likewise.
33224 * config/i386/i386-expand.c
33225 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33226 IX86_BUILTIN_ENQCMDS.
33227 * config/i386/i386.h (TARGET_ENQCMD): New.
33228 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33229 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33230 (movdir64b_<mode>): Parameterize to enable share expansion code
33231 with ENQCMD in function ix86_expand_builtin.
33232 * config/i386/i386.opt: Add -menqcmd.
33233 * config/i386/immintrin.h: Include enqcmdintrin.h.
33234 * config/i386/enqcmdintrin.h: New intrinsic file.
33235 * doc/invoke.texi: Add -menqcmd.
33236
33237 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33238 Steve Ellcey <sellcey@marvell.com>
33239
33240 PR target/85711
33241 * recog.c (address_operand): Return false on wrong mode for address.
33242 (constrain_operands): Check for mode with 'p' constraint.
33243
33244 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33245
33246 PR target/88998
33247 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33248 Disparage MMX alternative.
33249 (sse2_cvtpd2pi): Ditto.
33250 (sse2_cvttpd2pi): Ditto.
33251
33252 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33253
33254 PR driver/89014
33255 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33256 use-after-free of the result of
33257 aarch64_get_extension_string_for_isa_flags.
33258
33259 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33260
33261 PR c/44715
33262 * doc/extend.texi: Document break and continue behavior in
33263 statement expressions.
33264
33265 2019-01-23 Richard Biener <rguenther@suse.de>
33266
33267 PR tree-optimization/89008
33268 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33269 not leave another stray operand.
33270
33271 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33272
33273 * BASE-VER: Bump to 9.0.1.
33274
33275 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33276
33277 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33278 thunk that returns by reference, use the type of the return object
33279 of the thunk instead of that of the alias to build the dereference.
33280
33281 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33282
33283 * config/arc/atomic.md: Add operand to DMB instruction.
33284
33285 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33286
33287 PR tree-optimization/88964
33288 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33289 build_zero_cst instead of build_int_cst. Return false for loop
33290 invariants which honor signed zeros.
33291
33292 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33293
33294 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33295
33296 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33297
33298 PR target/88965
33299 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33300 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33301 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33302
33303 PR middle-end/88968
33304 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33305 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33306
33307 PR target/87064
33308 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33309 Disable for little endian.
33310
33311 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33312
33313 PR target/88469
33314 * config/arm/arm.c (arm_needs_double_word_align): Check
33315 DECL_BIT_FIELD_TYPE.
33316
33317 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33318 H.J. Lu <hongjiu.lu@intel.com>
33319
33320 PR target/88909
33321 * config/i386/i386-builtin.def: Add mask2 to all builtin
33322 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33323 SPECIAL_ARGS.
33324 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33325 (BDESC_FIRST): Likewise.
33326 (define_builtin): Add an argument for mask2. Updated to handle
33327 both ix86_isa_flags and ix86_isa_flags2.
33328 (define_builtin_const): Likewise.
33329 (define_builtin_pure): Likewise.
33330 (define_builtin2): Deleted.
33331 (define_builtin_const2): Likewise.
33332 (builtin_description): Add a member, mask2.
33333 (bdesc_*): Add mask2 to builtin initializations.
33334 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33335 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33336 support.
33337 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33338
33339 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33340
33341 PR target/88954
33342 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33343 noplt attribute.
33344
33345 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33346
33347 PR target/88469
33348 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33349 alignment is dominated by a bitfield with 64-bit aligned base type.
33350 (arm_function_arg): Emit a warning if the alignment has changed since
33351 earlier GCC releases.
33352 (arm_function_arg_boundary): Likewise.
33353 (arm_setup_incoming_varargs): Likewise.
33354
33355 2019-01-22 Richard Biener <rguenther@suse.de>
33356
33357 PR tree-optimization/88862
33358 * graphite-scop-detection.c
33359 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33360
33361 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33362
33363 * doc/extend.tex (AMD GCN Function Attributes): New section.
33364 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33365 * doc/invoke.texi (AMD GCN Options): New section.
33366 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33367
33368 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33369
33370 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33371 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33372
33373 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33374
33375 PR tree-optimization/88044
33376 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33377 is false in the first iteration, but !every_iteration, return false
33378 instead of true with niter->niter zero.
33379
33380 PR rtl-optimization/88904
33381 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33382 any nonequal registers before processing BB_END (b).
33383
33384 PR target/88905
33385 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33386 GET_MODE (op0).
33387 (expand_binop_directly, expand_doubleword_clz,
33388 expand_doubleword_popcount, expand_ctz, expand_ffs,
33389 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33390
33391 PR rtl-optimization/49429
33392 PR target/49454
33393 PR rtl-optimization/86334
33394 PR target/88906
33395 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33396 addressable from here...
33397 (emit_block_op_via_libcall): ... to here.
33398
33399 2019-01-22 Richard Biener <rguenther@suse.de>
33400
33401 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33402 auto_vec for cost vector to fix memleak.
33403 (vectorize_fold_left_reduction): Properly gather SLP defs.
33404 (vectorizable_comparison): Do not swap operands to properly
33405 gather SLP defs.
33406
33407 2019-01-22 Alan Modra <amodra@gmail.com>
33408
33409 PR target/88614
33410 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33411 stays a reg. Allow a const_int.
33412 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33413 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33414 (IS_NOMARK_TLSGETADDR): Define.
33415 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33416 (rs6000_output_tlsargs): New function.
33417 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33418 __tls_get_addr call takes an arg.
33419 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33420 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33421 delete split..
33422 (call_value_nonlocal_sysv): ..or here, delete split.
33423 (tls_gdld_nomark): Delete.
33424 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33425 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33426 (call_value_nonlocal_sysv): Likewise.
33427 (call_value_nonlocal_sysv_secure): Likewise.
33428 (call_value_nonlocal_aix): Likewise.
33429 (call_value_indirect_aix): Likewise.
33430 (call_value_indirect_elfv2): Likewise.
33431 (call_value_local32, call_value_local64): Disable for no-mark tls.
33432 (call_value_local_aix): Likewise.
33433
33434 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33435
33436 PR target/88938
33437 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33438 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33439
33440 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33441
33442 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33443 string contents as hash_map keys.
33444
33445 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33446
33447 PR c/88928
33448 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33449 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33450 instead of TYPE_ALIGN.
33451 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33452 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33453 pointer from TYPE_STUB_DECL.
33454
33455 2019-01-21 Richard Biener <rguenther@suse.de>
33456
33457 PR tree-optimization/88934
33458 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33459 at the possibly non-constant operand.
33460 (vect_get_constant_vectors): Adjust.
33461
33462 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33463
33464 PR target/71659
33465 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33466 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33467 instead of _X86INTRIN_H_INCLUDED.
33468 * onfig/i386/clwbintrin.h: Likewise.
33469 * config/i386/pkuintrin.h: Likewise.
33470 * config/i386/prfchwintrin.h: Likewise.
33471 * config/i386/rdseedintrin.h: Likewise.
33472 * config/i386/wbnoinvdintrin.h: Likewise.
33473 * config/i386/xsavecintrin.h: Likewise.
33474 * config/i386/xsavesintrin.h: Likewise.
33475 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33476 * config/i386/xsaveintrin.h: Likewise.
33477 * config/i386/xsaveoptintrin.h: Likewise.
33478 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33479 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33480 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33481 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33482 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33483 * config/i386/immintrin.h: Here.
33484
33485 2019-01-20 Martin Jambor <mjambor@suse.cz>
33486
33487 PR ipa/87615
33488 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33489 with aa_walk_budget.
33490 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33491 aa_walk_budget_p parameter.
33492 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33493 walk. Updated all callers.
33494 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33495 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33496 unmodified_parm.
33497 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33498 parameter info. Extract info from fbi. Pass fbi to recursive calls
33499 and to unmodified_parm.
33500 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33501 info, updated call to will_be_nonconstant_expr_predicate.
33502 (param_change_prob): New parameter fbi, limit AA walking.
33503 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33504 calls to various above functions.
33505 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33506 parameter. Use it to limit AA walking.
33507 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33508 fbi, limit AA walk.
33509 (detect_type_change): New parameter fbi, pass it on to
33510 detect_type_change_from_memory_writes.
33511 (detect_type_change_ssa): Likewise.
33512 (aa_overwalked): Removed.
33513 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33514 accordingly, adjust to the neew AA limiting scheme.
33515 (parm_ref_data_preserved_p): Likewise.
33516 (ipa_compute_jump_functions_for_edge): Adjust call to
33517 get_dynamic_type.
33518 (ipa_analyze_call_uses): Likewise.
33519 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33520 (ipa_analyze_node): Initialize aa_walk_budget.
33521 (ipcp_transform_function): Likewise.
33522 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33523 to get_dynamic_type.
33524
33525 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33526
33527 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33528 outside of #if CHECKING_P code.
33529
33530 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33531
33532 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33533 New function, split out from...
33534 (loop_versioning::analyze_stride): ...here.
33535 (loop_versioning::find_per_loop_multiplication): Use gassign.
33536 (loop_versioning::analyze_term_using_scevs): Return a success code.
33537 (loop_versioning::analyze_arbitrary_term): New function.
33538 (loop_versioning::analyze_address_fragment): Use
33539 analyze_arbitrary_term if all else fails.
33540
33541 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33542
33543 PR target/88892
33544 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33545 operands.
33546
33547 2019-01-18 Richard Biener <rguenther@suse.de>
33548
33549 PR tree-optimization/88903
33550 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33551 scalar stmts a SLP shift amount is composed of when detecting
33552 shifts by scalars.
33553
33554 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33555
33556 PR target/88799
33557 * config/arm/arm-cpus.in (mp): New feature.
33558 (sec): New feature.
33559 (fgroup ARMv7ve): Add mp and sec features.
33560 (arch armv7-a): Add options to allow mp and sec extensions.
33561 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33562 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33563 extenstions to the base architecture.
33564 (cpu cortex-a8): Add sec extension to the base architecture.
33565 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33566 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33567 variants down to the base v7-a varaint.
33568 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33569 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33570 of permitted extensions for -march=armv7-a and for
33571 -mcpu=generic-armv7-a.
33572
33573 2019-01-18 Martin Liska <mliska@suse.cz>
33574
33575 * params.def: Fix comment.
33576 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33577 name.
33578 (gimple_gen_ic_func_profiler): Likewise.
33579
33580 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33581
33582 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33583 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33584 and put in error checks for stack protector guard options.
33585 (aarch64_stack_protect_guard): New.
33586 (TARGET_STACK_PROTECT_GUARD): Define.
33587 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33588 (reg_stack_protect_address<mode>): New.
33589 (stack_protect_set): Adjust for SSP_GLOBAL.
33590 (stack_protect_test): Likewise.
33591 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33592 (-mstack-protector-guard): Likewise.
33593 (-mstack-protector-guard-offset): Likewise.
33594
33595 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33596
33597 PR tree-optimization/86214
33598 * tree-inline.h (struct copy_body_data): Add
33599 add_clobbers_to_eh_landing_pads member.
33600 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33601 (copy_edges_for_bb): Call it if EH edge destination is <
33602 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33603 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33604 if flag_stack_reuse != SR_NONE and clear it afterwards.
33605
33606 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33607
33608 PR target/85596
33609 * doc/install.texi (with-multilib-list): Document for aarch64.
33610
33611 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33612
33613 PR target/88734
33614 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33615 (("..."))) with ("...").
33616
33617 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33618
33619 * doc/extend.texi (Built-in Functions for Memory Model Aware
33620 Atomic Operations): Document atomic fetch and nand.
33621
33622 2019-01-18 Martin Liska <mliska@suse.cz>
33623 Richard Biener <rguenther@suse.de>
33624
33625 PR middle-end/88587
33626 * cgraph.h (create_version_clone_with_body): Add new argument
33627 with attributes.
33628 * cgraphclones.c (cgraph_node::create_version_clone): Add
33629 DECL_ATTRIBUTES to a newly created decl. And call
33630 valid_attribute_p so that proper cl_target_optimization_node
33631 is set for the newly created declaration.
33632 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33633 for declaration.
33634 (expand_target_clones): Do not call valid_attribute_p, it must
33635 be already done.
33636 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33637 vector types.
33638
33639 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33640
33641 PR target/88734
33642 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33643 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33644 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33645
33646 2019-01-17 Martin Sebor <msebor@redhat.com>
33647
33648 PR middle-end/88273
33649 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33650 Handle anti-ranges the same as no range at all.
33651
33652 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33653
33654 * config/aarch64/aarch64.c (cgraph.h): New include.
33655 (intl.h): New include.
33656 (supported_simd_type): New function.
33657 (currently_supported_simd_type): Ditto.
33658 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33659 (aarch64_simd_clone_adjust): Ditto.
33660 (aarch64_simd_clone_usable): Ditto.
33661 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33662 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33663 (TARGET_SIMD_CLONE_USABLE): Ditto.
33664 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33665 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33666 call.
33667
33668 2019-01-17 Martin Sebor <msebor@redhat.com>
33669
33670 PR tree-optimization/88800
33671 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33672 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33673 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33674 redundant argument. Add new argument and issue diagnostics under
33675 its control. Detect out-of-bounds access even with warnings
33676 disabled.
33677 (check_bounds_or_overlap): Change return type. Add argument.
33678 (wrestrict_dom_walker::check_call): Adjust.
33679 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33680 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33681 check_bounds_or_overlap's return value.
33682 (handle_builtin_stxncpy): Same.
33683 (handle_builtin_strcat): Same.
33684
33685 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33686 Kwok Cheung Yeung <kcy@codesourcery.com>
33687 Julian Brown <julian@codesourcery.com>
33688 Tom de Vries <tom@codesourcery.com>
33689
33690 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33691
33692 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33693
33694 * doc/sourcebuild.texi: Document dg-require-effective-target
33695 llvm_binutils and offload_gcn.
33696
33697 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33698 Kwok Cheung Yeung <kcy@codesourcery.com>
33699 Julian Brown <julian@codesourcery.com>
33700 Tom de Vries <tom@codesourcery.com>
33701
33702 * doc/sourcebuild.texi: Document dg-required-effective-target
33703 exceptions.
33704
33705 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33706 Kwok Cheung Yeung <kcy@codesourcery.com>
33707 Julian Brown <julian@codesourcery.com>
33708 Tom de Vries <tom@codesourcery.com>
33709 Jan Hubicka <hubicka@ucw.cz>
33710 Martin Jambor <mjambor@suse.cz>
33711
33712 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33713 * configure.ac: Check for dlopen.
33714 * configure: Regenerate.
33715
33716 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33717 Kwok Cheung Yeung <kcy@codesourcery.com>
33718 Julian Brown <julian@codesourcery.com>
33719 Tom de Vries <tom@codesourcery.com>
33720 Jan Hubicka <hubicka@ucw.cz>
33721 Martin Jambor <mjambor@suse.cz>
33722
33723 * common/config/gcn/gcn-common.c: New file.
33724 * config/gcn/driver-gcn.c: New file.
33725 * config/gcn/gcn-builtins.def: New file.
33726 * config/gcn/gcn-hsa.h: New file.
33727 * config/gcn/gcn-modes.def: New file.
33728 * config/gcn/gcn-opts.h: New file.
33729 * config/gcn/gcn-passes.def: New file.
33730 * config/gcn/gcn-protos.h: New file.
33731 * config/gcn/gcn-run.c: New file.
33732 * config/gcn/gcn-tree.c: New file.
33733 * config/gcn/gcn.c: New file.
33734 * config/gcn/gcn.h: New file.
33735 * config/gcn/gcn.opt: New file.
33736 * config/gcn/t-gcn-hsa: New file.
33737
33738 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33739 Kwok Cheung Yeung <kcy@codesourcery.com>
33740 Julian Brown <julian@codesourcery.com>
33741 Tom de Vries <tom@codesourcery.com>
33742 Jan Hubicka <hubicka@ucw.cz>
33743 Martin Jambor <mjambor@suse.cz>
33744
33745 * config/gcn/constraints.md: New file.
33746 * config/gcn/gcn-valu.md: New file.
33747 * config/gcn/gcn.md: New file.
33748 * config/gcn/predicates.md: New file.
33749
33750 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33751
33752 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33753 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33754 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33755 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33756
33757 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33758
33759 PR target/88851
33760 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33761 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33762 it and document registers.
33763
33764 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33765
33766 * config/aarch64/aarch64.c (ares_tunings): Define.
33767 * config/aarch64/aarch64-cores.def (ares): Use the above.
33768
33769 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33770
33771 PR target/88794
33772 Revert:
33773 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33774
33775 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33776 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33777 (_mm512_maskz_fixupimm_round_pd): Ditto.
33778 (_mm512_fixupimm_round_ps): Ditto.
33779 (_mm512_maskz_fixupimm_round_ps): Ditto.
33780 (_mm_fixupimm_round_sd): Ditto.
33781 (_mm_maskz_fixupimm_round_sd): Ditto.
33782 (_mm_fixupimm_round_ss): Ditto.
33783 (_mm_maskz_fixupimm_round_ss): Ditto.
33784 (_mm512_fixupimm_pd): Ditto.
33785 (_mm512_maskz_fixupimm_pd): Ditto.
33786 (_mm512_fixupimm_ps): Ditto.
33787 (_mm512_maskz_fixupimm_ps): Ditto.
33788 (_mm_fixupimm_sd): Ditto.
33789 (_mm_maskz_fixupimm_sd): Ditto.
33790 (_mm_fixupimm_ss): Ditto.
33791 (_mm_maskz_fixupimm_ss): Ditto.
33792 (_mm512_mask_fixupimm_round_pd): Update builtin.
33793 (_mm512_mask_fixupimm_round_ps): Ditto.
33794 (_mm_mask_fixupimm_round_sd): Ditto.
33795 (_mm_mask_fixupimm_round_ss): Ditto.
33796 (_mm512_mask_fixupimm_pd): Ditto.
33797 (_mm512_mask_fixupimm_ps): Ditto.
33798 (_mm_mask_fixupimm_sd): Ditto.
33799 (_mm_mask_fixupimm_ss): Ditto.
33800 * config/i386/avx512vlintrin.h:
33801 (_mm256_fixupimm_pd): Update parameters and builtin.
33802 (_mm256_maskz_fixupimm_pd): Ditto.
33803 (_mm256_fixupimm_ps): Ditto.
33804 (_mm256_maskz_fixupimm_ps): Ditto.
33805 (_mm_fixupimm_pd): Ditto.
33806 (_mm_maskz_fixupimm_pd): Ditto.
33807 (_mm_fixupimm_ps): Ditto.
33808 (_mm_maskz_fixupimm_ps): Ditto.
33809 (_mm256_mask_fixupimm_pd): Update builtin.
33810 (_mm256_mask_fixupimm_ps): Ditto.
33811 (_mm_mask_fixupimm_pd): Ditto.
33812 (_mm_mask_fixupimm_ps): Ditto.
33813 * config/i386/i386-builtin-types.def: Add new types and remove
33814 useless ones.
33815 * config/i386/i386-builtin.def: Update builtin definitions.
33816 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33817 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33818 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33819 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33820 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33821 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33822 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33823 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33824 * config/i386/subst.md:
33825 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33826 (round_saeonly_sd_mask_op4): Ditto.
33827 (round_saeonly_expand_operand5): Ditto.
33828 (round_saeonly_expand): Update.
33829
33830 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33831
33832 PR target/88794
33833 Revert:
33834 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33835
33836 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33837 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33838 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33839 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33840 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33841 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33842 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33843
33844 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33845
33846 PR target/88794
33847 Revert:
33848 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33849
33850 PR target/88489
33851 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33852 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33853 instead of UNSPEC_FIXUPIMM.
33854
33855 2019-01-17 Richard Biener <rguenther@suse.de>
33856
33857 PR lto/86736
33858 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33859 and friends for the LTO part of debug info.
33860
33861 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33862
33863 PR tree-optimization/86214
33864 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33865 if x == y.
33866
33867 PR rtl-optimization/88870
33868 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33869 throw if we can't alter the cfg or delete dead exceptions.
33870 (mark_insn): Don't call find_call_stack_args for such calls.
33871
33872 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33873
33874 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33875 prototypes for vec_st.
33876 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33877 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33878 mainly on signed/unsigned long long and double.
33879
33880 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33881
33882 PR target/88861
33883 * combine.c (delete_noop_moves): Convert to "bool" return,
33884 returning true if any edges are eliminated.
33885 (combine_instructions): Also return true if delete_noop_moves
33886 returns true.
33887
33888 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33889
33890 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33891 correct max nunits for endian swap.
33892 (aarch64_expand_fcmla_builtin): Correct subreg code.
33893 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33894 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33895 lane endianness.
33896
33897 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33898
33899 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33900 Handle split indirect COMPLEX_TYPE arguments.
33901
33902 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33903
33904 PR target/86891
33905 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33906 bit is set by add and compare.
33907 (CC_ADC): New CC_MODE.
33908 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33909 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33910 comparison. Add detection for CC_ADCmode.
33911 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33912 CC_ADCmode.
33913 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33914 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33915 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33916 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33917 to eliminate the need for zero-extending the operands.
33918 (add<mode>3_compareC_imm): Delete. Merge into ...
33919 (add<mode>3_compareC): ... this. Restructure the comparison to
33920 eliminate the need for zero-extending the operands.
33921 (add<mode>3_carryin): Use LTU for the overflow detection.
33922 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33923 Reexpress comparison for overflow.
33924 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33925 (add<mode>3_carryinC): Likewise.
33926 (add<mode>3_carryinV): Use LTU for carry between partials.
33927 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33928 handling of CC_Cmode and add CC_ADCmode.
33929 (aarch64_borrow_operation): Likewise.
33930
33931 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33932
33933 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33934 Remove patternmode.
33935 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33936 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33937 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33938 Remove endianness conversion.
33939
33940 2019-01-16 Martin Liska <mliska@suse.cz>
33941
33942 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33943 for GCC driver.
33944 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33945 a new argument.
33946 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33947 (path_prefix_reset): Move up in the source file.
33948 (find_fortran_preinclude_file): Make complex search for the
33949 fortran header files.
33950
33951 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33952
33953 * godump.c (go_output_typedef): When outputting a typedef, refer
33954 to the underlying type by its name and not its structure.
33955
33956 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33957
33958 PR c++/88795
33959 * tree.c (build_function_type): Assert that arg_types is not
33960 error_mark_node.
33961
33962 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33963
33964 PR inline-asm/52813
33965 * doc/extend.texi: Document that listing the stack pointer in the
33966 clobber list of an asm is a deprecated feature.
33967 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33968 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33969 warning instead of an error for clobbers of the stack pointer.
33970 Add a note explaining why.
33971
33972 2019-01-15 Richard Biener <rguenther@suse.de>
33973
33974 PR debug/88046
33975 * dwarf2out.c (gen_member_die): Do not generate inheritance
33976 DIEs late.
33977
33978 2019-01-15 Richard Biener <rguenther@suse.de>
33979
33980 PR tree-optimization/88855
33981 * tree-if-conv.c (combine_blocks): Collect
33982 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33983
33984 2019-01-15 Tom de Vries <tdevries@suse.de>
33985
33986 PR target/80547
33987 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33988 lhs == NULL_TREE for gang-level reduction.
33989
33990 2019-01-15 Richard Biener <rguenther@suse.de>
33991 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33992
33993 PR ipa/88788
33994 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33995 return true if SSA_NAME is already marked in visited bitmap.
33996 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33997
33998 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33999
34000 PR tree-optimization/88775
34001 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34002 equal == 0 equality pointer comparisons some more if compared in
34003 integral types and either one points to an automatic var and the
34004 other to a global, or we can prove at least one points to the middle
34005 or both point to start or both point to end.
34006
34007 2019-01-14 Andi Kleen <ak@linux.intel.com>
34008
34009 * Makefile.in: Lower autofdo sampling rate by 10x.
34010 * Makefile.tpl: Dito.
34011
34012 2019-01-14 Tom Honermann <tom@honermann.net>
34013
34014 * defaults.h: Define CHAR8_TYPE.
34015
34016 2019-01-14 Martin Sebor <msebor@redhat.com>
34017
34018 PR target/88638
34019 * doc/extend.texi (Darwin Format Checks): Clarify.
34020
34021 2019-01-14 Richard Biener <rguenther@suse.de>
34022
34023 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34024 whether we are in (simplify ...) or (match ...) context.
34025
34026 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34027
34028 PR rtl-optimization/88796
34029 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34030 * cfgexpand.c (stack_protect_prologue): Initialize
34031 crtl->stack_protect_guard_decl.
34032 * function.c (stack_protect_epilogue): Use it instead of calling
34033 targetm.stack_protect_guard again.
34034 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34035 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34036 crtl->stack_protect_guard_decl.
34037 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34038 on the returned MEM_EXPR.
34039
34040 2019-01-12 Tom de Vries <tdevries@suse.de>
34041
34042 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34043 vector length using -fopenacc-dim.
34044
34045 2019-01-12 Tom de Vries <tdevries@suse.de>
34046
34047 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34048 lengths into account.
34049
34050 2019-01-12 Svante Signell <svante.signell@gmail.com>
34051
34052 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34053 (TARGET_CAN_SPLIT_STACK): Define.
34054 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34055
34056 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34057
34058 * params.def (inline-unit-growth): Set to 40.
34059
34060 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34061
34062 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34063
34064 2019-01-12 Tom de Vries <tdevries@suse.de>
34065
34066 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34067 region calling vector-partitionable routine, set default_vector_length
34068 to WARP_SIZE.
34069
34070 2019-01-12 Tom de Vries <tdevries@suse.de>
34071
34072 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34073 variable default_vector_length.
34074
34075 2019-01-12 Tom de Vries <tdevries@suse.de>
34076
34077 PR middle-end/88703
34078 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34079 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34080 dimensions limits.
34081
34082 2019-01-12 Tom de Vries <tdevries@suse.de>
34083
34084 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34085 (nvptx_goacc_validate_dims): Add used parameter.
34086 * doc/tm.texi: Regenerate.
34087 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34088 argument to call to targetm.goacc.validate_dims.
34089 (default_goacc_validate_dims): Add used
34090 parameter.
34091 * target.def (validate_dims): Add used parameter in DEFHOOK.
34092 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34093
34094 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34095
34096 PR middle-end/85956
34097 PR lto/88733
34098 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34099 field.
34100 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34101 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34102 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34103 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34104
34105 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34106
34107 PR rtl-optimization/87305
34108 * lra-assigns.c
34109 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34110 for little endian pseudos used as paradoxical subreg.
34111
34112 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34113
34114 PR tree-optimization/88693
34115 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34116 for STRING_CSTs that don't contain any NUL characters in the first
34117 TREE_STRING_LENGTH bytes.
34118
34119 2019-01-11 Alan Modra <amodra@gmail.com>
34120
34121 PR 88777
34122 PR 88614
34123 * genattrtab.c (min_fn): Don't translate values.
34124 (min_attr_value): Return INT_MAX when the value can't be calculated.
34125 Return minimum among any values that can be calculated.
34126 (max_attr_value): Adjust.
34127
34128 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34129
34130 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34131
34132 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34133
34134 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34135 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34136 (aarch64_return_call_with_max_clobbers): New function.
34137 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34138 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34139 argument.
34140 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34141 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34142 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34143 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34144 * cselib.c (cselib_process_insn): Add argument to
34145 targetm.hard_regno_call_part_clobbered call.
34146 * ira-conflicts.c (ira_build_conflicts): Ditto.
34147 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34148 * lra-constraints.c (inherit_reload_reg): Ditto.
34149 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34150 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34151 argument. Call targetm.return_call_with_max_clobbers.
34152 Add argument to targetm.hard_regno_call_part_clobbered call.
34153 (calls_have_same_clobbers_p): New function.
34154 (process_bb_lives): Add call_insn and last_call_insn variables.
34155 Pass call_insn to check_pseudos_live_through_calls.
34156 Modify if stmt to check targetm.return_call_with_max_clobbers.
34157 Update setting of flush variable.
34158 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34159 to false.
34160 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34161 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34162 targetm.hard_regno_call_part_clobbered call.
34163 * reginfo.c (choose_hard_reg_mode): Ditto.
34164 * regrename.c (check_new_reg_p): Ditto.
34165 * reload.c (find_equiv_reg): Ditto.
34166 * reload1.c (emit_reload_insns): Ditto.
34167 * sched-deps.c (deps_analyze_insn): Ditto.
34168 * sel-sched.c (init_regs_for_mode): Ditto.
34169 (mark_unavailable_hard_regs): Ditto.
34170 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34171 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34172 (return_call_with_max_clobbers): New target function.
34173 * doc/tm.texi: Regenerate.
34174 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34175 * hooks.c (hook_bool_uint_mode_false): Change to
34176 hook_bool_insn_uint_mode_false.
34177 * hooks.h (hook_bool_uint_mode_false): Ditto.
34178
34179 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34180
34181 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34182 (aarch64_remove_extra_call_preserved_regs): New function.
34183 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34184 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34185 * doc/tm.texi: Regenerate.
34186 * final.c (get_call_reg_set_usage): Call new hook.
34187 * target.def (remove_extra_call_preserved_regs): New hook.
34188 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34189 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34190
34191 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34192
34193 PR bootstrap/88714
34194 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34195 inside of pass_combine_1 dump rather than pass_profile_1.
34196
34197 2019-01-11 Tom de Vries <tdevries@suse.de>
34198
34199 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34200 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34201 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34202 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34203 num_workers 16.
34204
34205 2019-01-11 Tom de Vries <tdevries@suse.de>
34206
34207 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34208
34209 2019-01-11 Jan Beulich <jbeulich@suse.com>
34210
34211 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34212 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34213 sse2_cvtsi2sd): Add {l}.
34214 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34215 syntax.
34216
34217 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34218
34219 PR target/88785
34220 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34221 define_expand.
34222 (*float<floatunssuffix>v2div2sf2): New define_insn.
34223 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34224 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34225 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34226 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34227 match_operands with "const0_operand" "C".
34228
34229 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34230
34231 * config/aarch64/aarch64-builtins.c
34232 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34233 (aarch64_init_simd_builtins): ...Here
34234
34235 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34236
34237 PR rtl-optimization/87305
34238 * lra-assigns.c
34239 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34240 allocation for big endian pseudos used as paradoxical subregs and
34241 spill them if it is wrong.
34242 * lra-constraints.c (lra_constraints): Add a comment.
34243
34244 2019-01-10 Richard Biener <rguenther@suse.de>
34245
34246 PR tree-optimization/88792
34247 * tree-ssa-pre.c (get_representative_for): Do not return a
34248 value-number here.
34249
34250 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34251
34252 PR middle-end/84877
34253 PR bootstrap/88450
34254 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34255 (assign_parm_setup_block): Do the argument slot realignment here
34256 instead.
34257
34258 2019-01-10 Stefan Agner <stefan@agner.ch>
34259
34260 PR target/88648
34261 * config/arm/arm.c (arm_option_override_internal): Force
34262 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34263
34264 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34265
34266 PR c/88568
34267 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34268 DECL_EXTERNAL.
34269
34270 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34271
34272 * config/arm/arm-builtins.c
34273 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34274 (MAC_LANE_PAIR_QUALIFIERS): New.
34275 (arm_expand_builtin_args): Use it.
34276 (arm_expand_builtin_1): Likewise.
34277 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34278 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34279 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34280 * config/arm/arm_neon.h:
34281 (vcadd_rot90_f16): New.
34282 (vcaddq_rot90_f16): New.
34283 (vcadd_rot270_f16): New.
34284 (vcaddq_rot270_f16): New.
34285 (vcmla_f16): New.
34286 (vcmlaq_f16): New.
34287 (vcmla_lane_f16): New.
34288 (vcmla_laneq_f16): New.
34289 (vcmlaq_lane_f16): New.
34290 (vcmlaq_laneq_f16): New.
34291 (vcmla_rot90_f16): New.
34292 (vcmlaq_rot90_f16): New.
34293 (vcmla_rot90_lane_f16): New.
34294 (vcmla_rot90_laneq_f16): New.
34295 (vcmlaq_rot90_lane_f16): New.
34296 (vcmlaq_rot90_laneq_f16): New.
34297 (vcmla_rot180_f16): New.
34298 (vcmlaq_rot180_f16): New.
34299 (vcmla_rot180_lane_f16): New.
34300 (vcmla_rot180_laneq_f16): New.
34301 (vcmlaq_rot180_lane_f16): New.
34302 (vcmlaq_rot180_laneq_f16): New.
34303 (vcmla_rot270_f16): New.
34304 (vcmlaq_rot270_f16): New.
34305 (vcmla_rot270_lane_f16): New.
34306 (vcmla_rot270_laneq_f16): New.
34307 (vcmlaq_rot270_lane_f16): New.
34308 (vcmlaq_rot270_laneq_f16): New.
34309 (vcadd_rot90_f32): New.
34310 (vcaddq_rot90_f32): New.
34311 (vcadd_rot270_f32): New.
34312 (vcaddq_rot270_f32): New.
34313 (vcmla_f32): New.
34314 (vcmlaq_f32): New.
34315 (vcmla_lane_f32): New.
34316 (vcmla_laneq_f32): New.
34317 (vcmlaq_lane_f32): New.
34318 (vcmlaq_laneq_f32): New.
34319 (vcmla_rot90_f32): New.
34320 (vcmlaq_rot90_f32): New.
34321 (vcmla_rot90_lane_f32): New.
34322 (vcmla_rot90_laneq_f32): New.
34323 (vcmlaq_rot90_lane_f32): New.
34324 (vcmlaq_rot90_laneq_f32): New.
34325 (vcmla_rot180_f32): New.
34326 (vcmlaq_rot180_f32): New.
34327 (vcmla_rot180_lane_f32): New.
34328 (vcmla_rot180_laneq_f32): New.
34329 (vcmlaq_rot180_lane_f32): New.
34330 (vcmlaq_rot180_laneq_f32): New.
34331 (vcmla_rot270_f32): New.
34332 (vcmlaq_rot270_f32): New.
34333 (vcmla_rot270_lane_f32): New.
34334 (vcmla_rot270_laneq_f32): New.
34335 (vcmlaq_rot270_lane_f32): New.
34336 (vcmlaq_rot270_laneq_f32): New.
34337 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34338 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34339 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34340 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34341 vcmlaq_lane270): New.
34342 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34343 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34344 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34345 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34346 (arm_option_reconfigure_globals): Use them.
34347 * config/arm/iterators.md (VDF, VQ_HSF): New.
34348 (VCADD, VCMLA): New.
34349 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34350 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34351 New.
34352 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34353 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34354
34355 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34356
34357 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34358 Add qualifier_lane_pair_index.
34359 (emit-rtl.h): Include.
34360 (TYPES_QUADOP_LANE_PAIR): New.
34361 (aarch64_simd_expand_args): Use it.
34362 (aarch64_simd_expand_builtin): Likewise.
34363 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34364 New.
34365 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34366 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34367 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34368 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34369 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34370 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34371 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34372 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34373 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34374 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34375 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34376 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34377 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34378 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34379 Add __ARM_FEATURE_COMPLEX.
34380 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34381 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34382 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34383 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34384 fcmlaq_lane270): New.
34385 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34386 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34387 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34388 * config/aarch64/arm_neon.h:
34389 (vcadd_rot90_f16): New.
34390 (vcaddq_rot90_f16): New.
34391 (vcadd_rot270_f16): New.
34392 (vcaddq_rot270_f16): New.
34393 (vcmla_f16): New.
34394 (vcmlaq_f16): New.
34395 (vcmla_lane_f16): New.
34396 (vcmla_laneq_f16): New.
34397 (vcmlaq_lane_f16): New.
34398 (vcmlaq_rot90_lane_f16): New.
34399 (vcmla_rot90_laneq_f16): New.
34400 (vcmla_rot90_lane_f16): New.
34401 (vcmlaq_rot90_f16): New.
34402 (vcmla_rot90_f16): New.
34403 (vcmlaq_laneq_f16): New.
34404 (vcmla_rot180_laneq_f16): New.
34405 (vcmla_rot180_lane_f16): New.
34406 (vcmlaq_rot180_f16): New.
34407 (vcmla_rot180_f16): New.
34408 (vcmlaq_rot90_laneq_f16): New.
34409 (vcmlaq_rot270_laneq_f16): New.
34410 (vcmlaq_rot270_lane_f16): New.
34411 (vcmla_rot270_laneq_f16): New.
34412 (vcmlaq_rot270_f16): New.
34413 (vcmla_rot270_f16): New.
34414 (vcmlaq_rot180_laneq_f16): New.
34415 (vcmlaq_rot180_lane_f16): New.
34416 (vcmla_rot270_lane_f16): New.
34417 (vcadd_rot90_f32): New.
34418 (vcaddq_rot90_f32): New.
34419 (vcaddq_rot90_f64): New.
34420 (vcadd_rot270_f32): New.
34421 (vcaddq_rot270_f32): New.
34422 (vcaddq_rot270_f64): New.
34423 (vcmla_f32): New.
34424 (vcmlaq_f32): New.
34425 (vcmlaq_f64): New.
34426 (vcmla_lane_f32): New.
34427 (vcmla_laneq_f32): New.
34428 (vcmlaq_lane_f32): New.
34429 (vcmlaq_laneq_f32): New.
34430 (vcmla_rot90_f32): New.
34431 (vcmlaq_rot90_f32): New.
34432 (vcmlaq_rot90_f64): New.
34433 (vcmla_rot90_lane_f32): New.
34434 (vcmla_rot90_laneq_f32): New.
34435 (vcmlaq_rot90_lane_f32): New.
34436 (vcmlaq_rot90_laneq_f32): New.
34437 (vcmla_rot180_f32): New.
34438 (vcmlaq_rot180_f32): New.
34439 (vcmlaq_rot180_f64): New.
34440 (vcmla_rot180_lane_f32): New.
34441 (vcmla_rot180_laneq_f32): New.
34442 (vcmlaq_rot180_lane_f32): New.
34443 (vcmlaq_rot180_laneq_f32): New.
34444 (vcmla_rot270_f32): New.
34445 (vcmlaq_rot270_f32): New.
34446 (vcmlaq_rot270_f64): New.
34447 (vcmla_rot270_lane_f32): New.
34448 (vcmla_rot270_laneq_f32): New.
34449 (vcmlaq_rot270_lane_f32): New.
34450 (vcmlaq_rot270_laneq_f32): New.
34451 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34452 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34453 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34454 (FCADD, FCMLA): New.
34455 (rot): New.
34456 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34457
34458 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34459
34460 PR other/16615
34461
34462 * config/pa/pa.c: Change "can not" to "cannot".
34463 * gimple-ssa-evrp-analyze.c: Likewise.
34464 * ipa-icf.c: Likewise.
34465 * ipa-polymorphic-call.c: Likewise.
34466 * ipa-pure-const.c: Likewise.
34467 * lra-constraints.c: Likewise.
34468 * lra-remat.c: Likewise.
34469 * reload1.c: Likewise.
34470 * reorg.c: Likewise.
34471 * tree-ssa-uninit.c: Likewise.
34472
34473 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34474
34475 PR other/16615
34476
34477 * Makefile.in: Mechanically replace "can not" with "cannot".
34478 * alias.c: Likewise.
34479 * builtins.c: Likewise.
34480 * calls.c: Likewise.
34481 * cgraph.c: Likewise.
34482 * cgraph.h: Likewise.
34483 * cgraphclones.c: Likewise.
34484 * cgraphunit.c: Likewise.
34485 * combine-stack-adj.c: Likewise.
34486 * combine.c: Likewise.
34487 * common/config/i386/i386-common.c: Likewise.
34488 * config/aarch64/aarch64.c: Likewise.
34489 * config/alpha/sync.md: Likewise.
34490 * config/arc/arc.c: Likewise.
34491 * config/arc/predicates.md: Likewise.
34492 * config/arm/arm-c.c: Likewise.
34493 * config/arm/arm.c: Likewise.
34494 * config/arm/arm.h: Likewise.
34495 * config/arm/arm.md: Likewise.
34496 * config/arm/cortex-r4f.md: Likewise.
34497 * config/csky/csky.c: Likewise.
34498 * config/csky/csky.h: Likewise.
34499 * config/darwin-f.c: Likewise.
34500 * config/epiphany/epiphany.md: Likewise.
34501 * config/i386/i386.c: Likewise.
34502 * config/i386/sol2.h: Likewise.
34503 * config/m68k/m68k.c: Likewise.
34504 * config/mcore/mcore.h: Likewise.
34505 * config/microblaze/microblaze.md: Likewise.
34506 * config/mips/20kc.md: Likewise.
34507 * config/mips/sb1.md: Likewise.
34508 * config/nds32/nds32.c: Likewise.
34509 * config/nds32/predicates.md: Likewise.
34510 * config/pa/pa.c: Likewise.
34511 * config/rs6000/e300c2c3.md: Likewise.
34512 * config/rs6000/rs6000.c: Likewise.
34513 * config/s390/s390.h: Likewise.
34514 * config/sh/sh.c: Likewise.
34515 * config/sh/sh.md: Likewise.
34516 * config/spu/vmx2spu.h: Likewise.
34517 * cprop.c: Likewise.
34518 * dbxout.c: Likewise.
34519 * df-scan.c: Likewise.
34520 * doc/cfg.texi: Likewise.
34521 * doc/extend.texi: Likewise.
34522 * doc/fragments.texi: Likewise.
34523 * doc/gty.texi: Likewise.
34524 * doc/invoke.texi: Likewise.
34525 * doc/lto.texi: Likewise.
34526 * doc/md.texi: Likewise.
34527 * doc/objc.texi: Likewise.
34528 * doc/rtl.texi: Likewise.
34529 * doc/tm.texi: Likewise.
34530 * dse.c: Likewise.
34531 * emit-rtl.c: Likewise.
34532 * emit-rtl.h: Likewise.
34533 * except.c: Likewise.
34534 * expmed.c: Likewise.
34535 * expr.c: Likewise.
34536 * fold-const.c: Likewise.
34537 * genautomata.c: Likewise.
34538 * gimple-fold.c: Likewise.
34539 * hard-reg-set.h: Likewise.
34540 * ifcvt.c: Likewise.
34541 * ipa-comdats.c: Likewise.
34542 * ipa-cp.c: Likewise.
34543 * ipa-devirt.c: Likewise.
34544 * ipa-fnsummary.c: Likewise.
34545 * ipa-icf.c: Likewise.
34546 * ipa-inline-transform.c: Likewise.
34547 * ipa-inline.c: Likewise.
34548 * ipa-polymorphic-call.c: Likewise.
34549 * ipa-profile.c: Likewise.
34550 * ipa-prop.c: Likewise.
34551 * ipa-pure-const.c: Likewise.
34552 * ipa-reference.c: Likewise.
34553 * ipa-split.c: Likewise.
34554 * ipa-visibility.c: Likewise.
34555 * ipa.c: Likewise.
34556 * ira-build.c: Likewise.
34557 * ira-color.c: Likewise.
34558 * ira-conflicts.c: Likewise.
34559 * ira-costs.c: Likewise.
34560 * ira-int.h: Likewise.
34561 * ira-lives.c: Likewise.
34562 * ira.c: Likewise.
34563 * ira.h: Likewise.
34564 * loop-invariant.c: Likewise.
34565 * loop-unroll.c: Likewise.
34566 * lower-subreg.c: Likewise.
34567 * lra-assigns.c: Likewise.
34568 * lra-constraints.c: Likewise.
34569 * lra-eliminations.c: Likewise.
34570 * lra-lives.c: Likewise.
34571 * lra-remat.c: Likewise.
34572 * lra-spills.c: Likewise.
34573 * lra.c: Likewise.
34574 * lto-cgraph.c: Likewise.
34575 * lto-streamer-out.c: Likewise.
34576 * postreload-gcse.c: Likewise.
34577 * predict.c: Likewise.
34578 * profile-count.h: Likewise.
34579 * profile.c: Likewise.
34580 * recog.c: Likewise.
34581 * ree.c: Likewise.
34582 * reload.c: Likewise.
34583 * reload1.c: Likewise.
34584 * reorg.c: Likewise.
34585 * resource.c: Likewise.
34586 * rtl.def: Likewise.
34587 * rtl.h: Likewise.
34588 * rtlanal.c: Likewise.
34589 * sched-deps.c: Likewise.
34590 * sched-ebb.c: Likewise.
34591 * sched-rgn.c: Likewise.
34592 * sel-sched-ir.c: Likewise.
34593 * sel-sched.c: Likewise.
34594 * shrink-wrap.c: Likewise.
34595 * simplify-rtx.c: Likewise.
34596 * symtab.c: Likewise.
34597 * target.def: Likewise.
34598 * toplev.c: Likewise.
34599 * tree-call-cdce.c: Likewise.
34600 * tree-cfg.c: Likewise.
34601 * tree-complex.c: Likewise.
34602 * tree-core.h: Likewise.
34603 * tree-eh.c: Likewise.
34604 * tree-inline.c: Likewise.
34605 * tree-loop-distribution.c: Likewise.
34606 * tree-nrv.c: Likewise.
34607 * tree-profile.c: Likewise.
34608 * tree-sra.c: Likewise.
34609 * tree-ssa-alias.c: Likewise.
34610 * tree-ssa-dce.c: Likewise.
34611 * tree-ssa-dom.c: Likewise.
34612 * tree-ssa-forwprop.c: Likewise.
34613 * tree-ssa-loop-im.c: Likewise.
34614 * tree-ssa-loop-ivcanon.c: Likewise.
34615 * tree-ssa-loop-ivopts.c: Likewise.
34616 * tree-ssa-loop-niter.c: Likewise.
34617 * tree-ssa-phionlycprop.c: Likewise.
34618 * tree-ssa-phiopt.c: Likewise.
34619 * tree-ssa-propagate.c: Likewise.
34620 * tree-ssa-threadedge.c: Likewise.
34621 * tree-ssa-threadupdate.c: Likewise.
34622 * tree-ssa-uninit.c: Likewise.
34623 * tree-ssanames.c: Likewise.
34624 * tree-streamer-out.c: Likewise.
34625 * tree.c: Likewise.
34626 * tree.h: Likewise.
34627 * vr-values.c: Likewise.
34628
34629 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34630
34631 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34632 (ix86_split_xorsign): Ditto.
34633 * config/i386/i386.c (ix86_expand_xorsign): New function.
34634 (ix86_split_xorsign): Ditto.
34635 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34636 (xorsign<mode>3): New expander.
34637 (xorsign<mode>3_1): New insn_and_split pattern.
34638 * config/i386/sse.md (xorsign<mode>3): New expander.
34639
34640 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34641
34642 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34643 (*tablejump_sp64): Likewise.
34644 (*tablejump<P:mode>): ...this.
34645 (*call_address_sp32): Merge into...
34646 (*call_address_sp64): Likewise.
34647 (*call_address<P:mode>): ...this.
34648 (*call_symbolic_sp32): Merge into...
34649 (*call_symbolic_sp64): Likewise.
34650 (*call_symbolic<P:mode>): ...this.
34651 (call_value): Remove constraint and add predicate.
34652 (*call_value_address_sp32): Merge into...
34653 (*call_value_address_sp64): Likewise.
34654 (*call_value_address<P:mode>): ...this.
34655 (*call_value_symbolic_sp32): Merge into...
34656 (*call_value_symbolic_sp64): Likewise.
34657 (*call_value_symbolic<P:mode>): ...this.
34658 (*sibcall_symbolic_sp32): Merge into...
34659 (*sibcall_symbolic_sp64): Likewise.
34660 (*sibcall_symbolic<P:mode>): ...this.
34661 (sibcall_value): Remove constraint and add predicate.
34662 (*sibcall_value_symbolic_sp32): Merge into...
34663 (*sibcall_value_symbolic_sp64): Likewise.
34664 (*sibcall_value_symbolic<P:mode>): ...this.
34665 (window_save): Minor tweak.
34666 (*branch_sp32): Merge into...
34667 (*branch_sp64): Likewise.
34668 (*branch<P:mode>): ...this.
34669
34670 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34671 James Clarke <jrtc27@jrtc27.com>
34672
34673 PR target/84010
34674 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34675 consistently in TLS address generation and adjust code to the renaming
34676 of patterns. Mark calls to __tls_get_addr as const.
34677 * config/sparc/sparc.md (tgd_hi22): Turn into...
34678 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34679 (tgd_lo10): Turn into...
34680 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34681 (tgd_add32): Merge into...
34682 (tgd_add64): Likewise.
34683 (tgd_add<P:mode>): ...this and use Pmode throughout.
34684 (tldm_hi22): Turn into...
34685 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34686 (tldm_lo10): Turn into...
34687 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34688 (tldm_add32): Merge into...
34689 (tldm_add64): Likewise.
34690 (tldm_add<P:mode>): ...this and use Pmode throughout.
34691 (tldm_call32): Merge into...
34692 (tldm_call64): Likewise.
34693 (tldm_call<P:mode>): ...this and use Pmode throughout.
34694 (tldo_hix22): Turn into...
34695 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34696 (tldo_lox10): Turn into...
34697 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34698 (tldo_add32): Merge into...
34699 (tldo_add64): Likewise.
34700 (tldo_add<P:mode>): ...this and use Pmode throughout.
34701 (tie_hi22): Turn into...
34702 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34703 (tie_lo10): Turn into...
34704 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34705 (tie_ld64): Use DImode throughout.
34706 (tie_add32): Merge into...
34707 (tie_add64): Likewise.
34708 (tie_add<P:mode>): ...this and use Pmode throughout.
34709 (tle_hix22_sp32): Merge into...
34710 (tle_hix22_sp64): Likewise.
34711 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34712 (tle_lox22_sp32): Merge into...
34713 (tle_lox22_sp64): Likewise.
34714 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34715 (*tldo_ldub_sp32): Merge into...
34716 (*tldo_ldub_sp64): Likewise.
34717 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34718 (*tldo_ldub1_sp32): Merge into...
34719 (*tldo_ldub1_sp64): Likewise.
34720 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34721 (*tldo_ldub2_sp32): Merge into...
34722 (*tldo_ldub2_sp64): Likewise.
34723 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34724 (*tldo_ldsb1_sp32): Merge into...
34725 (*tldo_ldsb1_sp64): Likewise.
34726 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34727 (*tldo_ldsb2_sp32): Merge into...
34728 (*tldo_ldsb2_sp64): Likewise.
34729 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34730 (*tldo_ldub3_sp64): Use DImode throughout.
34731 (*tldo_ldsb3_sp64): Likewise.
34732 (*tldo_lduh_sp32): Merge into...
34733 (*tldo_lduh_sp64): Likewise.
34734 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34735 (*tldo_lduh1_sp32): Merge into...
34736 (*tldo_lduh1_sp64): Likewise.
34737 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34738 (*tldo_ldsh1_sp32): Merge into...
34739 (*tldo_ldsh1_sp64): Likewise.
34740 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34741 (*tldo_lduh2_sp64): Use DImode throughout.
34742 (*tldo_ldsh2_sp64): Likewise.
34743 (*tldo_lduw_sp32): Merge into...
34744 (*tldo_lduw_sp64): Likewise.
34745 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34746 (*tldo_lduw1_sp64): Use DImode throughout.
34747 (*tldo_ldsw1_sp64): Likewise.
34748 (*tldo_ldx_sp64): Likewise.
34749 (*tldo_stb_sp32): Merge into...
34750 (*tldo_stb_sp64): Likewise.
34751 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34752 (*tldo_sth_sp32): Merge into...
34753 (*tldo_sth_sp64): Likewise.
34754 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34755 (*tldo_stw_sp32): Merge into...
34756 (*tldo_stw_sp64): Likewise.
34757 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34758 (*tldo_stx_sp64): Use DImode throughout.
34759
34760 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34761
34762 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34763 check configure option to set BTI and Return Address Signing.
34764 * configure.ac: Add --enable-standard-branch-protection and
34765 --disable-standard-branch-protection.
34766 * configure: Regenerated.
34767 * doc/install.texi: Document the same.
34768
34769 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34770 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34771
34772 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34773 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34774 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34775 if bti is enabled.
34776 * config/aarch64/aarch64-bti-insert.c: New file.
34777 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34778 pass.
34779 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34780 new bti pass.
34781 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34782 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34783 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34784 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34785
34786 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34787
34788 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34789 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34790 Disable bti for -mbranch-protection=none.
34791 (aarch64_handle_standard_branch_protection): Enable bti for
34792 -mbranch-protection=standard.
34793 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34794 -mbranch-protection.
34795 (aarch64_bti_enabled): Check if bti is enabled.
34796 * config/aarch64/aarch64.opt: Declare target variable.
34797 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34798
34799 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34800
34801 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34802 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34803 (aarch64_expand_epilogue): Likewise.
34804 (aarch64_output_mi_thunk): Likewise.
34805 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34806 TAILCALL_ADDR_REGS to x16 and x17.
34807 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34808
34809 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34810
34811 * config/aarch64/aarch64-option-extensions.def: Define
34812 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34813 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34814 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34815 (AARCH64_FL_PREDRES): New.
34816 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34817 AARCH64_FL_PREDRES by default.
34818 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34819
34820 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34821
34822 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34823 ARMv8.5-A.
34824 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34825 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34826 * doc/invoke.texi: Document ARMv8.5-A.
34827
34828 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34829
34830 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34831 (xorsign<mode>3): Likewise.
34832
34833 2019-01-09 Jelinek <jakub@redhat.com>
34834
34835 PR middle-end/88758
34836 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34837 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34838
34839 PR rtl-optimization/88331
34840 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34841 not currently_expanding_to_rtl.
34842
34843 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34844
34845 * doc/invoke.texi (-Os): Remove trailing spaces.
34846 (-finline-functions): Remove reference to -O2.
34847
34848 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34849
34850 PR rtl-optimization/79593
34851 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34852
34853 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34854 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34855
34856 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34857
34858 PR bootstrap/88721
34859 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34860 to -1 on entry.
34861
34862 PR debug/88723
34863 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34864 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34865
34866 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34867
34868 PR target/88717
34869 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34870 ix86_avx_u128_mode_entry.
34871
34872 2019-01-08 Martin Liska <mliska@suse.cz>
34873
34874 PR tree-optimization/88753
34875 * tree-switch-conversion.c (switch_conversion::build_one_array):
34876 Come up with local variable constructor. Convert first to
34877 type of constructor values.
34878
34879 2019-01-08 Richard Biener <rguenther@suse.de>
34880
34881 PR tree-optimization/86554
34882 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34883 rpo_avail): Move earlier.
34884 (visit_nary_op): When value-numbering to expressions
34885 with different overflow behavior make sure there's an
34886 available expression on the path.
34887
34888 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34889
34890 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34891 aarch64_parse_branch_protection,
34892 struct aarch64_branch_protect_type,
34893 aarch64_handle_no_branch_protection,
34894 aarch64_handle_standard_branch_protection,
34895 aarch64_validate_mbranch_protection,
34896 aarch64_handle_pac_ret_protection,
34897 aarch64_handle_attr_branch_protection,
34898 accepted_branch_protection_string,
34899 aarch64_pac_ret_subtypes,
34900 aarch64_branch_protect_types,
34901 aarch64_handle_pac_ret_leaf): Define.
34902 (aarch64_override_options_after_change_1, aarch64_override_options):
34903 Add check for accepted_branch_protection_string.
34904 (aarch64_option_save): Save accepted_branch_protection_string.
34905 (aarch64_option_restore): Save accepted_branch_protection_string.
34906 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34907 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34908 msign-return-address.
34909 * doc/invoke.texi: Add mbranch-protection.
34910
34911 2019-01-08 Alan Modra <amodra@gmail.com>
34912
34913 PR target/88614
34914 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34915 Delete "unknownp" parameter. Adjust callers. Handle
34916 CONST_INT, PLUS, MINUS, and MULT.
34917 (attr_value_aligned): Renamed from or_attr_value.
34918 (min_attr_value): Return INT_MIN for unhandled rtl case..
34919 (min_fn): ..and translate to INT_MAX here.
34920 (write_length_unit_log): Modify to cope without "unknown".
34921 (write_attr_value): Handle IF_THEN_ELSE.
34922
34923 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34924
34925 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34926 optimization for masked stores.
34927
34928 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34929
34930 PR middle-end/88567
34931 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34932 output vector directly to duplicate_and_interleave instead of
34933 going through a temporary. Postpone insertion of ctor_seq to
34934 the end of the loop.
34935
34936 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34937
34938 PR target/86891
34939 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34940 unsigned_p. Handle signed and unsigned overflow correction as
34941 required.
34942 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34943 prototype.
34944 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34945 for operand 2.
34946 (add<mode>3_compareV_imm): Make this callable for expanding.
34947 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34948 aarch64_plus_operand for operand 2.
34949 (subv<GPI:mode>_insn): New insn pattern.
34950 (subv<GPI:mode>_imm): Likewise.
34951 (negv<GPI:mode>3): New expand pattern.
34952 (negv<GPI:mode>_insn): New insn pattern.
34953 (negv<GPI:mode>_cmp_only): Likewise.
34954 (cmpv<GPI:mode>_insn): Likewise.
34955 (subvti4): Use register_operand for operand 1. Update call to
34956 aarch64_expand_subvti.
34957 (usubvti4): Likewise.
34958 (negvti3): New expand pattern.
34959 (negdi_carryout): New insn pattern.
34960 (negvdi_carryinV): New insn pattern.
34961 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34962 version the named version.
34963 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34964 operands.
34965 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34966 patterns.
34967 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34968 patterns.
34969 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34970 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34971 (sub<mode>3_carryinCV): Delete.
34972 (sub<GPI:mode>3_carryinV): New expand pattern.
34973 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34974
34975 2019-01-07 Richard Biener <rguenther@suse.de>
34976
34977 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34978 of tree_operand_hash.
34979
34980 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34981
34982 PR tree-optimization/88598
34983 * tree.h (single_nonzero_element): Declare.
34984 * tree.c (single_nonzero_element): New function.
34985 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34986 if I is the only nonzero element of CST.
34987
34988 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34989
34990 PR tree-optimization/88598
34991 * tree.h (initializer_each_zero_or_onep): Declare.
34992 * tree.c (initializer_each_zero_or_onep): New function.
34993 (signed_or_unsigned_type_for): Handle float types too.
34994 (unsigned_type_for, signed_type_for): Update comments accordingly.
34995 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34996 x & { 0 or -1, 0 or -1, ... }.
34997
34998 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34999
35000 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35001 with x86_64-pc-linux-gnu.
35002
35003 2019-01-07 Tom de Vries <tdevries@suse.de>
35004
35005 PR target/85486
35006 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35007 function.
35008 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35009 routines.
35010
35011 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35012
35013 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35014 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35015 TARGET_AVX512F as condition.
35016
35017 PR debug/88723
35018 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35019 const_not_ok_for_debug_p target hook.
35020 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35021 on UNSPEC and subexpressions thereof if all subexpressions of the
35022 UNSPEC are CONSTANT_P.
35023
35024 PR tree-optimization/88676
35025 * tree-ssa-phiopt.c (two_value_replacement): New function.
35026 (tree_ssa_phiopt_worker): Call it.
35027
35028 PR sanitizer/88619
35029 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35030 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35031
35032 PR c++/85052
35033 * tree-vect-generic.c: Include insn-config.h and recog.h.
35034 (expand_vector_piecewise): Add defaulted ret_type argument,
35035 if non-NULL, use that in preference to type for the result type.
35036 (expand_vector_parallel): Formatting fix.
35037 (do_vec_conversion, do_vec_narrowing_conversion,
35038 expand_vector_conversion): New functions.
35039 (expand_vector_operations_1): Call expand_vector_conversion
35040 for VEC_CONVERT ifn calls.
35041 * internal-fn.def (VEC_CONVERT): New internal function.
35042 * internal-fn.c (expand_VEC_CONVERT): New function.
35043 * fold-const-call.c (fold_const_vec_convert): New function.
35044 (fold_const_call): Use it for CFN_VEC_CONVERT.
35045 * doc/extend.texi (__builtin_convertvector): Document.
35046
35047 2019-01-07 Tom de Vries <tdevries@suse.de>
35048
35049 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35050 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35051 vector_red_partition, vector_red_sym): New global variables.
35052 (nvptx_option_override): Initialize vector_red_sym.
35053 (nvptx_declare_function_name): Restore red_partition register.
35054 (nvptx_file_end): Emit code to declare the vector reduction variables.
35055 (nvptx_output_red_partition): New function.
35056 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35057 large vector reductions.
35058 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35059 (nvptx_init_builtins): Add VECTOR_ADDR.
35060 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35061 Handle nvptx_expand_shared_addr.
35062 (nvptx_get_shared_red_addr): Add vector argument and handle large
35063 vectors.
35064 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35065 large vectors.
35066 (nvptx_goacc_reduction_init): Likewise.
35067 (nvptx_goacc_reduction_fini): Likewise.
35068 (nvptx_goacc_reduction_teardown): Likewise.
35069 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35070 init,fini,teardown}.
35071 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35072 (nvptx_set_current_function): Init vector_red_partition.
35073 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35074 (nvptx_red_partition): New insn.
35075 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35076
35077 2019-01-07 Tom de Vries <tdevries@suse.de>
35078
35079 PR target/85381
35080 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35081 empty loops.
35082
35083 2019-01-07 Tom de Vries <tdevries@suse.de>
35084
35085 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35086 (nvptx_option_override): Init oacc_bcast_partition.
35087 (nvptx_init_oacc_workers): New function.
35088 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35089 (nvptx_needs_shared_bcast): New function.
35090 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35091 to propagate state.
35092 (nvptx_shared_propagate): Initialize vector bcast partition and
35093 synchronization state.
35094 (nvptx_single): Generalize to enable vectors to use shared-memory
35095 to propagate state.
35096 (nvptx_process_pars): Likewise.
35097 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35098 * config/nvptx/nvptx.h (struct machine_function): Add
35099 bcast_partition and sync_bar members.
35100
35101 2019-01-07 Tom de Vries <tdevries@suse.de>
35102
35103 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35104 (nvptx_apply_dim_limits): New function.
35105 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35106 PTX_WARP_SIZE.
35107
35108 2019-01-07 Tom de Vries <tdevries@suse.de>
35109
35110 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35111 as late as possible.
35112
35113 2019-01-07 Tom de Vries <tdevries@suse.de>
35114
35115 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35116 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35117 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35118 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35119 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35120
35121 2019-01-07 Tom de Vries <tdevries@suse.de>
35122
35123 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35124
35125 2019-01-07 Tom de Vries <tdevries@suse.de>
35126
35127 * omp-offload.c (oacc_get_min_dim): New function.
35128 * omp-offload.h (oacc_get_min_dim): Declare.
35129
35130 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35131
35132 PR target/88521
35133 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35134 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35135
35136 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35137
35138 PR tree-opt/86020
35139 Revert:
35140 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35141
35142 * ipa-inline.c (edge_badness): Use inlined_time instead of
35143 inline_summaries->get.
35144
35145 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35146
35147 * opts.c (enable_fdo_optimizations): Enable
35148 version-loops-for-strides, loop-interchange, unrol-and-jam
35149 and tree-loop-distribution.
35150 * invoke.texi: Document newly enabled options.
35151
35152 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35153
35154 * doc/invoke.texi (max-inline-insns-small): New parameters.
35155 * ipa-inline.c (want_early_inline_function_p): simplify.
35156 (want_inline_small_function_p): Fix pasto from previous patch;
35157 use max-inline-insns-small bound.
35158 * params.def (max-inline-insns-small): New param.
35159 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35160 variables correctly.
35161
35162 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35163
35164 * doc/invoke.texi: Document max-inline-insns-size,
35165 uninlined-function-insns, uninlined-function-time,
35166 uninlined-thunk-insns and uninlined-thunk-time.
35167 * params.def: Add max-inline-insns-size,
35168 uninlined-function-insns, uninlined-function-time,
35169 uninlined-thunk-insns and uninlined-thunk-time.
35170 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35171 new parameters.
35172 * ipa-inline.c (can_inline_edge_by_limits_p,
35173 want_inline_small_function_p): Use new parameters.
35174
35175 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35176
35177 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35178
35179 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35180
35181 PR middle-end/82564
35182 PR target/88620
35183 * expr.c (expand_assignment): For calls returning VLA structures
35184 if to_rtx is not a MEM, force it into a stack temporary.
35185
35186 PR debug/88635
35187 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35188 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35189 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35190 subexpressions of both operands.
35191 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35192 subrtxes are CONSTANT_P.
35193 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35194 2018-11-09 changes.
35195
35196 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35197
35198 * params.def (hot-bb-count-ws-permille): Set to 990.
35199
35200 2019-01-04 Martin Sebor <msebor@redhat.com>
35201
35202 PR c/88546
35203 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35204 leaf.
35205
35206 2019-01-04 Martin Sebor <msebor@redhat.com>
35207
35208 PR c/88363
35209 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35210
35211 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35212
35213 * gdbinit.in: Turn off pagination for the skip commands, restore
35214 it to previous state afterwards.
35215
35216 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35217
35218 PR target/88594
35219 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35220 of GET_MODE (opN) as modes of the libcall arguments.
35221
35222 2019-01-04 Jan Beulich <jbeulich@suse.com>
35223
35224 * config/i386/sse.md
35225 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35226 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35227 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35228 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35229 avx512f_vmcmp<mode>3<round_saeonly_name>,
35230 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35231 avx512f_maskcmp<mode>3,
35232 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35233 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35234 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35235 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35236 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35237 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35238 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35239 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35240 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35241 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35242 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35243 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35244 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35245 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35246 avx512cd_maskb_vec_dup<mode>,
35247 avx512cd_maskw_vec_dup<mode>,
35248 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35249 avx512dq_vmfpclass<mode>,
35250 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35251 instead of =Yk.
35252
35253 2019-01-03 Martin Sebor <msebor@redhat.com>
35254
35255 PR tree-optimization/88659
35256 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35257
35258 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35259
35260 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35261 unaligned vsx and avoid lxvd2x/stxvd2x.
35262 (gen_lvx_v4si_move): New function.
35263
35264 2019-01-03 Tom de Vries <tdevries@suse.de>
35265
35266 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35267 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35268 function.
35269 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35270
35271 2019-01-03 Tom de Vries <tdevries@suse.de>
35272
35273 * config/nvptx/nvptx.c (struct offload_attrs): New.
35274 (populate_offload_attrs): New function. Factor mask extraction out of
35275 nvptx_reorg. Add extraction of dimensions.
35276 (nvptx_reorg): Use populate_offload_attrs.
35277
35278 2019-01-03 Tom de Vries <tdevries@suse.de>
35279
35280 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35281 cases for oacc_min_dims_p and routine_p. Add asserts for
35282 oacc_default_dims_p and offload_region_p.
35283
35284 2019-01-03 Tom de Vries <tdevries@suse.de>
35285
35286 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35287 factored out of ...
35288 (nvptx_goacc_validate_dims): ... here.
35289
35290 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35291
35292 PR tree-optimization/85574
35293 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35294 structure.
35295 (struct ssa_equip_hash_traits): Declare.
35296 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35297
35298 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35299
35300 PR debug/88644
35301 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35302 change it to qualified_type.
35303
35304 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35305
35306 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35307 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35308
35309 2019-01-02 Martin Sebor <msebor@redhat.com>
35310 Jeff Law <law@redhat.com>
35311
35312 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35313 (get_range_strlen_tree): Update appropriately.
35314 (get_range_strlen)
35315 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35316
35317 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35318 rather than set_range_info.
35319 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35320 maybe_set_strlen_range. Handle potentially boundary crossing
35321 cases more conservatively.
35322 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35323 Call set_strlen_range.
35324 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35325
35326 PR middle-end/88663
35327 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35328 need the flexp argument.
35329 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35330 from calls to get_range_strlen. Update comments. Just update
35331 VAL for an unterminated const char array and let the reset of the
35332 code handle it normally. No longer try to set *flexp. Adjust
35333 return value.
35334 (get_range_strlen): Update for the new get_range_strlen API.
35335 (get_maxval_strlen): Similarly.
35336 (gimple_fold_builtin_strlen): Handle update meaning of return value
35337 from get_range_strlen.
35338 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35339 get_range_strlen API.
35340
35341 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35342
35343 PR lto/88130
35344 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35345 false at WPA time when body was removed.
35346
35347 2019-01-02 Martin Liska <mliska@suse.cz>
35348
35349 PR tree-optimization/88650
35350 * predict.c (set_even_probabilities): Calculate probability
35351 remainer only when really used.
35352
35353 2019-01-02 Richard Biener <rguenther@suse.de>
35354
35355 PR middle-end/88651
35356 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35357 widest_ints when mangling max_stmt_execution results.
35358
35359 2019-01-02 Richard Biener <rguenther@suse.de>
35360
35361 PR tree-optimization/88621
35362 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35363 bitfields when canoncalizing.
35364
35365 2019-01-02 Richard Biener <rguenther@suse.de>
35366
35367 PR target/87545
35368 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35369 cost of cheap SSE instruction.
35370
35371 2019-01-02 Richard Biener <rguenther@suse.de>
35372
35373 PR ipa/85574
35374 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35375 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35376 function.
35377 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35378 set after UIDs before splitting them.
35379
35380 2019-01-01 Martin Sebor <msebor@redhat.com>
35381 Jeff Law <law@redhat.com>
35382
35383 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35384 length is optimistic. If it is, then arrange to compute the
35385 conservative length as well.
35386
35387 * gimple-fold.h (get_range_strlen): Update prototype.
35388 * builtins.c (check_access): Update call to get_range_strlen to use
35389 c_strlen_data pointer. Change various variable accesses to instead
35390 pull data from the c_strlen_data structure.
35391 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35392 * calls.c (maybe_warn_nonstring_arg): Likewise.
35393 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35394 minimum length if maximum lengh is unknown.
35395 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35396 that used c_strlen, it's no longer needed. Restructure slightly.
35397 (format_string): Set unlikely range appropriately.
35398 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35399 formatting issues.
35400 (get_range_strlen): Accept c_strlen_data pointer for external
35401 call sites as well. Pass through to call to internal get_range_strlen.
35402 Adjust minlen, maxlen and maxbound as needed.
35403 (get_maxval_strlen): Update comments.
35404 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35405 to use c_strlen_data pointer. Change variable accesses to instead
35406 use c_strlen_data data members.
35407
35408 * gimple-fold.c (get_range_strlen): Update prototype.
35409 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35410 local variables. Use pdata to return information to caller.
35411 Update calls to get_range_strlen. Update pdata->maxbound.
35412 (get_range_strlen -- static version): Similarly.
35413 (get_range_strlen -- extern version): Update for internal
35414 get_range_strlen API change. Convert to external data format.
35415 (get_maxval_strlen): Similarly.
35416
35417 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35418
35419 * coverage.c (get_coverage_counts): Use current_function_decl.
35420 * profile.c (read_thunk_profile): New function.
35421 (branch_prob): Add THUNK parameter.
35422 * tree-profile.c (tree_profiling): Handle thunks.
35423 * value-prof.c (init_node_map): Handle thunks.
35424 * value-prof.h (branch_prob): Upate prototype.
35425 (read_thunk_profile): Declare.
35426
35427 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35428
35429 Update copyright years.
35430
35431 * gcc.c (process_command): Update copyright notice dates.
35432 * gcov-dump.c (print_version): Ditto.
35433 * gcov.c (print_version): Ditto.
35434 * gcov-tool.c (print_version): Ditto.
35435 * gengtype.c (create_file): Ditto.
35436 * doc/cpp.texi: Bump @copying's copyright year.
35437 * doc/cppinternals.texi: Ditto.
35438 * doc/gcc.texi: Ditto.
35439 * doc/gccint.texi: Ditto.
35440 * doc/gcov.texi: Ditto.
35441 * doc/install.texi: Ditto.
35442 * doc/invoke.texi: Ditto.
35443 \f
35444 Copyright (C) 2019 Free Software Foundation, Inc.
35445
35446 Copying and distribution of this file, with or without modification,
35447 are permitted in any medium without royalty provided the copyright
35448 notice and this notice are preserved.