PR middle-end/91582 - missing heap overflow detection for strcpy
[gcc.git] / gcc / ChangeLog
1 2019-12-03 Martin Sebor <msebor@redhat.com>
2
3 PR middle-end/91582
4 * builtins.c (gimple_call_alloc_size): New function.
5 (compute_objsize): Add argument. Call gimple_call_alloc_size.
6 Handle variable offsets and indices.
7 * builtins.h (gimple_call_alloc_size): Declare.
8 (compute_objsize): Add argument.
9 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
10 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
11
12 2019-12-04 Julian Brown <julian@codesourcery.com>
13
14 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
15
16 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
17
18 PR bootstrap/92661
19 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
20 rs6000.h.
21 (altivec_overloaded_builtins): Move to rs6000-call.c.
22 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
23 rs6000-c.c.
24 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
25 (altivec_overloaded_builtins): Moved from rs6000-c.c.
26 (rs6000_common_init_builtins): Do no define builtins that overload
27 builtins that have been disabled.
28
29 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
30
31 * config/arm/arm.c (arm_option_override_internal):
32 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
33
34 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
35
36 * config/aarch64/aarch64.c
37 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
38 (thunderx_tunings): Likewise.
39 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
40 (thunderx2t99_tunings): Likewise.
41 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
42 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
43
44 2019-12-04 Richard Biener <rguenther@suse.de>
45
46 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
47 empty CTOR and memset partial-def registering. Take advantage
48 of fancy offset analysis in memset handling.
49
50 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
51
52 * fold-const.c (native_encode_vector_part): Handle
53 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
54 (native_decode_vector_tree): Delete, moving the bulk of the code to...
55 (native_interpret_vector_part): ...this new function. Use a pointer
56 and length instead of a vec<> and start index.
57 (native_interpret_vector): Use native_interpret_vector_part.
58 (fold_view_convert_vector_encoding): Likewise.
59
60 2019-12-04 Richard Biener <rguenther@suse.de>
61
62 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
63 non-constant defs in the most trivial way.
64 (vn_reference_lookup_3): Also push down SSA partial defs.
65
66 2019-12-04 Martin Liska <mliska@suse.cz>
67
68 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
69 Initialize count of newly created BB.
70
71 2019-12-04 Jakub Jelinek <jakub@redhat.com>
72
73 PR tree-optimization/92734
74 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
75 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
76
77 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
78
79 PR target/92760
80 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
81 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
82
83 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
84
85 * ipa-fnsummary.c: Include tree-into-ssa.h.
86 (compute_fn_summary): Call update_ssa.
87
88 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
89
90 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
91 is set only for symbol in comdat group.
92 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
93
94 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
95
96 * cgraph.c: Include tree-into-ssa.h
97 (cgraph_node::get_body): Call update_ssa.
98 * cgraphunit.c (cgraph_node::expand): Likewise.
99 * lto-streamer-in.c (input_function): Do not call update_ssa.
100
101 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
102
103 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
104 an array element size if array_element_size is already an invariant.
105 Similarly don't gimplify and install a field offset if
106 component_ref_field_offset is already an invariant.
107
108 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
109
110 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
111 with POLY_INT_CST size is made to a fixed-size object, force the
112 object to live in memory.
113
114 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
115
116 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
117 for the data mode.
118
119 2019-12-03 Richard Biener <rguenther@suse.de>
120
121 PR tree-optimization/92758
122 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
123 operation on uniform vectors.
124
125 2019-12-03 Richard Biener <rguenther@suse.de>
126
127 PR tree-optimization/92645
128 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
129 from or to a properly aligned register variable.
130
131 2019-12-03 Matthias Klose <doko@ubuntu.com>
132
133 * Makefile.in (SOURCES): Add doc/lto-dump.1.
134 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
135 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
136
137 2019-12-03 Richard Biener <rguenther@suse.de>
138
139 PR tree-optimization/92751
140 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
141 when a clobber ends up in the partial-def vector.
142 (vn_reference_lookup_3): Let clobbers be handled by the
143 assignment from CTOR handling.
144
145 2019-12-03 Jakub Jelinek <jakub@redhat.com>
146
147 PR tree-optimization/92734
148 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
149 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
150 inner subtraction.
151
152 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
153 Jakub Jelinek <jakub@redhat.com>
154
155 PR target/92744
156 * config/i386/i386.md (peephole2 for *swap<mode>): Use
157 general_reg_operand predicates instead of register_operand.
158
159 2019-12-03 Richard Biener <rguenther@suse.de>
160
161 PR tree-optimization/92645
162 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
163 a full def of a vector via a BIT_INSERT_EXPR.
164
165 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
166
167 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
168 static.
169 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
170 decl.
171
172 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
173
174 PR middle-end/92741
175 * fold-const.c (fold_convertible_p): Check vector types more
176 thoroughly.
177
178 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
179
180 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
181 (aarch64_expand_mov_immediate): Use it when attempting to measure
182 the length of an SVE vector.
183 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
184 SVE is enabled.
185
186 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
187
188 * config/aarch64/aarch64-sve-builtins.h
189 (gimple_folder::force_vector): Declare.
190 * config/aarch64/aarch64-sve-builtins.cc
191 (gimple_folder::force_vector): New function.
192 * config/aarch64/aarch64-sve-builtins-base.cc
193 (svcmp_impl::fold): Likewise.
194 (svdup_impl::fold): Handle svdup_z too.
195
196 2019-12-02 Martin Liska <mliska@suse.cz>
197
198 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
199 function.
200 (debug_tree_odr_name): New.
201 * ipa-utils.h (get_odr_name_for_type): New.
202
203 2019-12-02 Richard Biener <rguenther@suse.de>
204
205 PR tree-optimization/92742
206 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
207 touch the def-type but verify it is consistent with the
208 original stmts.
209
210 2019-12-02 Jakub Jelinek <jakub@redhat.com>
211
212 PR tree-optimization/92712
213 * match.pd ((A * B) +- A -> (B +- 1) * A,
214 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
215 even when we don't know anything about range of A, but do know
216 something about range of B and the simplification won't introduce
217 new UB.
218
219 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
220
221 PR ipa/92133
222 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
223 (ipa-cp-min-recursive-probability): Likewise.
224 * params.opt (ipa-cp-max-recursive-depth): New.
225 (ipa-cp-min-recursive-probability): Likewise.
226 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
227 val_p and unlimited.
228 (self_recursively_generated_p): New function.
229 (get_val_across_arith_op): Likewise.
230 (propagate_vals_across_arith_jfunc): Add constant propagation for
231 self-recursive function.
232 (incorporate_penalties): Do not penalize pure self-recursive function.
233 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
234 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
235 (get_info_about_necessary_edges): Relax hotness check for edge to
236 self-recursive function.
237 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
238
239 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
240
241 PR target/92499
242
243 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
244 objects of flexible types to be small if they have internal linkage
245 or are declared extern.
246 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
247 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
248 instead of the size of the object initializer.
249 * tree.c (flexible_array_type_p): Move from C front end, and
250 generalize to handle fields in non-C structures.
251 * tree.h (flexible_array_type_p): Declare.
252
253 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
254
255 * profile-count.h (profile_count::operator<): Use IPA value for
256 comparsion.
257 (profile_count::operator>): Likewise.
258 (profile_count::operator<=): Likewise.
259 (profile_count::operator>=): Likewise.
260 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
261
262 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
263
264 * ipa-inline.c (compute_max_insns): Return int64_t.
265 (inline_small_functions): Simplify.
266
267 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
268
269 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
270 scaling happen.
271
272 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
273
274 * cgraph.h (symtab_node): Add symver flag.
275 * cgraphunit.c (process_symver_attribute): New.
276 (process_common_attributes): Use process_symver_attribute.
277 * lto-cgraph.c (lto_output_node): Stream symver.
278 (lto_output_varpool_node): Stream symver.
279 (input_overwrite_node): Stream symver.
280 (input_varpool_node): Stream symver.
281 * output.h (do_assemble_symver): Decalre.
282 * symtab.c (symtab_node::dump_base): Dump symver.
283 (symtab_node::verify_base): Verify symver.
284 (symtab_node::resolve_alias): Handle symver.
285 * varasm.c (do_assemble_symver): New function.
286 * varpool.c (varpool_node::assemble_aliases): Use it.
287 * doc/extend.texi: (symver attribute): Document.
288 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
289
290 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
291
292 * target.h (type_context_kind): New enum.
293 (verify_type_context): Declare.
294 * target.def (verify_type_context): New target hook.
295 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
296 * doc/tm.texi: Regenerate.
297 * tree.c (verify_type_context): New function.
298 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
299 Declare.
300 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
301 New function.
302 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
303 (TARGET_VERIFY_TYPE_CONTEXT): Define.
304
305 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
306
307 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
308 * cgraph.h (cgraph_node): Add unit_id and
309 merged_extern_inline.
310 (symbol_table): Add max_unit.
311 (symbol_table::symbol_table): Initialize it.
312 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
313 merged_comdat, merged_extern_inline.
314 (cgraph_node::create_clone): Likewise.
315 (cgraph_node::create_version_clone): Likewise.
316 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
317 calls.
318 * ipa-fnsummary.h (cross_module_call_p): New inline function.
319 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
320 * ipa-inline.c (inline_small_functions): Likewise.
321 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
322 copy merged_comdat and merged_extern_inline.
323 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
324 merged_extern_inline and unit_id.
325 (input_overwrite_node): Stream in these.
326 (input_cgraph_1): Set unit_base.
327 * lto-streamer.h (lto_file_decl_data): Add unit_base.
328 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
329
330 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
331
332 * gcc.c (process_command): Only warn about an ineffective `-x'
333 option if any input files have actually been supplied.
334
335 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
336
337 * doc/install.texi (Options specification): Remove the list of
338 target library subdirectories supporting
339 `--enable-version-specific-runtime-libs'. Document defaults for
340 the option.
341
342 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
343
344 PR rtl-optimization/92283
345 * lra.c (lra): Update reg notes after inheritance sub-pass and
346 before constraint sub-pass.
347
348 2019-11-29 Richard Biener <rguenther@suse.de>
349
350 PR tree-optimization/91003
351 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
352 operand number, avoid handling the non-condition operands of
353 COND_EXPRs as comparisons.
354 (vect_get_constant_vectors): Pass down the operand number.
355 (vect_get_slp_defs): Likewise.
356
357 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
358
359 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
360 generic_expr_could_trap_p to check if the condition of COND_EXPR or
361 VEC_COND_EXPR can trap.
362
363 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
364
365 PR tree-optimization/92677
366 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
367 to zero when dissolving a group of strided accesses.
368
369 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
370
371 PR tree-optimization/92596
372 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
373 operations.
374 (vectorizable_operation): Likewise, instead of relying on
375 vect_get_mask_type_for_stmt to do this.
376 (vect_get_vector_types_for_stmt): Always return a vector type
377 immediately, rather than deferring the choice for boolean results.
378 Use a vector mask type instead of a normal vector if
379 vect_use_mask_type_p.
380 (vect_get_mask_type_for_stmt): Delete.
381 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
382 mask_producers argument and special boolean_type_node handling.
383 (vect_determine_vf_for_stmt): Remove mask_producers argument and
384 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
385 (vect_determine_vectorization_factor): Update call accordingly.
386 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
387 boolean_type_node handling.
388 (vect_slp_analyze_node_operations_1): Likewise.
389
390 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
391
392 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
393 (vect_use_mask_type_p): New function.
394 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
395 mask precision to the pattern statement.
396 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
397 and use it to initialize the new stmt's mask precision.
398 (search_type_for_mask_1): Delete.
399 (search_type_for_mask): Replace with...
400 (integer_type_for_mask): ...this new function. Use the information
401 cached in the stmt_vec_info.
402 (vect_recog_bool_pattern): Update accordingly.
403 (build_mask_conversion): Pass the scalar type associated with the
404 mask type to append_pattern_def_seq.
405 (vect_recog_mask_conversion_pattern): Likewise. Call
406 integer_type_for_mask instead of search_type_for_mask.
407 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
408 of search_type_for_mask.
409 (possible_vector_mask_operation_p): New function.
410 (vect_determine_mask_precision): Likewise.
411 (vect_determine_stmt_precisions): Call it.
412
413 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
414
415 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
416 the slp_tree parameter with a group size parameter.
417 (vect_get_mask_type_for_stmt): Likewise.
418 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
419 (vect_get_mask_type_for_stmt): Likewise.
420 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
421 call accordingly.
422
423 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
424
425 * tree-vect-stmts.c (vectorizable_operation): Punt early
426 on codes that are handled elsewhere.
427
428 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
429
430 * doc/sourcebuild.texi (vect_bool_cmp): Document.
431 * tree-vect-patterns.c (search_type_for_mask_1): If neither
432 operand to a boolean comparison is a natural vector mask,
433 handle both operands like normal integers instead.
434
435 2019-11-29 Richard Biener <rguenther@suse.de>
436
437 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
438 out early for too large objects.
439
440 2019-11-29 Martin Jambor <mjambor@suse.cz>
441
442 PR ipa/92476
443 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
444 the summary only if the summary exists.
445 (find_more_scalar_values_for_callers_subset): Check node_dead in
446 the summary only if the summary exists.
447 (ipcp_store_bits_results): Ignore nodes without lattices.
448 (ipcp_store_vr_results): Likewise.
449 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
450 header files required by them.
451 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
452
453 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
454
455 PR tree-optimization/92710
456 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
457 vector mask arguments.
458
459 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
460
461 * profile-count.c (profile_count::to_cgraph_frequency,
462 profile_count::to_sreal_scale): Check for compaibility of counts.
463 * profile-count.h (compatible_p): Make public; add checking for
464 global0 versus global types.
465 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
466
467 2019-11-29 Richard Biener <rguenther@suse.de>
468
469 PR tree-optimization/92715
470 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
471 out for uniform vectors and source vectors with less elements
472 than the destination.
473
474 2019-11-29 Martin Liska <mliska@suse.cz>
475
476 PR lto/91574
477 * ipa-devirt.c (types_same_for_odr): Check for existence
478 of TYPE_NAMEs first.
479
480 2019-11-29 Richard Biener <rguenther@suse.de>
481
482 PR tree-optimization/92704
483 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
484 in loops performing only loads.
485
486 2019-11-29 Julian Brown <julian@codesourcery.com>
487
488 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
489 BT_DFLOAT128_PTR) Remove.
490 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
491 TI_DFLOAT128_PTR_TYPE): Remove.
492 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
493 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
494 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
495 dfloat128_ptr_type_node): Remove macros.
496
497 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
498
499 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
500 formatting.
501 (*movdi_internal64): Ditto.
502
503 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
504
505 PR target/92602
506 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
507 indexed_or_indirect_operand to be memory_operand.
508 (bswap<mode>2_store for HSI): Ditto.
509 (bswapdi2_load): Ditto.
510 (bswapdi2_store): Ditto.
511
512 2019-11-28 Martin Liska <mliska@suse.cz>
513
514 PR debug/46558
515 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
516 headers for translation.
517
518 2019-11-28 Martin Liska <mliska@suse.cz>
519
520 PR lto/92609
521 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
522 consistently.
523
524 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
525
526 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
527 checks.
528
529 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
530
531 * profile-count.c (profile_count::combine_with_ipa_count): Return
532 uninitialized count if called on ininitialized count.
533
534 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
535
536 * ipa-inline-transform.c (inline_transform): Scale profile before
537 redirecting.
538
539 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
540
541 * profile-count.h (profile_count::max): Work on profiles of different
542 type.
543 (profile_count::apply_scale): Be sure that ret is not local or global0
544 type if num is global.
545
546 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
547
548 * profile-count.h (profile_count::max): Work on profiles of different
549 type.
550 (profile_count::apply_scale): Be sure that ret is not local or global0
551 type if num is global.
552
553 2019-11-28 Martin Jambor <mjambor@suse.cz>
554
555 PR ipa/92697
556 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
557 ifunc_resolvers.
558 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
559 Removed trailig whitespace.
560
561 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
562
563 * profile-count.h (profile_count::combine_with_ipa_count_within):
564 Declare.
565 * profile-count.c (profile_count::combine_with_ipa_count_within):
566 New.
567 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
568 it.
569
570 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
571
572 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
573 of counters are done same way.
574
575 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
576
577 * ipa-cp.c (update_profiling_info): Fix scaling.
578
579 2019-11-28 Richard Biener <rguenther@suse.de>
580
581 PR tree-optimization/92645
582 * tree-inline.c (remap_gimple_stmt): When the return value
583 is not wanted, elide GIMPLE_RETURN.
584
585 2019-11-28 Richard Biener <rguenther@suse.de>
586
587 PR tree-optimization/92645
588 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
589 conversions inside a mode class. Remove restriction on
590 preserving the element size.
591 (simplify_vector_constructor): Deal with the above and for
592 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
593 and VEC_PACK_TRUNC_EXPR.
594
595 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
596
597 Must use push insn to pass varargs arguments of DFmode because
598 otherwise the middle-end generates wrong code.
599
600 PR target/92055
601 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
602
603 2019-11-28 Jakub Jelinek <jakub@redhat.com>
604
605 PR tree-optimization/92691
606 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
607 in function comment.
608 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
609 calls, return !handle_printf_call rather than always returning true.
610 (check_and_optimize_stmt): Describe return value meaning in function
611 comment. Formatting fix.
612
613 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
614
615 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
616 combination of globa0 and global counters..
617
618 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
619
620 PR target/92566
621 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
622 by VECTOR_UNIT_NONE_P instead.
623
624 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
625
626 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
627 Refine VF to VF_AVX512VL.
628
629 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
630
631 * config/rs6000/rs6000.md (movsi_internal): Reformat.
632 (movdi_internal64): Reformat.
633
634 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
635
636 PR bootstrap/92661
637 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
638 builtin if we don't have an actual type.
639 (builtin_function_type): If the builtin function uses a DFP type
640 and decimal float has been disabled, then return NULL_TREE.
641
642 2019-11-27 Jakub Jelinek <jakub@redhat.com>
643
644 PR rtl-optimization/92510
645 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
646 of comparison into a comparison with different mode if both imode and
647 omode are scalar integral modes.
648
649 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
650
651 PR rtl-optimization/90007
652 * recog.c (constrain_operands): Permit hard registers too for
653 memory when LRA is used.
654
655 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
656
657 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
658 between Coldfire and regular m68k.
659 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
660
661 2019-11-27 Richard Biener <rguenther@suse.de>
662
663 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
664 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
665 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
666 * optabs-tree.c (supportable_convert_operation): Do not call
667 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
668 * optabs-tree.h (supportable_convert_operation): Adjust.
669 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
670 * doc/tm.texi: Regenerate.
671 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
672 * tree-vect-generic.c (expand_vector_conversion): Likewise.
673 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
674 unused decl parameter and adjust.
675 (vect_create_vectorized_promotion_stmts): Likewise.
676 (vectorizable_conversion): Adjust.
677
678 2019-11-27 Richard Biener <rguenther@suse.de>
679
680 PR tree-optimization/92690
681 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
682 converting elements not originally converted.
683
684 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
685
686 PR middle-end/92463
687 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
688 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
689 mpfr_rnd_t instead of mp_rnd_t.
690 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
691 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
692 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
693 Use mpfr_exp_t instead of mp_exp_t.
694 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
695 MPFR_RNDx instead of GMP_RNDx.
696 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
697 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
698 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
699 of mp_rnd_t and remove MPFR_RNDx poisoning.
700 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
701
702 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
703
704 PR tree-optimization/91790
705 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
706 DR for vect_setup_realignment when first_stmt_info is different
707 from first_stmt_info_for_drptr.
708
709 2019-11-27 Richard Biener <rguenther@suse.de>
710
711 PR tree-optimization/92645
712 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
713 CTORs with just a subset of the original vectors.
714
715 2019-11-27 Richard Biener <rguenther@suse.de>
716
717 PR middle-end/92674
718 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
719 edges and instead record blocks in bitmap.
720 (gimple_expand_calls_inline): Adjust.
721 (fold_marked_statements): Delay EH cleanup until all folding is
722 done.
723 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
724 inlining finished.
725
726 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
727
728 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
729 LRA is enabled.
730 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
731 disabled.
732
733 2019-11-27 Jakub Jelinek <jakub@redhat.com>
734
735 PR debug/92664
736 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
737
738 2019-11-26 Martin Sebor <msebor@redhat.com>
739
740 PR tree-optimization/92683
741 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
742 inadvertently removed in a previous change. Rename local variable
743 for clarity.
744
745 2019-11-26 Richard Biener <rguenther@suse.de>
746
747 PR middle-end/92669
748 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
749 NULL pre_order.
750
751 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
752
753 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
754
755 2019-11-26 Jakub Jelinek <jakub@redhat.com>
756
757 PR tree-optimization/92644
758 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
759 next to INTEGER_CST checks.
760
761 2019-11-26 Richard Biener <rguenther@suse.de>
762
763 PR tree-optimization/92645
764 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
765 do not build the operation from scalars if the operand is.
766
767 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
768
769 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
770 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
771 definitions.
772
773 2019-11-25 Martin Liska <mliska@suse.cz>
774
775 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
776 up used dump message.
777
778 2019-11-25 Martin Liska <mliska@suse.cz>
779
780 PR bootstrap/92653
781 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
782 too strict checking assert.
783
784 2019-11-25 Joseph Myers <joseph@codesourcery.com>
785
786 PR c/91985
787 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
788 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
789 error_mark_node if corresponding global tree node is NULL.
790 * tree.c (build_common_tree_nodes): Do not initialize
791 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
792 decimal floating-point not supported.
793
794 2019-11-25 Joseph Myers <joseph@codesourcery.com>
795
796 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
797 types.
798
799 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
800
801 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
802 Replace code for non-CONST_INT constants with gcc_unreachable.
803 * config/m68k/m68k.md (cbranchdi): Don't generate individual
804 compare and test.
805 (CMPMODE): New mode_iterator.
806 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
807 cbranch<mode>4.
808 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
809 cstore<mode>4.
810 (cmp<mode>_68881): Remove 'F' constraint from first comparison
811 operand.
812 (bit test insns patterns): Use nonimmediate_operand, not
813 register_operand, for source operands that allow memory in
814 their constraints.
815 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
816 Use register_operand, not nonimmediate_operand, for the
817 destinations.
818 (DBCC): New mode_iterator.
819 (dbcc peepholes): Use it to reduce duplication.
820 (trap): Use const_true_rtx, not const1_rtx.
821 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
822 from m68k_subword_comparison_operand and changed to handle
823 SImode.
824
825 PR target/91851
826 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
827 declaration.
828 (m68k_init_cc): New declaration.
829 (m68k_output_compare_di, m68k_output_compare_si)
830 (m68k_output_compare_hi, m68k_output_compare_qi)
831 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
832 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
833 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
834 m68k_output_branch_float, m68k_output_branch_float_rev):
835 Likewise.
836 (valid_dbcc_comparison_p_2, flags_in_68881)
837 (output_btst): Remove declaration.
838 * config/m68k/m68k.c (INCLDUE_STRING): Define.
839 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
840 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
841 (flags_compare_op0, flags_compare_op1, flags_operand1,
842 flags_operand2, flags_valid): New static variables.
843 (m68k_find_flags_value, m68k_init_cc): New functions.
844 (handle_flags_for_move, m68k_asm_final_postscan_insn,
845 remember_compare_flags): New static functions.
846 (output_dbcc_and_branch): New argument CODE. Use it, and add
847 PLUS and MINUS to the possible codes. All callers changed.
848 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
849 and INSN arguments, add CODE arg. Return the comparison code
850 to use. All callers changed. Use CODE instead of
851 next_insn_tests_no_inequality, and replace cc_status management
852 with changing the return code.
853 (m68k_rtx_costs): Instead of testing for COMPARE, test for
854 RTX_COMPARE or RTX_COMM_COMPARE.
855 (output_move_simode, output_move_qimode): Call
856 handle_flags_for_move.
857 (notice_update_cc): Delete function.
858 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
859 m68k_output_compare_hi, m68k_output_compare_qi,
860 m68k_output_compare_fp, m68k_output_branch_integer,
861 m68k_output_branch_integer_rev, m68k_output_scc,
862 m68k_output_branch_float, m68k_output_branch_float_rev,
863 m68k_output_scc_float): New functions.
864 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
865 once at the start, and set flags_valid and flags_operand1 if the
866 flags are usable.
867 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
868 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
869 definitions.
870 (CC_STATUS_INIT): Define.
871 * config/m68k/m68k.md (flags_valid): New define_attr.
872 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
873 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
874 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
875 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
876 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
877 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
878 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
879 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
880 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
881 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
882 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
883 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
884 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
885 ctrapqi4, conditional_trap): Delete patterns.
886 (cbranchdi4_insn): New pattern.
887 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
888 test high part only. When testing EQ or NE, generate beq0_di
889 and bne0_di patterns directly.
890 (cstoredi4): When testing LT or GE, test high part only.
891 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
892 patterns.
893 (scc0_constraints, cmp1_constraints, cmp2_constraints,
894 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
895 cmp2_cf_predicate): New define_mode_attrs.
896 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
897 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
898 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
899 New patterns.
900 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
901 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
902 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
903 New patterns.
904 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
905 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
906 Likewise.
907 (BTST): New define_mode_iterator.
908 (btst_predicate, btst_constraint, btst_range): New
909 define_mode_attrs.
910 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
911 patterns.
912 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
913 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
914 patterns): Set attr "flags_valid".
915 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
916 management. Set attr "flags_valid".
917 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
918 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
919 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
920 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
921 manual CC_STATUS management.
922 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
923 unnamed strict_lowpart subhi and subqi patterns): Set attr
924 "flags_valid".
925 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
926 Remove code to operate on address regs and assert the case
927 does not occur.
928 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
929 manual CC_STATUS_INIT.
930 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
931 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
932 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
933 one_cmplqi2, unnamed strict_lowpart patterns
934 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
935 one_cmplhi and one_cmplqi): Set attr "flags_valid".
936 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
937 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
938 CC_STATUS_INIT.
939 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
940 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
941 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
942 unnamed strict_low_part patterns for HI and
943 QI versions): Set attr "flags_valid".
944 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
945 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
946 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
947 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
948 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
949 (various unnamed peepholes): Adjust compare/branch sequences
950 for new cbranch patterns.
951 (dbcc peepholes): Likewise, and output the comparison here
952 as well.
953 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
954 (fp_src_operand): Allow constant zero.
955 (address_reg_operand): New predicate.
956
957 * rtl.h (inequality_comparisons_p): Remove declaration.
958 * recog.h (next_insn_tests_no_inequality): Likewise.
959 * rtlanal.c (inequality_comparisons_p): Delete function.
960 * recog.c (next_insn_tests_no_inequality): Likewise.
961
962 2019-11-25 Richard Biener <rguenther@suse.de>
963
964 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
965 (vect_detect_hybrid_slp): Swap lane and instance iteration,
966 properly re-building the visited hash-map for each lane.
967
968 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
969
970 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
971 gcn_md_reorg): Remove unused variables.
972 (gcn_emutls_var_init): Add missing (but unreachable) return
973 to silence warning.
974 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
975 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
976 an uninitialized variable.
977
978 2019-11-25 Martin Jambor <mjambor@suse.cz>
979
980 PR ipa/92109
981 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
982 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
983 (cgraph_materialize_clone): Move removel from clone tree to the
984 the new method and use it instead.
985 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
986 bodies of clones, also remove it from the clone tree.
987
988 2019-11-25 Martin Jambor <mjambor@suse.cz>
989
990 PR ipa/91956
991 * ipa-sra.c (process_isra_node_results): Put the new node to the
992 same comdat group as the original node.
993
994 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
995
996 Build double32 / long-double32 multilibs if needed.
997
998 PR target/92055
999 * config/avr/t-avr:
1000 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1001 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1002 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1003 tm_defines and pass to genmultilib.awk.
1004 * config/avr/genmultilib.awk: Use these variables to add double32
1005 and / or long-double32 multilib(s) as needed.
1006 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1007
1008 2019-11-25 Richard Biener <rguenther@suse.de>
1009
1010 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1011 loop body, defaulted to NULL.
1012 (single_likely_exit): Add exit vector argument
1013 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1014 (number_of_iterations_exit): Likewise.
1015 (number_of_iterations_exit_assumptions): Likewise.
1016 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1017 if not NULL.
1018 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1019 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1020 Compute exit vector around call to single_likely_exit.
1021 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1022 loop body to loop_only_exit_p.
1023 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1024 caller.
1025 (number_of_iterations_exit_assumptions): Get loop body from caller
1026 if not NULL.
1027 (number_of_iterations_exit): Pass through new loop body arg.
1028 (infer_loop_bounds_from_undefined): Get loop body from caller.
1029 (estimate_numbers_of_iterations): Compute loop body once.
1030
1031 2019-11-25 Richard Biener <rguenther@suse.de>
1032
1033 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1034 auto_bb_flag instead of an sbitmap for visited handling.
1035
1036 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1037
1038 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1039 iterator.
1040 (vector_fp_comparison_complex): Likewise.
1041 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1042 define_and_split.
1043 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1044 Likewise.
1045 (vector_lt<mode> for VEC_F): Refactor with
1046 vector_fp_comparison_simple.
1047 (vector_le<mode> for VEC_F): Likewise.
1048 (vector_unge<mode> for VEC_F): Likewise.
1049 (vector_unle<mode> for VEC_F): Likewise.
1050 (vector_ne<mode> for VEC_F): Likewise.
1051 (vector_ungt<mode> for VEC_F): Likewise.
1052 (vector_unlt<mode> for VEC_F): Likewise.
1053 (vector_ltgt<mode> for VEC_F): Refactor with
1054 vector_fp_comparison_complex.
1055 (vector_ordered<mode> for VEC_F): Likewise.
1056 (vector_uneq<mode> for VEC_F): Likewise.
1057 (vector_unordered<mode> for VEC_F): Likewise.
1058
1059 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1060
1061 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1062 COMPARE, representing an overflow detection.
1063
1064 * combine.c (combine_instructions): Record costs for jumps.
1065
1066 * combine.c (can_combine_p): Allow autoinc in jumps.
1067
1068 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1069
1070 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1071 * doc/invoke.texi (max-inline-insns-single-O2,
1072 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1073 early-inlining-insns-O2): Remove documentation.
1074 * ipa-fnsummary.c (analyze_function_body,
1075 compute_fn_summary): Use opt_for_fn when accessing parameters.
1076 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1077 inline_insns_auto, can_inline_edge_by_limits_p,
1078 want_early_inline_function_p, big_speedup_p,
1079 want_inline_small_function_p, want_inline_self_recursive_call_p,
1080 recursive_inlining, compute_max_insns, inline_small_functions):
1081 Likewise.
1082 * opts.c (default_options): Add -O3 defaults for
1083 OPT__param_early_inlining_insns_,
1084 OPT__param_inline_heuristics_hint_percent_,
1085 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1086 * params.opt (-param=early-inlining-insns-O2=,
1087 -param=inline-heuristics-hint-percent-O2=,
1088 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1089 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1090 -param=inline-min-speedup=, -param=inline-unit-growth=,
1091 -param=large-function-growth=, -param=large-stack-frame=,
1092 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1093 -param=max-inline-insns-recursive=,
1094 -param=max-inline-insns-recursive-auto=,
1095 -param=max-inline-insns-single=,
1096 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1097 -param=max-inline-recursive-depth=,
1098 -param=max-inline-recursive-depth-auto=,
1099 -param=min-inline-recursive-probability=,
1100 -param=partial-inlining-entry-probability=,
1101 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1102 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1103 Optimization.
1104
1105 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1106
1107 * ipa-fnsummary.c: Fix comment typos.
1108 * ipa-ref.h: Likewise.
1109 * ipa-predicate.h: Likewise.
1110 * ipa-split.c: Likewise.
1111 * ipa-inline-analysis.c: Likewise.
1112 * ipa-predicate.c: Likewise.
1113 * ipa-devirt.c: Likewise.
1114 * ipa-icf.h: Likewise.
1115 * profile-count.c: Likewise.
1116 * ipa-icf.c: Likewise.
1117 (sem_function::equals_wpa): Fix typos in dump messages.
1118 * ipa-icf-gimple.h: Fix comment typos.
1119 * ipa-inline-transform.c: Likewise.
1120 * ipa-polymorphic-call.c: Likewise.
1121 * ipa-fnsummary.h: Likewise.
1122 * ipa-inline.c: Likewise.
1123 (dump_inline_stats): Fix typo in debug dump message.
1124 * profile-count.h: Fix comment typos.
1125
1126 PR target/92615
1127 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1128 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1129 register_operand, force x into register before storing it into dest.
1130 Formatting fix.
1131
1132 PR middle-end/83859
1133 * doc/extend.texi (attribute access): Fix a typo.
1134
1135 PR rtl-optimization/92610
1136 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1137 cse_cfg_altered is set, even when tem is 0.
1138 (rest_of_handle_cse_after_global_opts): Likewise.
1139
1140 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1141
1142 PR c++/92458
1143 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1144 tree_hash): Move to ...
1145 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1146 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1147 types.
1148 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1149
1150 PR tree-optimization/92618
1151 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1152 containing the auto_vec and a tree.
1153 (undistribute_bitref_for_vector): Handle the case when element type
1154 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1155 fixes.
1156
1157 2019-11-22 Martin Sebor <msebor@redhat.com>
1158
1159 PR middle-end/83859
1160 * attribs.h (struct attr_access): New.
1161 * attribs.c (decl_attributes): Add an informational note.
1162 * builtins.c (check_access): Make extern. Consistently set no-warning
1163 after issuing a warning. Handle calls through function pointers. Set
1164 no-warning.
1165 * builtins.h (check_access): Declare.
1166 * calls.c (rdwr_access_hash): New type.
1167 (rdwr_map): Same.
1168 (init_attr_rdwr_indices): New function.
1169 (maybe_warn_rdwr_sizes): Same.
1170 (initialize_argument_information): Call init_attr_rdwr_indices.
1171 Call maybe_warn_rdwr_sizes.
1172 (get_size_range): Avoid null argument.
1173 * doc/extend.texi (attribute access): Document new attribute.
1174
1175 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1176
1177 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1178 (ACC_LDS_SIZE): Define.
1179 (OTHER_LDS_SIZE): Define.
1180 (LDS_SIZE): Redefine using above.
1181 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1182
1183 2019-11-22 Martin Sebor <msebor@redhat.com>
1184
1185 PR middle-end/88226
1186 * builtins.c (check_nul_terminated_array): New function.
1187 (fold_builtin_0): Remove declaration.
1188 (fold_builtin_1): Same.
1189 (fold_builtin_2): Same.
1190 (fold_builtin_3): Same.
1191 (fold_builtin_strpbrk): Add argument.
1192 (fold_builtin_strspn): Same.
1193 (fold_builtin_strcspn): Same.
1194 (expand_builtin_strcat): Call it. Remove unused argument.
1195 (expand_builtin_stpncpy): Same.
1196 (expand_builtin_strncat): Same.
1197 (expand_builtin_strncpy): Same. Adjust indentation.
1198 (expand_builtin_strcmp): Same.
1199 (expand_builtin_strncmp): Same.
1200 (expand_builtin_fork_or_exec): Same.
1201 (expand_builtin): Handle more built-ins.
1202 (fold_builtin_2): Add argument.
1203 (fold_builtin_n): Make static. Add argument.
1204 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1205 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1206 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1207 (fold_call_stmt): Pass new argument to fold_builtin_n.
1208 * builtins.h: Correct a comment.
1209 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1210 check_nul_terminated_array.
1211 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1212 check_nul_terminated_array.
1213 (handle_builtin_strchr): Same.
1214 (handle_builtin_string_cmp): Same.
1215
1216 2019-11-22 Martin Sebor <msebor@redhat.com>
1217
1218 PR tree-optimization/92501
1219 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1220 handle unterminated arrays. Rename local variables for clarity.
1221
1222 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1223
1224 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1225 granulated_sgprs according to architecture.
1226
1227 2019-11-22 Jan Hubicka <jh@suse.cz>
1228
1229 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1230 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1231 (memory_block_pool::reduce_free_list): ... this one.
1232 (memory_block_pool::trim): New static function.
1233 * memory-block.h (memory_block_pool::freelist_size): New constant
1234 (memory_block_pool::clear_free_list): Rename to ...
1235 (memory_block_pool::reduce_free_list): ... this one.
1236 (memory_block_pool::trim): Declare.
1237
1238 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1239
1240 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1241 vect_cost_for_stmt.
1242 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1243 here rather than...
1244 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1245
1246 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1247
1248 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1249 (bic_cmp0_noout): New pattern.
1250 (bic_cmp0): Likewise.
1251 (neg_scc_insn): Remove pattern.
1252 (not_scc_insn): Likewise.
1253
1254 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1255
1256 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1257
1258 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1259
1260 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1261 pedwarn instead of warning_at for fallthrough not preceding a case
1262 or default label.
1263
1264 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1265
1266 PR tree-optimization/92608
1267 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1268 of dyn_cast.
1269
1270 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1271
1272 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1273 New predicate.
1274 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1275 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1276 special for FP comparisons that need a cror instruction eventually.
1277 (rs6000_emit_fp_cror): New function.
1278 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1279 instruction, for normal FP modes, with HONOR_NANS.
1280 (rs6000_emit_cbranch): Reformat.
1281 * config/rs6000/rs6000.md (fp_rev): New iterator.
1282 (fp_two): New iterator.
1283 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1284 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1285 *cbranch_2insn: New define_insn_and_split.
1286
1287 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1288
1289 PR tree-optimization/92526
1290 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1291 versioning for alignment if the accesses do not have a consistent
1292 mask, rather than asserting that the masks are consistent.
1293
1294 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1295
1296 PR tree-optimization/92595
1297 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1298 check.
1299 (vectorizable_store, vectorizable_load): Likewise.
1300
1301 2019-11-21 Jan Hubicka <jh@suse.cz>
1302
1303 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1304 (resolve_noninline_speculation, inline_small_functions): Avoid
1305 redundant updates.
1306
1307 2019-11-21 Richard Biener <rguenther@suse.de>
1308
1309 * lra.c (lra_insn_recog_data_pool): New.
1310 (free_insn_recog_data): Adjust.
1311 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1312 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1313
1314 2019-11-21 Richard Biener <rguenther@suse.de>
1315
1316 PR tree-optimization/92596
1317 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1318
1319 2019-11-21 Jan Hubicka <jh@suse.cz>
1320
1321 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1322 ready for some vectors to not be allocated.
1323 (evaluate_properties_for_edge): Document better; make
1324 known_vals and known_aggs caller allocated; avoid determining
1325 values of parameters which are not used.
1326 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1327 known_aggs.
1328 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1329 (do_estimate_edge_size): Likewise.
1330 (do_estimate_edge_hints): Likewise.
1331 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1332 values are not known.
1333 (ipa_release_agg_values): Add option to not release vector itself.
1334 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1335
1336 2019-11-21 Richard Biener <rguenther@suse.de>
1337
1338 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1339 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1340 (loop_iterator::loop_iterator): Adjust.
1341 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1342 (compute_dominance_frontiers): ... this. Hoist invariant
1343 get_immediate_dominator call.
1344 (compute_idf): Use a work-set instead of a work-list for more
1345 optimal iteration order and duplicate avoidance.
1346 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1347 the vector all the time, instead pre-allocate the vector only
1348 once.
1349 (delete_update_ssa): Simplify.
1350 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1351
1352 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1353
1354 PR tree-optimization/91355
1355 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1356 for early_bb scaled count with best_bb count comparison.
1357
1358 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1359 preffer -> prefer.
1360 * ipa-inline.c (edge_badness): Likewise.
1361 * lto-streamer.h (class lto_location_cache): Likewise.
1362 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1363 gratutious -> gratuitous.
1364
1365 2019-11-21 Richard Biener <rguenther@suse.de>
1366
1367 Revert
1368 2019-09-17 Richard Biener <rguenther@suse.de>
1369
1370 PR tree-optimization/91790
1371 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1372 use the correct DR for setting up realignment.
1373
1374 2019-11-21 Richard Biener <rguenther@suse.de>
1375
1376 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1377 (equiv_class_obstack): New.
1378 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1379 (perform_var_substitution): Initialize equiv_class_obstack.
1380 (free_var_substitution_info): Free equiv_class_obstack.
1381
1382 2019-11-20 Jan Hubicka <jh@suse.cz>
1383
1384 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1385 edge growth when callee function is very large.
1386 * ipa-inline.h (estimate_min_edge_growth): New.
1387
1388 2019-11-20 Jan Hubicka <jh@suse.cz>
1389
1390 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1391 negative time in calls summary; correct roundoff errors
1392 leading to negative times.
1393 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1394 if present.
1395 (ipa_update_overall_fn_summary): Add RESET parameter.
1396 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1397 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1398
1399 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1400
1401 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1402 def types for two-operation SLP.
1403
1404 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1405
1406 PR testsuite/92366
1407 * doc/sourcebuild.texi (vect_char_add): Document.
1408
1409 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1410
1411 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1412 * function.c (record_final_call): Record even calls that might
1413 have been in the cgraph.
1414 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1415 callees.
1416
1417 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1418
1419 * configure.ac: Use https for gcc.gnu.org
1420 * configure: Regenerated.
1421 * doc/install.texi: Use https for gcc.gnu.org.
1422 * doc/sourcebuild.texi: Likewise.
1423
1424 2019-11-20 Julian Brown <julian@codesourcery.com>
1425
1426 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1427
1428 2019-11-20 Jan Hubicka <jh@suse.cz>
1429
1430 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1431 parameter and update call_size_time_table.
1432 (ipa_fn_summary::max_size_time_table_size): New constant.
1433 (estimate_calls_size_and_time_1): Break out from ...
1434 (estimate_calls_size_and_time): ... here; implement summary production.
1435 (summarize_calls_size_and_time): New function.
1436 (ipa_call_context::estimate_size_and_time): Bypass
1437 estimate_calls_size_and_time for leaf functions.
1438 (ipa_update_overall_fn_summary): Likewise.
1439 * ipa-fnsummary.h (call_size_time_table): New.
1440 (ipa_fn_summary::account_size_time): Update prototype.
1441
1442 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1443
1444 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1445
1446 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1447
1448 PR85678
1449 * common.opt (fcommon): Change init to 1.
1450 * doc/invoke.texi (-fcommon): Update documentation.
1451
1452 2019-11-20 Jan Hubicka <jh@suse.cz>
1453
1454 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1455 to ordinary array.
1456
1457 2019-11-20 Jan Hubicka <jh@suse.cz>
1458
1459 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1460 Add allocator parameter.
1461 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1462 (fibonacci_heap<K,V>::m_allocator): New.
1463 (fibonacci_heap<K,V>::m_own_allocator): New.
1464 (fibonacci_heap<K,V>::insert): Use allocator.
1465 (fibonacci_heap<K,V>::extract_min): Likewise.
1466 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1467 allocator.
1468 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1469 on stack.
1470 * fibonacci_heap.c: Include alloc-pool
1471 (test_empty_heap): Initialize allocator.
1472 (test_union): Likewise.
1473 * bb-reorder.c: Include alloc-pool.h.
1474 * tracer.c: Inlclude alloc-pool.h.
1475
1476 2019-11-20 Jan Hubicka <jh@suse.cz>
1477
1478 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1479 Preallocate for 32 entries.
1480 (DFS::worklist): Likewise.
1481 (DFS::DFS): Do not initialize sccstack and worklist.
1482 (DFS::~DFS): Do not release sccstack.
1483
1484 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1485
1486 PR target/92573
1487 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1488 Handle UNORDERED if !HONOR_NANS.
1489
1490 2019-11-20 Jan Hubicka <jh@suse.cz>
1491
1492 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1493 (edge_badness): ... here.
1494 (inline_small_functions): Use monotonicity of badness calculation
1495 to avoid redundant updates.
1496
1497 2019-11-20 Richard Biener <rguenther@suse.de>
1498
1499 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1500 constructors we are actually analyzing.
1501 (vect_slp_check_for_constructors): Do not vectorize uniform
1502 constuctors, do not dump here.
1503
1504 2019-11-20 Richard Biener <rguenther@suse.de>
1505
1506 PR tree-optimization/92537
1507 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1508 vectorization validity check...
1509 (vect_slp_analyze_operations): ... here.
1510
1511 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1512
1513 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1514 (make_pass_arc_predicate_delay_insns): Likewise.
1515 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1516 method, remove clone.
1517 (class pass_arc_predicate_delay_insns): Likewise.
1518 (arc_init): Remove registering of ARC specific passes.
1519 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1520 * config/arc/arc-passes.def: New file.
1521
1522 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1523
1524 PR middle-end/90840
1525 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1526 and has a mode that doesn't have corresponding integral type.
1527
1528 PR target/90867
1529 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1530 clear opts->x_ix86_isa_flags{,2} here...
1531 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1532 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1533
1534 PR c/90898
1535 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1536 assertion.
1537 (insert_clobbers_for_var): Fix a typo in function comment.
1538
1539 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1540 Jakub Jelinek <jakub@redhat.com>
1541
1542 PR middle-end/91195
1543 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1544 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1545 load.
1546
1547 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1548
1549 Make 0-series device specs work with older versions of avr-gcc.
1550
1551 PR target/92545
1552 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1553 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1554 <*link_pm_base_address>: Don't write spec.
1555 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1556
1557 2019-11-20 Richard Biener <rguenther@suse.de>
1558
1559 PR c/92088
1560 * builtins.c (compute_objsize): Deal with VLAs.
1561
1562 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1563
1564 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1565 from common code.
1566 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1567 call new function.
1568 (power9_sched_reorder2): Call new function.
1569 (rs6000_sched_reorder2): Likewise.
1570
1571 2019-11-18 Jan Hubicka <jh@suse.cz>
1572
1573 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1574 (estimate_calls_size_and_time): Update.
1575
1576 2019-11-18 Jan Hubicka <jh@suse.cz>
1577
1578 * ipa-inline.c (inlining_speedup): New function.
1579 (edge_badness): Use it.
1580
1581 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1582 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1583
1584 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1585 Mark as not having "likely" version.
1586 * config/mips/mips.md (insn_count): The simd_div instruction with
1587 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1588 (can_delay): Exclude simd_branch.
1589 (defile_delay *): Add simd_branch instructions.
1590 They have one regular delay slot.
1591
1592 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1593
1594 Revert:
1595 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1596
1597 * cse.c (cse_insn): Delete no-op register moves too.
1598 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1599 Take a second comparison to control the value for NE.
1600 (mask_to_comparison): Handle unsigned comparisons.
1601 (simplify_logical_relational_operation): Likewise. Update call
1602 to comparison_to_mask. Handle AND if !HONOR_NANs.
1603 (simplify_binary_operation_1): Call the above for AND too.
1604
1605 2019-11-19 Martin Liska <mliska@suse.cz>
1606
1607 * toplev.c (general_init): Move the call...
1608 (toplev::main): ... here as we need init_options_struct
1609 being called.
1610
1611 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1612
1613 PR target/79262
1614 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1615 vec_to_scalar_cost.
1616
1617 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1618
1619 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1620 (armv7-a): Likewise.
1621 (armv7ve): Likewise.
1622
1623 2019-11-19 Richard Biener <rguenther@suse.de>
1624
1625 PR tree-optimization/92581
1626 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1627 condition reduction chains gather all conditions involved
1628 for computing the index reduction vector.
1629
1630 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1631
1632 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1633 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1634 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1635 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1636 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1637 (aarch64_init_memtag_builtins): New.
1638 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1639 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1640 (aarch64_expand_builtin_memtag): New.
1641 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1642 (AARCH64_BUILTIN_SUBCODE): New macro.
1643 (aarch64_resolve_overloaded_memtag): New.
1644 (aarch64_resolve_overloaded_builtin_general): New. Call
1645 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1646 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1647 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1648 (aarch64_resolve_overloaded_builtin): Call
1649 aarch64_resolve_overloaded_builtin_general.
1650 * config/aarch64/aarch64-protos.h
1651 (aarch64_resolve_overloaded_builtin_general): New declaration.
1652 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1653 (TARGET_MEMTAG): Likewise.
1654 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1655 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1656 (irg, gmi, subp, addg, ldg, stg): New instructions.
1657 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1658 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1659 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1660 (__arm_mte_get_tag): Likewise.
1661 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1662 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1663 * config/arm/types.md (memtag): New.
1664 * doc/invoke.texi (-memtag): Update description.
1665
1666 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1667
1668 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1669 to define __GCC_ASM_FLAG_OUTPUTS__.
1670 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1671 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1672 depending on TARGET_THUMB1.
1673 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1674
1675 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1676
1677 PR target/92549
1678 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1679
1680 PR middle-end/91450
1681 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1682 operand is negative and one non-negative, compare the non-negative
1683 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1684 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1685 and s2 == 0, unless one of them is known to be negative. Remove
1686 tem2 variable, use tem where tem2 has been used before.
1687
1688 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1689
1690 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1691
1692 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1693
1694 PR tree-optimization/92557
1695 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1696 vmode rather than asserting it always is.
1697
1698 2019-11-19 Richard Biener <rguenther@suse.de>
1699
1700 PR tree-optimization/92554
1701 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1702 for the actual condition stmt and deal with sign-changes.
1703
1704 2019-11-19 Richard Biener <rguenther@suse.de>
1705
1706 PR tree-optimization/92555
1707 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1708 for non-SLP stmts.
1709
1710 2019-11-19 Martin Liska <mliska@suse.cz>
1711
1712 PR bootstrap/92540
1713 * config/riscv/riscv.c (riscv_address_insns): Initialize
1714 addr in order to remove boostrap -Wmaybe-uninitialized
1715 error.
1716
1717 2019-11-18 Martin Sebor <msebor@redhat.com>
1718
1719 PR tree-optimization/92493
1720 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1721 assignment.
1722
1723 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1724
1725 * cfgloop.c (get_loop_body_in_custom_order): New.
1726 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1727 * tree-loop-distribution.c (class loop_distribution): New.
1728 (bb_top_order_cmp): Remove.
1729 (bb_top_order_cmp_r): New.
1730 (create_rdg_vertices): Move into class loop_distribution.
1731 (stmts_from_loop): Same as above.
1732 (update_for_merge): Same as above.
1733 (partition_merge_into): Same as above.
1734 (get_data_dependence): Same as above.
1735 (data_dep_in_cycle_p): Same as above.
1736 (update_type_for_merge): Same as above.
1737 (build_rdg_partition_for-vertex): Same as above.
1738 (classify_builtin_ldst): Same as above.
1739 (classify_partition): Same as above.
1740 (share_memory_accesses): Same as above.
1741 (rdg_build_partitions): Same as above.
1742 (pg_add_dependence_edges): Same as above.
1743 (build_partition_graph): Same as above.
1744 (merge_dep_scc_partitions): Same as above.
1745 (break_alias_scc_partitions): Same as above.
1746 (finalize_partitions): Same as above.
1747 (distribute_loop): Same as above.
1748 (bb_top_order_init): New method
1749 (bb_top_order_destroy): New method.
1750 (get_bb_top_order_index_size): New method.
1751 (get_bb_top_order_index_index): New method.
1752 (get_bb_top_order_index_index): New method.
1753 (loop_distribution::execute): New method.
1754 (pass_loop_distribution::execute): Instantiate loop_distribution.
1755
1756 2019-11-18 Jan Hubicka <jh@suse.cz>
1757
1758 PR ipa/92508
1759 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1760 caches.
1761 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1762
1763 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1764
1765 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1766 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1767 * doc/md.texi: Document them.
1768 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1769 internal functions.
1770 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1771 * internal-fn.c (check_ptrs_direct): New macro.
1772 (expand_check_ptrs_optab_fn): Likewise.
1773 (direct_check_ptrs_optab_supported_p): Likewise.
1774 (internal_check_ptrs_fn_supported_p): New fuction.
1775 * tree-data-ref.c: Include internal-fn.h.
1776 (create_ifn_alias_checks): New function.
1777 (create_intersect_range_checks): Use it.
1778 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1779 (optab, cmp_op): Handle it.
1780 (raw_war, unspec): New int attributes.
1781 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1782 constants.
1783 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1784 New predicate.
1785 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1786 expander.
1787 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1788 pattern.
1789
1790 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1791
1792 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1793 empty constructors.
1794
1795 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1796
1797 * cse.c (cse_insn): Delete no-op register moves too.
1798 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1799 Take a second comparison to control the value for NE.
1800 (mask_to_comparison): Handle unsigned comparisons.
1801 (simplify_logical_relational_operation): Likewise. Update call
1802 to comparison_to_mask. Handle AND if !HONOR_NANs.
1803 (simplify_binary_operation_1): Call the above for AND too.
1804
1805 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1806
1807 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1808 splitting the main code out into...
1809 (native_encode_vector_part): ...this new function.
1810 (native_decode_vector_tree): New function.
1811 (fold_view_convert_vector_encoding): Likewise.
1812 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1813 to VECTOR_TYPEs.
1814
1815 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1816
1817 * tree-data-ref.c (create_intersect_range_checks_index): If the
1818 alias pair describes simple WAW and WAR dependencies, just check
1819 whether the first B access overlaps later A accesses.
1820 (create_waw_or_war_checks): New function that performs the same
1821 optimization on addresses.
1822 (create_intersect_range_checks): Call it.
1823
1824 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1825
1826 * lra-constraints.c (valid_address_p): Take the operand and a
1827 constraint as argument. If the operand is a MEM and the constraint
1828 is a memory constraint, check whether the eliminated form of the
1829 MEM already satisfies the constraint.
1830 (process_address_1): Update calls accordingly.
1831
1832 2019-11-18 Tom Tromey <tromey@adacore.com>
1833
1834 * doc/tm.texi: Rebuild.
1835 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1836 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1837
1838 2019-11-18 Richard Biener <rguenther@suse.de>
1839
1840 PR tree-optimization/92516
1841 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1842 argument, hoist bst_map creation/destruction to ...
1843 (vect_analyze_slp): ... here, forming a true graph with
1844 SLP instances being the entries.
1845 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1846 (vect_detect_hybrid_slp): Use one visited set for all
1847 graph entries.
1848 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1849 to hash-sets of slp_tree.
1850 (vect_slp_analyze_operations): Likewise.
1851 (vect_bb_slp_scalar_cost): Remove wrapper.
1852 (vect_bb_vectorization_profitable_p): Use one visited set for
1853 all graph entries.
1854 (vect_schedule_slp_instance): Elide bst_map use.
1855 (vect_schedule_slp): Likewise.
1856
1857 2019-11-18 Richard Biener <rguenther@suse.de>
1858
1859 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1860 was vectorized with just external refs fail.
1861
1862 2019-11-18 Martin Liska <mliska@suse.cz>
1863
1864 PR ipa/92525
1865 * ipa-icf.c (sem_function::init): Unset m_checker
1866 at the end of the function.
1867
1868 2019-11-18 Richard Biener <rguenther@suse.de>
1869
1870 PR tree-optimization/92558
1871 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1872 reducting the width of a reduction vector def update new_phis.
1873
1874 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1875
1876 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1877 and s390*-*-linux-musl* targets.
1878 * configure: Regenerate.
1879
1880 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1881
1882 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1883 (MUSL_DYNAMIC_LINKER64): Define.
1884
1885 2019-11-18 Martin Liska <mliska@suse.cz>
1886
1887 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1888 message for an unknown counter.
1889 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1890 (dbg_cnt_process_opt): Remove unreachable code.
1891
1892 2019-11-18 Martin Liska <mliska@suse.cz>
1893
1894 PR ipa/92529
1895 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1896 Compare LHS types of NOP_EXPR.
1897
1898 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1899
1900 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1901 "initial_pass_name" argument -- by running "*clean_state" pass.
1902 Also free the "initial_pass_name" when done.
1903
1904 2019-11-18 Richard Biener <rguenther@suse.de>
1905
1906 PR rtl-optimization/92462
1907 * alias.c (find_base_term): Restrict the look through ANDs.
1908 (find_base_value): Likewise.
1909
1910 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1911
1912 Add support for AVR devices from the 0-series.
1913
1914 PR target/92545
1915 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1916 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1917 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1918 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1919 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1920 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1921 for spec definitions.
1922 * doc/avr-mmcu.texi: Regenerate.
1923
1924 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1925
1926 PR target/92448
1927 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1928 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1929 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1930 (ix86_reassociation_width): Ditto.
1931 * config/i386/i386-options.c (ix86_option_override_internal):
1932 Replace TARGET_AVX128_OPTIAML with
1933 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1934 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1935 (TARGET_AVX128_OPTIMAL): Deleted.
1936 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1937 DEF_TUNE.
1938
1939 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1940
1941 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1942 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1943 just SI.
1944 (cceq_rev_compare): Rename to...
1945 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1946 just SI.
1947 (define_split for <bd>tf_<mode>): Add SImode first argument to
1948 gen_cceq_ior_compare.
1949
1950 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1951
1952 * common/config/powerpcspe: Delete.
1953
1954 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1955
1956 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1957 output in UNSPEC_WRFFR.
1958
1959 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1960
1961 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1962 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1963
1964 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1965
1966 * tree-data-ref.c (create_intersect_range_checks_index)
1967 (create_intersect_range_checks): Print dump messages.
1968
1969 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1970
1971 * tree-data-ref.c (dump_alias_pair): New function.
1972 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1973
1974 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1975
1976 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1977 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1978 merging data references with different steps.
1979 (create_intersect_range_checks_index): Take a
1980 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1981 Bail out if DR_ALIAS_MIXED_STEPS is set.
1982 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1983 instead of two dr_with_seg_lens. Update call to
1984 create_intersect_range_checks_index.
1985 (create_runtime_alias_checks): Update call accordingly.
1986
1987 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1988
1989 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1990 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1991 (dr_with_seg_len_pair_t::sequencing): New enum.
1992 (dr_with_seg_len_pair_t::flags): New member variable.
1993 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1994 parameter and initialize the flags member variable.
1995 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1996 call accordingly.
1997 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1998 Ensure the two data references in an alias pair are in statement
1999 order, if there is a defined order.
2000 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2001 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2002 swapped the references in a dr_with_seg_len_pair_t. OR together
2003 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2004 try to restore the original dr_with_seg_len order, updating the
2005 flags if that fails.
2006
2007 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2008
2009 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2010 swapping the dr_as based on init values until we've decided
2011 whether to merge them.
2012
2013 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2014
2015 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2016 two accesses in each dr_with_seg_len_pair_t before trying to
2017 combine separate dr_with_seg_len_pair_ts.
2018 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2019 that here.
2020 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2021
2022 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2023
2024 * config/aarch64/aarch64-sve.md
2025 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2026 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2027 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2028 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2029 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2030 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2031 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2032 pattern.
2033 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2034 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2035 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2036 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2037
2038 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2039
2040 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2041 (SVE_4HSI): New mode iterators.
2042 (ANY_EXTEND2): New code iterator.
2043 * config/aarch64/aarch64-sve.md
2044 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2045 Extend to...
2046 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2047 ...this, handling extension to partial modes as well as full modes.
2048 Describe the extension as a predicated rather than unpredicated
2049 extension.
2050 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2051 Likewise extend to...
2052 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2053 ...this, making the same adjustments.
2054 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2055 Likewise extend to...
2056 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2057 ...this, making the same adjustments.
2058 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2059 Likewise extend to...
2060 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2061 ...this, making the same adjustments.
2062 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2063 New pattern.
2064 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2065 extension predicate.
2066 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2067 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2068 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2069 Describe the extension as a predicated rather than unpredicated
2070 extension.
2071 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2072 Likewise. Canonicalize to a constant extension predicate.
2073 * config/aarch64/aarch64-sve-builtins-base.cc
2074 (svld1_gather_extend_impl::expand): Add an extra predicate for
2075 the extension.
2076 (svldff1_gather_extend_impl::expand): Likewise.
2077
2078 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2079
2080 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2081 iterators.
2082 * config/aarch64/aarch64-sve.md
2083 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2084 (gather_load<SVE_24:mode><v_int_container>): ...this.
2085 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2086 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2087 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2088 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2089 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2090 New pattern.
2091 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2092 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2093 Allow the nominal extension predicate to be different from the
2094 load predicate.
2095 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2096 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2097
2098 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2099
2100 * config/aarch64/aarch64-sve.md
2101 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2102 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2103 function.
2104 (aarch64_sve_adjust_stmt_cost): Call it.
2105
2106 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2107
2108 * config/aarch64/aarch64-sve.md
2109 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2110 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2111 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2112 Combine into...
2113 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2114 ...this new pattern, handling extension to partial modes as well
2115 as full modes. Describe the extension as a predicated rather than
2116 unpredicated extension.
2117 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2118 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2119 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2120 Combine into...
2121 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2122 ...this new pattern, handling extension to partial modes as well
2123 as full modes. Describe the extension as a predicated rather than
2124 unpredicated extension.
2125 * config/aarch64/aarch64-sve-builtins.cc
2126 (function_expander::use_contiguous_load_insn): Add an extra
2127 predicate for extending loads.
2128 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2129 (aarch64_sve_adjust_stmt_cost): Likewise.
2130 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2131 the cost of SVE vector stmts.
2132
2133 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2134
2135 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2136 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2137 * config/aarch64/aarch64-sve.md
2138 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2139 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2140 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2141 comment. Avoid new narrower_mask ambiguity.
2142 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2143 (*cond_uxt<mode>_2): Update comment.
2144 (*cond_uxt<mode>_any): Likewise.
2145
2146 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2147
2148 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2149 float modes.
2150 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2151 function.
2152 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2153 new vector float modes.
2154 (aarch64_sve_container_bits): New function.
2155 (aarch64_sve_pred_mode): Likewise.
2156 (aarch64_get_mask_mode): Use it.
2157 (aarch64_sve_element_int_mode): Handle structure modes and partial
2158 modes.
2159 (aarch64_sve_container_int_mode): New function.
2160 (aarch64_vectorize_related_mode): Return SVE modes when given
2161 SVE modes. Handle partial modes, taking the preferred number
2162 of units from the size of the given mode.
2163 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2164 in registers.
2165 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2166 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2167 (aarch64_split_sve_subreg_move): Use the mode form of
2168 aarch64_sve_pred_mode.
2169 (aarch64_secondary_reload): Handle partial modes in the same way
2170 as full big-endian vectors.
2171 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2172 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2173 merging with the Advanced SIMD modes. If two modes have the
2174 same size, try the Advanced SIMD mode first.
2175 (aarch64_simd_valid_immediate): Use the container rather than
2176 the element mode for INDEX constants.
2177 (aarch64_simd_vector_alignment): Make the alignment of partial
2178 SVE vector modes the same as their minimum size.
2179 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2180 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2181 (mov<SVE_ALL:mode>): ...this.
2182 (movmisalign<SVE_FULL:mode>): Extend to...
2183 (movmisalign<SVE_ALL:mode>): ...this.
2184 (*aarch64_sve_mov<mode>_le): Rename to...
2185 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2186 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2187 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2188 partial modes regardless of endianness.
2189 (aarch64_sve_reload_be): Rename to...
2190 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2191 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2192 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2193 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2194 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2195 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2196 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2197 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2198 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2199 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2200 (maskload<SVE_FULL:mode><vpred>): Extend to...
2201 (maskload<SVE_ALL:mode><vpred>): ...this.
2202 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2203 (maskstore<SVE_ALL:mode><vpred>): ...this.
2204 (vec_duplicate<SVE_FULL:mode>): Extend to...
2205 (vec_duplicate<SVE_ALL:mode>): ...this.
2206 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2207 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2208 (sve_ld1r<SVE_FULL:mode>): Extend to...
2209 (sve_ld1r<SVE_ALL:mode>): ...this.
2210 (vec_series<SVE_FULL_I:mode>): Extend to...
2211 (vec_series<SVE_I:mode>): ...this.
2212 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2213 (*vec_series<SVE_I:mode>_plus): ...this.
2214 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2215 new VPRED ambiguity.
2216 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2217 (add<SVE_FULL_I:mode>3): Extend to...
2218 (add<SVE_I:mode>3): ...this.
2219 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2220 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2221 (VPRED, vpred): Likewise.
2222 (Vctype): New iterator.
2223 (vw): Remove SVE modes.
2224
2225 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2226
2227 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2228 (SVE_PARTIAL_I): ...this.
2229 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2230
2231 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2232
2233 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2234 (SVE_FULL): ...this.
2235 (SVE_I): Rename to...
2236 (SVE_FULL_I): ...this.
2237 (SVE_F): Rename to...
2238 (SVE_FULL_F): ...this.
2239 (SVE_BHSI): Rename to...
2240 (SVE_FULL_BHSI): ...this.
2241 (SVE_HSD): Rename to...
2242 (SVE_FULL_HSD): ...this.
2243 (SVE_HSDI): Rename to...
2244 (SVE_FULL_HSDI): ...this.
2245 (SVE_HSF): Rename to...
2246 (SVE_FULL_HSF): ...this.
2247 (SVE_SD): Rename to...
2248 (SVE_FULL_SD): ...this.
2249 (SVE_SDI): Rename to...
2250 (SVE_FULL_SDI): ...this.
2251 (SVE_SDF): Rename to...
2252 (SVE_FULL_SDF): ...this.
2253 (SVE_S): Rename to...
2254 (SVE_FULL_S): ...this.
2255 (SVE_D): Rename to...
2256 (SVE_FULL_D): ...this.
2257 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2258 * config/aarch64/aarch64-sve2.md: Likewise.
2259
2260 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2261
2262 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2263 New option.
2264 * doc/invoke.texi: Document it.
2265 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2266 By default, return VECT_COMPARE_COSTS for SVE.
2267
2268 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2269
2270 * target.h (VECT_COMPARE_COSTS): New constant.
2271 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2272 * doc/tm.texi: Regenerate.
2273 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2274 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2275 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2276 Likewise.
2277 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2278 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2279 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2280 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2281 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2282 (_loop_vec_info::vec_inside_cost): New member variables.
2283 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2284 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2285 (vect_analyze_loop): When autovectorize_vector_modes returns
2286 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2287 vector mode and picking the one with the lowest cost.
2288 (vect_estimate_min_profitable_iters): Record the computed costs
2289 in the loop_vec_info.
2290
2291 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2292
2293 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2294 element type rather than an element mode.
2295 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2296 Use get_vectype_for_scalar_type to query the natural types
2297 for a given element type rather than basing everything on
2298 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2299 query to MAX_FIXED_MODE_SIZE.
2300 (duplicate_and_interleave): Update call accordingly.
2301 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2302
2303 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2304
2305 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2306 optional maximum nunits.
2307 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2308 takes an slp_tree.
2309 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2310 (vect_get_mask_type_for_stmt): Likewise.
2311 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2312 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2313 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2314 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2315 to get an assumed vector type for data references.
2316 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2317 (vect_update_all_shared_vectypes): Likewise.
2318 (vect_build_slp_tree_1): Pass the group size to
2319 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2320 for BB vectorization.
2321 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2322 before building the vectof from scalars.
2323 (vect_analyze_slp_instance): Pass the group size to
2324 get_vectype_for_scalar_type.
2325 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2326 types for BB vectorization here; just handle the case in which
2327 we deferred the choice for booleans.
2328 (vect_get_constant_vectors): Pass the slp_tree to
2329 get_vectype_for_scalar_type.
2330 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2331 (vectorizable_call): Likewise.
2332 (vectorizable_simd_clone_call): Likewise.
2333 (vectorizable_conversion): Likewise.
2334 (vectorizable_shift): Likewise.
2335 (vectorizable_operation): Likewise.
2336 (vectorizable_comparison): Likewise.
2337 (vect_is_simple_cond): Take the slp_tree as argument and
2338 pass it to get_vectype_for_scalar_type.
2339 (vectorizable_condition): Update call accordingly.
2340 (get_vectype_for_scalar_type): Take a group_size argument.
2341 For BB vectorization, limit the the vector to that number
2342 of elements. Also define an overload that takes an slp_tree.
2343 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2344 pass it to get_vectype_for_scalar_type.
2345 (vect_get_vector_types_for_stmt): Add a group_size argument
2346 and pass it to get_vectype_for_scalar_type. Don't use the
2347 cached vector type for BB vectorization if a group size is given.
2348 Handle data references in that case.
2349 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2350 pass it to get_mask_type_for_scalar_type.
2351
2352 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2353
2354 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2355 parameter.
2356 (estimate_edge_time): Use it.
2357 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2358 ret_nonspec_time parameter.
2359
2360 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2361
2362 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2363
2364 2019-11-15 Nick Clifton <nickc@redhat.com>
2365 Szabolcs Nagy <szabolcs.nagy@arm.com>
2366
2367 PR target/65649
2368 * config/microblaze/microblaze.c (print_operand): Print value as long.
2369
2370 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2371
2372 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2373 accidental commit.
2374
2375 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2376
2377 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2378 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2379
2380 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2381
2382 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2383 (gcn_conditional_register_usage): Use constants in place of hard-coded
2384 values.
2385 (gcn_hsa_declare_function_name): Set lower bound for number of
2386 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2387 MAX_NORMAL_VGPR_COUNT.
2388
2389 2019-11-15 Martin Jambor <mjambor@suse.cz>
2390
2391 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2392 declaration.
2393
2394 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2395
2396 * config/gcn/gcn.c (default_requested_args): New.
2397 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2398 set with default_requested_args.
2399 (gcn_conditional_register_usage): Limit register usage of non-kernel
2400 functions. Reassign fixed registers if a non-standard set of args is
2401 requested.
2402 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2403
2404 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2405
2406 PR ipa/92528
2407 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2408 aggregate jump function when inlined-to caller has no edge summary.
2409
2410 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2411
2412 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2413
2414 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2415
2416 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2417 prologue use of v0.
2418 (print_operand_address): Use v1 for zero vector offset.
2419
2420 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2421
2422 PR tree-optimization/92515
2423 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2424 types when converting a vector/scalar shift into a vector/vector one,
2425 using tree_nop_conversion_p instead of useless_type_conversion_p.
2426 Move the conversion code to the transform block.
2427
2428 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2429
2430 * read-rtl-function.c
2431 (function_reader::add_fixup_source_location): Take additional
2432 parameter of a column.
2433 (function_reader::maybe_read_location): Optionally parse column
2434 information and pass to add_fixup_source_location.
2435
2436 2019-11-15 Richard Biener <rguenther@suse.de>
2437
2438 PR tree-optimization/92512
2439 * tree-vect-loop.c (check_reduction_path): Fix operand index
2440 computability check. Add check for second use in COND_EXPRs.
2441
2442 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2443
2444 PR target/92515
2445 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2446 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2447
2448 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2449
2450 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2451 register class for VCC_LO and VCC_HI.
2452 (gcn_spill_class): Use SGPR_REGS to spill registers in
2453 VCC_CONDITIONAL_REG.
2454
2455 2019-11-15 Richard Biener <rguenther@suse.de>
2456
2457 PR tree-optimization/92324
2458 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2459 singedness of SLP reduction epilouge operations. Also reduce
2460 the vector width for SLP reductions before doing elementwise
2461 operations if possible.
2462
2463 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2464
2465 * passes.c (skip_pass): Set epilogue_completed if skipping the
2466 pro_and_epilogue pass.
2467
2468 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2469
2470 * passes.c (should_skip_pass_p): Always run "dfinish".
2471
2472 2019-11-15 Richard Biener <rguenther@suse.de>
2473
2474 * ipa-inline.c (inline_small_functions): Move assignment
2475 to next before call destroying edge.
2476
2477 2019-11-15 Richard Biener <rguenther@suse.de>
2478
2479 PR tree-optimization/92039
2480 PR tree-optimization/91975
2481 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2482 previous change, treat invariants consistently as non-constant.
2483 (tree_estimate_loop_size): Ternary ops with just the first op
2484 constant are not optimized away.
2485
2486 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2487
2488 * gimplify.c (gimplify_call_expr): Don't call
2489 omp_resolve_declare_variant after gimplification.
2490 * omp-general.c (omp_context_selector_matches): For isa that might
2491 match in some other function, defer if in declare simd function.
2492 (omp_context_compute_score): Don't look for " score" in construct
2493 trait set. Set *score to -1 if it can't ever match.
2494 (omp_resolve_declare_variant): If any variants need to be deferred,
2495 don't punt immediately, but compute scores of all variants and if
2496 ther eis a score winner that doesn't need to be deferred, return that.
2497
2498 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2499
2500 * ipa-comdats.c: Fix comments typo.
2501 * ipa-profile.c: Fix comments typo.
2502 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2503 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2504 (gimple_gen_ic_func_profiler): Likewise.
2505 (pass_ipa_tree_profile::gate): Fix comments typo.
2506
2507 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2508
2509 * ipa-inline.c (inline_small_functions): Update iterator of next.
2510
2511 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2512
2513 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2514 register is suitable for the mode.
2515
2516 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2517
2518 * range-op.h (range_operator::fold_range): Return a bool.
2519 * range-op.cc (range_operator::wi_fold): Assert supported type.
2520 (range_operator::fold_range): Assert supported type and return true.
2521 (operator_equal::fold_range): Return true.
2522 (operator_not_equal::fold_range): Same.
2523 (operator_lt::fold_range): Same.
2524 (operator_le::fold_range): Same.
2525 (operator_gt::fold_range): Same.
2526 (operator_ge::fold_range): Same.
2527 (operator_plus::op1_range): Adjust call to fold_range.
2528 (operator_plus::op2_range): Same.
2529 (operator_minus::op1_range): Same.
2530 (operator_minus::op2_range): Same.
2531 (operator_exact_divide::op1_range): Same.
2532 (operator_lshift::fold_range): Return true and adjust fold_range call.
2533 (operator_rshift::fold_range): Same.
2534 (operator_cast::fold_range): Return true.
2535 (operator_logical_and::fold_range): Same.
2536 (operator_logical_or::fold_range): Same.
2537 (operator_logical_not::fold_range): Same.
2538 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2539 (operator_bitwise_not::op1_range): Same.
2540 (operator_cst::fold_range): Return true.
2541 (operator_identity::fold_range): Return true.
2542 (operator_negate::fold_range): Return true and adjust fold_range call.
2543 (operator_addr_expr::fold_range): Return true.
2544 (operator_addr_expr::op1_range): Adjust call to fold_range.
2545 (range_cast): Same.
2546 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2547 (range_fold_unary_symbolics_p): Same.
2548
2549 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2550
2551 PR tree-optimization/92506
2552 * range-op.cc (range_operator::fold_range): Start with range undefined.
2553 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2554 overflow is varying.
2555
2556 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2557
2558 * range-op.cc (*operator*::*range): Remove calls to
2559 range_intersect, range_invert, and range_union in favor of calling
2560 the in-place API methods.
2561 (range_tests): Same.
2562 * range.cc (range_intersect): Remove.
2563 (range_union): Remove.
2564 (range_invert): Remove.
2565 * range.h (range_intersect): Remove.
2566 (range_union): Remove.
2567 (range_intersect): Remove.
2568
2569 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2570
2571 PR rtl-optimization/92430
2572 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2573 (pass_jump_after_combine::execute): Perform jump threading
2574 unconditionally.
2575
2576 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2577 Doug Rupp <rupp@adacore.com>
2578 Olivier Hainque <hainque@adacore.com>
2579
2580 * config.gcc: Collapse the arm-vxworks entries into
2581 a single arm-wrs-vxworks7* one, bpabi based. Update
2582 the default cpu from arm8 to armv7-a
2583 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2584 we always use ARM_UNWIND_INFO.
2585 (DWARF2_UNWIND_INFO): Remove redefinition.
2586 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2587 (VXWORKS_PERSONALITY): Define, to "llvm".
2588 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2589
2590 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2591
2592 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2593 _VX_CPU instead of CPU and handle arm_arch8.
2594
2595 2019-11-14 Doug Rupp <rupp@adacore.com>
2596 Olivier Hainque <hainque@adacore.com>
2597 Jerome Lambourg <lambourg@adacore.com>
2598
2599 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2600 * config/aarch64/aarch64-vxworks.h: New file.
2601 * config/aarch64/t-aarch64-vxworks: New file.
2602
2603 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2604 Olivier Hainque <hainque@adacore.com>
2605
2606 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2607 definition, pointless with a VxWorks specific version
2608 of crtstuff.
2609 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2610 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2611 New local macros, controlling the addition of vxworks specific
2612 crtstuff objects depending on the EH mechanism and kind of
2613 module being linked.
2614 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2615
2616 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2617 Jerome Lambourg <lambourg@adacore.com>
2618 Olivier Hainque <hainque@adacore.com>
2619
2620 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2621 common macro definitions, conveying VXWORKS7 or 64bit general
2622 variations. Add a block to set gcc_cv_initfini_array
2623 unconditionally to "yes" for VxWorks7.
2624 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2625 by default. Update some comments.
2626 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2627 default, to be added the end of VXWORKS_LIBS_RTP.
2628 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2629 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2630 redefine.
2631 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2632 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2633 to account for the now available TLS abilities.
2634 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2635 (VXWORKS_HAVE_TLS): Likewise.
2636
2637 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2638
2639 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2640 (vect_slp_convert_to_external): Likewise.
2641 (vect_slp_analyze_node_operations): If analysis fails, try building
2642 the node from scalars instead.
2643
2644 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2645
2646 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2647 between vector types.
2648 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2649 non-widening and non-narrowing path to handle standard
2650 conversion codes, if the target supports them.
2651 * expr.c (convert_move): Try using the extend and truncate optabs
2652 for vectors.
2653 * optabs-tree.c (supportable_convert_operation): Likewise.
2654 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2655 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2656 (trunc<mode><Vnarrowq>2): New patterns.
2657
2658 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2659
2660 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2661 require vectype and nunits_vectype to have the same size;
2662 instead assert that nunits_vectype has at least as many
2663 elements as vectype. Don't compute a separate nunits_vectype
2664 if the scalar type is obviously the same as vectype's.
2665 Tweak dump messages.
2666
2667 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2668
2669 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2670 function.
2671 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2672 (TARGET_VECTORIZE_RELATED_MODE): Define.
2673
2674 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2675
2676 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2677 (vec_info::used_vector_mode): New member variable.
2678 (vect_chooses_same_modes_p): Declare.
2679 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2680 chosen vector mode in vec_info::used_vector_mode.
2681 (vect_chooses_same_modes_p): New function.
2682 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2683 the same vector statements multiple times.
2684 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2685
2686 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2687
2688 * machmode.h (opt_machine_mode::operator==): New function.
2689 (opt_machine_mode::operator!=): Likewise.
2690 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2691 (get_related_vectype_for_scalar_type): Delete.
2692 (get_vectype_for_scalar_type_and_size): Declare.
2693 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2694 whether analysis passed or failed, and with what vector modes.
2695 Use related_vector_mode to check whether trying a particular
2696 vector mode would be redundant with the autodetected mode,
2697 and print a dump message if we decide to skip it.
2698 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2699 (vect_create_epilog_for_reduction): Use
2700 get_related_vectype_for_scalar_type instead of
2701 get_vectype_for_scalar_type_and_size.
2702 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2703 with...
2704 (get_related_vectype_for_scalar_type): ...this new function.
2705 Take a starting/"prevailing" vector mode rather than a vector size.
2706 Take an optional nunits argument, with the same meaning as for
2707 related_vector_mode. Use related_vector_mode when not
2708 auto-detecting a mode, falling back to mode_for_vector if no
2709 target mode exists.
2710 (get_vectype_for_scalar_type): Update accordingly.
2711 (get_same_sized_vectype): Likewise.
2712 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2713
2714 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2715
2716 * tree-vect-stmts.c (vectorizable_call): Require the types
2717 to have the same size.
2718
2719 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2720
2721 * tree-vect-stmts.c (vectorizable_call): If an operand is
2722 constant or external, use get_vectype_for_scalar_type
2723 rather than get_same_sized_vectype to get its vector type.
2724 (vectorizable_conversion, vectorizable_shift): Likewise.
2725 (vectorizable_operation): Likewise.
2726
2727 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2728
2729 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2730 (vec_info::vector_mode): ...this new field.
2731 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2732 (vect_analyze_loop, vect_transform_loop): Likewise.
2733 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2734 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2735 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2736 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2737 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2738
2739 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2740
2741 * target.h (vector_sizes, auto_vector_sizes): Delete.
2742 (vector_modes, auto_vector_modes): New typedefs.
2743 * target.def (autovectorize_vector_sizes): Replace with...
2744 (autovectorize_vector_modes): ...this new hook.
2745 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2746 Replace with...
2747 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2748 * doc/tm.texi: Regenerate.
2749 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2750 (default_autovectorize_vector_modes): New function.
2751 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2752 (default_autovectorize_vector_modes): New function.
2753 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2754 of autovectorize_vector_sizes. Use the number of units in the mode
2755 to calculate the maximum VF.
2756 * omp-low.c (omp_clause_aligned_alignment): Use
2757 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2758 Use a loop based on related_mode to iterate through all supported
2759 vector modes for a given scalar mode.
2760 * optabs-query.c (can_vec_mask_load_store_p): Use
2761 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2762 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2763 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2764 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2765 Replace with...
2766 (aarch64_autovectorize_vector_modes): ...this new function.
2767 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2768 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2769 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2770 (arc_autovectorize_vector_modes): ...this new function.
2771 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2772 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2773 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2774 (arm_autovectorize_vector_modes): ...this new function.
2775 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2776 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2777 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2778 (ix86_autovectorize_vector_modes): ...this new function.
2779 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2780 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2781 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2782 (mips_autovectorize_vector_modes): ...this new function.
2783 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2784 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2785
2786 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2787
2788 * tree-vect-stmts.c (vectorizable_shift): Check the number
2789 of vector elements as well as the type mode when deciding
2790 whether an op1_vectype is compatible. Reuse the result of
2791 this check when generating vector statements.
2792
2793 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2794
2795 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2796 targetm.vectorize.preferred_simd_mode returns an integer mode,
2797 use mode_for_vector to decide what the vector type's mode
2798 should actually be. Use build_vector_type_for_mode instead
2799 of build_vector_type.
2800
2801 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2802
2803 * target.def (get_mask_mode): Take a vector mode itself as argument,
2804 instead of properties about the vector mode.
2805 * doc/tm.texi: Regenerate.
2806 * targhooks.h (default_get_mask_mode): Update to reflect new
2807 get_mode_mask interface.
2808 * targhooks.c (default_get_mask_mode): Likewise. Use
2809 related_int_vector_mode.
2810 * optabs-query.c (can_vec_mask_load_store_p): Update call
2811 to get_mask_mode.
2812 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2813 first that the original mode really is a vector.
2814 * tree.c (build_truth_vector_type_for): Likewise.
2815 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2816 get_mode_mask interface.
2817 (aarch64_expand_sve_vcond): Update call accordingly.
2818 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2819 get_mode_mask interface.
2820 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2821
2822 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2823
2824 * tree.h (build_truth_vector_type): Delete.
2825 (build_same_sized_truth_vector_type): Likewise.
2826 * tree.c (build_truth_vector_type): Rename to...
2827 (build_truth_vector_type_for): ...this. Make static and take
2828 a vector type as argument.
2829 (truth_type_for): Update accordingly.
2830 (build_same_sized_truth_vector_type): Delete.
2831 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2832 instead of build_same_sized_truth_vector_type.
2833 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2834 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2835 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2836 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2837 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2838 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2839 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2840 (vectorizable_store, vectorizable_condition): Likewise.
2841 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2842 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2843 build_truth_vector_type.
2844 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2845 Use truth_type_for instead of build_same_sized_truth_vector_type.
2846 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2847
2848 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2849
2850 * tree.h (build_truth_vector_type_for_mode): Declare.
2851 * tree.c (build_truth_vector_type_for_mode): New function,
2852 split out from...
2853 (build_truth_vector_type): ...here.
2854 (build_opaque_vector_type): Fix head comment.
2855 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2856 vec_info parameter.
2857 (vect_halve_mask_nunits): Replace vec_info parameter with the
2858 mode of the new vector.
2859 (vect_double_mask_nunits): Likewise.
2860 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2861 (vect_double_mask_nunits): Likewise.
2862 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2863 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2864 to vect_halve_mask_nunits, getting the required mode from the unpack
2865 patterns.
2866 (vect_set_loop_condition_masked): Update call accordingly.
2867 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2868 parameter and update call to vect_double_mask_nunits.
2869 (vectorizable_conversion): Update call accordingly.
2870 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2871 (vectorizable_call): Update call accordingly.
2872 (supportable_widening_operation): Update call to
2873 vect_halve_mask_nunits.
2874 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2875 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2876
2877 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2878
2879 * machmode.h (mode_for_int_vector): Delete.
2880 (related_int_vector_mode): Declare.
2881 * stor-layout.c (mode_for_int_vector): Delete.
2882 (related_int_vector_mode): New function.
2883 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2884 instead of mode_for_int_vector.
2885 (expand_vec_perm_const): Likewise.
2886 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2887 (aarch64_evpc_sve_tbl): Likewise.
2888 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2889 (s390_expand_vcond): Likewise.
2890
2891 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2892
2893 * target.def (related_mode): New hook.
2894 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2895 * doc/tm.texi: Regenerate.
2896 * targhooks.h (default_vectorize_related_mode): Declare.
2897 * targhooks.c (default_vectorize_related_mode): New function.
2898 * machmode.h (related_vector_mode): Declare.
2899 * stor-layout.c (related_vector_mode): New function.
2900 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2901 * optabs-query.c (qimode_for_vec_perm): Likewise.
2902 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2903 (vectorizable_store, vectorizable_load): Likewise
2904
2905 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2906
2907 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2908 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2909 * config/arm/arm-c.c (arm_cpu_builtins): Define
2910 __GCC_ASM_FLAG_OUTPUTS__.
2911 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2912 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2913 Define __GCC_ASM_FLAG_OUTPUTS__.
2914 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2915 * doc/extend.texi (FlagOutputOperands): Add documentation
2916 for ARM and AArch64.
2917
2918 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2919 * config/arm/predicates.md (nz_comparison_operator): Rename
2920 from noov_comparison_operator.
2921 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2922 (arm_gen_dicompare_reg): Likewise.
2923 (maybe_get_arm_condition_code): Likewise.
2924 (thumb1_final_prescan_insn): Likewise.
2925 (arm_emit_coreregs_64bit_shift): Likewise.
2926 * config/arm/arm.md (addsi3_compare0): Likewise.
2927 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2928 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2929 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2930 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2931 (*mulsi3addsi_compare0_scratch): Likewise.
2932 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2933 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2934 (*zeroextractsi_compare0_scratch): Likewise.
2935 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2936 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2937 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2938 (andsi_not_shiftsi_si_scc): Likewise.
2939 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2940 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2941 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2942 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2943 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2944 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2945 (return_addr_mask, *check_arch2): Likewise.
2946 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2947 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2948 (compare_scc splitters): Likewise.
2949 (movcond_addsi): Likewise.
2950 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2951 (*thumb2_addsi3_compare0_scratch): Likewise.
2952 (*thumb2_mulsi_short_compare0): Likewise.
2953 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2954 (compare peephole2s): Likewise.
2955 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2956 nz_comparison_operator names.
2957 (cbranchsi4_insn): Likewise.
2958
2959 * config/arm/constraints.md (c): Use cc_register predicate.
2960
2961 * config/aarch64/constraints.md (c): New constraint.
2962
2963 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2964
2965 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2966 ipa_merge_fn_summary_after_inlining): Micro optimize.
2967
2968 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2969
2970 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2971
2972 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2973
2974 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2975 (ipa_value_range_from_jfunc): New function.
2976 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2977 known_value_ranges parameter; use it to evalulate conditions.
2978 (evaluate_properties_for_edge): Compute known value ranges.
2979 (ipa_fn_summary_t::duplicate): Update use of
2980 evaluate_conditions_for_known_args.
2981 (estimate_ipcp_clone_size_and_time): Likewise.
2982 (ipa_merge_fn_summary_after_inlining): Likewise.
2983 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2984
2985 2019-11-14 Martin Liska <mliska@suse.cz>
2986
2987 * ipa-inline.c (want_inline_small_function_p): Use
2988 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2989 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2990
2991 2019-11-14 Martin Liska <mliska@suse.cz>
2992
2993 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2994 of a callee to get value of the param.
2995 * ipa-inline.c (inline_insns_auto): Use proper
2996 opt_for_fn.
2997 * opts.c (maybe_default_option): Do not overwrite param
2998 value if optimization level does not match. Note that
2999 params usually have default value set via Init() keyword.
3000 * params.opt: Remove -param=max-inline-insns-auto-O2.
3001 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3002 * doc/invoke.texi: Remove documentation of
3003 max-inline-insns-auto-O2.
3004
3005 2019-11-14 Martin Liska <mliska@suse.cz>
3006
3007 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3008 Do not initialize m_other_count.
3009 (switch_conversion::collect): Do not count m_default_count and
3010 m_other_count as we use frequencies for edges.
3011 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3012
3013 2019-11-14 Martin Liska <mliska@suse.cz>
3014
3015 PR other/92329
3016 * doc/invoke.texi: Document -fallocation-dce.
3017
3018 2019-11-14 Martin Liska <mliska@suse.cz>
3019
3020 PR target/92389
3021 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3022 PTA_ICELAKE_CLIENT which is later interited by
3023 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3024
3025 2019-11-14 Martin Liska <mliska@suse.cz>
3026
3027 * ipa-icf.c (sem_item_optimizer::execute): Save
3028 loaded_symbols.
3029 (sem_item_optimizer::parse_nonsingleton_classes):
3030 Return number of loaded symbols.
3031 (sem_item_optimizer::merge_classes): Print
3032 statistics about totally needed symbols.
3033 * ipa-icf.h (parse_nonsingleton_classes): Change return
3034 type.
3035 (merge_classes): Add one argument.
3036
3037 2019-11-14 Martin Liska <mliska@suse.cz>
3038
3039 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3040 func_checker::hash_operand by handling of FIELD_DECLs.
3041
3042 2019-11-14 Martin Liska <mliska@suse.cz>
3043
3044 * ipa-icf-gimple.h (func_checker::func_checker): Add
3045 default constructor.
3046 * ipa-icf.c (sem_function::init): Make operand_equal_p
3047 and hash_operand public.
3048 (sem_item::add_expr): Remove.
3049 (sem_item::add_type): Remove.
3050 (sem_function::hash_stmt): Use m_checker for hashing
3051 of GIMPLE statements.
3052 (sem_function::parse): Init with checker.
3053 (sem_variable::parse): Pass NULL as checker.
3054 (sem_item_optimizer::parse_funcs_and_vars):
3055 Pass checker to ::parse function.
3056 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3057 (sem_variable::parse): New function.
3058 (sem_variable::get_hash): Only return computed hash value.
3059 (sem_variable::init): Initialize hash of a variable.
3060 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3061 to couple of functions as a new argument.
3062
3063 2019-11-14 Martin Liska <mliska@suse.cz>
3064
3065 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3066 bail out reason.
3067 (func_checker::compare_gimple_assign): Likewise.
3068
3069 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3070
3071 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3072 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3073 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3074
3075 * omp-general.c (omp_context_name_list_prop): New function.
3076 (omp_context_selector_matches): Use it. Return 0 if it returns
3077 NULL.
3078 (omp_context_selector_props_compare): Allow equivalency of an
3079 identifier and a string literal containing no embedded zeros.
3080
3081 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3082
3083 * range-op.cc (RANGE3): Remove.
3084 (range_tests): Remove all selftest that check for multi-ranges.
3085 Put tests in namespace selftest.
3086 * selftest.h: Move range_tests into namespace selftest.
3087 * value-range.h (class value_range): Unfriend range_tests.
3088
3089 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3090
3091 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3092 normalize_symbolics and normalize_addresses working in place.
3093 (range_fold_unary_symbolics_p): Same.
3094 (range_fold_unary_symbolics_p): Same.
3095 * value-range.cc (num_pairs): Same.
3096 (lower_bound): Same.
3097 (upper_bound): Same.
3098 (contains_p): Same.
3099 (normalize_addresses): Same.
3100 (normalize_symbolics): Same.
3101 * value-range.h (normalize_symbolics): Same.
3102 (normalize_addresses): Same.
3103
3104 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3105
3106 PR ipa/91682
3107 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3108 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3109 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3110 (ipa_agg_jump_function): Remove member function equal_to.
3111 (ipa_agg_jump_function_p): Remove typedef.
3112 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3113 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3114 information for aggregate jump function.
3115 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3116 record last definition statement.
3117 (load_from_unmodified_param_or_agg): New function.
3118 (ipa_known_agg_contents_list): Add new field type and value, remove
3119 field constant.
3120 (build_agg_jump_func_from_list): Rename parameter const_count to
3121 value_count, build aggregate jump function from ipa_load_agg_data.
3122 (analyze_agg_content_value): New function.
3123 (extract_mem_content): Analyze memory store assignment to prepare
3124 information for aggregate jump function generation.
3125 (determine_known_aggregate_parts): Add new parameter fbi, remove
3126 parameter aa_walk_budeget_p.
3127 (update_jump_functions_after_inlining): Update aggregate jump function.
3128 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3129 (try_make_edge_direct_simple_call): Add new parameter new_root.
3130 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3131 new_root_info.
3132 (update_indirect_edges_after_inlining): Pass new argument to
3133 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3134 (ipa_write_jump_function): Write aggregate jump function to file.
3135 (ipa_read_jump_function): Read aggregate jump function from file.
3136 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3137 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3138 (ipa_agg_value_from_node): Likewise.
3139 (ipa_agg_value_set_from_jfunc): Likewise.
3140 (propagate_vals_across_arith_jfunc): Likewise.
3141 (propagate_aggregate_lattice): Likewise.
3142 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3143 (propagate_vals_across_pass_through): Call
3144 propagate_vals_across_arith_jfunc.
3145 (get_clone_agg_value): Move forward.
3146 (propagate_aggs_across_jump_function): Handle value propagation for
3147 aggregate jump function.
3148 (agg_jmp_p_vec_for_t_vec): Remove.
3149 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3150 with vec<ipa_agg_value>.
3151 (copy_plats_to_inter, intersect_with_plats): Likewise.
3152 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3153 (intersect_aggregate_with_edge): Likewise.
3154 (find_aggregate_values_for_callers_subset): Likewise.
3155 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3156 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3157 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3158 (gather_context_independent_values): Likewise.
3159 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3160 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3161 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3162 (evaluate_properties_for_edge): Likewise.
3163 (estimate_edge_devirt_benefit): Likewise.
3164 (estimate_edge_size_and_time): Likewise.
3165 (estimate_calls_size_and_time): Likewise.
3166 (ipa_call_context::ipa_call_context): Likewise.
3167 (estimate_ipcp_clone_size_and_time): Likewise.
3168 * ipa-fnsummary.h (ipa_call_context): Replace
3169 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3170 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3171 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3172 (do_estimate_edge_size): Likewise.
3173 (do_estimate_edge_hints): Likewise.
3174
3175 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3176
3177 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3178 binary operations.
3179
3180 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3181
3182 * ipa-profile.c (check_argument_count): Check properly that e_info
3183 is non-NULL; do not check descriptors.
3184
3185 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3186
3187 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3188 check for ipa profiles.
3189
3190 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3191
3192 PR c++/92421
3193 * ipa-prop.c (update_indirect_edges_after_inlining):
3194 Mark parameter as used.
3195 * ipa-inline.c (recursive_inlining): Reset node cache
3196 after inlining.
3197 (inline_small_functions): Remove checking ifdef.
3198 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3199 cache consistency.
3200
3201 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3202
3203 PR ipa/92498
3204 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3205 is NULL.
3206 (ipa_profile): Fix reversed test.
3207
3208 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3209
3210 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3211 (propagate_constants_topo): Fix typo.
3212
3213 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3214
3215 * Makefile.in (OBJS): Add value-range.o.
3216 (GTFILES): Add value-range.h.
3217 * gengtype.c (open_base_files): Add value-range.h to list of
3218 header files.
3219 * tree-vrp.c: Move the following value_range related functions:
3220 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3221 constant_p, set_undefined, set_varying, may_contain_p,
3222 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3223 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3224 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3225 value_inside_range, ranges_from_anti_range, union_ranges,
3226 intersect_ranges, intersect_helper, union_helper, union_,
3227 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3228 upper_bound, contains_p, invert, intersect...
3229 * value-range.cc: ...to here.
3230 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3231 associated inline methods from here...
3232 * value-range.h: ...to here.
3233
3234 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3235
3236 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3237 instead of asserting its value.
3238
3239 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3240
3241 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3242 constructors and set methods so value_range_kind is the last
3243 argument and defaults to VR_RANGE.
3244 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3245 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3246 * ipa-prop.c (ipa_get_value_range): Same.
3247 (ipa_compute_jump_functions_for_edge): Same.
3248 * range-op.cc (value_range_from_overflowed_bounds): Same.
3249 (operator_cast::op1_range): Same.
3250 (range_tests): Same.
3251 * range.cc (range_nonzero): Same.
3252 * tree-ssanames.c (get_range_info): Same.
3253 * tree-vrp.c (value_range_equiv::set): Same.
3254 (value_range::value_range): Same.
3255 (value_range_equiv::value_range_equiv): Same.
3256 (value_range_equiv::update): Same.
3257 (value_range_equiv::deep_copy): Same.
3258 (value_range_equiv::move): Same.
3259 (value_range_equiv::set_undefined): Same.
3260 (value_range::set): Same.
3261 (value_range::set_nonzero): Same.
3262 (ranges_from_anti_range): Same.
3263 (extract_range_from_plus_minus_expr): Same.
3264 (value_range::intersect_helper): Same.
3265 (value_range_equiv::intersect): Same.
3266 (value_range::union_helper): Same.
3267 (value_range_equiv::union_): Same.
3268 (value_range::normalize_symbolics): Same.
3269 (value_range::invert): Same.
3270 (determine_value_range_1): Same.
3271 * tree-vrp.h (class value_range): Same.
3272 (class value_range_equiv): Same.
3273 * vr-values.c (set_value_range_to_nonnegative): Same.
3274 (set_value_range_to_truthvalue): Same.
3275 (vr_values::update_value_range): Same.
3276 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3277 (vr_values::extract_range_from_binary_expr): Same.
3278 (vr_values::extract_range_from_comparison): Same.
3279 (vr_values::extract_range_basic): Same.
3280 (vr_values::adjust_range_with_scev): Same.
3281 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3282 (vr_values::extract_range_from_phi_node): Same.
3283
3284 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3285
3286 * tree-dump.c (dequeue_and_dump): Print first tree operand
3287 for VIEW_CONVERT_EXPR.
3288
3289 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3290
3291 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3292 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3293 * real.c (get_max_float): Add norm_max argument.
3294 * real.h (get_max_float): Update prototype.
3295 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3296 get_max_float.
3297
3298 2019-11-13 Martin Liska <mliska@suse.cz>
3299
3300 * dbgcnt.c (test_sorted_dbg_counters): New.
3301 (dbgcnt_c_tests): Likewise.
3302 * selftest-run-tests.c (selftest::run_tests): Likewise.
3303 * selftest.h (dbgcnt_c_tests): Likewise.
3304
3305 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3306 Martin Jambor <mjambor@suse.cz>
3307
3308 PR ipa/92454
3309 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3310 (identify_dead_nodes): Likewise.
3311
3312 2019-11-13 Martin Liska <mliska@suse.cz>
3313
3314 * ipa-icf.c (sem_function::equals_private): Do not overuse
3315 push/pop_cfun functions.
3316
3317 2019-11-13 Martin Liska <mliska@suse.cz>
3318
3319 * common.opt: Document change of -fdbg-cnt option.
3320 * dbgcnt.c (DEBUG_COUNTER): Remove.
3321 (dbg_cnt_is_enabled): Remove.
3322 (dbg_cnt): Work with new intervals.
3323 (dbg_cnt_set_limit_by_index): Set to new
3324 list of intervals.
3325 (dbg_cnt_set_limit_by_name): Likewise.
3326 (dbg_cnt_process_single_pair): Process new format.
3327 (dbg_cnt_process_opt): Likewise.
3328 (dbg_cnt_list_all_counters): Likewise.
3329 * doc/invoke.texi: Document change of -fdbg-cnt option.
3330 (cmp_tuples): New.
3331
3332 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3333
3334 * ipa-inline.c (ipa_inline): Check that function is defined before
3335 flattening.
3336
3337 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3338 Julian Brown <julian@codesourcery.com>
3339
3340 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3341 flag_worker_partitioning is not set.
3342 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3343 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3344
3345 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3346
3347 * config/gcn/gcn-run.c (heap_region): New global variable.
3348 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3349 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3350 (get_kernarg_region): Move contents to ....
3351 (get_memory_region): .... here.
3352 (get_heap_region): New function.
3353 (init_device): Initialize the heap_region.
3354 (device_malloc): Add region parameter.
3355 (struct kernargs): Move heap ....
3356 (heap): ... to global scope.
3357 (main): Allocate heap separate to kernargs.
3358
3359 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3360
3361 * ipa-prop.c (ipa_print_node_jump_functions,
3362 ipa_print_node_params): Print info about missing summaries.
3363
3364 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3365
3366 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3367 the cost of generating loop masks.
3368
3369 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3370
3371 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3372 New function.
3373 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3374 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3375 (vect_transform_loop): Likewise.
3376 (vect_analyze_loop_costing): Don't take the cost of versioning
3377 into account for the static profitability threshold if it turns
3378 out that no versioning is needed.
3379
3380 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3381
3382 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3383 and target_option_default_node to get -fprofile-generate ctors working
3384 right with LTO.
3385
3386 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3387
3388 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3389 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3390 (vectorizable_assignment): Don't add a cost for nop conversions.
3391 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3392 Likewise.
3393 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3394
3395 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3396
3397 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3398 number of ncopies as an additional argument.
3399 (vectorizable_conversion): Update call accordingly. Use "modifier"
3400 to check whether a conversion is between vectors with the same
3401 numbers of units.
3402
3403 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3404
3405 * config/aarch64/aarch64-sve-builtins-functions.h
3406 (unary_count::expand): Use aarch64_sve_int_mode instead of
3407 mode_for_int_vector.
3408
3409 2019-11-13 Martin Liska <mliska@suse.cz>
3410
3411 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3412
3413 2019-11-13 Martin Liska <mliska@suse.cz>
3414
3415 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3416 Remove call to finalize_options_struct.
3417
3418 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3419
3420 PR target/92055
3421 * config/avr/t-avr (avr-mcus): Do not depend on
3422 $(srcdir)/config/avr/t-multilib.
3423
3424 2019-11-13 Richard Biener <rguenther@suse.de>
3425
3426 PR tree-optimization/92473
3427 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3428 direct optab reduction in the correct type.
3429
3430 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3431
3432 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3433 hexadecimal literal.
3434
3435 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3436
3437 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3438 UNORDERED if !HONOR_NANS (DFmode).
3439 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3440 if !HONOR_NANS (<MODE>mode).
3441
3442 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3443
3444 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3445 (ipcp_verify_propagated_values): Likewise.
3446 (propagate_constants_across_call): Likewise.
3447 (propagate_constants_topo): Likewise.
3448 (ipcp_propagate_stage): Likewise.
3449
3450 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3451
3452 PR ipa/92471
3453 * ipa-profile.c (check_argument_count): Break out from ...;
3454 watch for missing summaries.
3455 (ipa_profile): Here.
3456
3457 2019-11-12 Martin Sebor <msebor@redhat.com>
3458
3459 PR tree-optimization/92412
3460 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3461 extern variables.
3462
3463 2019-11-12 Martin Sebor <msebor@redhat.com>
3464
3465 PR middle-end/83688
3466 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3467 (directive::argno): New member.
3468 (format_result::aliases, format_result::alias_count): New data members.
3469 (format_result::append_alias): New member function.
3470 (fmtresult::dst_offset): New data member.
3471 (pass_sprintf_length::call_info::dst_origin): New data member.
3472 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3473 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3474 (get_origin_and_offset): Same.
3475 (format_string): Call it.
3476 (format_directive): Call append_alias and set directive argument
3477 number.
3478 (maybe_warn_overlap): New function.
3479 (pass_sprintf_length::compute_format_length): Call it.
3480 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3481 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3482
3483 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3484
3485 PR rtl-optimization/92430
3486 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3487 dominance info at the beginning.
3488
3489 2019-11-12 Richard Biener <rguenther@suse.de>
3490
3491 PR tree-optimization/92460
3492 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3493 expression before gimplifying.
3494
3495 2019-11-12 Richard Biener <rguenther@suse.de>
3496
3497 PR tree-optimization/92461
3498 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3499 stmt after propagation.
3500
3501 2019-11-12 Martin Liska <mliska@suse.cz>
3502
3503 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3504 Use SET_OPTION_IF_UNSET.
3505 (ix86_option_override_internal): Likewise.
3506 * opts.c (default_options_optimization): Likewise.
3507 (finish_options): Likewise.
3508 (enable_fdo_optimizations): Likewise.
3509 (common_handle_option): Likewise.
3510
3511 2019-11-12 Martin Liska <mliska@suse.cz>
3512
3513 * common/common-target.def: Remove option_validate_param and
3514 option_default_params.
3515 * common/common-targhooks.c (default_option_validate_param):
3516 Remove.
3517 * common/common-targhooks.h (default_option_validate_param):
3518 Remove.
3519 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3520 Remove usage of this.
3521 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3522 (aarch64_option_validate_param): Likewise.
3523 (aarch64_option_default_params): Likewise
3524 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3525 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3526 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3527 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3528 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3529 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3530 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3531 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3532 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3533 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3534 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3535 guard_size here.
3536 * doc/tm.texi: Remove option_default_params and option_validate_param.
3537 * doc/tm.texi.in: Likewise.
3538
3539 2019-11-12 Martin Liska <mliska@suse.cz>
3540
3541 * common/common-target.def:
3542 Do not mention set_default_param_value
3543 and set_param_value.
3544 * doc/tm.texi: Likewise.
3545
3546 2019-11-12 Martin Liska <mliska@suse.cz>
3547
3548 * common.opt: Remove param_values.
3549 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3550 Remove finalize_options_struct.
3551 * gcc.c (driver::decode_argv): Do not call global_init_params
3552 and finish_params.
3553 (driver::finalize): Do not call params_c_finalize
3554 and finalize_options_struct.
3555 * opt-suggestions.c (option_proposer::get_completions): Remove
3556 special casing of params.
3557 (option_proposer::find_param_completions): Remove.
3558 (test_completion_partial_match): Update expected output.
3559 * opt-suggestions.h: Remove find_param_completions.
3560 * opts-common.c (add_misspelling_candidates): Add
3561 --param with a space.
3562 * opts.c (handle_param): Remove.
3563 (init_options_struct):. Remove init_options_struct and
3564 similar calls.
3565 (finalize_options_struct): Remove.
3566 (common_handle_option): Use SET_OPTION_IF_UNSET.
3567 * opts.h (finalize_options_struct): Remove.
3568 * toplev.c (general_init): Do not call global_init_params.
3569 (toplev::finalize): Do not call params_c_finalize and
3570 finalize_options_struct.
3571
3572 2019-11-12 Martin Liska <mliska@suse.cz>
3573
3574 * Makefile.in: Remove PARAMS_H and params.list
3575 and params.options.
3576 * params-enum.h: Remove.
3577 * params-list.h: Remove.
3578 * params-options.h: Remove.
3579 * params.c: Remove.
3580 * params.def: Remove.
3581 * params.h: Remove.
3582 * asan.c: Do not include params.h.
3583 * auto-profile.c: Likewise.
3584 * bb-reorder.c: Likewise.
3585 * builtins.c: Likewise.
3586 * cfgcleanup.c: Likewise.
3587 * cfgexpand.c: Likewise.
3588 * cfgloopanal.c: Likewise.
3589 * cgraph.c: Likewise.
3590 * combine.c: Likewise.
3591 * common/config/aarch64/aarch64-common.c: Likewise.
3592 * common/config/gcn/gcn-common.c: Likewise.
3593 * common/config/ia64/ia64-common.c: Likewise.
3594 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3595 * common/config/rs6000/rs6000-common.c: Likewise.
3596 * common/config/sh/sh-common.c: Likewise.
3597 * config/aarch64/aarch64.c: Likewise.
3598 * config/alpha/alpha.c: Likewise.
3599 * config/arm/arm.c: Likewise.
3600 * config/avr/avr.c: Likewise.
3601 * config/csky/csky.c: Likewise.
3602 * config/i386/i386-builtins.c: Likewise.
3603 * config/i386/i386-expand.c: Likewise.
3604 * config/i386/i386-features.c: Likewise.
3605 * config/i386/i386-options.c: Likewise.
3606 * config/i386/i386.c: Likewise.
3607 * config/ia64/ia64.c: Likewise.
3608 * config/rs6000/rs6000-logue.c: Likewise.
3609 * config/rs6000/rs6000.c: Likewise.
3610 * config/s390/s390.c: Likewise.
3611 * config/sparc/sparc.c: Likewise.
3612 * config/visium/visium.c: Likewise.
3613 * coverage.c: Likewise.
3614 * cprop.c: Likewise.
3615 * cse.c: Likewise.
3616 * cselib.c: Likewise.
3617 * dse.c: Likewise.
3618 * emit-rtl.c: Likewise.
3619 * explow.c: Likewise.
3620 * final.c: Likewise.
3621 * fold-const.c: Likewise.
3622 * gcc.c: Likewise.
3623 * gcse.c: Likewise.
3624 * ggc-common.c: Likewise.
3625 * ggc-page.c: Likewise.
3626 * gimple-loop-interchange.cc: Likewise.
3627 * gimple-loop-jam.c: Likewise.
3628 * gimple-loop-versioning.cc: Likewise.
3629 * gimple-ssa-split-paths.c: Likewise.
3630 * gimple-ssa-sprintf.c: Likewise.
3631 * gimple-ssa-store-merging.c: Likewise.
3632 * gimple-ssa-strength-reduction.c: Likewise.
3633 * gimple-ssa-warn-alloca.c: Likewise.
3634 * gimple-ssa-warn-restrict.c: Likewise.
3635 * graphite-isl-ast-to-gimple.c: Likewise.
3636 * graphite-optimize-isl.c: Likewise.
3637 * graphite-scop-detection.c: Likewise.
3638 * graphite-sese-to-poly.c: Likewise.
3639 * graphite.c: Likewise.
3640 * haifa-sched.c: Likewise.
3641 * hsa-gen.c: Likewise.
3642 * ifcvt.c: Likewise.
3643 * ipa-cp.c: Likewise.
3644 * ipa-fnsummary.c: Likewise.
3645 * ipa-inline-analysis.c: Likewise.
3646 * ipa-inline.c: Likewise.
3647 * ipa-polymorphic-call.c: Likewise.
3648 * ipa-profile.c: Likewise.
3649 * ipa-prop.c: Likewise.
3650 * ipa-split.c: Likewise.
3651 * ipa-sra.c: Likewise.
3652 * ira-build.c: Likewise.
3653 * ira-conflicts.c: Likewise.
3654 * loop-doloop.c: Likewise.
3655 * loop-invariant.c: Likewise.
3656 * loop-unroll.c: Likewise.
3657 * lra-assigns.c: Likewise.
3658 * lra-constraints.c: Likewise.
3659 * modulo-sched.c: Likewise.
3660 * opt-suggestions.c: Likewise.
3661 * opts.c: Likewise.
3662 * postreload-gcse.c: Likewise.
3663 * predict.c: Likewise.
3664 * reload.c: Likewise.
3665 * reorg.c: Likewise.
3666 * resource.c: Likewise.
3667 * sanopt.c: Likewise.
3668 * sched-deps.c: Likewise.
3669 * sched-ebb.c: Likewise.
3670 * sched-rgn.c: Likewise.
3671 * sel-sched-ir.c: Likewise.
3672 * sel-sched.c: Likewise.
3673 * shrink-wrap.c: Likewise.
3674 * stmt.c: Likewise.
3675 * targhooks.c: Likewise.
3676 * toplev.c: Likewise.
3677 * tracer.c: Likewise.
3678 * trans-mem.c: Likewise.
3679 * tree-chrec.c: Likewise.
3680 * tree-data-ref.c: Likewise.
3681 * tree-if-conv.c: Likewise.
3682 * tree-inline.c: Likewise.
3683 * tree-loop-distribution.c: Likewise.
3684 * tree-parloops.c: Likewise.
3685 * tree-predcom.c: Likewise.
3686 * tree-profile.c: Likewise.
3687 * tree-scalar-evolution.c: Likewise.
3688 * tree-sra.c: Likewise.
3689 * tree-ssa-ccp.c: Likewise.
3690 * tree-ssa-dom.c: Likewise.
3691 * tree-ssa-dse.c: Likewise.
3692 * tree-ssa-ifcombine.c: Likewise.
3693 * tree-ssa-loop-ch.c: Likewise.
3694 * tree-ssa-loop-im.c: Likewise.
3695 * tree-ssa-loop-ivcanon.c: Likewise.
3696 * tree-ssa-loop-ivopts.c: Likewise.
3697 * tree-ssa-loop-manip.c: Likewise.
3698 * tree-ssa-loop-niter.c: Likewise.
3699 * tree-ssa-loop-prefetch.c: Likewise.
3700 * tree-ssa-loop-unswitch.c: Likewise.
3701 * tree-ssa-math-opts.c: Likewise.
3702 * tree-ssa-phiopt.c: Likewise.
3703 * tree-ssa-pre.c: Likewise.
3704 * tree-ssa-reassoc.c: Likewise.
3705 * tree-ssa-sccvn.c: Likewise.
3706 * tree-ssa-scopedtables.c: Likewise.
3707 * tree-ssa-sink.c: Likewise.
3708 * tree-ssa-strlen.c: Likewise.
3709 * tree-ssa-structalias.c: Likewise.
3710 * tree-ssa-tail-merge.c: Likewise.
3711 * tree-ssa-threadbackward.c: Likewise.
3712 * tree-ssa-threadedge.c: Likewise.
3713 * tree-ssa-uninit.c: Likewise.
3714 * tree-switch-conversion.c: Likewise.
3715 * tree-vect-data-refs.c: Likewise.
3716 * tree-vect-loop.c: Likewise.
3717 * tree-vect-slp.c: Likewise.
3718 * tree-vrp.c: Likewise.
3719 * tree.c: Likewise.
3720 * value-prof.c: Likewise.
3721 * var-tracking.c: Likewise.
3722
3723 2019-11-12 Martin Liska <mliska@suse.cz>
3724
3725 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3726 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3727 macro.
3728 (asan_sanitize_allocas_p): Likewise.
3729 (asan_emit_stack_protection): Likewise.
3730 (asan_protect_global): Likewise.
3731 (instrument_derefs): Likewise.
3732 (instrument_builtin_call): Likewise.
3733 (asan_expand_mark_ifn): Likewise.
3734 * auto-profile.c (auto_profile): Likewise.
3735 * bb-reorder.c (copy_bb_p): Likewise.
3736 (duplicate_computed_gotos): Likewise.
3737 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3738 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3739 (try_crossjump_bb): Likewise.
3740 * cfgexpand.c (defer_stack_allocation): Likewise.
3741 (stack_protect_classify_type): Likewise.
3742 (pass_expand::execute): Likewise.
3743 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3744 (estimate_reg_pressure_cost): Likewise.
3745 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3746 * combine.c (combine_instructions): Likewise.
3747 (record_value_for_reg): Likewise.
3748 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3749 (aarch64_option_default_params): Likewise.
3750 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3751 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3752 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3753 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3754 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3755 (aarch64_allocate_and_probe_stack_space): Likewise.
3756 (aarch64_expand_epilogue): Likewise.
3757 (aarch64_override_options_internal): Likewise.
3758 * config/alpha/alpha.c (alpha_option_override): Likewise.
3759 * config/arm/arm.c (arm_option_override): Likewise.
3760 (arm_valid_target_attribute_p): Likewise.
3761 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3762 * config/i386/i386.c (get_probe_interval): Likewise.
3763 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3764 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3765 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3766 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3767 (get_stack_clash_protection_guard_size): Likewise.
3768 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3769 * config/s390/s390.c (allocate_stack_space): Likewise.
3770 (s390_emit_prologue): Likewise.
3771 (s390_option_override_internal): Likewise.
3772 * config/sparc/sparc.c (sparc_option_override): Likewise.
3773 * config/visium/visium.c (visium_option_override): Likewise.
3774 * coverage.c (get_coverage_counts): Likewise.
3775 (coverage_compute_profile_id): Likewise.
3776 (coverage_begin_function): Likewise.
3777 (coverage_end_function): Likewise.
3778 * cse.c (cse_find_path): Likewise.
3779 (cse_extended_basic_block): Likewise.
3780 (cse_main): Likewise.
3781 * cselib.c (cselib_invalidate_mem): Likewise.
3782 * dse.c (dse_step1): Likewise.
3783 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3784 (get_max_insn_count): Likewise.
3785 (make_debug_insn_raw): Likewise.
3786 (init_emit): Likewise.
3787 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3788 * final.c (compute_alignments): Likewise.
3789 * fold-const.c (fold_range_test): Likewise.
3790 (fold_truth_andor): Likewise.
3791 (tree_single_nonnegative_warnv_p): Likewise.
3792 (integer_valued_real_single_p): Likewise.
3793 * gcse.c (want_to_gcse_p): Likewise.
3794 (prune_insertions_deletions): Likewise.
3795 (hoist_code): Likewise.
3796 (gcse_or_cprop_is_too_expensive): Likewise.
3797 * ggc-common.c: Likewise.
3798 * ggc-page.c (ggc_collect): Likewise.
3799 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3800 (MAX_DATAREFS): Likewise.
3801 (OUTER_STRIDE_RATIO): Likewise.
3802 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3803 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3804 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3805 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3806 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3807 (imm_store_chain_info::output_merged_store): Likewise.
3808 (pass_store_merging::process_store): Likewise.
3809 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3810 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3811 (scop_to_isl_ast): Likewise.
3812 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3813 (optimize_isl): Likewise.
3814 * graphite-scop-detection.c (build_scops): Likewise.
3815 * haifa-sched.c (set_modulo_params): Likewise.
3816 (rank_for_schedule): Likewise.
3817 (model_add_to_worklist): Likewise.
3818 (model_promote_insn): Likewise.
3819 (model_choose_insn): Likewise.
3820 (queue_to_ready): Likewise.
3821 (autopref_multipass_dfa_lookahead_guard): Likewise.
3822 (schedule_block): Likewise.
3823 (sched_init): Likewise.
3824 * hsa-gen.c (init_prologue): Likewise.
3825 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3826 (cond_move_process_if_block): Likewise.
3827 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3828 (merge_agg_lats_step): Likewise.
3829 (devirtualization_time_bonus): Likewise.
3830 (hint_time_bonus): Likewise.
3831 (incorporate_penalties): Likewise.
3832 (good_cloning_opportunity_p): Likewise.
3833 (ipcp_propagate_stage): Likewise.
3834 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3835 (set_switch_stmt_execution_predicate): Likewise.
3836 (analyze_function_body): Likewise.
3837 (compute_fn_summary): Likewise.
3838 * ipa-inline-analysis.c (estimate_growth): Likewise.
3839 * ipa-inline.c (caller_growth_limits): Likewise.
3840 (inline_insns_single): Likewise.
3841 (inline_insns_auto): Likewise.
3842 (can_inline_edge_by_limits_p): Likewise.
3843 (want_early_inline_function_p): Likewise.
3844 (big_speedup_p): Likewise.
3845 (want_inline_small_function_p): Likewise.
3846 (want_inline_self_recursive_call_p): Likewise.
3847 (edge_badness): Likewise.
3848 (recursive_inlining): Likewise.
3849 (compute_max_insns): Likewise.
3850 (early_inliner): Likewise.
3851 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3852 * ipa-profile.c (ipa_profile): Likewise.
3853 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3854 (ipa_analyze_node): Likewise.
3855 (ipcp_transform_function): Likewise.
3856 * ipa-split.c (consider_split): Likewise.
3857 * ipa-sra.c (allocate_access): Likewise.
3858 (process_scan_results): Likewise.
3859 (ipa_sra_summarize_function): Likewise.
3860 (pull_accesses_from_callee): Likewise.
3861 * ira-build.c (loop_compare_func): Likewise.
3862 (mark_loops_for_removal): Likewise.
3863 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3864 * loop-doloop.c (doloop_optimize): Likewise.
3865 * loop-invariant.c (gain_for_invariant): Likewise.
3866 (move_loop_invariants): Likewise.
3867 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3868 (decide_unroll_runtime_iterations): Likewise.
3869 (decide_unroll_stupid): Likewise.
3870 (expand_var_during_unrolling): Likewise.
3871 * lra-assigns.c (spill_for): Likewise.
3872 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3873 * modulo-sched.c (sms_schedule): Likewise.
3874 (DFA_HISTORY): Likewise.
3875 * opts.c (default_options_optimization): Likewise.
3876 (finish_options): Likewise.
3877 (common_handle_option): Likewise.
3878 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3879 (if): Likewise.
3880 * predict.c (get_hot_bb_threshold): Likewise.
3881 (maybe_hot_count_p): Likewise.
3882 (probably_never_executed): Likewise.
3883 (predictable_edge_p): Likewise.
3884 (predict_loops): Likewise.
3885 (expr_expected_value_1): Likewise.
3886 (tree_predict_by_opcode): Likewise.
3887 (handle_missing_profiles): Likewise.
3888 * reload.c (find_equiv_reg): Likewise.
3889 * reorg.c (redundant_insn): Likewise.
3890 * resource.c (mark_target_live_regs): Likewise.
3891 (incr_ticks_for_insn): Likewise.
3892 * sanopt.c (pass_sanopt::execute): Likewise.
3893 * sched-deps.c (sched_analyze_1): Likewise.
3894 (sched_analyze_2): Likewise.
3895 (sched_analyze_insn): Likewise.
3896 (deps_analyze_insn): Likewise.
3897 * sched-ebb.c (schedule_ebbs): Likewise.
3898 * sched-rgn.c (find_single_block_region): Likewise.
3899 (too_large): Likewise.
3900 (haifa_find_rgns): Likewise.
3901 (extend_rgns): Likewise.
3902 (new_ready): Likewise.
3903 (schedule_region): Likewise.
3904 (sched_rgn_init): Likewise.
3905 * sel-sched-ir.c (make_region_from_loop): Likewise.
3906 * sel-sched-ir.h (MAX_WS): Likewise.
3907 * sel-sched.c (process_pipelined_exprs): Likewise.
3908 (sel_setup_region_sched_flags): Likewise.
3909 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3910 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3911 * toplev.c (print_version): Likewise.
3912 (process_options): Likewise.
3913 * tracer.c (tail_duplicate): Likewise.
3914 * trans-mem.c (tm_log_add): Likewise.
3915 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3916 * tree-data-ref.c (split_constant_offset): Likewise.
3917 (compute_all_dependences): Likewise.
3918 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3919 * tree-inline.c (remap_gimple_stmt): Likewise.
3920 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3921 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3922 (create_parallel_loop): Likewise.
3923 * tree-predcom.c (determine_unroll_factor): Likewise.
3924 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3925 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3926 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3927 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3928 (dse_optimize_redundant_stores): Likewise.
3929 (dse_classify_store): Likewise.
3930 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3931 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3932 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3933 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3934 (try_peel_loop): Likewise.
3935 (tree_unroll_loops_completely): Likewise.
3936 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3937 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3938 (MAX_CONSIDERED_GROUPS): Likewise.
3939 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3940 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3941 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3942 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3943 (L1_CACHE_SIZE_BYTES): Likewise.
3944 (L2_CACHE_SIZE_BYTES): Likewise.
3945 (should_issue_prefetch_p): Likewise.
3946 (schedule_prefetches): Likewise.
3947 (determine_unroll_factor): Likewise.
3948 (volume_of_references): Likewise.
3949 (add_subscript_strides): Likewise.
3950 (self_reuse_distance): Likewise.
3951 (mem_ref_count_reasonable_p): Likewise.
3952 (insn_to_prefetch_ratio_too_small_p): Likewise.
3953 (loop_prefetch_arrays): Likewise.
3954 (tree_ssa_prefetch_arrays): Likewise.
3955 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3956 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3957 (convert_mult_to_fma): Likewise.
3958 (math_opts_dom_walker::after_dom_children): Likewise.
3959 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3960 (hoist_adjacent_loads): Likewise.
3961 (gate_hoist_loads): Likewise.
3962 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3963 (compute_partial_antic_aux): Likewise.
3964 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3965 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3966 (vn_reference_lookup): Likewise.
3967 (do_rpo_vn): Likewise.
3968 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3969 * tree-ssa-sink.c (select_best_block): Likewise.
3970 * tree-ssa-strlen.c (new_stridx): Likewise.
3971 (new_addr_stridx): Likewise.
3972 (get_range_strlen_dynamic): Likewise.
3973 (class ssa_name_limit_t): Likewise.
3974 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3975 (create_variable_info_for_1): Likewise.
3976 (init_alias_vars): Likewise.
3977 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3978 (tail_merge_optimize): Likewise.
3979 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3980 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3981 (thread_jumps::find_jump_threads_backwards): Likewise.
3982 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3983 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3984 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3985 (jump_table_cluster::can_be_handled): Likewise.
3986 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3987 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3988 (param_switch_conversion_branch_ratio): Likewise.
3989 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3990 (vect_enhance_data_refs_alignment): Likewise.
3991 (vect_prune_runtime_alias_test_list): Likewise.
3992 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3993 (vect_get_datarefs_in_loop): Likewise.
3994 (vect_analyze_loop): Likewise.
3995 * tree-vect-slp.c (vect_slp_bb): Likewise.
3996 * tree-vectorizer.h: Likewise.
3997 * tree-vrp.c (find_switch_asserts): Likewise.
3998 (vrp_prop::check_mem_ref): Likewise.
3999 * tree.c (wide_int_to_tree_1): Likewise.
4000 (cache_integer_cst): Likewise.
4001 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4002 (reverse_op): Likewise.
4003 (vt_find_locations): Likewise.
4004
4005 2019-11-12 Martin Liska <mliska@suse.cz>
4006
4007 * Makefile.in: Include params.opt.
4008 * flag-types.h (enum parloops_schedule_type): Add
4009 parloops_schedule_type used in params.opt.
4010 * params.opt: New file.
4011
4012 2019-11-12 Martin Liska <mliska@suse.cz>
4013
4014 * common.opt: Remove --param and --param= options.
4015 * opt-functions.awk: Mark CL_PARAMS for options
4016 that have Param keyword.
4017 * opts-common.c (decode_cmdline_options_to_array):
4018 Replace --param key=value with --param=key=value.
4019 * opts.c (print_filtered_help): Remove special
4020 printing of params.
4021 (print_specific_help): Update title for params.
4022 (common_handle_option): Do not handle OPT__param.
4023 opts.h (SET_OPTION_IF_UNSET): New macro.
4024 * doc/options.texi: Document Param keyword.
4025
4026 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4027 Frederik Harwath <frederik@codesourcery.com>
4028 Thomas Schwinge <thomas@codesourcery.com>
4029
4030 gcc/
4031 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4032 enumeration constant.
4033 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4034 (is_gimple_omp_offloaded): Likewise.
4035 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4036 constant. Adjust the value of ORT_NONE accordingly.
4037 (is_gimple_stmt): Handle OACC_SERIAL.
4038 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4039 (gomp_needs_data_present): Likewise.
4040 (gimplify_adjust_omp_clauses): Likewise.
4041 (gimplify_omp_workshare): Handle OACC_SERIAL.
4042 (gimplify_expr): Likewise.
4043 * omp-expand.c (expand_omp_target):
4044 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4045 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4046 * omp-low.c (is_oacc_parallel): Rename function to...
4047 (is_oacc_parallel_or_serial): ... this.
4048 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4049 (scan_sharing_clauses): Adjust accordingly.
4050 (scan_omp_for): Likewise.
4051 (lower_oacc_head_mark): Likewise.
4052 (convert_from_firstprivate_int): Likewise.
4053 (lower_omp_target): Likewise.
4054 (check_omp_nesting_restrictions): Handle
4055 GF_OMP_TARGET_KIND_OACC_SERIAL.
4056 (lower_oacc_reductions): Likewise.
4057 (lower_omp_target): Likewise.
4058 * tree.def (OACC_SERIAL): New tree code.
4059 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4060
4061 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4062
4063 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4064
4065 PR target/92449
4066 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4067 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4068
4069 PR tree-optimization/92452
4070 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4071 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4072 MINUS_EXPR on it.
4073
4074 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4075
4076 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4077 safelen with 0.
4078
4079 2019-11-12 Alan Modra <amodra@gmail.com>
4080
4081 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4082 element of unspec vec.
4083 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4084 PC-relative TLS.
4085 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4086 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4087 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4088 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4089
4090 2019-11-12 Alan Modra <amodra@gmail.com>
4091
4092 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4093 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4094 (IS_NOMARK_TLSGETADDR): Likewise.
4095 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4096 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4097 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4098 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4099 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4100 (rs6000_indirect_call_template_1): Likewise.
4101 (rs6000_pltseq_template): Likewise.
4102 (rs6000_opt_vars): Remove "tls-markers" entry.
4103 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4104 with TARGET_ELF.
4105 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4106 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4107 (pltseq_plt_pcrel<mode>): Likewise.
4108 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4109 (call_value_local64): Likewise.
4110 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4111 output and length attribute sub-expression.
4112 (call_value_nonlocal_sysv<mode>),
4113 (call_value_nonlocal_sysv_secure<mode>),
4114 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4115 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4116 (call_value_indirect_pcrel<mode>): Likewise.
4117 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4118 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4119 * configure: Regenerate.
4120 * config.in: Regenerate.
4121
4122 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4123
4124 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4125 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4126 address being a prefixed load/store.
4127 (stack_protect_testdi): Deal with either address being a prefixed
4128 load.
4129
4130 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4131
4132 PR bootstrap/92433
4133 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4134 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4135 std::swap.
4136
4137 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4138
4139 PR tree-optimization/92420
4140 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4141 up file.
4142 (get_group_load_store_type): Use it for reversed SLP accesses.
4143
4144 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4145
4146 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4147 summary.
4148 (ipcp_transformation_t::duplicate): Break out from ...
4149 (ipa_node_params_t::duplicate): ... here; add copying of agg
4150 replacements.
4151 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4152 (ipcp_transformation_t): Add duplicate.
4153
4154 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4155
4156 PR fortran/91828
4157 * doc/install.texi: Document that the minimum MPFR version is
4158 3.1.0.
4159
4160 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4161
4162 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4163 use new register constraint letters.
4164
4165 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4166
4167 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4168 as well, if interesting recover the symbol and re-legitimize the
4169 pic address.
4170
4171 2019-11-11 Martin Liska <mliska@suse.cz>
4172
4173 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4174 alphabetically.
4175
4176 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4177
4178 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4179 account when checking if there are enough iterations to vectorize
4180 epilogue.
4181
4182 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4183 Kwok Cheung Yeung <kcy@codesourcery.com>
4184
4185 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4186 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4187 (LANG_HOOKS_DECLS): Rename also here.
4188 * langhooks.h (lang_hooks_for_decls): Rename
4189 omp_is_optional_argument to omp_check_optional_argument; take
4190 additional bool argument.
4191 * omp-general.h (omp_check_optional_argument): Likewise.
4192 * omp-general.h (omp_check_optional_argument): Likewise.
4193 * omp-low.c (lower_omp_target): Update calls; handle absent
4194 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4195
4196 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4197
4198 PR target/87833
4199 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4200 -fPIC and -shared the last to create offload image.
4201
4202 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4203
4204 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4205 of 'offset'.
4206
4207 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4208 (config.status): Use/depend on it.
4209 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4210 * configure: Regenerate.
4211
4212 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4213
4214 PR tree-optimization/88760
4215 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4216 * gcc/common/config/rs6000/rs6000-common.c
4217 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4218 Turn on -funroll-loops and -munroll-only-small-loops.
4219 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4220 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4221 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4222 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4223 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4224 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4225
4226 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4227
4228 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4229 Make scalar_load, vector_load, unaligned_load and
4230 vector_gather_load cost more to conform hardware latency and
4231 insn cost settings.
4232
4233 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4234
4235 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4236 (MACHO_SYMBOL_LINKER_VIS_P): New.
4237
4238 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4239
4240 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4241 registers in eliminable_regset.
4242
4243 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4244
4245 * ipa-inline.c (compute_uninlined_call_time,
4246 compute_inlined_call_time): Take edge frequency as
4247 parameter rather than computing it by itself.
4248 (big_speedup_p, edge_badness): Manually CSE sreal
4249 frequency calculations.
4250
4251 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4252
4253 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4254 case where profiles are same.
4255
4256 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4257
4258 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4259
4260 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4261
4262 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4263 args summaries of inlined edge unless it holds info about
4264 described reference.
4265
4266 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4267
4268 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4269 (*movcc_internal1): Rename to...
4270 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4271
4272 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4273
4274 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4275 (cgraph_node::create_virtual_clone): Copy it.
4276 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4277 summaries.
4278 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4279 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4280 is disabled.
4281 (propagate_constants_across_call): If callee is not analyzed, give up.
4282 (propagate_constants_topo): Lower to bottom latties of all callees of
4283 functions with ipa-cp disabled.
4284 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4285 (cgraph_edge_brings_value_p): Check for availability first.
4286 (create_specialized_node): Set ipcp_clone.
4287 (ipcp_store_bits_results): Check that info is present.
4288 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4289 thunks.
4290 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4291 conservative when callee summary is missing.
4292 (remap_edge_summaries): Lookup call summary only when needed.
4293 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4294 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4295 Use get_create.
4296 (ipa_analyze_node): Use get_create.
4297 (propagate_controlled_uses): Do not propagate when function is not
4298 analyzed.
4299 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4300 (ipa_read_node_info): Use get_create.
4301 * ipa-prop.h (IPA_NODE_REF): Use get.
4302 (IPA_NODE_REF_GET_CREATE): New.
4303
4304 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4305
4306 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4307 on function symbol.
4308
4309 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4310
4311 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4312 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4313 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4314 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4315
4316 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4317
4318 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4319 capping the growth cumulated.
4320 (offline_size): Break out from ...
4321 (estimate_growth): ... here.
4322 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4323 parameters.
4324 (growth_likely_positive): Turn to ...
4325 (growth_positive_p): Re-implement.
4326 * ipa-inline.h (growth_likely_positive): Remove.
4327 (growth_positive_p): Declare.
4328 * ipa-inline.c (want_inline_small_function_p): Use
4329 growth_positive_p.
4330 (want_inline_function_to_all_callers_p): Likewise.
4331
4332 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4333
4334 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4335 calculation of min_size.
4336 (ipa_update_overall_fn_summary): Likewise.
4337
4338 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4339
4340 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4341 estimate_edge_devirt_benefit when not computing hints;
4342 do not compute time when not asked for.
4343 (estimate_calls_size_and_time): Pass NULL hints and time when
4344 these are not computed; do not evaluate hint predicates when these are
4345 not computed.
4346 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4347 frequency.
4348
4349 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4350
4351 PR tree-optimization/92401
4352 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4353 if res_op->code is an expression with code length 1.
4354 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4355 if res_op->code is an expression with code length 2.
4356 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4357 if res_op->code is an expression with code length 3.
4358
4359 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4360
4361 * config/darwin.c (machopic_mcount_stub_name): Validate the
4362 symbol stub name when it is created.
4363 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4364 stub validation.
4365
4366 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4367
4368 * symtab.c: Fix comment typos.
4369 * cgraphunit.c: Likewise.
4370 * cgraph.h: Likewise.
4371 * cgraphclones.c: Likewise.
4372 * cgraph.c: Likewise.
4373 * varpool.c: Likewise.
4374 * tree-ssa-strlen.c: Likewise.
4375 * ipa-sra.c: Likewise.
4376 (scan_expr_access, check_all_callers_for_issues): Fix typo
4377 in a dump message.
4378
4379 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4380
4381 * config/darwin-protos.h: Add include quard.
4382
4383 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4384
4385 * range-op.h (range_operator::fold_range): Return result in a
4386 reference parameter instead of by value.
4387 (range_operator::wi_fold): Same.
4388 * range-op.cc (range_operator::wi_fold): Return result in a reference
4389 parameter instead of by value.
4390 (range_operator::fold_range): Same.
4391 (value_range_from_overflowed_bounds): Same.
4392 (value_range_with_overflow): Same
4393 (create_possibly_reversed_range): Same.
4394 (operator_equal::fold_range): Same.
4395 (operator_not_equal::fold_range): Same.
4396 (operator_lt::fold_range): Same.
4397 (operator_le::fold_range): Same.
4398 (operator_gt::fold_range): Same.
4399 (operator_ge::fold_range): Same.
4400 (operator_plus::wi_fold): Same.
4401 (operator_plus::op1_range): Change call to fold_range.
4402 (operator_plus::op2_range): Change call to fold_range.
4403 (operator_minus::wi_fold): Return result via reference parameter.
4404 (operator_minus::op1_range): Change call to fold_range.
4405 (operator_minus::op2_range): Change call to fold_range.
4406 (operator_min::wi_fold): Return result via reference parameter.
4407 (operator_max::wi_fold): Same.
4408 (cross_product_operator::wi_cross_product): Same.
4409 (operator_mult::wi_fold): Same.
4410 (operator_div::wi_fold): Same.
4411 (operator_div op_floor_div): Fix whitespace.
4412 (operator_exact_divide::op1_range): Change call to fold_range.
4413 (operator_lshift::fold_range): Return result via reference parameter.
4414 (operator_lshift::wi_fold): Same.
4415 (operator_rshift::fold_range): Same.
4416 (operator_rshift::wi_fold): Same.
4417 (operator_cast::fold_range): Same.
4418 (operator_cast::op1_range): Change calls to fold_range.
4419 (operator_logical_and::fold_range): Return result via reference.
4420 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4421 (operator_bitwise_and::wi_fold): Return result via reference.
4422 (operator_logical_or::fold_range): Same.
4423 (operator_bitwise_or::wi_fold): Same.
4424 (operator_bitwise_xor::wi_fold): Same.
4425 (operator_trunc_mod::wi_fold): Same.
4426 (operator_logical_not::fold_range): Same.
4427 (operator_bitwise_not::fold_range): Same.
4428 (operator_bitwise_not::op1_range): Change call to fold_range.
4429 (operator_cst::fold_range): Return result via reference.
4430 (operator_identity::fold_range): Same.
4431 (operator_abs::wi_fold): Same.
4432 (operator_absu::wi_fold): Same.
4433 (operator_negate::fold_range): Same.
4434 (operator_negate::op1_range): Change call to fold_range.
4435 (operator_addr_expr::fold_range): Return result via reference.
4436 (operator_addr_expr::op1_range): Change call to fold_range.
4437 (operator_pointer_plus::wi_fold): Return result via reference.
4438 (operator_pointer_min_max::wi_fold): Same.
4439 (operator_pointer_and::wi_fold): Same.
4440 (operator_pointer_or::wi_fold): Same.
4441 (range_op_handler): Change call to fold_range.
4442 (range_cast): Same.
4443 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4444 fold_range.
4445 (range_fold_unary_symbolics_p): Same.
4446 (range_fold_binary_expr): Same.
4447 (range_fold_unary_expr): Same.
4448
4449 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4450
4451 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4452 vector type as an argument rather than reading it from the
4453 stmt_vec_info.
4454 (vect_create_epilog_for_reduction): Update accordingly.
4455 (vectorizable_reduction): Likewise.
4456 (vect_transform_cycle_phi): Likewise.
4457
4458 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4459
4460 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4461 the comparison codes that make sense for the mode used, and only the
4462 codes that can be done with a single branch instruction.
4463
4464 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4465
4466 PR tree-optimization/92351
4467 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4468 peeling the main loop for alignment, make sure to set the misalignment
4469 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4470
4471 2019-11-08 Richard Biener <rguenther@suse.de>
4472
4473 * dbgcnt.def (ivopts_loop): Add.
4474 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4475 ivopts_loop before optimizing a loop.
4476
4477 2019-11-08 Richard Biener <rguenther@suse.de>
4478
4479 PR ipa/92409
4480 * tree-inline.c (declare_return_variable): Properly handle
4481 type mismatches for the return slot.
4482
4483 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4484
4485 PR target/92095
4486 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4487 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4488 change.
4489 (got_helper_needed): New static variable.
4490 (output_load_pcrel_sym): New function.
4491 (get_pc_thunk_name): Remove after inlining...
4492 (load_got_register): ...here. Rework the initialization of the GOT
4493 register and of the GOT helper.
4494 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4495 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4496 helper must be emitted. Use output_asm_insn instead of fprintf.
4497 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4498 if optimization is enabled.
4499 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4500 by calling output_load_pcrel_sym.
4501
4502 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4503
4504 * tree-sra.c (create_access): Delay disqualifying the base
4505 for poly_int values until we know we have a base.
4506
4507 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4508
4509 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4510 for loops with SIMDUID set. Enable epilogue vectorization for loops
4511 with SIMDLEN set after finding a main loop with a VF that matches it.
4512
4513 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4514
4515 PR target/92038
4516 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4517 value only, return non-NULL if there is a single non-clobber
4518 constituent store even if there are constituent clobbers and return
4519 one of clobber constituent stores if all constituent stores are
4520 clobbers.
4521 (split_group): Handle clobbers.
4522 (imm_store_chain_info::output_merged_store): When computing
4523 bzero_first, look after all clobbers at the start. Don't count
4524 clobber stmts in orig_num_stmts, except if the first orig store is
4525 a clobber covering the whole area and split_stores cover the whole
4526 area, consider equal number of stmts ok. Punt if split_stores
4527 contains only ->orig stores and their number plus number of original
4528 clobbers is equal to original number of stmts. For ->orig, look past
4529 clobbers in the constituent stores.
4530 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4531 stmts.
4532 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4533 rhs.
4534 (store_valid_for_store_merging_p): Allow clobber stmts.
4535 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4536
4537 PR c++/92384
4538 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4539 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4540 slot.
4541 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4542 force creation of a unique data.stack_parm slot.
4543
4544 2019-11-08 Richard Biener <rguenther@suse.de>
4545
4546 * genmatch.c (expr::gen_transform): Use the resimplify
4547 member function instead of hard-coding the gimple_resimplifyN variant.
4548 (dt_simplify::gen_1): Likewise.
4549
4550 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4551
4552 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4553 POLY_INT_CST.
4554
4555 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4556
4557 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4558 instead of INTEGER_CST.
4559
4560 2019-11-08 Richard Biener <rguenther@suse.de>
4561
4562 PR tree-optimization/92324
4563 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4564 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4565 sign-conversions as necessary.
4566 (vectorizable_reduction): Reject conversions in the chain
4567 that are not sign-conversions, base analysis on a non-converting
4568 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4569 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4570 for debug stmts.
4571 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4572 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4573
4574 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4575
4576 PR target/92055
4577 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4578 Fix a missing '-' when displaying these options in the
4579 help screen.
4580
4581 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4582
4583 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4584
4585 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4586
4587 * config/aarch64/aarch64-builtins.c
4588 (aarch64_builtin_vectorized_function): Remove bswap handling.
4589
4590 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4591
4592 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4593 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4594 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4595 Treat the vector types as indivisible.
4596
4597 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4598
4599 * optabs.def (gather_load_optab, mask_gather_load_optab)
4600 (scatter_store_optab, mask_scatter_store_optab): Turn into
4601 conversion optabs, with the offset mode given explicitly.
4602 * doc/md.texi: Update accordingly.
4603 * config/aarch64/aarch64-sve-builtins-base.cc
4604 (svld1_gather_impl::expand): Likewise.
4605 (svst1_scatter_impl::expand): Likewise.
4606 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4607 (expand_scatter_store_optab_fn): Likewise.
4608 (direct_gather_load_optab_supported_p): Likewise.
4609 (direct_scatter_store_optab_supported_p): Likewise.
4610 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4611 to be argument 4.
4612 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4613 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4614 argument with the offset vector type. Require the two vector
4615 types to have the same number of elements but allow their element
4616 sizes to be different. Treat the optabs as conversion optabs.
4617 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4618 prototype accordingly.
4619 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4620 (supports_vec_convert_optab_p): ...this new function.
4621 (supports_vec_gather_load_p): Update accordingly.
4622 (supports_vec_scatter_store_p): Likewise.
4623 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4624 Replace the offset sign and bits parameters with a scalar type tree.
4625 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4626 Pass back the offset vector type instead of the scalar element type.
4627 Allow the offset to be wider than the memory elements. Search for
4628 an offset type that the target supports, stopping once we've
4629 reached the maximum of the element size and pointer size.
4630 Update call to internal_gather_scatter_fn_supported_p.
4631 (vect_check_gather_scatter): Update calls accordingly.
4632 When testing a new scale before knowing the final offset type,
4633 check whether the scale is supported for any signed or unsigned
4634 offset type. Check whether the target supports the source and
4635 target types of a conversion before deciding whether to look
4636 through the conversion. Record the chosen offset_vectype.
4637 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4638 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4639 directly from the gs_info's offset_vectype instead. Pass a zero
4640 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4641 * tree-vect-stmts.c (check_load_store_masking): Update call to
4642 internal_gather_scatter_fn_supported_p, passing the offset vector
4643 type recorded in the gs_info.
4644 (vect_truncate_gather_scatter_offset): Update call to
4645 vect_check_gather_scatter, leaving it to search for a valid
4646 offset vector type.
4647 (vect_use_strided_gather_scatters_p): Convert the offset to the
4648 element type of the gs_info's offset_vectype.
4649 (vect_get_gather_scatter_ops): Get the offset vector type directly
4650 from the gs_info.
4651 (vect_get_strided_load_store_ops): Likewise.
4652 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4653 and IFN_MASK_GATHER_LOAD.
4654 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4655 (gather_load<mode><v_int_equiv>): ...this.
4656 (mask_gather_load<mode>): Rename to...
4657 (mask_gather_load<mode><v_int_equiv>): ...this.
4658 (scatter_store<mode>): Rename to...
4659 (scatter_store<mode><v_int_equiv>): ...this.
4660 (mask_scatter_store<mode>): Rename to...
4661 (mask_scatter_store<mode><v_int_equiv>): ...this.
4662
4663 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4664
4665 PR target/92132
4666 * config/rs6000/predicates.md
4667 (signed_or_equality_comparison_operator): New predicate.
4668 (unsigned_or_equality_comparison_operator): Likewise.
4669 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4670 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4671 * config/rs6000/vector.md
4672 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4673 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4674 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4675 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4676 vector modes and same-size integer vector modes.
4677 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4678 (vector_lt<mode> for VEC_F): New expand.
4679 (vector_le<mode> for VEC_F): Likewise.
4680 (vector_ne<mode> for VEC_F): Likewise.
4681 (vector_unge<mode> for VEC_F): Likewise.
4682 (vector_ungt<mode> for VEC_F): Likewise.
4683 (vector_unle<mode> for VEC_F): Likewise.
4684 (vector_unlt<mode> for VEC_F): Likewise.
4685 (vector_uneq<mode>): Expose name.
4686 (vector_ltgt<mode>): Likewise.
4687 (vector_unordered<mode>): Likewise.
4688 (vector_ordered<mode>): Likewise.
4689
4690 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4691
4692 PR target/92295
4693 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4694 Enhance ix86_expand_vector_init_concat.
4695
4696 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4697
4698 * doc/invoke.texi (-Wold-style-definition): Document () not being
4699 considered an old-style definition for C2x.
4700
4701 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4702
4703 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4704 Enhance comment.
4705 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4706 insn patterns using ldcw instruction.
4707 (memory_barrier): Remove insn pattern using sync instruction.
4708 * config/pa/pa.opt (coherent-ldcw): New option.
4709 (ordered): New option.
4710
4711 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4712
4713 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4714 valid conditions.
4715
4716 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4717
4718 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4719 typo - mistmatch -> mismatch.
4720 * ipa-profile.c (ipa_profile): Likewise.
4721 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4722 - mistmatch -> mismatch.
4723
4724 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4725
4726 * simplify-rtx.c (comparison_to_mask): New function.
4727 (mask_to_comparison): New function.
4728 (simplify_logical_relational_operation): New function.
4729 (simplify_binary_operation_1): Call
4730 simplify_logical_relational_operation.
4731
4732 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4733
4734 PR other/92090
4735 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4736 modes for integer constants.
4737
4738 2019-11-07 Jan Hubicka <jh@suse.cz>
4739
4740 PR ipa/92406
4741 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4742 summary.
4743
4744 2019-11-07 Jan Hubicka <jh@suse.cz>
4745
4746 * optc-save-gen.awk: Generate cl_target_option_free
4747 and cl_optimization_option_free.
4748 * opth-en.awk: Declare cl_target_option_free
4749 and cl_optimization_option_free.
4750 * tree.c (free_node): Use it.
4751
4752 2019-11-06 Jan Hubicka <jh@suse.cz>
4753
4754 * lto-streamer-in.c: Include alloc-pool.h.
4755 (freeing_string_slot_hasher): Remove.
4756 (string_slot_allocator): New object allocator.
4757 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4758 (file_name_obstack): New obstack.
4759 (canon_file_name): Allocate in obstack and allocator.
4760 (lto_reader_init): Initialize obstack and allocator.
4761 (lto_free_file_name_hash): New function.
4762 * lto-streamer.h (lto_free_file_name_hash): New.
4763
4764 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4765
4766 PR tree-optimization/89134
4767 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4768 * params.def: Add min-loop-cond-split-prob.
4769 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4770 outside checks on loop into the function.
4771 (split_info): New class.
4772 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4773 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4774 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4775 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4776 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4777 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4778 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4779 (split_loop_on_cond): Likewise.
4780 (tree_ssa_split_loops): Add loop split on conditional statement.
4781
4782 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4783
4784 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4785 pattern.
4786
4787 2019-11-07 Richard Biener <rguenther@suse.de>
4788
4789 PR tree-optimization/92405
4790 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4791 restrict lane-reducing ops to single stmt chains.
4792
4793 2019-11-07 Martin Jambor <mjambor@suse.cz>
4794
4795 PR lto/70929
4796 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4797 * cgraph.h (gimple_check_call_matching_types): Remove
4798 * cgraph.c (gimple_check_call_args): Likewise.
4799 (gimple_check_call_matching_types): Likewise.
4800 (symbol_table::create_edge): Do not call
4801 gimple_check_call_matching_types.
4802 (cgraph_edge::make_direct): Likewise.
4803 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4804 * value-prof.h (check_ic_target): Remove.
4805 * value-prof.c (check_ic_target): Remove.
4806 (gimple_ic_transform): Do nat call check_ic_target.
4807 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4808 (afdo_indirect_call): Likewise.
4809 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4810 gimple_check_call_matching_types.
4811 * ipa-inline.c (early_inliner): Likewise.
4812
4813 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4814
4815 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4816 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4817 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4818 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4819 * config/arm/iterators.md (USSAT16): New int_iterator.
4820 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4821 (sup): Likewise.
4822 * config/arm/predicates.md (ssat16_imm): New predicate.
4823 (usat16_imm): Likewise.
4824 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4825
4826 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4827
4828 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4829 New define_insns.
4830 (arm_<simd32_op>): New define_expands.
4831 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4832 __smuad, __smuadx): Define.
4833 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4834 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4835 (SIMD32_BINOP_Q): Likewise.
4836 (simd32_op): Handle the above.
4837 * config/arm/unspecs.md: Define unspecs for the above.
4838
4839 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4840
4841 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4842 * config/arm/arm.md (APSRGE_REGNUM): Define.
4843 (arm_<simd32_op>): New define_insn.
4844 (arm_sel): Likewise.
4845 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4846 (CALL_USED_REGISTERS): Likewise.
4847 (REG_ALLOC_ORDER): Likewise.
4848 (FIRST_PSEUDO_REGISTER): Update value.
4849 (ARM_GE_BITS_READ): Define.
4850 * config/arm/arm.c (arm_conditional_register_usage): Clear
4851 APSRGE_REGNUM from operand_reg_set.
4852 (arm_ge_bits_access): Define.
4853 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4854 ARM_BUIILTIN_sel.
4855 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4856 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4857 FAIL if ARM_GE_BITS_READ.
4858 (*arm_add<mode>3): New define_insn.
4859 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4860 (*arm_sub<mode>3): New define_insn.
4861 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4862 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4863 __usub16): Define.
4864 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4865 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4866 (simd32_op): Handle the above.
4867 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4868 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4869 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4870 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4871
4872 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4873
4874 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4875 (arm_smlabb): New define_expand.
4876 (*maddhisi4tb): Rename to...
4877 (maddhisi4tb): ... This.
4878 (*maddhisi4tt): Rename to...
4879 (maddhisi4tt): ... This.
4880 (arm_smlatb_setq): New define_insn.
4881 (arm_smlatb): New define_expand.
4882 (arm_smlatt_setq): New define_insn.
4883 (arm_smlatt): New define_expand.
4884 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4885 (arm_<smlaw_op>): New define_expand.
4886 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4887 __smlawb, __smlawt): Define.
4888 * config/arm_acle_builtins.def: Define builtins for the above.
4889 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4890 (slaw_op): New int_attribute.
4891 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4892
4893 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4894
4895 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4896 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4897 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4898 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4899 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4900 (ss_op): New code_attr.
4901
4902 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4903
4904 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4905 * config/arm/arm.md (APSRQ_REGNUM): Define.
4906 (add_setq): New define_subst.
4907 (add_clobber_q_name): New define_subst_attr.
4908 (add_clobber_q_pred): Likewise.
4909 (maddhisi4): Change to define_expand. Split into mult and add if
4910 ARM_Q_BIT_READ.
4911 (arm_maddhisi4): New define_insn.
4912 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4913 (*maddhisi4tt): Likewise.
4914 (arm_ssat): New define_expand.
4915 (arm_usat): Likewise.
4916 (arm_get_apsr): New define_insn.
4917 (arm_set_apsr): Likewise.
4918 (arm_saturation_occurred): New define_expand.
4919 (arm_set_saturation): Likewise.
4920 (*satsi_<SAT:code>): Rename to...
4921 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4922 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4923 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4924 (CALL_USED_REGISTERS): Mark apsrq.
4925 (FIRST_PSEUDO_REGISTER): Update value.
4926 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4927 (machine_function): Add q_bit_access.
4928 (ARM_Q_BIT_READ): Define.
4929 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4930 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4931 operand_reg_set.
4932 (arm_q_bit_access): Define.
4933 * config/arm/arm-builtins.c: Include stringpool.h.
4934 (arm_sat_binop_imm_qualifiers,
4935 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4936 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4937 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4938 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4939 SET_SAT_QUALIFIERS): Likewise.
4940 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4941 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4942 Handle 0 argument expander.
4943 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4944 (arm_check_builtin_call): Define.
4945 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4946 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4947 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4948 (arm_q_bit_access): Likewise.
4949 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4950 __saturation_occurred, __set_saturation_occurred): Define.
4951 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4952 saturation_occurred, set_saturation_occurred.
4953 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4954 (UNSPEC_APSR_READ): Likewise.
4955 (VUNSPEC_APSR_WRITE): Likewise.
4956 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4957 (*arm_ssadd<mode>3): New define_insn.
4958 (sssub<mode>3): Convert to define_expand.
4959 (*arm_sssub<mode>3): New define_insn.
4960 (ssmulsa3): Convert to define_expand.
4961 (*arm_ssmulsa3): New define_insn.
4962 (usmulusa3): Convert to define_expand.
4963 (*arm_usmulusa3): New define_insn.
4964 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4965 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4966 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4967
4968 2019-11-07 Martin Liska <mliska@suse.cz>
4969
4970 PR c++/92354
4971 * cgraph.c (delete_function_version): Clear global
4972 variable version_info_node if equal to deleted
4973 function.
4974
4975 2019-11-07 Martin Liska <mliska@suse.cz>
4976
4977 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4978 of CONSTRUCTOR_NO_CLEARING.
4979 (operand_compare::hash_operand): Likewise.
4980
4981 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4982
4983 Support 64-bit double and 64-bit long double configurations.
4984
4985 PR target/92055
4986 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4987 --with-long-double=.
4988 * config/avr/t-multilib: Remove.
4989 * config/avr/t-avr: Output of genmultilib.awk is now fully
4990 dynamically generated and no more part of the repo.
4991 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4992 Pass them down to...
4993 * config/avr/genmultilib.awk: ...here and handle them.
4994 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4995 (-mlong-double=, avr_long_double). New option and var.
4996 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4997 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4998 Set default as requested by --with-double=
4999 (TARGET_HANDLE_OPTION): Define to this...
5000 (avr_handle_option): ...new hook worker.
5001 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5002 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5003 (avr_double_lib): New proto for spec function.
5004 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5005 (DRIVER_SELF_SPECS): Call %:double-lib.
5006 * config/avr/avr.c (avr_option_override): Assert
5007 sizeof(long double) >= sizeof(double) for the target.
5008 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5009 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5010 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5011 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5012 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5013 New built-in define depending on --with-double=, --with-long-double=.
5014 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5015 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5016 * doc/install.texi (Cross-Compiler-Specific Options)
5017 <--with-double=, --with-long-double=>: Doc.
5018
5019 2019-11-07 Richard Biener <rguenther@suse.de>
5020
5021 * dbgcnt.def (gimple_unroll): New.
5022 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5023 gimple_unroll debug counter before applying transform.
5024 (try_peel_loop): Likewise.
5025
5026 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5027
5028 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5029 frame pointer in multiple registers.
5030 (ira_setup_eliminable_regset): Setup eliminable_regset,
5031 ira_no_alloc_regs and regs_ever_live for frame pointer in
5032 multiple registers.
5033
5034 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5035
5036 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5037 V2DI modes.
5038
5039 2019-11-06 Jan Hubicka <jh@suse.cz>
5040
5041 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5042 allocations.
5043 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5044 Do not silently ignore summary corruptions.
5045
5046 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5047
5048 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5049 the epilogue if there are peeled iterations for it to handle.
5050
5051 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5052
5053 * config/arc/arc.c (arc_split_ior): Add asserts.
5054 (arc_split_mov_const): Likewise.
5055 (arc_check_ior_const): Do not match known short immediate values.
5056 * config/arc/arc.md (movsi): Don't split predicated instructions
5057 (iorsi): Likewise.
5058
5059 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5060
5061 * config/arc/arc.opt (mea): Update help string.
5062 * doc/invoke.texi(ARC): Update mea option info.
5063
5064 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5065
5066 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5067 (zero_extendqisi2_ac): Likewise.
5068 (zero_extendhisi2_i): Likewise.
5069 (extendqihi2_i): Likewise.
5070 (extendqisi2_ac): Likewise.
5071 (extendhisi2_i): Likewise.
5072
5073 2019-11-06 Richard Biener <rguenther@suse.de>
5074
5075 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5076 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5077 Simplify single_defuse_cycle condition.
5078
5079 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5080
5081 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5082 epilogue loop, make sure that the VF is small enough or that
5083 the epilogue loop can be fully-masked.
5084
5085 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5086
5087 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5088 loop when we've finished, rather than returning directly from
5089 the loop. Use a local variable to track whether we're still
5090 searching for the preferred simdlen. Make vect_epilogues
5091 record whether the next iteration should try to treat the
5092 loop as an epilogue.
5093
5094 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5095
5096 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5097 __arc_hard_float__, __ARC_HARD_FLOAT__,
5098 __arc_soft_float__, __ARC_SOFT_FLOAT__
5099
5100 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5101
5102 PR tree-optimization/92317
5103 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5104 update phi's with constant phi arguments.
5105
5106 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5107 Alexandre Oliva <oliva@adacore.com>
5108
5109 * common.opt (-fcallgraph-info[=]): New option.
5110 * doc/invoke.texi (Developer options): Document it.
5111 * opts.c (common_handle_option): Handle it.
5112 * builtins.c (expand_builtin_alloca): Record allocation if
5113 -fcallgraph-info=da.
5114 * calls.c (expand_call): If -fcallgraph-info, record the call.
5115 (emit_library_call_value_1): Likewise.
5116 * flag-types.h (enum callgraph_info_type): New type.
5117 * explow.c: Include stringpool.h.
5118 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5119 * function.c (allocate_stack_usage_info): New.
5120 (allocate_struct_function): Call it for -fcallgraph-info.
5121 (prepare_function_start): Call it otherwise.
5122 (record_final_call, record_dynamic_alloc): New.
5123 * function.h (struct callinfo_callee): New.
5124 (CALLEE_FROM_CGRAPH_P): New.
5125 (struct callinfo_dalloc): New.
5126 (struct stack_usage): Add callees and dallocs.
5127 (record_final_call, record_dynamic_alloc): Declare.
5128 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5129 object if -fcallgraph-info=da.
5130 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5131 * print-tree.h (print_decl_identifier): Declare.
5132 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5133 * print-tree.c: Include print-tree.h.
5134 (print_decl_identifier): New function.
5135 * toplev.c: Include print-tree.h.
5136 (callgraph_info_file): New global variable.
5137 (callgraph_info_external_printed): Likewise.
5138 (output_stack_usage): Rename to...
5139 (output_stack_usage_1): ... this. Make it static, add cf
5140 parameter. If -fcallgraph-info=su, print stack usage to cf.
5141 If -fstack-usage, use print_decl_identifier for
5142 pretty-printing.
5143 (INDIRECT_CALL_NAME): New.
5144 (dump_final_node_vcg_start): New.
5145 (dump_final_callee_vcg, dump_final_node_vcg): New.
5146 (output_stack_usage): New.
5147 (lang_dependent_init): Open and start file if
5148 -fcallgraph-info. Allocated callgraph_info_external_printed.
5149 (finalize): If callgraph_info_file is not null, finish it,
5150 close it, and release callgraph_info_external_printed.
5151
5152 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5153 Frederik Harwath <frederik@codesourcery.com>
5154 Thomas Schwinge <thomas@codesourcery.com>
5155
5156 * omp-low.c (struct omp_context): New fields
5157 local_reduction_clauses, outer_reduction_clauses.
5158 (new_omp_context): Initialize these.
5159 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5160 (scan_omp_for): Check reduction clauses for incorrect nesting.
5161
5162 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5163
5164 PR inline-asm/92352
5165 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5166 operands with non-memory constraints.
5167
5168 2019-11-05 Martin Sebor <msebor@redhat.com>
5169
5170 PR tree-optimization/92373
5171 * tree.c (component_ref_size): Only consider initializers of objects
5172 of matching struct types.
5173 Return null for instances of interior zero-length arrays.
5174
5175 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5176
5177 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5178
5179 2019-11-05 Jason Merrill <jason@redhat.com>
5180
5181 PR tree-optimization/91825
5182 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5183
5184 2019-11-05 Jim Wilson <jimw@sifive.com>
5185
5186 PR middle-end/92263
5187 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5188 optimize_insn_for_speed_p is true.
5189
5190 2019-11-05 Martin Sebor <msebor@redhat.com>
5191
5192 PR middle-end/92333
5193 PR middle-end/82608
5194 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5195 size.
5196 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5197 name and location for a temporary variable.
5198
5199 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5200
5201 * tree-vrp.c (value_range::value_range): Fix whitespace.
5202 (defined_ranges_p): Same.
5203 (range_fold_binary_symbolics_p): Same.
5204 (value_range::intersect_helper): Same.
5205 (value_range::union_helper): Same.
5206 * tree-vrp.h (range_fold_binary_expr): Same.
5207
5208 2019-11-04 Martin Sebor <msebor@redhat.com>
5209
5210 PR middle-end/92341
5211 PR middle-end/82612
5212 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5213 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5214 of message printed in a warning for empty arrays.
5215 (vrp_prop::check_mem_ref): Also handle function parameters and
5216 empty arrays.
5217
5218 2019-11-05 Richard Biener <rguenther@suse.de>
5219
5220 PR tree-optimization/92371
5221 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5222 on the original stmt of live stmts in the chain.
5223 (vectorizable_live_operation): Look at the original stmt when
5224 checking STMT_VINFO_REDUC_DEF.
5225
5226 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5227
5228 * gimple-fold.c, gimple-loop-versioning.cc,
5229 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5230 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5231 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5232 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5233 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5234 value_range_equiv, and value_range_base to value_range.
5235
5236 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5237
5238 * expr.c (build_personality_function): Fix generated type to
5239 match actual personality functions.
5240
5241 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5242
5243 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5244 enough bytes for the NULL character.
5245
5246 2019-11-05 Richard Biener <rguenther@suse.de>
5247
5248 PR tree-optimization/92280
5249 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5250 had a single use do not create a new CTOR.
5251 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5252 BIT_FIELD_REF of a CTOR via GENERIC.
5253
5254 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5255
5256 * config/s390/s390.c (s390_vector_alignment): Check if the value
5257 fits into uhwi before using it.
5258
5259 2019-11-05 Martin Liska <mliska@suse.cz>
5260
5261 * symbol-summary.h: Use ggc_delete.
5262
5263 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5264
5265 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5266 Change vec_perm field to 10.
5267
5268 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5269
5270 * doc/install.texi: Further fix syntax for html generation.
5271
5272 2019-11-05 Martin Liska <mliska@suse.cz>
5273
5274 * symbol-summary.h: Rename allocator to m_allocator and
5275 add comment.
5276
5277 2019-11-05 Richard Biener <rguenther@suse.de>
5278
5279 PR tree-optimization/92324
5280 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5281 all signed or unsigned operations.
5282
5283 2019-11-05 Jan Hubicka <jh@suse.cz>
5284
5285 * hsa-brig.c: Include alloc-pool.h
5286 * hsa-dump.c: Likewise.
5287 * hsa-gen.c: Likewise.
5288 * hse-regalloc.c: Likewise.
5289 * ipa-hsa.c: Likewise.
5290 * ipa-predicate.c: Likewise.
5291 * ipa-reference.c: Likewise.
5292 * ipa-sra.c: Likewise.
5293 * omp-expand.c: Likewise.
5294 * omp-general.c: Likewise.
5295 * omp-low.c: Likewise.
5296 * sumbol-summary.h (function_summary_base): Add allocator.
5297 (function_summary<T *>::function_summary): Update construction.
5298 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5299 (call_summary_base): Add allcator.
5300 (call_summary<T *>::call_summary): Update construction.
5301 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5302
5303 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5304
5305 PR tree-optimization/91945
5306 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5307 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5308 Formatting fix.
5309
5310 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5311
5312 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5313 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5314 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5315 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5316 (vrp_set_zero_nonzero_bits): Move to...
5317 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5318 (vr_values::simplify_bit_ops_using_ranges): Rename
5319 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5320
5321 2019-11-05 Martin Liska <mliska@suse.cz>
5322
5323 PR c++/92339
5324 * fold-const.c (operand_compare::hash_operand): Remove
5325 FIELD_DECL handling.
5326
5327 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5328
5329 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5330 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5331 static.
5332
5333 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5334
5335 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5336 properly handle symbolics.
5337 (range_compatible_p): Remove.
5338
5339 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5340
5341 * common.opt (-fabi-version): Document =14.
5342 * doc/invoke.texi (C++ Dialect Options): Likewise.
5343
5344 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5345
5346 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5347
5348 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5349
5350 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5351 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5352 gcn_omp_device_kind_arch_isa.
5353 * config/gcn/t-omp-device: New file.
5354 * configure.ac: Support gcn for omp_device_property.
5355 * configure: Regenerate.
5356
5357 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5358
5359 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5360 (vrp_val_max): Same.
5361 (vrp_val_is_min): Same.
5362 (vrp_val_is_max): Same.
5363 (value_range_base::nonzero_p): Remove last argument to
5364 vrp_val_is_max.
5365 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5366 (vrp_val_max): Same.
5367 (vrp_val_is_min): Same.
5368 (vrp_val_is_max): Same.
5369 (value_range_base::set_varying): Remove last argument to vrp_val*.
5370 (value_range_base::dump): Same.
5371 (value_range_base::set): Same.
5372 (value_range_base::normalize_symbolics): Same.
5373 (value_range_base::num_pairs): Same.
5374 (value_range_base::lower_bound): Same.
5375 (value_range_base::upper_bound): Same.
5376 (ranges_from_anti_range): Remove handle_pointers argument.
5377 (value_range_base::singleton_p): Remove last argument to
5378 ranges_from_anti_range.
5379
5380 2019-11-04 Jan Hubicka <jh@suse.cz>
5381
5382 * ipa-reference.c (init_function_info): Initialize
5383 info->global.statics_read.
5384
5385 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5386
5387 * tree-vrp.c (value_range_base::invert): Use constructors to build
5388 range.
5389
5390 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5391
5392 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5393 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5394
5395 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5396
5397 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5398 VR_UNDEFINED.
5399
5400 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5401
5402 * tree-vrp.c (dump_assert_info): New.
5403 (dump_asserts_info): New.
5404
5405 2019-11-04 Jan Hubicka <jh@suse.cz>
5406
5407 * ipa-inline-transform.c: Include ipa-utils.h
5408 (inline_call): Set thunk_expansion flag.
5409 * ipa-utils.h (thunk_expansion): Declare.
5410 * ipa-devirt.c (thunk_expansion): New global var.
5411 (devirt_node_removal_hook): Do not invalidate cache while
5412 doing thunk expansion.
5413
5414 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5415
5416 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5417
5418 2019-11-04 Martin Sebor <msebor@redhat.com>
5419
5420 PR tree-optimization/92349
5421 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5422 memebers have constant sizes.
5423
5424 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5425
5426 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5427 parameter.
5428 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5429 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5430 vect_analyze_loop.
5431
5432 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5433
5434 * expr.c (store_constructor): Modify to handle single element vectors.
5435 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5436 constructors.
5437 (vect_slp_check_for_constructors): New function.
5438 (vect_slp_analyze_bb_1): Call new function to check for vector
5439 constructors.
5440 (vectorize_slp_instance_root_stmt): New function.
5441 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5442 constructors.
5443 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5444
5445 2019-11-04 Richard Biener <rguenther@suse.de>
5446
5447 PR tree-optimization/92345
5448 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5449 we produced a reduction chain.
5450 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5451 LOOP_VINFO_REDUCTIONS.
5452
5453 2019-11-04 Jan Hubicka <jh@suse.cz>
5454
5455 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5456 duplicate summaries.
5457 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5458 first.
5459 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5460 access call summaries.
5461 (dump_ipa_call_summary): Be ready for missing edge summaries.
5462 (analyze_function_body): Use get instead of get_create to access
5463 edge summary.
5464 (estimate_calls_size_and_time): Do not access summaries of
5465 inlined edges; sanity check they are missing.
5466 (ipa_call_context::estimate_size_and_time): Use get instead
5467 of get_create to access node summary.
5468 (inline_update_callee_summaries): Do not update depth of
5469 inlined edge.
5470 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5471 growth caches.
5472 (ipa_merge_fn_summary_after_inlining): Use get instead
5473 of get_create.
5474 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5475 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5476 fast summary.
5477 (initialize_growth_caches): Update.
5478 (do_estimate_edge_time): Remove redundant copy of context.
5479 (ipa_remove_from_growth_caches): New function.
5480 * ipa-inline.c (flatten_function): Update overall summary
5481 only when optimizing.
5482 (inline_to_all_callers): Update overall summary of function
5483 inlined to.
5484 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5485 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5486 to false.
5487
5488 2019-11-04 Richard Biener <rguenther@suse.de>
5489
5490 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5491 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5492
5493 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5494
5495 * ggc-common.c: Include system.h before malloc.h.
5496
5497 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5498
5499 * configure.ac: Pass --enable-obsolete=* and
5500 --enable-option-checking=* down to build configure, and fail
5501 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5502 * configure: Rebuild.
5503 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5504 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5505
5506 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5507
5508 * config.in: Regenerate.
5509 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5510 -mtiny-printf is used without GCC being configured with
5511 --enable-newlib-nano-formatted-io.
5512 * config/msp430/msp430.h (LINK_SPEC): Pass
5513 "--wrap puts --wrap printf" when -mtiny-printf is used.
5514 * config/msp430/msp430.opt: Document -mtiny-printf.
5515 * configure: Regenerate.
5516 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5517 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5518 --enable-newlib-nano-formatted-io is passed.
5519 * doc/invoke.texi: Document -mtiny-printf.
5520
5521 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5522
5523 * configure: Regenerate.
5524
5525 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5526
5527 * config/msp430/driver-msp430.c
5528 (msp430_get_linker_devices_include_path): New spec function.
5529 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5530 (extract_devices_dir_from_exec_prefix): New function.
5531 (extract_devices_dir_from_collect_gcc): New function.
5532 (msp430_check_env_var_for_devices): New function.
5533 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5534 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5535 devices.csv was not found using other methods.
5536 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5537 New prototype.
5538 (msp430_dirname): Likewise.
5539 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5540 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5541 msp430_get_linker_devices_include_path.
5542 (TARGET_EXTRA_PRE_INCLUDES): Define.
5543 * doc/invoke.texi: Document new ways of searching for support files.
5544
5545 2019-11-04 Richard Biener <rguenther@suse.de>
5546
5547 PR tree-optimization/92301
5548 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5549 as required by epilogue generation
5550
5551 2019-11-04 Martin Liska <mliska@suse.cz>
5552
5553 PR ipa/92304
5554 * fold-const.c (operand_compare::hash_operand): Fix field
5555 hashing of CONSTRUCTOR.
5556
5557 2019-11-04 Martin Liska <mliska@suse.cz>
5558
5559 * ggc.h (ggc_delete): New function.
5560 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5561 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5562 (ipa_free_all_node_params): Likewise.
5563 * ipa-sra.c (ipa_sra_analysis): Likewise.
5564
5565 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5566
5567 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5568 set_switch_stmt_execution_predicate, compute_bb_predicates,
5569 will_be_nonconstant_expr_predicate,
5570 phi_result_unknown_predicate,
5571 analyze_function_body): Pass arround params summary.
5572 (ipa_call_context::duplicate_from): New comment;
5573 only duplicate useful values.
5574 (ipa_call_context::equal_to): Only compare useful values.
5575 (remap_edge_summaries): Pass params_summary.
5576 (remap_hint_predicate): Likewise.
5577 (ipa_merge_fn_summary_after_inlining): Likewise.
5578 (inline_read_section): Initialize params summary used flags.
5579 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5580 around param_summary.
5581 (add_condition): Initialized used params summary flags.
5582 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5583 (inline_param_summary::useless_p): New predicate.
5584 (remap_after_inlining, add_condition): Update prototype
5585 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5586 move_cost.
5587 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5588 summaries.
5589 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5590 (ipa_analyze_virtual_call_uses): Likewise.
5591 (update_indirect_edges_after_inlining): Update param summaries.
5592 (ipa_print_node_params): Print used flags.
5593 (ipa_read_indirect_edge_info): Update param summareis.
5594 * ipa-prop.h (ipa_param_descriptor): Add
5595 used_by_ipa_predicates, used_by_indirect_call
5596 and used_by_polymorphic_call.
5597 (ipa_set_param_used_by_ipa_predicates,
5598 ipa_set_param_used_by_indirect_call,
5599 ipa_set_param_used_by_polymorphic_call,
5600 ipa_is_param_used_by_ipa_predicates,
5601 ipa_is_param_used_by_indirect_call,
5602 ipa_is_param_used_by_polymorphic_call): New inline functions.
5603
5604 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5605
5606 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5607 member function.
5608 (ipa_call_context::release): Add ALL parameter.
5609 (ipa_call_context::equal_to): New member function.
5610 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5611 duplicate_form, release, equal_to and exists_p member functoins.
5612 * ipa-inline-analysis.c (node_context_cache_entry): New
5613 class.
5614 (node_context_summary): Likewise.
5615 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5616 node_context_clear): New static vars.
5617 (initialize_growth_caches): New function.
5618 (free_growth_caches): Also delete node_context_cache; output stats.
5619 (do_estimate_edge_time): Cache contexts.
5620 (reset_node_cache): New function.
5621 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5622 (inline_small_functions): Initialize growth caches.
5623 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5624 Declare.
5625 * ipa-predicate.h (inline_param_summary::equal_to): New.
5626 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5627 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5628 (ipa_agg_jump_function): Implement equal_to member function.
5629
5630 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5631
5632 * ipa-fnsummary.c (inline_read_section): Set vector size
5633 ahead of time.
5634
5635 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5636
5637 * ipa-fnsummary.c (ipa_call_context): New constructor.
5638 (estimate_node_size_and_time): Turn to ...
5639 (ipa_call_context::estimate_size_and_time): ... this one.
5640 (ipa_call_context::release): New.
5641 * ipa-fnsummary.h (ipa_call_context): New class.
5642 (estimate_node_size_and_time): Remove.
5643 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5644 do_estimate_edge_hints): Update.
5645
5646 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5647
5648 * config.in: Regenerate.
5649 * configure: Regenerate.
5650 * configure.ac: Check for mallinfo.
5651 * ggc-common.c: Include malloc.h if available;
5652 include options.h
5653 (report_heap_memory_use): New functoin.
5654 * ggc-page.c (ggc_grow): Do not print "start".
5655 * ggc.h (report_heap_memory_use): Declare.
5656 * pases.c (execute_one_pass): Report memory after IPA passes.
5657 (ipa_read_summaries_1): Likewise.
5658 (ipa_read_optimization_summaries_1): Likewise.
5659
5660 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5661
5662 * gimplify.h (omp_construct_selector_matches): Change return
5663 type to int, add a new SCORES argument.
5664 * gimplify.c (omp_construct_selector_matches): Likewise. If
5665 SCORES is non-NULL, compute scores of each construct.
5666 * omp-general.h (omp_get_context_selector): Declare.
5667 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5668 Adjust omp_construct_selector_matches callers.
5669 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5670 (omp_context_compute_score): New function.
5671 (omp_resolve_declare_variant): Compute scores and decide based on
5672 that.
5673
5674 PR bootstrap/92314
5675 * configure.ac: Don't look for omp-device-properties files from
5676 installed offloading compilers. Instead add tmake_file snippets
5677 for configured offloading targets and use files they generate.
5678 * Makefile.in (install): Don't depend on
5679 install-omp-device-properties.
5680 (install-omp-device-properties): Remove goal.
5681 * config/i386/t-omp-device: New file.
5682 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5683 * config/nvptx/t-omp-device: New file.
5684 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5685 * configure: Regenerated.
5686
5687 * omp-general.h (omp_context_selector_set_compare): Declare.
5688 * omp-general.c (omp_construct_simd_compare,
5689 omp_context_selector_props_compare, omp_context_selector_set_compare,
5690 omp_context_selector_compare): New functions.
5691 (omp_resolve_declare_variant): Prune variants that are strict subset
5692 of another variant.
5693
5694 2019-11-01 Martin Sebor <msebor@redhat.com>
5695
5696 PR middle-end/91679
5697 PR middle-end/91647
5698 PR middle-end/91463
5699 PR middle-end/92312
5700 * doc/invoke.texi (-Wzero-length-bounds): Document.
5701 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5702 instead of a hand-rolled loop to avoid PR 92323.
5703 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5704 with initializers.
5705 (vrp_prop::check_mem_ref): Handle declared struct objects.
5706 * tree.c (last_field): New function.
5707 (array_at_struct_end_p): Handle MEM_REF.
5708 (get_initializer_for): New helper.
5709 (component_ref_size): Add argument. Rename locals. Call
5710 get_initializer_for instead of fold_ctor_reference. Correct handling
5711 of flexible array members.
5712 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5713
5714 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5715
5716 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5717 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5718 UNSPEC_VSX_CVSPUXDS): Remove.
5719 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5720 (vsx_xvcvspdp_be): ... this. New. And...
5721 (vsx_xvcvspdp_le): ... this. New.
5722 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5723 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5724 (vsx_xvcv<su>xwdp_le): ... this. New.
5725 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5726 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5727 (vsx_xvcvsp<su>xds_le): ... this. New.
5728
5729 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5730
5731 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5732 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5733 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5734 UNSPEC_VSX_XVCVSPSXWS): Remove.
5735 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5736 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5737
5738 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5739
5740 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5741 (UNSPEC_VSX_XVCDPSP): Remove.
5742 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5743 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5744
5745 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5746
5747 * hooks.c (hook_tree_tree_bool_null): New.
5748 * hooks.h (hook_tree_tree_bool_null): Declare.
5749 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5750 (LANG_HOOKS_DECLS): Add it.
5751 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5752 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5753 (lower_omp_target): Handle Fortran array with descriptor in
5754 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5755
5756 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5757
5758 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5759 Assert that the type we store in abi_vector_types is its own
5760 main variant.
5761 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5762
5763 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5764
5765 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5766 from a CONST_INT address when TARGET_THUMB2.
5767
5768 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5769
5770 * config/arm/arm.md (add_not_cin): New insn.
5771 (add_not_shift_cin): Likewise.
5772
5773 2019-10-31 Martin Liska <mliska@suse.cz>
5774
5775 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5776 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5777 and compare_memory_operand.
5778
5779 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5780
5781 * configure.ac: Compute and substitute omp_device_properties and
5782 omp_device_property_deps.
5783 * Makefile.in (generated_files): Add omp-device-properties.h.
5784 (omp-general.o): Depend on omp-device-properties.h.
5785 (omp_device_properties): New make variable.
5786 (omp-device-properties.h, s-omp-device-properties-h,
5787 install-omp-device-properties): New goals.
5788 (install): Depend on install-omp-device-properties for accelerators.
5789 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5790 * target.h (enum omp_device_kind_arch_isa): New enum.
5791 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5792 documentation.
5793 * omp-general.c: Include omp-device-properties.h.
5794 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5795 colon instead of comma.
5796 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5797 functions.
5798 (omp_context_selector_matches): Implement device set arch/isa
5799 selectors, improve device set kind selector handling.
5800 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5801 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5802 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5803 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5804 ix86_omp_device_kind_arch_isa.
5805 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5806 definition from ix86_target_string to file scope.
5807 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5808 to file scope.
5809 (ix86_omp_device_kind_arch_isa): New function.
5810 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5811 isa_opts definitions to file scope.
5812 * config/i386/t-intelmic (omp-device-properties): New goal.
5813 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5814 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5815 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5816 nvptx_omp_device_kind_arch_isa.
5817 * configure: Regenerate.
5818 * doc/tm.texi: Regenerate.
5819
5820 PR middle-end/92231
5821 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5822 DECL_BUILT_IN in comment. Remove redundant ()s around return
5823 argument.
5824 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5825 before calling fndecl_built_in_p.
5826 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5827 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5828 fndecl_built_in_p on it.
5829
5830 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5831
5832 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5833
5834 2019-10-31 Martin Liska <mliska@suse.cz>
5835
5836 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5837 of cgraph_local_info and use local_info_node instead.
5838 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5839 (bfin_function_ok_for_sibcall): Likewise.
5840 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5841 (must_reload_pic_reg_p): Likewise.
5842
5843 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5844
5845 PR c++/90947
5846 * tree.h (type_initializer_zero_p): Remove.
5847 * tree.c (type_initializer_zero_p): Remove.
5848
5849 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5850
5851 * doc/invoke.texi (-Wshadow, -Wshadow=global
5852 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5853
5854 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5855
5856 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5857 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5858 and 'target exit data'.
5859
5860 2019-10-30 Martin Jambor <mjambor@suse.cz>
5861
5862 ipa/92278
5863 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5864 availability comparison.
5865
5866 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5867
5868 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5869 calls to __mspabi_mpy* functions.
5870 * config/msp430/msp430.md (mulhisi3): New define_expand.
5871 (umulhisi3): New define_expand.
5872 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5873 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5874
5875 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5876
5877 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5878 (msp430_check_plus_not_high_mem): New.
5879 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5880 might be in low memory.
5881 Indicate that a 16-bit absolute address is in lower memory.
5882
5883 2019-10-30 Martin Jambor <mjambor@suse.cz>
5884
5885 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5886 ultimate_alias_target.
5887
5888 2019-10-30 Richard Biener <rguenther@suse.de>
5889
5890 PR tree-optimization/92275
5891 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5892 Copy all loop-closed PHIs.
5893
5894 2019-10-30 Martin Liska <mliska@suse.cz>
5895
5896 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5897 const_tree as function argument.
5898 (func_checker::compare_decl): Likewise.
5899 (func_checker::operand_equal_p): Likewise.
5900 (func_checker::compare_variable_decl): Likewise.
5901 (func_checker::parse_labels): Likewise.
5902 * ipa-icf-gimple.h: Likewise.
5903
5904 2019-10-30 Martin Liska <mliska@suse.cz>
5905
5906 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5907 Do not compare alias sets. It's handled by operand_equal_p.
5908
5909 2019-10-30 Martin Liska <mliska@suse.cz>
5910
5911 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5912 initialize m_compare_polymorphic.
5913 (func_checker::compare_decl): Do not compare polymorphic types.
5914 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5915 * ipa-icf.c (sem_function::equals_private): Do not call
5916 compare_polymorphic_p.
5917
5918 2019-10-30 Martin Liska <mliska@suse.cz>
5919
5920 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5921 compare_operand.
5922 (func_checker::compare_memory_operand): Remove.
5923 (func_checker::compare_cst_or_decl): Remove.
5924 (func_checker::operand_equal_valueize): Do not handle
5925 FIELD_DECL.
5926 (func_checker::compare_gimple_call): Call compare_operand.
5927 (func_checker::compare_gimple_assign): Likewise.
5928 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5929 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5930 * ipa-icf.h (icf_handled_component_p): Remove.
5931
5932 2019-10-30 Martin Liska <mliska@suse.cz>
5933
5934 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5935 (func_checker::compare_cst_or_decl): Remove handling
5936 of FIELD_DECL.
5937 (func_checker::compare_operand): Transform to ...
5938 (func_checker::operand_equal_p): ... this.
5939 * ipa-icf-gimple.h (class func_checker): Add
5940 operand_equal_p and hash_operand.
5941 * ipa-icf.c (sem_function::equals_private): Fix
5942 pushing and popping of cfun.
5943
5944 2019-10-30 Martin Liska <mliska@suse.cz>
5945
5946 * fold-const.c (operand_equal_p): Move to ...
5947 (operand_compare::operand_equal_p): ... here.
5948 (operand_compare::verify_hash_value): New.
5949 (add_expr): Move to ...
5950 (operand_compare::hash_operand): ... here.
5951 * fold-const.h (operand_equal_p): Move to the class.
5952 (class operand_compare): New.
5953 * tree.c (add_expr): Remove.
5954
5955 2019-10-30 Martin Liska <mliska@suse.cz>
5956
5957 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5958 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5959
5960 2019-10-30 Martin Liska <mliska@suse.cz>
5961
5962 PR lto/91393
5963 PR lto/88220
5964 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5965 from a first_clone in order to get proper LTO section
5966 in LTO stream.
5967 (cgraph_node::get_untransformed_body):
5968 Use lto_get_section_data where symtab_node::order
5969 must be provided.
5970 * cgraphclones.c (cgraph_node::find_replacement):
5971 Update also symbol order.
5972 * ipa-fnsummary.c (ipa_fn_summary_read):
5973 Use new function lto_get_summary_section_data.
5974 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5975 * ipa-icf.c (sem_item_optimizer::read_summary):
5976 Likewise.
5977 * ipa-prop.c (ipa_prop_read_jump_functions):
5978 Likewise.
5979 (ipcp_read_transformation_summaries): Likewise.
5980 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5981 * lto-cgraph.c (input_node): Add also order_base.
5982 (input_varpool_node): Likewise.
5983 (input_cgraph_1): Assign the order_base.
5984 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5985 * lto-opts.c (lto_write_options): Pass new argument.
5986 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5987 (lto_get_summary_section_data): New.
5988 (lto_get_raw_section_data): Add order argument.
5989 (lto_create_simple_input_block): Likewise.
5990 * lto-section-out.c (lto_destroy_simple_output_block):
5991 Likewise.
5992 * lto-streamer-in.c (lto_input_toplevel_asms):
5993 Use lto_get_summary_section_data.
5994 (lto_input_mode_table): Likewise.
5995 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5996 (lto_output_toplevel_asms): Pass new argument.
5997 (copy_function_or_variable): Likewise.
5998 (produce_lto_section):Likewise.
5999 (produce_symtab): Likewise.
6000 (lto_write_mode_table): Likewise.
6001 (produce_asm_for_decls): Likewise.
6002 * lto-streamer.c (lto_get_section_name): Concat symbol name
6003 and symbol order.
6004 * lto-streamer.h (lto_get_section_data): Add order argument.
6005 (lto_get_summary_section_data): New.
6006 (lto_get_raw_section_data): Add order argument.
6007 (lto_get_section_name): Likewise.
6008 * varpool.c (varpool_node::get_constructor): Pass order argument.
6009
6010 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6011
6012 PR tree-optimization/92262
6013 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6014 ubase or cbase here.
6015 (remove_unused_ivs): Unshare comp before using it.
6016
6017 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6018
6019 * ipa-prop.c (update_jump_functions_after_inlining):
6020 Watch for missing summaries.
6021
6022 2019-10-30 Richard Biener <rguenther@suse.de>
6023
6024 PR tree-optimization/65930
6025 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6026 chains also allow a leading and trailing conversion.
6027 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6028 intermediate reduction chains.
6029 (vect_analyze_slp_instance): Likewise. Build a SLP
6030 node for a trailing conversion manually.
6031
6032 2019-10-30 Martin Liska <mliska@suse.cz>
6033
6034 * cgraph.c (cgraph_node::local_info): Transform to ...
6035 (cgraph_node::local_info_node): ... this.
6036 (cgraph_node::dump): Remove cgraph_local_info and
6037 put its fields directly into cgraph_node.
6038 (cgraph_node::get_availability): Likewise.
6039 (cgraph_node::make_local): Likewise.
6040 (cgraph_node::verify_node): Likewise.
6041 * cgraph.h (struct GTY): Likewise.
6042 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6043 (duplicate_thunk_for_node): Likewise.
6044 (cgraph_node::create_clone): Likewise.
6045 (cgraph_node::create_virtual_clone): Likewise.
6046 (cgraph_node::create_version_clone): Likewise.
6047 * cgraphunit.c (cgraph_node::reset): Likewise.
6048 (cgraph_node::finalize_function): Likewise.
6049 (cgraph_node::add_new_function): Likewise.
6050 (analyze_functions): Likewise.
6051 * combine.c (setup_incoming_promotions): Likewise.
6052 * config/i386/i386.c (ix86_function_regparm): Likewise.
6053 (ix86_function_sseregparm): Likewise.
6054 (init_cumulative_args): Likewise.
6055 * ipa-cp.c (determine_versionability): Likewise.
6056 (count_callers): Likewise.
6057 (set_single_call_flag): Likewise.
6058 (initialize_node_lattices): Likewise.
6059 (estimate_local_effects): Likewise.
6060 (create_specialized_node): Likewise.
6061 (identify_dead_nodes): Likewise.
6062 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6063 (ipa_fn_summary_generate): Likewise.
6064 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6065 (process_hsa_functions): Likewise.
6066 * ipa-icf.c (set_local): Likewise.
6067 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6068 * ipa-inline.c (speculation_useful_p): Likewise.
6069 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6070 (ipa_profile): Likewise.
6071 * ipa-split.c (split_function): Likewise.
6072 (execute_split_functions): Likewise.
6073 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6074 (ipa_sra_ipa_function_checks): Likewise.
6075 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6076 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6077 * lto-cgraph.c (lto_output_node): Likewise.
6078 (input_overwrite_node): Likewise.
6079 * multiple_target.c (expand_target_clones): Likewise.
6080 * omp-simd-clone.c (simd_clone_create): Likewise.
6081 * trans-mem.c (expand_call_tm): Likewise.
6082 (ipa_tm_mayenterirr_function): Likewise.
6083 (ipa_tm_diagnose_tm_safe): Likewise.
6084 (ipa_tm_diagnose_transaction): Likewise.
6085 (ipa_tm_create_version): Likewise.
6086 (ipa_tm_transform_calls_redirect): Likewise.
6087 (ipa_tm_execute): Likewise.
6088 * tree-inline.c (expand_call_inline): Likewise.
6089
6090 2019-10-29 Martin Liska <mliska@suse.cz>
6091
6092 * symbol-summary.h (function_summary): Pass memory location
6093 to underlaying hash_map (or vec).
6094 (V>::fast_function_summary): Likewise.
6095
6096 2019-10-29 Martin Liska <mliska@suse.cz>
6097
6098 * ggc.h (ggc_alloc_no_dtor): New function.
6099 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6100 destructor and ggc_free.
6101 (ipa_free_size_summary): Call delete instead
6102 of release.
6103 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6104 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6105 (ipa_free_all_edge_args): Call destructor and ggc_free.
6106 (ipa_free_all_node_params): Likewise.
6107 (ipcp_free_transformation_sum): Likewise.
6108 * ipa-prop.h (ipa_check_create_node_params):
6109 Call new ggc_alloc_no_dtor.
6110 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6111 (ipa_sra_analysis): Call destructor and ggc_free.
6112 Replace release with delete operator.
6113 * symbol-summary.h (release): Remove ..
6114 (V>::~fast_function_summary): and move logic here.
6115 Likewise for other classes.
6116
6117 2019-10-29 Richard Biener <rguenther@suse.de>
6118
6119 PR tree-optimization/92260
6120 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6121 lane-reducing ops.
6122
6123 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6124
6125 PR tree-optimization/88915
6126 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6127 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6128 and make the valueize function pointer also take a void pointer.
6129 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6130 around vn_valueize, to call it without a context.
6131 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6132 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6133 (~_loop_vec_info): Release epilogue_vinfos.
6134 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6135 number of iterations of epilogue.
6136 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6137 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6138 versioning threshold needed for main loop.
6139 (vect_analyze_loop): Likewise.
6140 (find_in_mapping): New helper function.
6141 (update_epilogue_loop_vinfo): New function.
6142 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6143 on main loop and call update_epilogue_loop_vinfo to update it.
6144 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6145 stmts on loop preheader edge.
6146 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6147 we decided to vectorize epilogues. Update epilogues NITERS and
6148 construct ADVANCE to update epilogues data references where needed.
6149 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6150 (vect_do_peeling, vect_update_inits_of_drs,
6151 determine_peel_for_niter, vect_analyze_loop): Add or update
6152 declarations.
6153 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6154 created loop_vec_info's for epilogues when available. Otherwise analyse
6155 epilogue separately.
6156
6157 2019-10-29 Richard Biener <rguenther@suse.de>
6158
6159 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6160 example.
6161
6162 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6163
6164 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6165 index for the COND_EXPR from stmt_info rather than reduc_info.
6166
6167 2019-10-29 Richard Biener <rguenther@suse.de>
6168
6169 PR tree-optimization/65930
6170 * tree-vect-loop.c (check_reduction_path): Relax single-use
6171 check allowing out-of-loop uses.
6172 (vect_is_simple_reduction): SLP reduction chains cannot have
6173 intermediate stmts used outside of the loop.
6174 (vect_create_epilog_for_reduction): The adjustment might need
6175 to be converted.
6176 (vectorizable_reduction): Annotate live stmts of the reduction
6177 chain with STMT_VINFO_REDUC_DEF.
6178 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6179
6180 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6181
6182 * calls.c (pass_by_reference): Leave the target to decide whether
6183 POLY_INT_CST-sized arguments should be passed by value or reference,
6184 rather than forcing them to be passed by reference.
6185 (must_pass_in_stack_var_size): Likewise.
6186 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6187 V31_REGNUM to P15_REGNUM.
6188 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6189 Take an extra "silent_p" parameter, defaulting to false.
6190 (aarch64_sve::svbool_type_p): Declare.
6191 (aarch64_sve::nvectors_if_data_type): Likewise.
6192 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6193 (aarch64_frame::reg_offset): Turn into poly_int64s.
6194 (aarch64_frame::save_regs_size): Likewise.
6195 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6196 (aarch64_frame::sve_callee_adjust): Likewise.
6197 (aarch64_frame::spare_reg_reg): Likewise.
6198 (ARM_PCS_SVE): New arm_pcs value.
6199 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6200 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6201 (CUMULATIVE_ARGS::silent_p): Likewise.
6202 (BITS_PER_SVE_PRED): New macro.
6203 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6204 function. Reject aarch64_vector_pcs attributes on SVE functions.
6205 (aarch64_attribute_table): Use the above handler.
6206 (aarch64_sve_abi): New function.
6207 (aarch64_sve_argument_p): Likewise.
6208 (aarch64_returns_value_in_sve_regs_p): Likewise.
6209 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6210 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6211 descriptor for them.
6212 (aarch64_simd_decl_p): Delete.
6213 (aarch64_emit_cfi_for_reg_p): New function.
6214 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6215 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6216 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6217 as partly clobbered for the SVE PCS.
6218 (aarch64_function_ok_for_sibcall): Check whether the two functions
6219 use the same ABI, rather than checking specifically for whether
6220 they're aarch64_vector_pcs functions.
6221 (aarch64_pass_by_reference): Raise an error for attempts to pass
6222 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6223 if there are not enough free registers left, or if the argument is
6224 variadic.
6225 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6226 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6227 tuples in memory.
6228 (aarch64_layout_arg): Take a function_arg_info rather than
6229 individual properties. Handle SVE predicates, vectors and tuples.
6230 Raise an error if they are passed to unprototyped functions.
6231 (aarch64_function_arg): If the silent_p flag is set, suppress the
6232 usual error about using float registers without TARGET_FLOAT.
6233 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6234 it in the cumulative_args structure. Initialize aapcs_nprn and
6235 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6236 error about using float registers without TARGET_FLOAT.
6237 If the silent_p flag is not set, also raise an error about
6238 using SVE functions when SVE is disabled.
6239 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6240 and call it for SVE functions too. Update aapcs_nprn similarly
6241 to the other register counts.
6242 (aarch64_layout_frame): If a big-endian function needs to save
6243 and restore Z8-Z15, search for a spare predicate that it can use.
6244 Store SVE predicates at the bottom of the register save area,
6245 followed by SVE vectors, then followed by the normal slots.
6246 Keep pointing the hard frame pointer at the base of the normal slots,
6247 above the SVE vectors. Update the various frame creation and
6248 tear-down strategies for the new layout, initializing the new
6249 sve_callee_adjust field. Add an additional layout for frames
6250 whose saved registers are all SVE registers.
6251 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6252 (aarch64_return_address_signing_enabled): Likewise.
6253 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6254 aarch64_reg_save_mode.
6255 (aarch64_adjust_sve_callee_save_base): New function.
6256 (aarch64_add_cfa_expression): Move earlier in file. Take the
6257 saved register as an rtx rather than a register number and use
6258 its mode for the MEM slot.
6259 (aarch64_save_callee_saves): Remove the mode argument and instead
6260 use aarch64_reg_save_mode to get the mode of each save slot.
6261 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6262 offsets. Allow GP offsets to be saved at a VL-based offset from
6263 the stack, handling this case using the frame pointer if available
6264 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6265 big-endian SVE functions; use normal moves for other SVE saves.
6266 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6267 returns true. Add explicit CFA notes when not storing via the
6268 stack pointer. Do not try to pair SVE saves.
6269 (aarch64_restore_callee_saves): Cope with poly_int64 register
6270 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6271 use normal moves for other SVE restores. Only add CFA restore notes
6272 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6273 SVE restores.
6274 (aarch64_get_separate_components): Always keep the first SVE save
6275 in the prologue if we need to use it as a stack probe. Don't allow
6276 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6277 Likewise the spare predicate register that they need. Update the
6278 offset calculation to account for the SVE save area. Use the
6279 appropriate range check for SVE LDR and STR instructions.
6280 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6281 (aarch64_process_components): Likewise. Update the offset
6282 calculation to account for the SVE save area. Only mark the
6283 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6284 Do not try to pair SVE saves.
6285 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6286 reg_offsets. When handling the final allocation, expect the
6287 first SVE register save to be part of the initial allocation
6288 and for it to act as a probe at SP. Account for the SVE callee
6289 save area in the dump information.
6290 (aarch64_expand_prologue): Update the frame diagram. Fold the
6291 SVE callee allocation into the initial allocation if stack clash
6292 protection is enabled. Use new variables to track the offset
6293 of the frame chain (and hard frame pointer) from the current
6294 stack pointer, and likewise the offset of the bottom of the
6295 register save area. Update calls to aarch64_save_callee_saves
6296 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6297 saving the FP&SIMD registers. Save the predicate registers.
6298 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6299 into account when setting the stack pointer from the frame pointer,
6300 and when deciding whether we can inherit the initial adjustment
6301 amount from the prologue. Restore the predicate registers after
6302 the vector registers, then apply sve_callee_adjust, then restore
6303 the general registers.
6304 (aarch64_secondary_reload): Don't use secondary SVE reloads
6305 for VNx16BImode.
6306 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6307 (aarch64_short_vector_p): Return false for SVE types.
6308 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6309 at the start of the function. Return false for SVE types.
6310 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6311 functions too.
6312 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6313 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6314 to big-endian targets for bytewise moves.
6315 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6316
6317 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6318 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6319 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6320
6321 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6322 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6323 aarch64-sve-builtins-base.o to extra_objs. Add
6324 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6325 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6326 (aarch64-sve-builtins-shapes.o): Likewise.
6327 (aarch64-sve-builtins-base.o): New rules.
6328 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6329 (aarch64_resolve_overloaded_builtin): Likewise.
6330 (aarch64_check_builtin_call): Likewise.
6331 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6332 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6333 pragma.
6334 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6335 (aarch64_svprfop): New enum.
6336 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6337 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6338 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6339 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6340 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6341 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6342 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6343 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6344 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6345 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6346 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6347 (aarch64_sve::mangle_builtin_type): Likewise.
6348 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6349 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6350 (aarch64_sve::expand_builtin): Likewise.
6351 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6352 (aarch64_sve_int_mode): Likewise.
6353 (aarch64_ptrue_all_mode): New function.
6354 (aarch64_convert_sve_data_to_pred): Make public.
6355 (svprfop_token): New function.
6356 (aarch64_output_sve_prefetch): Likewise.
6357 (aarch64_fold_sve_cnt_pat): Likewise.
6358 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6359 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6360 instead of gen_while_ult.
6361 (aarch64_replace_reg_mode): Make public.
6362 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6363 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6364 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6365 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6366 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6367 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6368 (aarch64_sve_ptrue_svpattern_p): Likewise.
6369 (aarch64_sve_pred_valid_immediate): Check
6370 aarch64_sve_ptrue_svpattern_p.
6371 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6372 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6373 functions.
6374 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6375 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6376 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6377 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6378 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6379 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6380 New unspecs.
6381 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6382 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6383 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6384 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6385 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6386 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6387 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6388 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6389 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6390 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6391 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6392 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6393 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6394 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6395 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6396 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6397 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6398 (Vesize): Handle partial vector modes.
6399 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6400 mode attributes.
6401 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6402 iterators.
6403 (s, paired_extend, inc_dec): New code attributes.
6404 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6405 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6406 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6407 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6408 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6409 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6410 UNSPEC_COND_FMULX.
6411 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6412 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6413 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6414 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6415 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6416 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6417 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6418 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6419 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6420 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6421 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6422 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6423 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6424 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6425 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6426 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6427 UNSPEC_COND_FSCALE.
6428 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6429 (binqops_op, binqops_op_rev, last_op): New int attributes.
6430 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6431 (fn, ab): New int attributes.
6432 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6433 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6434 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6435 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6436 UNSPEC_RBIT.
6437 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6438 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6439 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6440 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6441 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6442 UNSPEC_COND_FMULX.
6443 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6444 (brk_reg_con, brk_reg_opno): New int attributes.
6445 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6446 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6447 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6448 UNSPEC_COND_FMIN.
6449 (max_elem_bits): New int attribute.
6450 (min_elem_bits): Handle UNSPEC_RBIT.
6451 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6452 TRUNCATE as well as SUBREG.
6453 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6454 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6455 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6456 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6457 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6458 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6459 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6460 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6461 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6462 (aarch64_gather_scale_operand_h): New predicates.
6463 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6464 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6465 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6466 (*aarch64_sve_reinterpret<mode>): Allow any source register
6467 instead of requiring an exact match.
6468 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6469 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6470 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6471 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6472 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6473 (aarch64_update_ffrt): New patterns.
6474 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6475 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6476 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6477 (@aarch64_ld<fn>f1<mode>): New patterns.
6478 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6479 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6480 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6481 (@aarch64_ldnt1<mode>): New patterns.
6482 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6483 the scalar part of the address.
6484 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6485 scalar part of the addresse and add an alternative for handling
6486 nonzero offsets.
6487 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6488 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6489 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6490 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6491 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6492 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6493 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6494 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6495 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6496 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6497 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6498 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6499 (@aarch64_sve_prefetch<mode>): New patterns.
6500 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6501 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6502 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6503 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6504 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6505 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6506 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6507 (@aarch64_stnt1<mode>): New patterns.
6508 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6509 the scalar part of the address.
6510 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6511 the scalar part of the addresse and add an alternative for handling
6512 nonzero offsets.
6513 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6514 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6515 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6516 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6517 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6518 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6519 New patterns.
6520 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6521 (extract_last_<mode>): Generalize to...
6522 (@extract_<LAST:last_op>_<mode>): ...this.
6523 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6524 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6525 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6526 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6527 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6528 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6529 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6530 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6531 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6532 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6533 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6534 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6535 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6536 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6537 (*aarch64_adr_uxtw_unspec): Likewise.
6538 (*aarch64_adr_uxtw): Rename to...
6539 (*aarch64_adr_uxtw_and): ...this.
6540 (@aarch64_adr<mode>_shift): New expander.
6541 (*aarch64_adr_shift_sxtw): New pattern.
6542 (aarch64_<su>abd<mode>_3): Rename to...
6543 (@aarch64_pred_<su>abd<mode>): ...this.
6544 (<su>abd<mode>_3): Update accordingly.
6545 (@aarch64_cond_<su>abd<mode>): New expander.
6546 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6547 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6548 (*<su>mul<mode>3_highpart): Rename to...
6549 (@aarch64_pred_<optab><mode>): ...this.
6550 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6551 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6552 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6553 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6554 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6555 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6556 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6557 (*v<ASHIFT:optab><mode>3): Rename to...
6558 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6559 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6560 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6561 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6562 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6563 (@cond_asrd<mode>): New expander.
6564 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6565 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6566 (*sdiv_pow2<mode>3): Delete.
6567 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6568 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6569 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6570 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6571 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6572 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6573 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6574 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6575 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6576 (*add<SVE_F:mode>3): Rename to...
6577 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6578 for SVE_STRICT_GP.
6579 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6580 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6581 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6582 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6583 (*sub<SVE_F:mode>3): Rename to...
6584 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6585 for SVE_STRICT_GP.
6586 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6587 (*fabd<SVE_F:mode>3): Rename to...
6588 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6589 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6590 (*mul<SVE_F:mode>3): Rename to...
6591 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6592 for SVE_STRICT_GP.
6593 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6594 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6595 to...
6596 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6597 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6598 (*<nlogical><PRED_ALL:mode>3): Rename to...
6599 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6600 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6601 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6602 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6603 (aarch64_pred_<logical_nn><mode>_z): ...this.
6604 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6605 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6606 (*fma<SVE_I:mode>4): Rename to...
6607 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6608 (*fnma<SVE_I:mode>4): Rename to...
6609 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6610 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6611 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6612 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6613 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6614 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6615 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6616 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6617 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6618 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6619 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6620 (@aarch64_sve_tmad<mode>): Likewise.
6621 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6622 (*aarch64_sel_dup<mode>): Rename to...
6623 (@aarch64_sel_dup<mode>): ...this.
6624 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6625 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6626 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6627 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6628 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6629 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6630 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6631 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6632 (*fcm<cmp_op><mode>): Rename to...
6633 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6634 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6635 (*fcmuo<mode>): Rename to...
6636 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6637 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6638 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6639 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6640 (fold_extract_last_<mode>): Generalize to...
6641 (@fold_extract_<last_op>_<mode>): ...this.
6642 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6643 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6644 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6645 DImode result explicit.
6646 (reduc_plus_scal_<mode>): Update accordingly.
6647 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6648 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6649 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6650 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6651 (*aarch64_sve_tbl<mode>): Rename to...
6652 (@aarch64_sve_tbl<mode>): ...this.
6653 (@aarch64_sve_compact<mode>): New pattern.
6654 (*aarch64_sve_dup_lane<mode>): Rename to...
6655 (@aarch64_sve_dup_lane<mode>): ...this.
6656 (@aarch64_sve_dupq_lane<mode>): New pattern.
6657 (@aarch64_sve_splice<mode>): Likewise.
6658 (aarch64_sve_<perm_insn><mode>): Rename to...
6659 (@aarch64_sve_<perm_insn><mode>): ...this.
6660 (*aarch64_sve_ext<mode>): Rename to...
6661 (@aarch64_sve_ext<mode>): ...this.
6662 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6663 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6664 to...
6665 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6666 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6667 Rename to...
6668 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6669 ...this.
6670 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6671 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6672 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6673 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6674 to...
6675 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6676 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6677 a "@" marker.
6678 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6679 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6680 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6681 pattern.
6682 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6683 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6684 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6685 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6686 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6687 "@" marker.
6688 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6689 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6690 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6691 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6692 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6693 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6694 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6695 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6696 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6697 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6698 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6699 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6700 (aarch64_sve_cnt_pat): Likewise.
6701 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6702 (*aarch64_sve_incsi_pat): Likewise.
6703 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6704 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6705 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6706 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6707 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6708 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6709 (*aarch64_sve_decsi_pat): Likewise.
6710 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6711 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6712 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6713 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6714 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6715 (@aarch64_pred_cntp<mode>): Likewise.
6716 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6717 New expander.
6718 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6719 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6720 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6721 New expander.
6722 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6723 New pattern.
6724 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6725 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6726 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6727 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6728 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6729 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6730 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6731 New expander.
6732 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6733 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6734 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6735 New expander.
6736 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6737 New pattern.
6738 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6739 expander.
6740 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6741 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6742 expander.
6743 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6744 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6745 expander.
6746 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6747 * config/aarch64/arm_sve.h: New file.
6748 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6749 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6750 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6751 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6752 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6753 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6754 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6755 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6756 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6757
6758 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6759
6760 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6761 New pattern.
6762 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6763 SVE modes.
6764
6765 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6766
6767 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6768 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6769 FFRT_REGNUM + 1.
6770 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6771 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6772 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6773 (aarch64_hard_regno_nregs): Handle the new register classes.
6774 (aarch64_hard_regno_mode_ok): Likewise.
6775 (aarch64_regno_regclass): Likewise.
6776 (aarch64_class_max_nregs): Likewise.
6777 (aarch64_register_move_cost): Likewise.
6778 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6779 as general register_operands.
6780
6781 2019-10-29 Martin Liska <mliska@suse.cz>
6782
6783 * ggc-common.c: One can't subtract unsigned types
6784 in compare function.
6785
6786 2019-10-29 Martin Liska <mliska@suse.cz>
6787
6788 * cgraphunit.c (symbol_table::compile): Pass
6789 title as dump_memory_report argument.
6790 * toplev.c (dump_memory_report): New argument.
6791 (finalize): Pass new argument.
6792 * toplev.h (dump_memory_report): Add argument.
6793
6794 2019-10-29 Martin Liska <mliska@suse.cz>
6795
6796 * ggc-common.c: Move Leak to the first column.
6797
6798 2019-10-29 Martin Liska <mliska@suse.cz>
6799
6800 * cgraphunit.c (symbol_table::compile): Remove argument
6801 for dump_memory_report.
6802 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6803 (compare_final): Remove in order to make report
6804 better readable.
6805 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6806 * mem-stats.h (mem_alloc_description::get_list):
6807 Do not pass cmp.
6808 (mem_alloc_description::dump): Likewise here.
6809 * toplev.c (dump_memory_report): Remove final
6810 argument.
6811 (finalize): Likewise.
6812 * toplev.h (dump_memory_report): Remove argument.
6813
6814 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6815
6816 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6817 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6818 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6819 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6820 accept "const".
6821
6822 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6823
6824 * coretypes.h (string_int_pair): New typedef.
6825 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6826 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6827 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6828
6829 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6830
6831 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6832 (simulate_builtin_function_decl): Declare.
6833 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6834 (LANG_HOOKS_INITIALIZER): Include it.
6835 * langhooks.c (add_builtin_function_common): Rename to...
6836 (build_builtin_function): ...this. Add a location parameter and use
6837 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6838 the decl instead.
6839 (add_builtin_function): Update accordingly, passing the returned
6840 decl to the lang hook.
6841 (add_builtin_function_ext_scope): Likewise
6842 (simulate_builtin_function_decl): New function.
6843
6844 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6845
6846 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6847 example, use actual names of supported offload targets.
6848
6849 PR target/92258
6850 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6851
6852 2019-10-28 Martin Sebor <msebor@redhat.com>
6853
6854 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6855 (handle_store): Pass argument to get_addr_stridx.
6856
6857 2019-10-28 Martin Sebor <msebor@redhat.com>
6858
6859 PR tree-optimization/92226
6860 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6861 the offset is in the open range outlined by SI's length.
6862
6863 2019-10-28 Martin Sebor <msebor@redhat.com>
6864
6865 PR c/66970
6866 * doc/cpp.texi (__has_builtin): Document.
6867 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6868
6869 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6870
6871 PR target/82981
6872 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6873 doubleword and low doubleword result of multiplication on
6874 MIPS64R6.
6875
6876 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6877 pure qualifier to the built-in.
6878 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6879 built-ins.
6880 (struct mips_builtin_description): Add is_pure flag.
6881 (mips_init_builtins): Mark built-in as pure if the flag in the
6882 corresponding mips_builtin_description struct is set.
6883
6884 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6885 alternative which covers the floating-point input value. Also
6886 forbid the split of insert.d pattern for floating-point values.
6887
6888 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6889
6890 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6891 * config/riscv/riscv-sr.c: New file.
6892 * config/riscv/riscv.c (riscv_reorg): New function.
6893 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6894 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6895 (riscv_remove_unneeded_save_restore_calls): Declare.
6896 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6897
6898 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6899
6900 PR tree-optimization/92163
6901 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6902 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6903 before calling bitmap_set_bit.
6904 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6905 delete_dead_or_redundant_assignment.
6906 (dse_dom_walker::dse_optimize_stmt): Likewise.
6907 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6908
6909 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6910
6911 PR middle-end/91272
6912 * tree-vect-stmts.c (vectorizable_condition): Support
6913 EXTRACT_LAST_REDUCTION with fully-masked loops.
6914
6915 2019-10-28 Richard Biener <rguenther@suse.de>
6916
6917 PR tree-optimization/92252
6918 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6919 STMT_VINFO_REDUC_IDX when swapping operands.
6920
6921 2019-10-28 Richard Biener <rguenther@suse.de>
6922
6923 PR tree-optimization/92241
6924 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6925 we failed to update the reduction index do not use the pattern
6926 stmts for the reduction chain.
6927 (vectorizable_reduction): When the reduction chain is corrupt,
6928 fail.
6929 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6930 fail to update the reduction chain.
6931
6932 2019-10-28 Richard Biener <rguenther@suse.de>
6933
6934 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6935 STMT_VINFO_REDUC_IDX from the actual stmt.
6936 (vect_transform_reduction): Likewise.
6937 (vectorizable_reduction): Compute the reduction chain length,
6938 do not recompute the reduction operand index. Remove no longer
6939 necessary restriction for condition reduction chains.
6940
6941 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6942
6943 PR target/92225
6944 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6945 condition for V2DImode.
6946
6947 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6948
6949 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6950 Remove %k operand modifier.
6951 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6952
6953 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6954
6955 PR rtl-optimization/92007
6956 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6957 call it after reload if hot/cold partitioning has been done.
6958 (class pass_postreload_jump): Rename to
6959 pass_jump_after_combine.
6960 (make_pass_postreload_jump): Rename to
6961 make_pass_jump_after_combine.
6962 * passes.def(pass_postreload_jump): Move before reload, rename
6963 to pass_jump_after_combine.
6964 * tree-pass.h (make_pass_postreload_jump): Rename to
6965 make_pass_jump_after_combine.
6966
6967 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6968
6969 PR ipa/92242
6970 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6971 for missing EDGE_REF
6972 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6973
6974 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6975
6976 PR tree-optimization/88760
6977 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6978 Enable -funroll-loops for -O2 and above.
6979 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6980 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6981 do not turn on web and rngreg implicitly, if the unroller is not
6982 explicitly enabled.
6983
6984 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6985
6986 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6987 jump functions.
6988
6989 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6990
6991 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6992 * cgraph.h (cgraph_node::rtl_info): Likewise.
6993
6994 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6995
6996 * ipa-cp.c (propagate_constants_across_call): If args are not available
6997 just drop everything to varying.
6998 (find_aggregate_values_for_callers_subset): Watch for missing
6999 edge summary.
7000 (find_more_scalar_values_for_callers_subs): Likewise.
7001 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7002 update_jump_functions_after_inlining, propagate_controlled_uses):
7003 Watch for missing summaries.
7004 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7005 is finished.
7006 (ipa_write_node_info): Watch for missing summaries.
7007 (ipa_read_edge_info): Create new ref.
7008 (ipa_edge_args_sum_t): Add remove.
7009 (IPA_EDGE_REF_GET_CREATE): New macro.
7010 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7011 edge summary.
7012 (remap_edge_change_prob): Likewise.
7013
7014 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7015
7016 * ipa-inline-transform.c (inline_call): update function summaries
7017 after expanidng thunk.
7018
7019 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7020
7021 * ipa-icf.c (sem_function::merge): Update function summaries.
7022 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7023
7024 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7025
7026 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7027 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7028 operand already has scalar mode.
7029 (iptr): Remove SF/DF.
7030
7031 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7032
7033 PR target/91289
7034 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7035 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7036 this.
7037
7038 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7039
7040 * config/i386/sse.md
7041 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7042 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7043 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7044 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7045 <sse>_vmmaskcmp<mode>3):
7046 Change predicates from vector_operand to nonimmediate_operand,
7047 constraints xBm to xm, since scalar operations don't need
7048 memory address alignment.
7049 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7050 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7051 round_saeonly_nimm_predicate with
7052 round_saeonly_nimm_scalar_predicate.
7053 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7054 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7055 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7056 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7057 avx512f_vmfmadd_<mode>_mask3<round_name>,
7058 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7059 *avx512f_vmfmsub_<mode>_mask<round_name>,
7060 avx512f_vmfmsub_<mode>_mask3<round_name>,
7061 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7062 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7063 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7064 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7065 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7066 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7067 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7068 cvtusi2<ssescalarmodesuffix>32<round_name>,
7069 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7070 round_nimm_predicate with round_nimm_scalr_predicate.
7071 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7072 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7073 avx512er_vmrcp28<mode><round_saeonly_name>,
7074 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7075 ): Replace round_saeonly_nimm_predicate with
7076 round_saeonly_nimm_scalar_predicate.
7077 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7078 vector_operand with nonimmediate_operand.
7079 * config/i386/subst.md (round_scalar_nimm_predicate,
7080 round_saeonly_scalar_nimm_predicate): Replace
7081 vector_operand with nonimmediate_operand.
7082
7083 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7084
7085 PR target/89071
7086 * config/i386/i386.md (*rcpsf2_sse): Add
7087 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7088 (*rsqrtsf2_sse): Ditto.
7089 (*sqrt<mode>2_sse): Ditto.
7090 (sse4_1_round<mode>2): separate constraint vm, add
7091 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7092 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7093 by pass rpad.
7094 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7095 Ditto.
7096 (*sse_vmrsqrtv4sf2): Ditto.
7097 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7098 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7099 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7100 <iptr> pointer size modifier since vround support memory operand.
7101
7102 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7103
7104 PR target/85969
7105 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7106 static function.
7107
7108 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7109 Tobias Burnus <tobias@codesourcery.com>
7110
7111 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7112 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7113 common block decls.
7114
7115 2019-10-25 Richard Biener <rguenther@suse.de>
7116
7117 PR tree-optimization/92222
7118 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7119 (_slp_oprnd_info::second_pattern): Likewise.
7120 (_slp_oprnd_info::any_pattern): New.
7121 (vect_create_oprnd_info): Adjust.
7122 (vect_get_and_check_slp_defs): Compute whether any stmt is
7123 in a pattern.
7124 (vect_build_slp_tree_2): Avoid building up a node from scalars
7125 if any of the operand defs, not just the first, is in a pattern.
7126
7127 2019-10-25 Richard Biener <rguenther@suse.de>
7128
7129 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7130 swapping if we actually have to modify the IL on a shared stmt.
7131 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7132 because we no longer modify the IL.
7133
7134 2019-10-25 Martin Liska <mliska@suse.cz>
7135
7136 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7137
7138 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7139
7140 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7141 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7142 handled by vect_transform_reduction. Allow fully-masked loops
7143 to be used with reduction chains.
7144 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7145 operations in fully-masked loops.
7146 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7147 operations in fully-masked loops.
7148
7149 2019-10-25 Richard Biener <rguenther@suse.de>
7150
7151 * tree-vect-loop.c (vectorizable_reduction): Verify
7152 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7153 correctly.
7154 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7155 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7156 stmts.
7157
7158 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7159
7160 * gimplify.h (omp_construct_selector_matches): Declare.
7161 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7162 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7163 called function if needed for flag_openmp.
7164 (gimplify_scan_omp_clauses): Set ctx->code.
7165 (omp_construct_selector_matches): New function.
7166 * omp-general.h (omp_constructor_traits_to_codes,
7167 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7168 * omp-general.c (omp_constructor_traits_to_codes,
7169 omp_context_selector_matches, omp_resolve_declare_variant): New
7170 functions.
7171
7172 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7173 literal.
7174 * config/rx/rx.c (rx_print_operand): Likewise.
7175 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7176 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7177 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7178 Likewise.
7179 * genemit.c (emit_c_code): Likewise.
7180 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7181
7182 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7183
7184 * symbols-summary.h (fast_function_summary<T *, V>::release,
7185 fast_call_summary<T *, V>::release): Free m_vector.
7186
7187 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7188
7189 * cgraphunit.c (symbol_table::process_new_functions): Call
7190 ipa_free_size_summary.
7191 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7192 (devirtualization_time_bonus): Update.
7193 (ipcp_propagate_stage): Update.
7194 * ipa-fnsummary.c (ipa_size_summaries): New.
7195 (ipa_fn_summary_alloc): Alloc size summary.
7196 (dump_ipa_call_summary): Update.
7197 (ipa_dump_fn_summary): Update.
7198 (analyze_function_body): Update.
7199 (compute_fn_summary): Likewise.
7200 (ipa_get_stack_frame_offset): New function.
7201 (inline_update_callee_summaries): Do not update frame offsets.
7202 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7203 remove call and function summary.
7204 (ipa_update_overall_fn_summary): Update.
7205 (inline_read_section): Update.
7206 (ipa_fn_summary_write): Update.
7207 (ipa_free_fn_summary): Do not remove summaries.
7208 (ipa_free_size_summary): New.
7209 (release summary pass): Also run at WPA.
7210 * ipa-fnsummary.h (ipa_size_summary): Declare.
7211 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7212 estimated_self_stack_size.
7213 (ipa_size_summary_t): New type.
7214 (ipa_size_summaries): Declare.
7215 (ipa_free_size_summary): Declare.
7216 (ipa_get_stack_frame_offset): Declare.
7217 * ipa-icf.c (sem_function::merge): Update.
7218 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7219 (estimate_growth): Update.
7220 (growth_likely_positive): Update.
7221 (clone_inlined_nodes): Update.
7222 (inline_call): Update.
7223 * ipa-inline.c (caller_growth_limits): Update.
7224 (edge_badness): Update.
7225 (recursive_inlining): Update.
7226 (inline_small_functions): Update.
7227 (inline_to_all_callers_1): Update.
7228 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7229
7230 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7231
7232 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7233 (uavg<mode>3_ceil): ... This.
7234 (altivec_vavgs<VI_char>): Rename to...
7235 (avg<mode>3_ceil): ... This.
7236 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7237 VAVGUW, VAVGSW): Adjust.
7238
7239 2019-10-24 Nathan Sidwell <nathan@acm.org>
7240
7241 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7242
7243 2019-10-24 Martin Liska <mliska@suse.cz>
7244
7245 * symbol-summary.h (gt_pch_nx): Mark all functions
7246 with gcc_unreachable as we do not expect to be called.
7247
7248 2019-10-24 Richard Biener <rguenther@suse.de>
7249
7250 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7251 chains try harder with operand swapping and instead of
7252 putting a shifted chain into the reduction operands put
7253 a repetition of the final reduction op there as if we'd
7254 reassociate the expression.
7255
7256 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7257
7258 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7259 statics_not_read and statics_not_written to statics_read and
7260 statics_written respectively.
7261 (no_module_statics): New static var.
7262 (ipa_reference_get_not_read_global): Rename to ...
7263 (ipa_reference_get_read_global): ... this.
7264 (ipa_reference_get_not_written_global): Rename to ...
7265 (ipa_reference_get_written_global): ... this.
7266 (dump_static_vars_set_to_file): Dump no_module_statics.
7267 (copy_static_var_set): Add for propagation parameter.
7268 (ipa_init): Initialize no_module_statics.
7269 (ipa_ref_opt_summary_t::duplicate): Update.
7270 (ipa_ref_opt_summary_t::remove): Update.
7271 (propagate): Update.
7272 (write_node_summary_p): Look correctly for bitmap differences.
7273 (ipa_reference_write_optimization_summary): Update.
7274 (ipa_reference_read_optimization_summary): Update.
7275 * ipa-reference.h
7276 (ipa_reference_get_not_read_global): Rename to ...
7277 (ipa_reference_get_read_global): ... this.
7278 (ipa_reference_get_not_written_global): Rename to ...
7279 (ipa_reference_get_written_global): ... this.
7280 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7281 (call_may_clobber_ref_p_1): Update.
7282
7283 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7284
7285 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7286 and add comment.
7287 (msp430_hard_regno_nregs_with_padding): Remove.
7288
7289 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7290
7291 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7292 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7293 shift amount is between 1 and 4.
7294 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7295 is between 1 and 4.
7296
7297 2019-10-24 Richard Biener <rguenther@suse.de>
7298
7299 PR tree-optimization/92205
7300 * tree-vect-loop.c (vectorizable_reduction): Restrict
7301 search for alternate vectype_in to lane-reducing patterns
7302 we support.
7303
7304 2019-10-24 Richard Biener <rguenther@suse.de>
7305
7306 PR tree-optimization/92203
7307 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7308 Skip eliminating conversion stmts inserted by insertion.
7309
7310 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7311
7312 * config/s390/s390.c (s390_get_thread_pointer): Use
7313 gen_get_thread_pointer.
7314 (s390_expand_split_stack_prologue): Likewise.
7315 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7316 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7317 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7318 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7319 parameterized name.
7320
7321 2019-10-24 Richard Biener <rguenther@suse.de>
7322
7323 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7324 SLP discovery fails try to handle the reduction as part
7325 of SLP reduction discovery.
7326
7327 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7328
7329 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7330 declaration.
7331 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7332 attribute if it exists, rather than the insn size. If we use the
7333 insn size, adjust the size to remove the extra size that prefixed
7334 instructions take.
7335 (rs6000_adjust_insn_length): New function.
7336 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7337 update the instruction sized if prefixed instructions are used.
7338 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7339 (non_prefixed_length attribute): Delete.
7340 (num_insns attribute): New insn attribute to return the number of
7341 instructions.
7342 (max_prefixed_insns attribute): New insn attribute to return the
7343 maximum number of prefixed instructions in an insn.
7344 (length attribute): Do not adjust for prefix instructions here,
7345 punt to ADJUST_INSN_LENGTH.
7346 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7347 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7348 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7349 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7350 max_prefixed_insns and num_insns.
7351
7352 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7353 (movtd_64bit_nodm): Reformat.
7354 (mov<mode>_32bit): Reformat.
7355 (mov<mode>_softfloat): Reformat.
7356 (FMOVE128_GPR splitter): Reformat.
7357 (DIFD splitter): Reformat.
7358 (TI2 splitter): Reformat.
7359 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7360 bits of the offset for the memory address are non-zero, use PLWA
7361 if prefixed instructions are available.
7362
7363 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7364
7365 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7366
7367 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7368
7369 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7370 previous patch.
7371
7372 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7373
7374 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7375 (cmp_symbol_files): New.
7376 (lto_output): Copy sections in file order.
7377 * lto-streamer.h (lto_file_decl_data): Add field order.
7378
7379 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7380
7381 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7382 * ipa-reference.c (reference_vars_map_t): new type.
7383 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7384 (ipa_reference_var_uid): Implement.
7385 (varpool_node_hooks): New static var.
7386 (varpool_removal_hook): New function.
7387 (is_improper): Do not check bitmap for id==-1
7388 (get_static_name): Update.
7389 (ipa_init): Initialize new datastructures.
7390 (analyze_function): Do not recompute ids.
7391 (propagate): Free reference_vars_to_consider.
7392 (stream_out_bitmap): Update.
7393 (ipa_reference_read_optimization_summary): Update.
7394
7395 2019-10-23 qing zhao <qing.zhao@oracle.com>
7396
7397 PR gcov-profile/91971
7398 * coverage.c (coverage_init): Mangle the full path of filename when
7399 filename is a absolute path.
7400
7401 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7402
7403 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7404 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7405 (msp430_has_hwmult): New.
7406 (msp430_output_labelref):
7407 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7408 * config/msp430/msp430.md (mulhisi3): Likewise.
7409 (umulhisi3): Likewise.
7410 (mulsidi3): Likewise.
7411 (umulsidi3): Likewise.
7412
7413 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7414
7415 PR ipa/92074
7416 * params.def (inline-heuristics-hint-percent): Set to 600.
7417
7418 2019-10-23 Richard Biener <rguenther@suse.de>
7419
7420 PR tree-optimization/65930
7421 * tree-vect-loop.c (check_reduction_path): Allow conversions
7422 that only change the sign.
7423 (vectorizable_reduction): Relax latch def stmts we handle further.
7424
7425 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7426
7427 PR debug/90231
7428 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7429 (remove_unused_ivs): Use it instead of get_computation_at. When
7430 choosing best candidate, only consider candidates where
7431 get_debug_computation_at actually returns non-NULL.
7432
7433 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7434
7435 PR tree-optimization/92131
7436 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7437 range would be symbolic, drop to varying for any explicit overflow
7438 in the constant part or if neither range is a singleton.
7439
7440 2019-10-23 Martin Liska <mliska@suse.cz>
7441
7442 PR middle-end/81669
7443 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7444 Initialize m_data.
7445
7446 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7447
7448 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7449 int_mode_for_mode rather than mode_for_int_vector for scalars.
7450
7451 2019-10-23 Richard Biener <rguenther@suse.de>
7452
7453 PR tree-optimization/92179
7454 * tree-vect-stmts.c (vectorizable_shift): For shift args
7455 that are all the same remove type restriction in the SLP case.
7456 Adjust SLP code to handle converting of the shift arg to
7457 only apply in case the modes are different.
7458
7459 2019-10-23 Martin Liska <mliska@suse.cz>
7460
7461 PR ipa/91969
7462 * ipa-inline.c (recursive_inlining): Do not print
7463 when curr->count is not initialized.
7464
7465 2019-10-23 Richard Biener <rguenther@suse.de>
7466
7467 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7468 op from scalars in case there's a constant operand in its
7469 definition.
7470
7471 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7472
7473 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7474 against out of range max skip or log values.
7475
7476 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7477
7478 * cgraph.c (dump_graphviz): Change name to dump_name
7479
7480 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7481
7482 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7483 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7484 subtraction from a carry operation.
7485
7486 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7487
7488 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7489
7490 2019-10-22 Richard Biener <rguenther@suse.de>
7491
7492 PR tree-optimization/92173
7493 * tree-vect-loop.c (vectorizable_reduction): If
7494 vect_transform_reduction cannot handle code-generation try without
7495 the single-def-use-cycle optimization. Pass optab_vector to
7496 optab_for_tree_code to get vector shifts as that's what we'd
7497 generate.
7498
7499 2019-10-22 Michael Matz <matz@suse.de>
7500
7501 PR middle-end/90796
7502 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7503 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7504 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7505
7506 2019-10-22 Richard Biener <rguenther@suse.de>
7507
7508 PR tree-optimization/92173
7509 * tree-vect-loop.c (vectorizable_reduction): If
7510 vect_transform_reduction cannot handle code-generation try without
7511 the single-def-use-cycle optimization. Pass optab_vector to
7512 optab_for_tree_code to get vector shifts as that's what we'd
7513 generate.
7514
7515 2019-10-22 Martin Liska <mliska@suse.cz>
7516
7517 * diagnostic-format-json.cc (json_from_expanded_location):
7518 Use json::integer_number.
7519 * gcov.c (output_intermediate_json_line): Use new
7520 json::integer_number.
7521 (output_json_intermediate_file): Likewise.
7522 * json.cc (number::print): Move to ...
7523 (float_number::print): ... this.
7524 (integer_number::print): New.
7525 (test_writing_numbers): Move to ...
7526 (test_writing_float_numbers): ... this.
7527 (test_writing_integer_numbers): New.
7528 (json_cc_tests): Register test_writing_integer_numbers.
7529 * json.h (class value): Add forward declaration
7530 for float_number and integer_number.
7531 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7532 (class number): Move to ...
7533 (class float_number): ... this.
7534 (class integer_number): New.
7535 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7536 Use json::integer_number.
7537 (optrecord_json_writer::location_to_json): Likewise.
7538 (optrecord_json_writer::profile_count_to_json): Likewise.
7539 (optrecord_json_writer::pass_to_json): Likewise.
7540
7541 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7542
7543 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7544 autodetected_vector_size rather than vector_size is zero.
7545 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7546 Set autodetected_vector_size immediately after calling
7547 vect_analyze_loop_2. Check for a fatal error before advancing
7548 next_size.
7549
7550 2019-10-21 Jason Merrill <jason@redhat.com>
7551
7552 * lock-and-run.sh: Check for process existence rather than timeout.
7553
7554 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7555
7556 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7557 widening multiplication.
7558
7559 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7560
7561 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7562 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7563 type attribute.
7564 (subsi3_carryin_shift): Separate into register and constant controlled
7565 alternatives. Use shift_amount_operand for operand 4. Set shift
7566 attribute and simplify type attribute.
7567 (subsi3_carryin_shift_alt): Likewise.
7568 (rsbsi3_carryin_shift): Likewise.
7569 (rsbsi3_carryin_shift_alt): Likewise.
7570 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7571 and register controlled shifts into distinct alternatives.
7572 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7573 (andsi_not_shiftsi_si_scc): Likewise.
7574 (arm_cmpsi_negshiftsi_si): Likewise.
7575 (not_shiftsi): Remove redundant M constraint from alternative 1.
7576 (not_shiftsi_compare0): Likewise.
7577 (arm_cmpsi_insn): Remove redundant alternative 2.
7578 (cmpsi_shift_swp): Likewise.
7579 (sub_shiftsi): Likewise.
7580 (sub_shiftsi_compare0_scratch): Likewise.
7581 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7582 (thumb2_cmpsi_neg_shiftsi): Likewise.
7583
7584 2019-10-21 Richard Biener <rguenther@suse.de>
7585
7586 PR tree-optimization/92162
7587 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7588 STMT_VINFO_REDUC_IDX in reduc_info.
7589 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7590
7591 2019-10-21 Richard Biener <rguenther@suse.de>
7592
7593 * tree-vectorizer.h (_slp_tree::ops): New member.
7594 (SLP_TREE_SCALAR_OPS): New.
7595 (vect_get_slp_defs): Adjust prototype.
7596 * tree-vect-slp.c (vect_free_slp_tree): Release
7597 SLP_TREE_SCALAR_OPS.
7598 (vect_create_new_slp_node): Initialize it. New overload for
7599 initializing by an operands array.
7600 (_slp_oprnd_info::ops): New member.
7601 (vect_create_oprnd_info): Initialize it.
7602 (vect_free_oprnd_info): Release it.
7603 (vect_get_and_check_slp_defs): Populate the operands array.
7604 Do not swap operands in the IL when not necessary.
7605 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7606 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7607 swap operands in the operands array. Do not swap operands in
7608 the IL.
7609 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7610 (vect_gather_slp_loads): Fix.
7611 (vect_detect_hybrid_slp_stmts): Likewise.
7612 (vect_slp_analyze_node_operations_1): Search for a internal
7613 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7614 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7615 the def-type push/pop dance.
7616 (vect_get_constant_vectors): Compute number_of_vectors here.
7617 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7618 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7619 (vect_get_slp_defs): Simplify greatly.
7620 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7621 (vect_transform_reduction): Likewise.
7622 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7623 (vectorizable_call): Likewise.
7624 (vectorizable_operation): Likewise.
7625 (vectorizable_load): Likewise.
7626 (vectorizable_condition): Likewise.
7627 (vectorizable_comparison): Likewise.
7628
7629 2019-10-21 Richard Biener <rguenther@suse.de>
7630
7631 PR tree-optimization/92161
7632 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7633 for reductions.
7634
7635 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7636
7637 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7638 (aarch64_rndr): New define_insn.
7639 (aarch64_rndrrs): Likewise.
7640 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7641 (TARGET_RNG): Likewise.
7642 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7643 argument.
7644 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7645 Add fourth argument in prototype.
7646 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7647 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7648 (aarch64_init_rng_builtins): Define.
7649 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7650 (aarch64_expand_rng_builtin): Define.
7651 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7652 RNG builtins.
7653 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7654 __ARM_FEATURE_RNG when TARGET_RNG.
7655 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7656
7657 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7658
7659 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7660 alignment is more restrictive.
7661
7662 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7663
7664 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7665 (vect_update_max_nunits): Update comment.
7666 (current_vector_size): Delete.
7667 * tree-vect-stmts.c (current_vector_size): Likewise.
7668 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7669 of current_vector_size.
7670 (get_mask_type_for_scalar_type): Likewise.
7671 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7672 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7673 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7674 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7675 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7676 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7677
7678 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7679
7680 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7681 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7682 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7683 accordingly.
7684
7685 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7686
7687 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7688 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7689 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7690 call accordingly.
7691 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7692
7693 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7694
7695 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7696 a loop_vec_info.
7697 (vect_set_loop_condition_masked): Update call accordingly.
7698
7699 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7700
7701 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7702 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7703 (simple_integer_narrowing): Update call accordingly.
7704 (vectorizable_conversion): Likewise.
7705
7706 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7707
7708 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7709 (vectorizable_call): Update call accordingly.
7710
7711 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7712
7713 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7714 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7715 (duplicate_and_interleave): Update call accordingly.
7716 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7717
7718 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7719
7720 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7721 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7722 (vect_get_constant_vectors): Update call accordingly.
7723 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7724
7725 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7726
7727 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7728 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7729 (vect_prologue_cost_for_slp_op): Update call accordingly.
7730 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7731 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7732 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7733 (get_mask_type_for_scalar_type): Likewise.
7734 (vect_get_vector_types_for_stmt): Likewise.
7735 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7736 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7737 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7738 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7739 (vect_split_statement, vect_convert_input): Likewise.
7740 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7741 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7742 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7743 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7744 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7745 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7746 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7747 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7748 (vect_recog_mask_conversion_pattern): Likewise.
7749 (vect_add_conversion_to_pattern): Likewise.
7750 (vect_recog_gather_scatter_pattern): Likewise.
7751 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7752 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7753
7754 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7755
7756 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7757 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7758 (vect_check_load_store_mask): Update call accordingly.
7759 (vect_get_mask_type_for_stmt): Likewise.
7760 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7761 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7762 (vect_convert_mask_for_vectype): Likewise.
7763
7764 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7765
7766 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7767 a vec_info.
7768 (vect_recog_dot_prod_pattern): Update call accordingly.
7769 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7770 (vect_recog_widen_sum_pattern): Likewise.
7771
7772 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7773
7774 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7775 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7776 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7777 accordingly.
7778
7779 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7780
7781 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7782 get_vectype_for_scalar_type_and_size instead of
7783 get_vectype_for_scalar_type.
7784
7785 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7786
7787 * common.opt (-fcommon): Fix description.
7788
7789 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7790
7791 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7792 * config/i386/i386.c (ix86_pre_reload_split): New function.
7793 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7794 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7795 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7796 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7797 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7798 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7799 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7800 *<shift_insn><dwi>3_doubleword_mask,
7801 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7802 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7803 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7804 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7805 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7806 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7807 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7808 *avx2_<code>v8qiv8si2<mask_name>_2,
7809 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7810 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7811 *avx512f_<code>v8qiv8di2<mask_name>_2,
7812 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7813 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7814 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7815 sse4_2_pcmpistr): Likewise.
7816
7817 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7818
7819 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7820 now defaults to https.
7821
7822 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7823
7824 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7825 skip non-zero array accesses.
7826
7827 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7828
7829 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7830 and return a boolean success value. Move the allocation and
7831 initialization of the bb_vec_info to...
7832 (vect_slp_bb_region): ...here. Update call accordingly.
7833 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7834 than in vect_slp_analyze_bb_1.
7835
7836 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7837
7838 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7839 when processing the given datarefs for the first time and
7840 check_datarefs subsequently.
7841 (vect_slp_bb_region): New function, split out of...
7842 (vect_slp_bb): ...here. Don't recompute the region bounds and
7843 dataref sets when retrying with a different vector size.
7844
7845 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7846 Uroš Bizjak <ubizjak@gmail.com>
7847
7848 PR target/92140
7849 * config/i386/predicates.md (int_nonimmediate_operand): New special
7850 predicate.
7851 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7852 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7853 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7854 define_insn_and_split patterns.
7855
7856 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7857
7858 * config/rs6000/rs6000.md: Delete out--of-date comment about
7859 special-casing integer loads.
7860
7861 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7862
7863 * escaped_string.h (escaped_string): New header.
7864 * tree.c (escaped_string): Remove escaped_string class.
7865
7866 2019-10-18 Martin Sebor <msebor@redhat.com>
7867
7868 PR tree-optimization/92157
7869 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7870 compute_string_length to return a negative result.
7871
7872 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7873
7874 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7875 (negvsi3, negvdi3): Delete.
7876 (negdi2_compare): Delete.
7877
7878 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7879
7880 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7881 operations.
7882 (subdi3_compare1): Delete pattern.
7883 (subvsi3_borrow): New insn pattern.
7884 (subvsi3_borrow_imm): Likewise.
7885
7886 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7887
7888 * config/arm/arm.md (subv<mode>4): Delete.
7889 (subvdi4): New expander pattern.
7890 (subvsi4): Likewise. Handle some immediate values.
7891 (subvsi3_intmin): New insn pattern.
7892 (subvsi3): Likewise.
7893 (subvsi3_imm1): Likewise.
7894 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7895 idioms.
7896
7897 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7898
7899 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7900 incoming operands. Early split the calculation into SImode
7901 operations.
7902 (usubvsi3_borrow): New insn pattern.
7903 (usubvsi3_borrow_imm): Likewise.
7904
7905 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7906
7907 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7908 (usubvsi4): New pattern. Allow some immediate values for inputs.
7909 (usubvdi4): New pattern.
7910
7911 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7912
7913 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7914 or second operand of the PLUS inside a DImode equality test to be
7915 sign-extend when selecting CC_Vmode.
7916 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7917 instructions.
7918 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7919 expand patterns.
7920 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7921 (addsi3_cin_vout_0): Likewise.
7922 (adddi3_compareV): Delete.
7923
7924 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7925
7926 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7927 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7928 to transform this back into the summation version when that leads
7929 to smaller code.
7930
7931 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7932
7933 * config/arm/arm.md (addv<mode>4): Delete.
7934 (addvsi4): New pattern. Handle immediate values that the architecture
7935 supports.
7936 (addvdi4): New pattern.
7937 (addsi3_compareV): Rename to ...
7938 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7939 and use COMPARE rather than NE.
7940 (addsi3_compareV_imm): New pattern.
7941 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7942 a signed-overflow check.
7943
7944 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7945
7946 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7947 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7948 CC_ADCmode.
7949 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7950 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7951 with overflow.
7952 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7953 expand patterns.
7954 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7955 (addsi3_cin_cout_imm_insn): Likewise.
7956 (adddi3_compareC): Delete insn.
7957 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7958
7959 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7960
7961 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7962 * (uaddv<mode>4): Delete expansion pattern.
7963 (uaddvsi4): New pattern.
7964 (uaddvdi4): Likewise.
7965 (addsi3_compareC): Delete pattern, change callers to use
7966 addsi3_compare_op1.
7967 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7968 reduce the number of alternatives and re-work type attribute handling.
7969 (addsi3_compare_op2): Clean up constraints to reduce the number of
7970 alternatives and re-work type attribute handling.
7971 (compare_addsi2_op0): Likewise.
7972 (compare_addsi2_op1): Likewise.
7973
7974 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7975
7976 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7977 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7978 for DImode operands.
7979 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7980 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7981 CC_NCVmode.
7982 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7983 (arm_cmpdi_unsigned): Delete.
7984
7985 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7986
7987 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7988 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7989 unchanged only if that will be cheaper.
7990 (arm_select_cc_mode): Recognize a swapped comparison that will
7991 be regenerated using RSBS or RSCS. Relax restriction on selecting
7992 CC_RSBmode.
7993 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7994 a constant.
7995 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7996 is CC_RSBmode.
7997 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7998 as CCmode.
7999 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8000 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8001
8002 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8003
8004 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8005 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8006 need these modes.
8007 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8008 of EQ, NE, LT, GE, LTU and GEU.
8009 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8010 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8011 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8012 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8013 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8014
8015 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8016
8017 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8018 operand 2.
8019 (cstoredi4): Similarly, but for operand 3.
8020 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8021 canonicalization of unsigned compares with a constant on Arm.
8022 Prefer using const+1 and adjusting the comparison over swapping the
8023 operands whenever the original constant was not valid.
8024 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8025 register here.
8026 (arm_validize_comparison): Do not force invalid DImode operands to
8027 registers here.
8028
8029 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8030
8031 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8032 return CC_Zmode if comparing against a constant where one word is
8033 zero.
8034 (arm_gen_compare_reg): Split DImode handling to ...
8035 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8036 against simple constants.
8037 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8038
8039 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8040
8041 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8042 (rsbsi3_carryin_shift_alt): Likewise.
8043
8044 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8045
8046 * config/arm/arm.md (negscc_borrow): New pattern.
8047 (mov_negscc): Don't split if the insn would match negscc_borrow.
8048 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8049 (thumb2_mov_negscc_strict_it): Likewise.
8050
8051 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8052
8053 * config/arm/arm.c (arm_insn_cost): New function.
8054 (TARGET_INSN_COST): Override default definition.
8055
8056 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8057
8058 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8059 borrow operations.
8060
8061 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8062
8063 * config/arm/arm.c (strip_carry_operation): New function.
8064 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8065 for SImode.
8066
8067 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8068
8069 * config/arm/predicates.md (arm_carry_operation): New special
8070 predicate.
8071 * config/arm/iterators.md (LTUGEU): Delete iterator.
8072 (cnb): Delete code attribute.
8073 (optab): Delete ltu and geu elements.
8074 * config/arm/arm.md (addsi3_carryin): Renamed from
8075 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8076 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8077 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8078 (addsi3_carryin_clobercc): Similarly.
8079 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8080 Thumb2 state.
8081
8082 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8083
8084 * config/arm/arm.md (arm_subdi3): Delete insn.
8085 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8086
8087 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8088
8089 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8090 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8091 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8092 return CC_RSBmode.
8093 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8094 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8095 expand.
8096 (subdi3): Rewrite to early-expand the sub-operations.
8097 (rsb_im_compare): New pattern.
8098 (negdi2): Delete.
8099 (negdi2_insn): Delete.
8100 (arm_negsi2): Correct type attribute to alu_imm.
8101 (negsi2_0compare): New insn pattern.
8102 (negsi2_carryin): New insn pattern.
8103
8104 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8105
8106 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8107 operand 2.
8108
8109 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8110
8111 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8112 to match canonical form.
8113
8114 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8115
8116 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8117 (extend<mode>di2): Likewise.
8118
8119 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8120
8121 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8122 * config/arm/arm.c (arm_decompose_di_binop): New function.
8123 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8124 If not generating Thumb-1 code, decompose the operation into 32-bit
8125 pieces.
8126 * add0si_carryin_<optab>: New pattern.
8127
8128 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8129
8130 * arm.md (adddi3): Only accept register operands.
8131 (arm_adddi3): Convert to simple insn with no split. Do not accept
8132 constants.
8133 (adddi_sesidi_di): Delete patern.
8134 (adddi_zesidi_di): Likewise.
8135 (uaddv<mode>4): Use LTU as condition for branch.
8136 (adddi3_compareV): Convert to simple insn with no split.
8137 (addsi3_compareV_upper): Delete pattern.
8138 (adddi3_compareC): Convert to simple insn with no split. Correct
8139 flags setting expression.
8140 (addsi3_compareC_upper): Delete pattern.
8141 (addsi3_compareC): Correct flags setting expression.
8142 (subdi3_compare1): Convert to simple insn with no split.
8143 (subsi3_carryin_compare): Delete pattern.
8144 (arm_subdi3): Convert to simple insn with no split.
8145 (subdi_zesidi): Delete pattern.
8146 (subdi_di_sesidi): Delete pattern.
8147 (subdi_zesidi_di): Delete pattern.
8148 (subdi_sesidi_di): Delete pattern.
8149 (subdi_zesidi_zesidi): Delete pattern.
8150 (negvdi3): Use s_register_operand.
8151 (negdi2_compare): Convert to simple insn with no split.
8152 (negdi2_insn): Likewise.
8153 (negsi2_carryin_compare): Delete pattern.
8154 (negdi_zero_extendsidi): Delete pattern.
8155 (arm_cmpdi_insn): Convert to simple insn with no split.
8156 (negdi2): Don't call gen_negdi2_neon.
8157 * config/arm/neon.md (adddi3_neon): Delete pattern.
8158 (subdi3_neon): Delete pattern.
8159 (negdi2_neon): Delete pattern.
8160 (splits for negdi2_neon): Delete splits.
8161
8162 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8163
8164 PR middle-end/92153
8165 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8166 than after it.
8167
8168 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8169
8170 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8171 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8172 new multilib variants and new mappings.
8173
8174 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8175
8176 PR target/86040
8177 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8178
8179 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8180 Richard Sandiford <richard.sandiford@arm.com>
8181
8182 PR target/86753
8183 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8184 and define hashmap traits for it.
8185 (loop_vec_info::scalar_cond_masked_set): New member.
8186 (vect_record_loop_mask): Adjust prototype.
8187 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8188 Implement method.
8189 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8190 vect_record_loop_mask.
8191 (vectorizable_live_operation): Likewise.
8192 (vect_record_loop_mask): New param scalar_mask. Add entry
8193 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8194 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8195 Pass it as last arg to vect_record_loop_mask.
8196 (vectorizable_call): Pass scalar_mask as last arg to
8197 vect_record_loop_mask.
8198 (vectorizable_store): Likewise.
8199 (vectorizable_load): Likewise.
8200 (vectorizable_condition): Check if another part of vectorized code
8201 applies loop_mask to condition or to it's inverse, and if yes,
8202 apply loop_mask to result of vector comparison.
8203
8204 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8205
8206 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8207
8208 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8209
8210 PR tree-optimization/92056
8211 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8212 before calling compute_builtin_object_size.
8213
8214 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8215
8216 PR target/65342
8217 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8218 (movdi_low_st): Delete.
8219 * config/rs6000/rs6000.c
8220 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8221 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8222 * config/rs6000/rs6000.md (movsi_low): Delete.
8223
8224 2019-10-17 Jason Merrill <jason@redhat.com>
8225
8226 * gimplify.h (get_initialized_tmp_var): Add default argument to
8227 post_p.
8228 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8229 NULL post_p argument.
8230 * targhooks (std_gimplify_va_arg_expr): Likewise.
8231
8232 2019-10-17 Richard Biener <rguenther@suse.de>
8233
8234 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8235 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8236 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8237 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8238 * tree-vect-loop.c (vect_is_simple_reduction): Set
8239 STMT_VINFO_REDUC_CODE.
8240 (vectorizable_reduction): Remove dead and redundant code, use
8241 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8242
8243 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8244
8245 Fix breakage introduced by r276985.
8246
8247 * config/avr/avr.c (avr_option_override): Remove set of
8248 PARAM_ALLOW_STORE_DATA_RACES.
8249 * common/config/avr/avr-common.c (avr_option_optimization_table)
8250 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8251
8252 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8253
8254 * config/i386/i386.h (processor_costs): Add clear_ratio.
8255 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8256 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8257 of 6 and move_ratio in all cost models.
8258
8259 2019-10-17 Richard Biener <rguenther@suse.de>
8260
8261 * tree-vect-loop.c (check_reduction_path): Compute reduction
8262 operation here.
8263 (vect_is_simple_reduction): Remove special-case of single-stmt
8264 reduction path detection.
8265
8266 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8267
8268 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8269
8270 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8271
8272 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8273 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8274 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8275 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8276 New combine patterns.
8277 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8278 above.
8279 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8280
8281 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8282
8283 * tree-vrp.c (value_range_base::dump): Display +INF for both
8284 pointers and integers when appropriate.
8285
8286 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8287
8288 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8289 when to use versioning threshold.
8290
8291 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8292
8293 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8294 outlined code from ...
8295 (vect_analyze_loop_2): ... here.
8296
8297 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8298
8299 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8300 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8301 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8302
8303 2019-10-17 Richard Biener <rguenther@suse.de>
8304
8305 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8306 (vect_is_simple_reduction): Move all validity checks ...
8307 (vectorizable_reduction): ... here. Compute whether we
8308 need a fold-left reduction here.
8309 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8310 both overloads, check needs_fold_left_reduction_p directly.
8311 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8312
8313 2019-10-17 Richard Biener <rguenther@suse.de>
8314
8315 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8316 TARGET_MEM_REF creation.
8317
8318 2019-10-17 Richard Biener <rguenther@suse.de>
8319
8320 PR tree-optimization/92129
8321 * tree-vect-loop.c (vectorizable_reduction): Also fail
8322 on GIMPLE_SINGLE_RHS.
8323
8324 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8325
8326 PR tree-optimization/92056
8327 * tree-object-size.c (cond_expr_object_size): Return early if then_
8328 processing resulted in unknown size.
8329
8330 PR tree-optimization/92115
8331 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8332 temporary if it could trap.
8333
8334 2019-10-17 Richard Biener <rguenther@suse.de>
8335
8336 PR debug/91887
8337 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8338 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8339
8340 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8341
8342 * tree-ssa-strlen.c (maybe_invalidate): Use
8343 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8344
8345 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8346 Jim Wilson <jimw@sifive.com>
8347
8348 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8349 regs to SIBCALL_REGS.
8350 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8351 passing regs to SIBCALL_REGS.
8352
8353 2019-10-16 Martin Sebor <msebor@redhat.com>
8354
8355 PR tree-optimization/83821
8356 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8357 the length of a string when available.
8358 (handle_builtin_memset) Add argument.
8359 (handle_store, strlen_check_and_optimize_call): Same.
8360 (check_and_optimize_stmt): Same. Pass it to callees.
8361
8362 2019-10-16 Martin Sebor <msebor@redhat.com>
8363
8364 PR tree-optimization/91996
8365 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8366 information.
8367 (compare_nonzero_chars): Add an overload.
8368 (count_nonzero_bytes): Add an argument. Call overload above.
8369 Handle non-constant lengths in some range.
8370 (handle_store): Add an argument.
8371 (check_and_optimize_stmt): Pass an argument to handle_store.
8372
8373 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8374
8375 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8376
8377 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8378
8379 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8380 operands which correspond to the same input-output register to
8381 have the same pseudo assigned to them.
8382
8383 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8384
8385 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8386
8387 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8388
8389 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8390 Apply reasonable limit to symbol offsets.
8391
8392 2019-10-16 Richard Biener <rguenther@suse.de>
8393
8394 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8395 (vect_is_simple_reduction): Delay checking to
8396 vectorizable_reduction and relax the checking.
8397 (vectorizable_reduction): Check we have a simple use. Check
8398 for bogus condition reductions.
8399 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8400 are looking at the last stmt in a pattern sequence when
8401 filling in backedge PHI values.
8402
8403 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8404 Jiufu Guo <guojiufu@linux.ibm.com>
8405
8406 PR target/70010
8407 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8408 the callee explicitly disables some isa_flags the caller is using.
8409
8410 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8411
8412 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8413
8414 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8415
8416 * genmodes.c (mode_data::order): New field.
8417 (blank_mode): Update accordingly.
8418 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8419 (make_vector_modes): Likewise.
8420 (VECTOR_MODES): Update use accordingly.
8421 (cmp_modes): Sort by the new order field ahead of sorting by size.
8422 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8423 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8424 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8425 (aarch64_classify_vector_mode): Handle the new partial modes.
8426 (aarch64_vl_bytes): New function.
8427 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8428 when counting the number of registers in an SVE mode.
8429 (aarch64_class_max_nregs): Likewise.
8430 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8431 in registers yet.
8432 (aarch64_classify_address): Treat partial vectors analogously
8433 to full vectors.
8434 (aarch64_print_address_internal): Consolidate the printing of
8435 MUL VL addresses, using aarch64_vl_bytes as the number of
8436 bytes represented by "VL".
8437 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8438
8439 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8440
8441 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8442 rather than known_lt when choosing frame layouts.
8443
8444 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8445
8446 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8447 that all the adjustments add up to the full frame size.
8448 Use crtl->outgoing_args_size directly as the final adjustment
8449 where appropriate.
8450
8451 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8452
8453 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8454 "frame" reference instead of always referring directly to
8455 "cfun->machine->frame".
8456
8457 2019-10-16 Richard Biener <rguenther@suse.de>
8458
8459 PR tree-optimization/92119
8460 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8461 against missing bswap lhs.
8462
8463 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8464
8465 PR middle-end/92033
8466 * poly-int.h (constant_lower_bound_with_limit): New function.
8467 (constant_upper_bound_with_limit): Likewise.
8468 * doc/poly-int.texi: Document them.
8469 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8470 into the worst-case INTEGER_CST bounds.
8471
8472 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8473
8474 PR ipa/91088
8475 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8476 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8477 * ipa-predicat.h (struct expr_eval_op): New struct.
8478 (expr_eval_ops): New typedef.
8479 (struct condition): Add type and param_ops fields, remove size field.
8480 (add_condition): Replace size parameter with type parameter, add
8481 param_ops parameter.
8482 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8483 (predicate::add_clause): Add comparisons on type and param_ops.
8484 (dump_condition): Add debug dump for param_ops.
8485 (remap_after_inlining): Adjust call arguments to add_condition.
8486 (add_condition): Replace size parameter with type parameter, add
8487 param_ops parameter. Unshare constant value used in conditions.
8488 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8489 parameter expressions using param_ops.
8490 (decompose_param_expr): New function.
8491 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8492 to replace call to unmodified_parm_or_parm_agg_item.
8493 (set_switch_stmt_execution_predicate): Likewise.
8494 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8495 with type.
8496 (inline_read_section): Read param_ops from summary stream.
8497 (ipa_fn_summary_write): Write param_ops to summary stream.
8498
8499 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8500
8501 PR rtl-optimization/92107
8502 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8503 expression written.
8504
8505 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8506
8507 * config/darwin.c: Update description of fix and continue.
8508
8509 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8510
8511 * config/darwin.c (darwin_binds_local_p): Update to call
8512 default_binds_local_p_3 () directly. amend comments.
8513
8514 2019-10-15 Richard Biener <rguenther@suse.de>
8515
8516 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8517 (tree_is_indexable): Use it.
8518 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8519 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8520 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8521
8522 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8523
8524 * config/msp430/msp430.md (zero_extendqipsi2): New.
8525 (zero_extendqisi2): Optimize case where src register and base dst
8526 register are the same.
8527 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8528 (zero_extendpsisi2): Optimize r->m case.
8529 Add unnamed insn patterns to catch insns combine searches for when
8530 optimizing pointer manipulation.
8531
8532 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8533
8534 * config/msp430/msp430.md: Group zero_extend* insns together.
8535
8536 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8537
8538 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8539 constraint.
8540 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8541 POST_INC.
8542 (msp430_subreg): Likewise.
8543 (msp430_split_addsi): Likewise.
8544 (msp430_print_operand_addr): Likewise.
8545 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8546 (USE_STORE_POST_INCREMENT): Define.
8547 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8548 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8549 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8550 (msp430_general_dst_operand): New.
8551 (msp430_general_dst_nonv_operand): New.
8552 (msp430_nonsubreg_operand): Remove.
8553 (msp430_nonsubreg_dst_operand): New.
8554 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8555 of defunct msp430_nonsubreg_operand.
8556 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8557
8558 2019-10-15 Richard Biener <rguenther@suse.de>
8559
8560 PR tree-optimization/91929
8561 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8562 (get_or_alloc_expr_for_name): Initialize it.
8563 (get_or_alloc_expr_for_constant): Likewise.
8564 (phi_translate_1): Copy it.
8565 (create_expression_by_pieces): Use the original location
8566 of the expression for the inserted stmt.
8567 (compute_avail): Record the location of the stmt for the
8568 expressions created.
8569
8570 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8571
8572 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8573 before using tree_to_uhwi.
8574
8575 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8576
8577 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8578
8579 2019-10-15 Richard Biener <rguenther@suse.de>
8580
8581 PR tree-optimization/92094
8582 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8583 do not adjust the reduction definition def type.
8584 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8585 defines the latch argument of the PHI.
8586
8587 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8588
8589 PR target/92035
8590 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8591 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8592 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8593 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8594 _mm_maskz_roundscale_round_sd): New intrinsics.
8595 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8596 __builtin_ia32_rndscales?_mask_round builtins instead of
8597 __builtin_ia32_rndscales?_round.
8598 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8599 __builtin_ia32_rndscalesd_round): Remove.
8600 (__builtin_ia32_rndscaless_mask_round,
8601 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8602 * config/i386/sse.md
8603 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8604 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8605 ... this, adjust and add subst atrributes to make it maskable.
8606
8607 2019-10-15 Richard Biener <rguenther@suse.de>
8608
8609 PR middle-end/92046
8610 * common.opt (fallow-store-data-races): New.
8611 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8612 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8613 * doc/invoke.texi (fallow-store-data-races): Document.
8614 (--param allow-store-data-races): Remove docs.
8615 * opts.c (default_options_table): Enable -fallow-store-data-races
8616 at -Ofast.
8617 (default_options_optimization): Do not enable --param
8618 allow-store-data-races at -Ofast.
8619 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8620 instead of PARAM_ALLOW_STORE_DATA_RACES.
8621 * tree-ssa-loop-im.c (execute_sm): Likewise.
8622
8623 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8624
8625 PR tree-optimization/92085
8626 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8627 instead of calling it unconditionally after
8628 delete_dead_or_redundant_assignment and fix indentation.
8629
8630 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8631
8632 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8633 TARGET_VFP_DOUBLE.
8634 (*fmsub<SDF:mode>4): Likewise.
8635 *fnmsub<SDF:mode>4): Likewise.
8636 (*fnmadd<SDF:mode>4): Likewise.
8637
8638 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8639
8640 * doc/tree-ssa.texi: Update renamed macro name.
8641
8642 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8643
8644 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8645 vector constants.
8646
8647 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8648
8649 * config/darwin.c: Use unsigned ints for the picbase label
8650 counters, initialise the vars explicitly.
8651 (update_pic_label_number_if_needed): Move a variable declaration
8652 to where it's needed.
8653 (machopic_output_function_base_name): Use a more strict checking
8654 assert, and and unsigned int for the picbase label counter.
8655 (machopic_get_function_picbase): Likewise.
8656
8657 2019-10-14 Richard Biener <rguenther@suse.de>
8658
8659 PR middle-end/92046
8660 * dse.c (scan_insn): Use param max_active_local_stores.
8661 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8662 based on optimization level.
8663 * loop-invariant.c (move_loop_invariants): Adjust
8664 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8665 * opts.c (default_options_optimization): Do not adjust
8666 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8667 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8668
8669 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8670
8671 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8672
8673 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8674
8675 * config/arm/arm.c (arm_option_override): Don't override sched
8676 pressure algorithm.
8677
8678 2019-10-14 Richard Biener <rguenther@suse.de>
8679
8680 PR tree-optimization/92069
8681 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8682 cycles do not set vect_nested_cycle on the latch definition.
8683
8684 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8685
8686 * function-abi.h (expr_callee_abi): Declare.
8687 * function-abi.cc (expr_callee_abi): New function.
8688
8689 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8690
8691 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8692 into [1,MAX].
8693 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8694 non-zero being represented as [1,MAX].
8695
8696 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8697
8698 * tree-sra.c (dump_access): Add missing braces.
8699
8700 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8701
8702 * config/darwin.c (machopic_indirection_name): Rework the
8703 function to emit linker-visible symbols only for indirections
8704 in the data section. Clean up the code and update comments.
8705
8706 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8707
8708 * config/darwin.c (machopic_indirect_data_reference): Remove
8709 redundant code.
8710
8711 2019-10-13 Nathan Sidwell <nathan@acm.org>
8712
8713 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8714
8715 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8716
8717 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8718 c99_runtime.
8719
8720 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8721
8722 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8723 so non-virutal are before virutals.
8724 (output_function): Avoid body modifications.
8725
8726 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8727
8728 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8729 %r22. Load function address before global pointer.
8730 (pa_attr_length_indirect_call): Adjust length of inline versions of
8731 $$dyncall.
8732 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8733 before normal cases. Update inline $$dyncall sequences to preserve
8734 function descriptor address in register %r22.
8735 (TRAMPOLINE_CODE_SIZE): Adjust.
8736 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8737 register %r22 contains trampoline address.
8738 (pa_trampoline_init): Adjust offsets.
8739 (pa_trampoline_adjust_address): Likewise.
8740 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8741
8742 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8743
8744 PR target/67183
8745 * config/darwin.c (machopic_indirection): New field to flag
8746 non-lazy-symbol-pointers in the data section.
8747 (machopic_indirection_name): Compute if an indirection should
8748 appear in the data section.
8749 (machopic_output_data_section_indirection): New callback split
8750 from machopic_output_indirection.
8751 (machopic_output_stub_indirection): Likewise.
8752 (machopic_output_indirection): Retain the code for non-lazy
8753 symbol pointers in their regular section.
8754 (machopic_finish): Use the new callbacks to order the indirection
8755 output.
8756
8757 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8758
8759 * config/darwin-protos.h (machopic_finish): Delete.
8760 * config/darwin.c (machopic_finish): Make static.
8761
8762 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8763
8764 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8765 sections when building kernel extension code.
8766
8767 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8768
8769 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8770 later standard."
8771
8772 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8773
8774 * config/pa/pa.c (pa_option_override): Remove trailing comma
8775 from warning.
8776
8777 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8778
8779 PR middle-end/92063
8780 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8781 <case VEC_COND_EXPR>: Return false with *handled = false.
8782 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8783 recursing on the first operand.
8784 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8785 instead of tree_could_trap_p.
8786 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8787
8788 2019-10-11 Jim Wilson <jimw@sifive.com>
8789
8790 PR rtl-optimization/91860
8791 * combine.c (subst): If new_rtx is a constant, also check for
8792 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8793
8794 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8795
8796 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8797 INTVAL when calling store_bit_field.
8798
8799 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8800
8801 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8802 size.
8803
8804 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8805
8806 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8807 vectorizable_live_operation.
8808 (vectorizable_live_operation): Adjust parameters.
8809 * tree-vect-stmts.c (vect_init_vector,
8810 vect_gen_widened_results_half): Fix typo in function comment.
8811 (can_vectorize_live_stmts): Adjust function comment.
8812 Adjust parameters. Adjust call to vectorizable_live_operation.
8813 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8814 (vect_transform_stmt): Adjust function comment. Adjust call to
8815 can_vectorize_live_stmts.
8816 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8817
8818 2019-10-11 Richard Biener <rguenther@suse.de>
8819
8820 PR tree-optimization/90883
8821 PR tree-optimization/91091
8822 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8823 alias-sets both for recording VN table entries and continuing
8824 walking after translating through copies. Handle same-sized
8825 reads from SSA names by returning the plain SSA name.
8826 (eliminate_dom_walker::eliminate_stmt): Properly handle
8827 non-size precision stores in redundant store elimination.
8828
8829 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8830
8831 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8832 (ggc_collect): Dump later to not interfere with release_page dump.
8833 (ggc_trim): New function.
8834 * ggc-none.c (ggc_trim): New.
8835 * ggc.h (ggc_trim): Declare.
8836
8837 2019-10-11 Richard Biener <rguenther@suse.de>
8838
8839 PR tree-optimization/92066
8840 PR tree-optimization/92046
8841 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8842 Fix bogus cost model check.
8843
8844 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8845
8846 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8847 (LANG_HOOKS_DECLS): Add it.
8848 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8849 update comment for omp_is_optional_argument.
8850 * omp-general.c (omp_is_allocatable_or_ptr): New.
8851 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8852 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8853 Fortran's optional arguments and allocatable/pointer scalars
8854 with use_device_addr.
8855
8856 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8857
8858 PR target/77918
8859 * config/s390/2827.md: Add new opcodes.
8860 * config/s390/2964.md: Likewise.
8861 * config/s390/3906.md: Likewise.
8862 * config/s390/8561.md: Likewise.
8863 * config/s390/s390-builtins.def (s390_vfchesb): Use
8864 the new vec_cmpgev4sf_quiet_nocc.
8865 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8866 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8867 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8868 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8869 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8870 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8871 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8872 * config/s390/s390-modes.def (CCSFPS): New mode.
8873 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8874 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8875 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8876 (s390_expand_vec_compare): Use non-signaling patterns where
8877 necessary.
8878 (s390_reverse_condition): Support CCSFPS.
8879 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8880 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8881 (asm_fcmp_op): Likewise.
8882 (*smaxv2df3_vx): Use pattern for quiet comparison.
8883 (*sminv2df3_vx): Likewise.
8884 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8885 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8886 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8887 (vec_cmplt<mode>_quiet_nocc): New expander.
8888 (vec_cmpge<mode>_quiet_nocc): New pattern.
8889 (vec_cmple<mode>_quiet_nocc): New expander.
8890 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8891 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8892 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8893 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8894 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8895 (vec_cmpungt<mode>): New expander.
8896 (vec_cmpunge<mode>): Likewise.
8897 (vec_cmpuneq<mode>): Use quiet patterns.
8898 (vec_cmpltgt<mode>): Allow only on z14+.
8899 (vec_cmpordered<mode>): Use quiet patterns.
8900 (vec_cmpunordered<mode>): Likewise.
8901 (VEC_CMP_EXPAND): Add ungt and unge.
8902
8903 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8904
8905 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8906 parameter.
8907 * lto-streamer-out.c: Include tree-dfa.h.
8908 (output_cfg): Do not use cfun.
8909 (lto_prepare_function_for_streaming): New.
8910 (output_function): Do not push cfun; do not initialize loop optimizer.
8911 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8912 * passes.c (ipa_write_summaries): Use it.
8913 (ipa_write_optimization_summaries): Do not modify bodies.
8914 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8915 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8916 * tree-ssa-dse.c (pass_dse::execute): Update use of
8917 renumber_gimple_stmt_uids.
8918 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8919
8920 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8921
8922 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8923 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8924
8925 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8926
8927 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8928 macros.
8929 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8930 Also define DFP macros for these conditions.
8931 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8932 DEC128_SUBNORMAL_MIN): Do not define.
8933 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8934 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8935
8936 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8937 Sandra Loosemore <sandra@codesourcery.com>
8938
8939 PR middle-end/26241
8940 * doc/lto.texi (IPA): Reference to the IPA passes.
8941 * doc/passes.texi (Pass manager): Add node IPA passes and
8942 description for each IPA pass.
8943
8944 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8945
8946 * ipa-reference.c: Do not include splay-tree.h
8947 (reference_vars_to_consider): Turn to hash map.
8948 (get_static_name, ipa_init, analyze_function, propagate,
8949 stream_out_bitmap, ipa_reference_write_optimization_summary,
8950 ipa_reference_write_optimization_summary): Update.
8951
8952 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8953
8954 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8955
8956 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8957
8958 * config/darwin.c: Lookup Objective C metadata and force indirection
8959 for IVAR refs.
8960
8961 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8962
8963 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8964 addresses.
8965 (mem_operand_gpr): Add check for prefixed addresses.
8966 (mem_operand_ds_form): Add check for prefixed addresses.
8967 (rs6000_legitimate_offset_address_p): If we support prefixed
8968 addresses, check for a 34-bit offset instead of 16-bit.
8969 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8970 Do not allow load/store with update if the address is prefixed.
8971 (rs6000_mode_dependent_address): If we support prefixed
8972 addresses, check for a 34-bit offset instead of 16-bit.
8973
8974 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8975
8976 PR target/77918
8977 * config/s390/vector.md (vcond_comparison_operator): New
8978 predicate.
8979 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8980
8981 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8982
8983 PR 87488
8984 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8985 -D.
8986 * configure.ac (--with-documentation-root-url): New option.
8987 * configure: Regenerate.
8988 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8989 option URL, add it as a new string field of the diagnostic option.
8990 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8991 (print_option_information): If get_option_url is non-NULL, call
8992 it, and if the result is non-NULL, potentially emit an escape
8993 sequence to markup the option text with the resulting URL.
8994 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8995 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8996 example of JSON output.
8997 * opts-diagnostic.h (get_option_url): New decl.
8998 * opts.c (get_option_url): New function.
8999 * toplev.c (general_init): Initialize the get_option_url callback.
9000
9001 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9002
9003 PR 87488
9004 * common.opt (fdiagnostics-urls=): New option.
9005 (diagnostic-url.h): Add SourceInclude.
9006 (diagnostic_url_rule): New enum.
9007 * diagnostic-color.c: Include "diagnostic-url.h".
9008 (diagnostic_urls_enabled_p): New function.
9009 * diagnostic-url.h: New file.
9010 * diagnostic.c: Include "diagnostic-url.h".
9011 (diagnostic_urls_init): New function.
9012 * diagnostic.h (diagnostic_urls_init): New decl.
9013 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9014 -fdiagnostics-urls to the list.
9015 (-fdiagnostics-urls): New option.
9016 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9017 (driver::global_initializations): Call diagnostic_urls_init.
9018 * opts-global.c (init_options_once): Likewise.
9019 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9020 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9021 show_urls.
9022 (pp_begin_url): New function.
9023 (pp_end_url): New function.
9024 (selftest::test_urls): New selftest.
9025 (selftest::pretty_print_c_tests): Call it.
9026 * pretty-print.h (pretty_printer::show_urls): New field.
9027 (pp_begin_url): New decl.
9028 (pp_end_url): New decl.
9029
9030 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9031
9032 PR target/92022
9033 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9034
9035 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9036
9037 PR target/88630
9038 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9039 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9040 also for TARGET_FPU_SH4_300.
9041 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9042 TARGET_SH4_300.
9043 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9044 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9045 (*negsf2_i): Split into ...
9046 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9047 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9048 (**abssf2_i): Split into ...
9049 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9050 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9051 (*negdf2_i): Split into ...
9052 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9053 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9054 (**abssf2_i): Split into ...
9055 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9056
9057 2019-10-10 Richard Biener <rguenther@suse.de>
9058
9059 PR middle-end/92046
9060 * opts.c (finish_options): Do not influence global --params
9061 from options that are adjustable per function.
9062 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9063 Apply --param adjustment based on active cost-model.
9064 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9065 further store-sinking when vectorization or if-conversion
9066 are not enabled.
9067
9068 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9069
9070 PR middle-end/92037
9071 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9072 rather than ggc_alloc_cleared to alloc symbol table.
9073 * toplev.c (general_init): Likewise.
9074 * cgraph.h (symbol_table): Explicitly construct every field.
9075
9076 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9077
9078 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9079 (PF_Z15): ... this.
9080 * config.gcc: Add z15 as option for --with-arch and --with-tune
9081 configure switches.
9082 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9083 error reporting for unsupported builtins.
9084 * config/s390/s390-opts.h (enum processor_type): Rename
9085 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9086 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9087 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9088 Likewise.
9089 * config/s390/s390-builtins.def: Likewise.
9090 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9091 (s390_expand_builtin): Add missing check for unsupported builtins.
9092 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9093 (s390_rtx_costs): Likewise.
9094 (s390_get_sched_attrmask): Rename arch13 to z15.
9095 (s390_get_unit_mask): Likewise.
9096 (s390_is_fpd): Likewise.
9097 (s390_is_fxd): Likewise.
9098 * config/s390/s390.h (enum processor_flags): Likewise.
9099 * config/s390/s390.md: Likewise.
9100 * config/s390/vector.md: Likewise.
9101 * config/s390/vx-builtins.md: Likewise.
9102 * config/s390/s390.opt: Add z15 to processor_type value.
9103
9104 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9105
9106 PR target/91035
9107 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9108 prototype.
9109 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9110 ("split_stack_data", "split_stack_call")
9111 ("split_stack_call_<mode>", "split_stack_cond_call")
9112 ("split_stack_cond_call_<mode>"): Remove.
9113 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9114 insn definition.
9115 * config/s390/s390.c (s390_output_split_stack_data): New function.
9116 (s390_expand_split_stack_prologue): Use the merged expander.
9117
9118 2019-10-09 Martin Sebor <msebor@redhat.com>
9119
9120 PR tree-optimization/90879
9121 * builtins.c (check_access): Avoid using maxbound when null.
9122 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9123 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9124 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9125 conditional.
9126 (get_range_strlen): Overwrite initial maxbound when non-null.
9127 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9128 changes.
9129 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9130 (used_only_for_zero_equality): New function.
9131 (handle_builtin_memcmp): Call it.
9132 (determine_min_objsize): Return an integer instead of tree.
9133 (get_len_or_size, strxcmp_eqz_result): New functions.
9134 (maybe_warn_pointless_strcmp): New function.
9135 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9136 between a longer string and a smaller array.
9137 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9138
9139 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9140
9141 * config/darwin.c (darwin_override_options): Make the check for
9142 Objective-C ABI version more specific for 64bit code.
9143
9144 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9145
9146 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9147 indicate that the new symbol is an indirection.
9148 (machopic_indirect_call_target): Likewise.
9149 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9150 (MACHO_SYMBOL_INDIRECTION_P): New.
9151 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9152
9153 2019-10-08 Jason Merrill <jason@redhat.com>
9154
9155 * doc/invoke.texi: Document -fconcepts-ts.
9156
9157 2019-10-09 Richard Biener <rguenther@suse.de>
9158
9159 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9160 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9161
9162 2019-10-08 Richard Biener <rguenther@suse.de>
9163
9164 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9165 (_stmt_vec_info::force_single_cycle): Likewise.
9166 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9167 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9168 * tree-vect-loop.c (vectorizable_reduction): Set
9169 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9170 (vect_transform_reduction): Use them to remove redundant code.
9171 (vect_transform_cycle_phi): Likewise.
9172
9173 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9174
9175 PR tree-optimization/90836
9176 * match.pd (popcount): New pattern.
9177
9178 2019-10-08 Martin Sebor <msebor@redhat.com>
9179
9180 PR middle-end/92026
9181 PR middle-end/92014
9182 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9183 again once nbytes has been set. Set the access size when not yet set.
9184
9185 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9186
9187 * config/darwin.c (machopic_select_section): Remove dead code for
9188 old Objective-C section selection method, replace with unreachable.
9189
9190 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9191
9192 * config/darwin.c (machopic_indirect_data_reference): Check for
9193 required indirections before making direct access to defined
9194 values.
9195 (machopic_output_indirection): Place the indirected pointes for
9196 required indirections into the non-lazy symbol pointers section.
9197 (darwin_encode_section_info):
9198 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9199 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9200
9201 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9202
9203 PR target/91994
9204 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9205 instead of ALL_SSE_REG to check if function call preserves some
9206 256-bit SSE registers.
9207
9208 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9209
9210 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9211 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9212 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9213
9214 2019-10-08 Richard Biener <rguenther@suse.de>
9215
9216 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9217 (_stmt_vec_info::is_reduc_info): Add.
9218 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9219 (vectorizable_condition): Remove.
9220 (vectorizable_shift): Likewise.
9221 (vectorizable_reduction): Adjust.
9222 (info_for_reduction): New.
9223 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9224 (vect_analyze_scalar_cycles_1): ... here.
9225 (vect_analyze_loop_operations): Adjust.
9226 (needs_fold_left_reduction_p): Simplify for single caller.
9227 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9228 for nested cycles not part of double reductions.
9229 (vect_model_reduction_cost): Pass in the reduction type.
9230 (info_for_reduction): New function.
9231 (vect_create_epilog_for_reduction): Use it, access reduction
9232 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9233 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9234 (vectorize_fold_left_reduction): Remove pointless assert.
9235 (vectorizable_reduction): Analyze the full reduction when
9236 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9237 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9238 stmt code-generation to vectorizable_* in most cases. Verify
9239 code-generation only for cases handled by
9240 vect_transform_reductuon.
9241 (vect_transform_reduction): Use info_for_reduction to get at
9242 reduction meta. Simplify.
9243 (vect_transform_cycle_phi): Likewise.
9244 (vectorizable_live_operation): Likewise.
9245 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9246 at the PHI node for STMT_VINFO_REDUC_TYPE.
9247 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9248 longer necessary code.
9249 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9250 (vectorizable_condition): Likewise. Get at reduction related
9251 info via info_for_reduction.
9252 (vect_analyze_stmt): Adjust.
9253 (vect_transform_stmt): Likewise.
9254 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9255 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9256
9257 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9258
9259 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9260 -fno-fp-int-builtin-inexact default for C2X.
9261
9262 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9263 Richard Biener <rguenther@suse.de>
9264
9265 PR tree-optimization/91532
9266 * tree-if-conv.c: Include tree-ssa-dse.h.
9267 (ifcvt_local_dce): Change param from bb to loop,
9268 and call dse_classify_store.
9269 (tree_if_conversion): Pass loop instead of loop->header as arg
9270 to ifcvt_local_dce.
9271 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9272 (delete_dead_or_redundant_assignment): Remove static qualifier from
9273 declaration, and add prototype in tree-ssa-dse.h.
9274 (dse_store_status): Move to tree-ssa-dse.h.
9275 (dse_classify_store): Remove static qualifier and add new tree param
9276 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9277 * tree-ssa-dse.h: New header.
9278
9279 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9280
9281 * config/darwin.c (machopic_output_indirection): Don't put
9282 hidden symbol indirections into the .data section, use the
9283 non-lazy symbol pointers section as normal.
9284 (darwin_encode_section_info): Record if a symbol is hidden.
9285 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9286 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9287
9288 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9289
9290 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9291 predicates instead of accessing bits directly.
9292 (machopic_indirect_call_target): Likewise.
9293 (machopic_output_indirection): Likewise.
9294 (darwin_encode_section_info): Improve description. Use renamed
9295 symbol flags. Use predicate macros for variables and functions.
9296 * config/darwin.h:
9297 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9298 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9299 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9300 (MACHO_SYMBOL_VARIABLE_P): New.
9301 (MACHO_SYMBOL_DEFINED_P):New.
9302 (MACHO_SYMBOL_STATIC_P): New.
9303 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9304 (SYMBOL_FLAG_SUBT_DEP): New.
9305 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9306
9307 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9308
9309 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9310 (msp430_expand_epilogue): Likewise.
9311 * config/msp430/predicates.md: Likewise.
9312 * config/msp430/msp430.md: Likewise.
9313 Replace blocks of 8 spaces with tabs.
9314
9315 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9316
9317 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9318 * config/msp430/msp430.c (msp430_split_addsi): New.
9319 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9320 a block of C code for splitting addsi.
9321
9322 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9323
9324 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9325 ix86_expand_rounddf_32): Reorder functions.
9326 * config/i386/i386-protos.h: Update.
9327
9328 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9329
9330 * config.in: Regenerate.
9331 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9332 Add new "Yx" constraint.
9333 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9334 function.
9335 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9336 prototype.
9337 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9338 code/data region to be selected in the small memory model.
9339 (msp430_section_attr): Don't warn if the "section" and "lower"
9340 attributes are used together.
9341 (msp430_handle_generic_attribute): Likewise.
9342 (msp430_var_in_low_mem): New function.
9343 (TARGET_ENCODE_SECTION_INFO): Define.
9344 (msp430_encode_section_info): New function.
9345 (gen_prefix): Return early in the small memory model.
9346 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9347 ".lower" prefix if -m{code,data}-region=lower have been passed.
9348 (msp430_output_aligned_decl_common): Emit common symbols when
9349 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9350 set.
9351 (TARGET_ASM_FILE_END): Define.
9352 (msp430_file_end): New function.
9353 (msp430_do_not_relax_short_jumps): Allow relaxation when
9354 function will be in the lower region.
9355 (msp430_op_not_in_high_mem): New function.
9356 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9357 the 'X' operand selector.
9358 Clarify comment for 'x' operand selector.
9359 * config/msp430/msp430.h (LINK_SPEC): Propagate
9360 -m{code,data}-region to the linker via spec function
9361 msp430_propagate_region_opt.
9362 (msp430_propagate_region_opt): New prototype.
9363 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9364 (SYMBOL_FLAG_LOW_MEM): Define.
9365 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9366 selector.
9367 (zero_extendqihi2): Fix operand number used by "%X" selector.
9368 (zero_extendqisi2): Likewise.
9369 (zero_extendhisi2): Likewise.
9370 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9371 (movhi): Likewise.
9372 (addqi3): Likewise.
9373 (addhi3): Likewise.
9374 (addsi3): Likewise.
9375 (addhi3_cy): Likewise.
9376 (addchi4_cy): Likewise.
9377 (subqi3): Likewise.
9378 (subhi3): Likewise.
9379 (subsi3): Likewise.
9380 (bic<mode>3): Likewise.
9381 (and<mode>3): Likewise.
9382 (ior<mode>3): Likewise.
9383 (xor<mode>3): Likewise.
9384 (slli_1): Add missing "%X" operand selector.
9385 (slll_1): Likewise.
9386 (slll_2): Likewise.
9387 (srai_1): Likewise.
9388 (sral_1): Likewise.
9389 (sral_2): Likewise.
9390 (srli_1): Likewise.
9391 (srll_1): Likewise.
9392 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9393 selector.
9394 (cbranchhi4_real): Likewise.
9395 (cbranchqi4_reversed): Likewise.
9396 (cbranchhi4_reversed): Likewise.
9397 (*bitbranch<mode>4): Likewise.
9398 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9399 * config/msp430/msp430.opt (mcode-region=): Set default to
9400 MSP430_REGION_LOWER. Improve docstring.
9401 (mdata-region=): Likewise.
9402 (muse-lower-region-prefix): New option.
9403 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9404 mdata-region=none multilib.
9405 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9406 mdata-region=none multilib.
9407 MULTILIB_EXCEPTIONS: Remove.
9408 MULTILIB_REQUIRED: Define.
9409 * configure: Regenerate.
9410 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9411 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9412 * doc/extend.texi: Clarify comment for {upper,lower,either}
9413 function attributes.
9414 Add separate description for "lower" variable attribute.
9415
9416 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9417
9418 PR target/77918
9419 * optabs-tree.c (vcond_icode_p): New function.
9420 (vcond_eq_icode_p): Likewise.
9421 (expand_vec_cond_expr_p): Use vcond_icode_p and
9422 vcond_eq_icode_p.
9423 * optabs.c (can_vcond_compare_p): New function.
9424 * optabs.h (can_vcond_compare_p): Likewise.
9425
9426 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9427
9428 PR target/77918
9429 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9430 caller passes a non-trapping condition.
9431 (is_gimple_condexpr): Allow trapping conditions.
9432 (is_gimple_condexpr_1): New helper function.
9433 (is_gimple_condexpr_for_cond): New function, acts like old
9434 is_gimple_condexpr.
9435 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9436 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9437 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9438 * gimplify.c (gimplify_cond_expr): Use
9439 is_gimple_condexpr_for_cond.
9440 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9441 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9442 VEC_COND_EXPR.
9443 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9444 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9445 is_gimple_condexpr_for_cond, remove pointless tmp check
9446 (forward_propagate_into_cond): Remove pointless tmp check.
9447
9448 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9449
9450 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9451 match that of other gsi_next_* functions. Adjust the comment.
9452 (gsi_start_nonvirtual_phis): New function.
9453 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9454 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9455
9456 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9457
9458 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9459 setjmp situation here. Fix a verb's ending: "the exact variables or
9460 elements for which there are warnings depends" -> "... depend".
9461
9462 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9463
9464 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9465
9466 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9467
9468 * ipa-prop.c (ipa_vr::nonzero_p): New.
9469 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9470 non-zero range.
9471 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9472 * tree-vrp.c (range_has_numeric_bounds_p): New.
9473 (range_int_cst_p): Use range_has_numeric_bounds_p.
9474 (get_range_op_handler): New.
9475 (supported_types_p): New.
9476 (defined_ranges_p): New.
9477 (drop_undefines_to_varying): New.
9478 (range_fold_binary_symbolics_p): New.
9479 (range_fold_unary_symbolics_p): New.
9480 (range_fold_unary_expr): Extract out into above functions.
9481 (range_fold_binary_expr): Same.
9482 (value_range_base::normalize_addresses): New.
9483 (value_range_base::normalize_symbolics): Normalize addresses.
9484 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9485
9486 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9487
9488 * tree-vrp.c (value_range_base::singleton_p): Use
9489 value_range_base::num_pairs instead of vrp_val_is* to check
9490 if a range has one sub-range.
9491
9492 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9493
9494 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9495 DEF is not a true earlyclobber but is tied to a specific input
9496 operand, and so is effectively earlyclobber wrt inputs that have
9497 different values.
9498 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9499
9500 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9501
9502 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9503 (pod_mode): Mark operators likewise.
9504 (scalar_int_mode): Mark non-default constructors and
9505 operators with CONSTEXPR.
9506 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9507 (fixed_size_mode): Likewise.
9508
9509 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9510
9511 PR target/91994
9512 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9513 and wrap the unspec_volatile in a parallel.
9514 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9515 the unspec_volatile.
9516 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9517 unspec_volatile to be wrapped in a parallel.
9518 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9519 (ix86_add_reg_usage_to_vzerouppers): New functions.
9520 (rest_of_handle_insert_vzeroupper): Use them to add register
9521 usage information to the vzeroupper instructions.
9522
9523 2019-10-07 Richard Biener <rguenther@suse.de>
9524
9525 PR tree-optimization/91975
9526 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9527 handle invariants.
9528
9529 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9530
9531 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9532 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9533
9534 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9535
9536 * config/darwin.c (darwin_override_options): Adjust objective-c
9537 ABI version error messages to avoid punctuation and contracted
9538 negations.
9539
9540 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9541
9542 * ipa-inline.c: Fix type; compute size rather than self_size
9543 for size of caller function.
9544
9545 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9546
9547 PR target/59888
9548 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9549 choose const_data section for constants with relocations.
9550 (machopic_select_section): Pass relocation flag to
9551 darwin_rodata_section ().
9552
9553 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9554
9555 PR tree-optimization/91734
9556 * generic-match-head.c: Include fold-const-call.h.
9557 * match.pd (sqrt(x) cmp c): Check the boundary value and
9558 in case inexact computation of c*c affects comparison of the boundary,
9559 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9560 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9561 for -frounding-math. For c2, try the next smaller or larger floating
9562 point constant depending on comparison code and if it has the same
9563 sqrt as c2, use it instead of c2.
9564
9565 2019-10-04 Martin Sebor <msebor@redhat.com>
9566
9567 PR middle-end/91977
9568 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9569 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9570 uninitialized objects.
9571
9572 2019-10-04 Martin Sebor <msebor@redhat.com>
9573
9574 * builtins.c (compute_objsize): Add an argument.
9575 * tree-object-size.c (addr_object_size): Same.
9576 (compute_builtin_object_size): Same.
9577 * tree-object-size.h (compute_builtin_object): Same.
9578
9579 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9580
9581 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9582
9583 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9584
9585 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9586
9587 2019-10-04 Martin Jambor <mjambor@suse.cz>
9588
9589 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9590 fntype when switching to calling memcpy instead of memset.
9591
9592 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9593
9594 * hash-table.h (hash_table::empty_slow): Don't assign
9595 size_t values to int variables.
9596
9597 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9598
9599 * expr.c (convert_mode_scalar): Remove shadowing local var.
9600 (emit_block_move): Rename local vars.
9601 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9602 (emit_push_insn): Rename local vars.
9603 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9604 shadowing local vars.
9605 (store_constructor): Remove shadowing local vars. Rename local var.
9606 (store_field, expand_cond_expr_using_cmove,
9607 expand_expr_real_2): Remove shadowing local vars.
9608 (expand_expr_real_1,
9609 do_store_flag): Remove shadowing local vars. Rename local vars.
9610
9611 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9612
9613 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9614
9615 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9616
9617 * genmatch.c (commutate): Rename local var.
9618 (lower_cond): Reuse local var.
9619 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9620 dt_operand::gen, dt_operand::gen_gimple_expr,
9621 dt_simplify::gen): Add a param. Rename generated vars.
9622 (decision_tree::insert_operand,
9623 (capture_info::walk_match, capture_info::walk_result,
9624 capture_info::walk_c_expr): Rename local vars.
9625 (expr::gen_transform): Rename generated vars.
9626 Use snprintf. Rename local vars.
9627 (capture::gen_transform, dt_operand::get_name,
9628 dt_operand::gen_opname): Rename generated vars.
9629 (write_predicate): Adjust call to gen_kids.
9630 (parser::get_internal_capture_id): Rename generated vars.
9631 (parser::parse_expr): Rename local vars.
9632 (parser::parse_if): Remove local var.
9633 (parser::parse_pattern, add_operator): Rename local vars.
9634
9635 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9636
9637 * builtins.def (DEF_C2X_BUILTIN): New macro.
9638 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9639 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9640 (strndup): Use DEF_C2X_BUILTIN.
9641 * coretypes.h (enum function_class): Add function_c2x_misc.
9642
9643 2019-10-04 Maya Rashish <coypu@sdf.org>
9644
9645 * ira-color.c (update_costs_from_allocno): Call
9646 ira_init_register_move_cost_if_necessary.
9647
9648 2019-10-04 Jeff Law <law@redhat.com>
9649
9650 * config/h8300/h8300.md (cpymemsi): Disable.
9651 (movmd, movmd_internal_<mode>, movstr, movsd):
9652 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9653 (movmd splitter, movsd splitter): Likewise.
9654
9655 * range-op.cc (range_tests): Avoid two tests when ints and
9656 shorts are the same size.
9657
9658 2019-10-04 Richard Biener <rguenther@suse.de>
9659
9660 PR lto/91968
9661 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9662 BLOCK_VARS.
9663
9664 2019-10-04 Richard Biener <rguenther@suse.de>
9665
9666 PR tree-optimization/91982
9667 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9668 against EXTRACT_LAST_REDUCTION.
9669 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9670
9671 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9672
9673 * range-op.o (value_range_from_overflowed_bounds): Rename from
9674 adjust_overflow_bound.
9675 (value_range_with_overflow): Rename from
9676 create_range_with_overflow.
9677 (create_possibly_reversed_range): Adjusted for above renames.
9678 (operator_*::wi_fold): Same.
9679 (cross_product_operator::wi_cross_productor): Same.
9680
9681 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9682
9683 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9684 -Wshadow=compatible-local): Fix description.
9685 Add an example where -Wshadow=compatible-local does not
9686 warn.
9687
9688 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9689
9690 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9691
9692 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9693 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9694
9695 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9696
9697 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9698 can_move_by_pieces issue.
9699
9700 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9701
9702 PR target/87243
9703 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9704 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9705 is available and the user has not set one on the command line.
9706
9707 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9708
9709 PR target/91769
9710 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9711 instead of REGNO equality check on addr.reg.
9712
9713 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9714
9715 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9716 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9717 * doc/invoke.texi (inline-heuristics-hint-percent,
9718 inline-heuristics-hint-percent-O2): Document.
9719 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9720 hint attribute.
9721 (can_inline_edge_by_limits_p): Use it.
9722
9723 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9724
9725 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9726 to print CONST_DOUBLEs.
9727
9728 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9729
9730 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9731 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9732 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9733
9734 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9735
9736 * Makefile.in (OBJS): Add range.o and range-op.o.
9737 Remove wide-int-range.o.
9738 * function-tests.c (test_ranges): New.
9739 (function_tests_c_tests): Call test_ranges.
9740 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9741 range_fold_unary_expr instead of extract_range_from_unary_expr.
9742 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9743 * range-op.cc: New file.
9744 * range-op.h: New file.
9745 * range.cc: New file.
9746 * range.h: New file.
9747 * selftest.h (range_tests): New prototype.
9748 * ssa.h: Include range.h.
9749 * tree-vrp.c (value_range_base::value_range_base): New
9750 constructors.
9751 (value_range_base::singleton_p): Do not call
9752 ranges_from_anti_range until sure we will need to.
9753 (value_range_base::type): Rename gcc_assert to
9754 gcc_checking_assert.
9755 (vrp_val_is_max): New argument.
9756 (vrp_val_is_min): Same.
9757 (wide_int_range_set_zero_nonzero_bits): Move from
9758 wide-int-range.cc.
9759 (extract_range_into_wide_ints): Remove.
9760 (extract_range_from_multiplicative_op): Remove.
9761 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9762 from extract_range_from_binary_expr.
9763 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9764 from extract_range_from_binary_expr.
9765 (extract_range_from_binary_expr): Remove.
9766 (normalize_for_range_ops): New.
9767 (range_fold_binary_expr): New.
9768 (range_fold_unary_expr): New.
9769 (value_range_base::num_pairs): New.
9770 (value_range_base::lower_bound): New.
9771 (value_range_base::upper_bound): New.
9772 (value_range_base::upper_bound): New.
9773 (value_range_base::contains_p): New.
9774 (value_range_base::invert): New.
9775 (value_range_base::union_): New.
9776 (value_range_base::intersect): New.
9777 (range_compatible_p): New.
9778 (value_range_base::operator==): New.
9779 (determine_value_range_1): Call range_fold_*expr instead of
9780 extract_range_from_*expr.
9781 * tree-vrp.h (class value_range_base): Add new constructors.
9782 Add methods for union_, intersect, operator==, contains_p,
9783 num_pairs, lower_bound, upper_bound, invert.
9784 (vrp_val_is_min): Add handle_pointers argument.
9785 (vrp_val_is_max): Same.
9786 (extract_range_from_unary_expr): Remove.
9787 (extract_range_from_binary_expr): Remove.
9788 (range_fold_unary_expr): New.
9789 (range_fold_binary_expr): New.
9790 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9791 range_fold_binary_expr instead of extract_range_from_binary_expr.
9792 (vr_values::extract_range_basic): Same.
9793 (vr_values::extract_range_from_unary_expr): Call
9794 range_fold_unary_expr instead of extract_range_from_unary_expr.
9795 * wide-int-range.cc: Remove.
9796 * wide-int-range.h: Remove.
9797
9798 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9799
9800 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9801 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9802 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9803 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9804 macro.
9805
9806 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9807
9808 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9809 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9810 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9811 * glimits.h: Likewise.
9812
9813 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9814
9815 PR rtl-optimization/91976
9816 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9817 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9818 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9819
9820 2019-10-02 Martin Sebor <msebor@redhat.com>
9821
9822 PR tree-optimization/80936
9823 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9824
9825 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9826
9827 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9828 instead of reg_class_contents[ALL_REGS].
9829
9830 2019-09-30 Jason Merrill <jason@redhat.com>
9831
9832 Add some hash_map_safe_* functions like vec_safe_*.
9833 * hash-map.h (default_hash_map_size): New variable.
9834 (create_ggc): Use it as default argument.
9835 (hash_map_maybe_create, hash_map_safe_get)
9836 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9837
9838 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9839
9840 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9841 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9842 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9843 (can_inline_edge_by_limits_p): Use it.
9844 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9845 (want_inline_small_function_p): Use O2 bounds.
9846 (edge_badness): LIkewise.
9847 * opts.c (default_options): Add OPT_finline_functions.
9848 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9849 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9850 New parameters.
9851 * doc/invoke.texi (-finline-functions): Update documentation.
9852 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9853 inline-min-speedup-O2): Document.
9854 (early-inlining-insns-O2): Simplify docs.
9855
9856 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9857
9858 PR rtl-optimization/87047
9859 * ifcvt.c (average_cost): New static function. Use it...
9860 (noce_process_if_block): ... here.
9861
9862 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9863
9864 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9865 * config/rs6000/rs6000-string.c (expand_block_move): Add
9866 might_overlap parm.
9867 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9868 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9869
9870 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9871
9872 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9873 (expand_builtin_memcpy): Use might_overlap parm.
9874 (expand_builtin_mempcpy_args): Use might_overlap parm.
9875 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9876 (expand_builtin_memory_copy_args): Add might_overlap parm.
9877 * expr.c (emit_block_move_via_cpymem): Rename to
9878 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9879 or movmem optab as appropriate.
9880 (emit_block_move_hints): Add might_overlap parm, do the right
9881 thing for might_overlap==true.
9882 * expr.h (emit_block_move_hints): Update prototype.
9883
9884 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9885
9886 * tree-eh.h (unsplit_eh_edges): Declare.
9887 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9888 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9889 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9890 (struct store_immediate_info): Add lp_nr field.
9891 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9892 initialize lp_nr with it.
9893 (struct merged_store_group): Add lp_nr and only_constants fields.
9894 (merged_store_group::merged_store_group): Initialize them.
9895 (merged_store_group::can_be_merged_into): Deal with them.
9896 (pass_store_merging): Rename terminate_and_release_chain into
9897 terminate_and_process_chain.
9898 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9899 renaming and remove useless assertions.
9900 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9901 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9902 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9903 instead of always recomputing it and compare lp_nr.
9904 (imm_store_chain_info::output_merged_store): If the group is in an
9905 active EH region, register new stores if they can throw. Moreover,
9906 if the insertion has created new basic blocks, adjust the PHI nodes
9907 of the post landing pad.
9908 (imm_store_chain_info::output_merged_stores): If the original stores
9909 are in an active EH region, deregister them.
9910 (lhs_valid_for_store_merging_p): Prettify.
9911 (adjust_bit_pos): New function extracted from...
9912 (mem_valid_for_store_merging): ...here. Use it for the base address
9913 and also for the offset if it is the addition of a constant.
9914 (lp_nr_for_store): New function.
9915 (pass_store_merging::process_store): Change return type to bool.
9916 Call lp_nr_for_store to initialize the store info. Propagate the
9917 return status of various called functions to the return value.
9918 (store_valid_for_store_merging_p): New predicate.
9919 (enum basic_block_status): New enumeration.
9920 (get_status_for_store_merging): New function.
9921 (pass_store_merging::execute): If the function can throw and catch
9922 non-call exceptions, unsplit the EH edges on entry and clean up the
9923 CFG on exit if something changed. Call get_status_for_store_merging
9924 for every basic block and keep the chains open across basic blocks
9925 when possible. Terminate and process open chains at the end, if any.
9926
9927 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9928
9929 * reginfo.c (globalize_reg): Fix shadowed variable in
9930 function_abis walk.
9931
9932 2019-10-02 Martin Jambor <mjambor@suse.cz>
9933
9934 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9935 do not compute some stuff when set.
9936 (cgraph_node::create_edge): Likewise.
9937 (cgraph_node::create_indirect_edge): Renamed last parameter to
9938 coning_p and flipped its meaning, don't even calculate
9939 inline_failed when set.
9940 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9941 (symbol_table::::create_edge): Likewise.
9942 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9943 the default value.
9944 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9945 call graph edge creating functions.
9946
9947 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9948
9949 PR c++/91222
9950 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9951 namespace types.
9952
9953 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9954
9955 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9956
9957 2019-10-02 Richard Biener <rguenther@suse.de>
9958
9959 * tree-vectorizer.h (vect_transform_reduction): Declare.
9960 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9961 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9962 stmt transform to ...
9963 (vect_transform_reduction): ... this.
9964
9965 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9966
9967 * omp-low.c (lower_omp_target): Dereference optional argument
9968 to work with the right pointer.
9969
9970 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9971
9972 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9973 false.
9974 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9975 * langhooks.h (omp_is_optional_argument): New hook.
9976 * omp-general.c (omp_is_optional_argument): New.
9977 * omp-general.h (omp_is_optional_argument): New declaration.
9978 * omp-low.c (lower_omp_target): Create temporary for received value
9979 and take the address for new_var if the original variable was a
9980 DECL_BY_REFERENCE. Use size of referenced object when a
9981 pass-by-reference optional argument used as argument to firstprivate.
9982
9983 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9984
9985 PR tree-optimization/91940
9986 * tree-vect-patterns.c: Include tree-vector-builder.h and
9987 vec-perm-indices.h.
9988 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9989 unpromoting the argument back to uint16_t, or by converting into a
9990 rotate, or into shifts plus ior.
9991
9992 2019-10-02 Richard Biener <rguenther@suse.de>
9993
9994 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9995 New.
9996 (vect_transform_cycle_phi): Declare.
9997 * tree-vect-stmts.c (vect_transform_stmt): Call
9998 vect_transform_cycle_phi.
9999 * tree-vect-loop.c (vectorizable_reduction): Split out
10000 PHI transformation stage to ...
10001 (vect_transform_cycle_phi): ... here.
10002
10003 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10004
10005 PR middle-end/91957
10006 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10007 eliminable registers.
10008 (make_hard_regno_live): Likewise, and don't make them live.
10009
10010 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10011
10012 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10013 Call pp_emit_prefix.
10014 (layout::print_source_line): Likewise.
10015 (layout::start_annotation_line): Likewise.
10016 (diagnostic_show_locus): Remove call to temporarily clear the
10017 prefix.
10018 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10019 interaction of pp_set_prefix with rulers and fix-it hints.
10020 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10021 prefix when calling diagnostic_show_locus, rather than destroying
10022 it afterwards.
10023 (print_parseable_fixits): Temporarily clear prefix.
10024 * pretty-print.c (pp_format): Save and restore line_length, rather
10025 than assuming it is zero.
10026 (pp_output_formatted_text): Remove assertion that line_length is
10027 zero.
10028
10029 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10030
10031 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10032 Rename to ...
10033 (nonoverlapping_refs_since_match_p): ... this; handle also
10034 ARRAY_REFs.
10035 (alias_stats): Update stats.
10036 (dump_alias_stats): Likewise.
10037 (cheap_array_ref_low_bound): New function.
10038 (aliasing_matching_component_refs_p): Add partial_overlap
10039 argument;
10040 pass it to nonoverlapping_refs_since_match_p.
10041 (aliasing_component_refs_walk): Update call of
10042 aliasing_matching_component_refs_p
10043 (nonoverlapping_array_refs_p): New function.
10044 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10045 indirect_refs_may_alias_p): Update calls of
10046 nonoverlapping_refs_since_match_p.
10047
10048 2019-10-01 Maya Rashish <coypu@sdf.org>
10049
10050 PR target/85401
10051 * ira-color.c (allocno_copy_cost_saving): Call
10052 ira_init_register_move_cost_if_necessary.
10053
10054 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10055
10056 * Makefile.in (gnat_install_lib): New variable.
10057 * configure.ac: Substitute it.
10058 * configure: Regenerate.
10059
10060 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10061
10062 PR lto/91222
10063 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10064 is matched with non-C++ type
10065
10066 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10067
10068 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10069 after local CSE.
10070
10071 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10072
10073 * doc/invoke.texi (early-inlining-insns-O2): Document.
10074 (early-inlining-insns): Update.
10075 * params.def (early-inlining-insns-O2): New bound.
10076 (early-inlining-insns): Update docs.
10077 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10078
10079 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10080
10081 PR target/88562
10082 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10083 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10084 a memory access insn.
10085
10086 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10087
10088 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10089 vpmsumd.
10090
10091 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10092
10093 PR target/77918
10094 * config/s390/s390.c (s390_expand_vec_compare): Use
10095 gen_vec_cmpordered and gen_vec_cmpunordered.
10096 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10097 vec_unordered): Delete.
10098 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10099 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10100 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10101 (vec_cmp<code>): Generic dispatcher.
10102
10103 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10104
10105 PR target/77918
10106 * config/s390/vector.md (V_HW): Add V1TI in order to make
10107 vcond$a$b generate vcondv1tiv1tf.
10108
10109 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10110
10111 PR rtl-optimization/91948
10112 * ira-build.c (ira_create_allocno): Initialize
10113 ALLOCNO_CROSSED_CALLS_ABIS.
10114 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10115 than regno to ira_need_caller_save_p.
10116
10117 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10118
10119 * config/i386/i386-options.c
10120 (ix86_recompute_optlev_based_flags): New, moved out of...
10121 (ix86_option_override_internal): ... this. Call it.
10122 (ix86_override_options_after_change): Call it here too.
10123
10124 PR debug/91507
10125 * dwarf2out.c (override_type_for_decl_p): New.
10126 (gen_variable_die): Use it.
10127
10128 2019-10-01 Richard Biener <rguenther@suse.de>
10129
10130 * tree-vect-loop.c (vectorizable_reduction): Move variables
10131 to where they are used.
10132
10133 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10134
10135 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10136 (build_def_use): Use PC instead of CC0 in a comment.
10137
10138 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10139
10140 * rtl.def (CLOBBER_HIGH): Delete.
10141 * doc/rtl.texi (clobber_high): Remove documentation.
10142 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10143 (reg_is_clobbered_by_clobber_high): Delete.
10144 (gen_hard_reg_clobber_high): Likewise.
10145 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10146 * cfgexpand.c (expand_gimple_stmt): Likewise.
10147 * combine-stack-adj.c (single_set_for_csa): Likewise.
10148 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10149 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10150 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10151 * cse.c (invalidate_reg): Remove clobber_high parameter.
10152 (invalidate): Update call accordingly.
10153 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10154 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10155 (count_reg_usage, insn_live_p): Likewise.
10156 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10157 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10158 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10159 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10160 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10161 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10162 (mark_nonreg_stores_2): Likewise.
10163 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10164 (df_get_call_refs): Likewise.
10165 * dwarf2out.c (mem_loc_descriptor): Likewise.
10166 * emit-rtl.c (verify_rtx_sharing): Likewise.
10167 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10168 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10169 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10170 * genemit.c (gen_exp, gen_insn): Likewise.
10171 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10172 * haifa-sched.c (haifa_classify_rtx): Likewise.
10173 * ira-build.c (create_insn_allocnos): Likewise.
10174 * ira-costs.c (scan_one_insn): Likewise.
10175 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10176 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10177 * jump.c (mark_jump_label_1): Likewise.
10178 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10179 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10180 handling.
10181 (mark_not_eliminable): Likewise.
10182 * lra-lives.c (process_bb_lives): Likewise.
10183 * lra.c (new_insn_reg): Remove clobber_high parameter.
10184 (collect_non_operand_hard_regs): Likewise. Update call to new
10185 insn_reg. Remove CLOBBER_HIGH handling.
10186 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10187 to collect_non_operand_hard_regs.
10188 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10189 Update call to new_insn_reg.
10190 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10191 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10192 (move2add_note_store): Likewise.
10193 * print-rtl.c (print_pattern): Likewise.
10194 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10195 (if_test_bypass_p): Likewise.
10196 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10197 * reginfo.c (reg_scan_mark_refs): Likewise.
10198 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10199 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10200 (forget_old_reloads_1): Likewise.
10201 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10202 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10203 (dbr_schedule): Likewise.
10204 * resource.c (update_live_status, mark_referenced_resources)
10205 (mark_set_resources): Likewise.
10206 * rtl.c (copy_rtx): Likewise.
10207 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10208 (note_pattern_stores): Likewise.
10209 (reg_is_clobbered_by_clobber_high): Delete.
10210 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10211 CLOBBER_HIGH handling.
10212
10213 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10214
10215 PR target/91452
10216 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10217 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10218 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10219 Handle ARM_PCS_TLSDESC.
10220 (aarch64_tlsdesc_abi_id): New function.
10221 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10222 rtx instead of a list of clobbers and clobber_highs.
10223 (tlsdesc_small_<mode>): Update accordingly.
10224
10225 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10226
10227 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10228 extra callee_abi argument.
10229 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10230 Insert a CALLEE_ABI unspec into the call pattern as the second
10231 element in the PARALLEL.
10232 (aarch64_simd_call_p): Delete.
10233 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10234 the new CALLEE_ABI element of the PARALLEL.
10235 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10236 from the function type, if given.
10237 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10238 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10239 when passed the function_arg_info end marker.
10240 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10241 final argument of gen_sibcall.
10242 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10243 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10244 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10245 pattern.
10246 (call_value): Likewise operand 3.
10247 (sibcall): Likewise operand 2. Place the unspec before rather than
10248 after the return.
10249 (sibcall_value): Likewise operand 3.
10250 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10251 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10252 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10253 constraint strings.
10254 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10255
10256 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10257
10258 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10259 choose_hard_reg_mode.
10260 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10261
10262 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10263
10264 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10265 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10266 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10267
10268 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10269
10270 * diagnostic-show-locus.c (line_label::line_label): Initialize
10271 m_has_vbar.
10272 (line_label::comparator): Reverse the sort order by m_state_idx,
10273 so that when the list is walked backwards the labels appear in
10274 order of insertion into the rich_location.
10275 (line_label::m_has_vbar): New field.
10276 (layout::print_any_labels): When dealing with multiple labels at
10277 the same line and column, only print vertical bars for the one
10278 with the highest label_line.
10279 (selftest::test_one_liner_labels): Update test for multiple labels
10280 to expect the labels to be in the order of insertion into the
10281 rich_location. Add a test for many such labels, where the column
10282 numbers are out-of-order relative to the insertion order.
10283
10284 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10285
10286 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10287 (ix86_frame::expensive_count): Likewise.
10288 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10289 of use_fast_prologue_epilogue robust against incidental changes
10290 in function size.
10291
10292 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10293
10294 PR target/77918
10295 * config/s390/vector.md (vec_unordered<mode>): Call
10296 gen_vec_ordered<mode>.
10297
10298 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10299
10300 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10301 New pattern for ASRD.
10302 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10303 * internal-fn.def (IFN_DIV_POW2): New internal function.
10304 * optabs.def (sdiv_pow2_optab): New optab.
10305 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10306 Modify pattern to support new operation.
10307 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10308 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10309 Document new target selector.
10310
10311 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10312
10313 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10314 to test whether we're compiling a vector PCS function and to test
10315 whether the function needs to save a particular register.
10316 Remove the vector PCS handling of df_set_regs_ever_live.
10317 (aarch64_components_for_bb): Use crtl->abi to test whether
10318 the function needs to save a particular register.
10319 (aarch64_process_components): Use crtl->abi to test whether
10320 we're compiling a vector PCS function.
10321 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10322 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10323
10324 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10325
10326 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10327 Delete.
10328 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10329 whether the block calls a function that clobbers more registers
10330 than the current function is allowed to.
10331 (aarch64_use_simple_return_insn_p): Delete.
10332 * config/aarch64/aarch64.md (simple_return): Remove condition.
10333
10334 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10335
10336 * function-abi.h (function_abi_aggregator): New class.
10337 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10338 function.
10339 * ira.c (update_equiv_regs_prescan): New function. Call
10340 set_paradoxical_subreg here rather than...
10341 (update_equiv_regs): ...here.
10342 (ira): Call update_equiv_regs_prescan.
10343
10344 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10345
10346 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10347 IN_TARGET_CODE.
10348 (call_used_or_fixed_regs): Likewise.
10349 (call_used_or_fixed_reg_p): Likewise.
10350 * reginfo.c (regs_invalidated_by_call): New macro.
10351
10352 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10353
10354 * shrink-wrap.c: Include function-abi.h.
10355 (requires_stack_frame_p): Use crtl->abi to test whether the
10356 current function can use a register without saving it first.
10357
10358 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10359
10360 * sel-sched-ir.h (_def::crosses_call): Replace with...
10361 (_def::crossed_call_abis): ..this new field.
10362 (def_list_add): Take a mask of ABIs instead of a crosses_call
10363 boolean.
10364 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10365 of _def accordingly.
10366 * sel-sched.c: Include function-abi.h.
10367 (hard_regs_data::regs_for_call_clobbered): Delete.
10368 (reg_rename::crosses_call): Replace with...
10369 (reg_rename::crossed_call_abis): ...this new field.
10370 (fur_static_params::crosses_call): Replace with...
10371 (fur_static_params::crossed_call_abis): ...this new field.
10372 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10373 (init_hard_regs_data): Use crtl->abi to test which registers the
10374 current function would need to save before it uses them.
10375 (mark_unavailable_hard_regs): Update handling of call-clobbered
10376 registers, using call_clobbers_in_region to find out which registers
10377 might be call-clobbered (but without taking -fipa-ra into account
10378 for now). Remove separate handling of partially call-clobbered
10379 registers.
10380 (verify_target_availability): Use crossed_call_abis instead of
10381 crosses_call.
10382 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10383 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10384
10385 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10386
10387 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10388 function to test whether a register is fully or partly clobbered.
10389
10390 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10391
10392 * rtlanal.c: Include function-abi.h.
10393 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10394 function and clobbers_reg_p to test whether the register
10395 is call-clobbered.
10396 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10397 to get the ABI of the called function and full_reg_clobbers to
10398 get the set of fully call-clobbered registers. Warn about the
10399 pitfalls of using this mode.
10400
10401 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10402
10403 * reload.c: Include function-abi.h.
10404 (find_equiv_reg): Use clobbers_reg_p to test whether either
10405 of the equivalent registers is clobbered by a call.
10406 * reload1.c: Include function-abi.h.
10407 (reg_reloaded_call_part_clobbered): Delete.
10408 (reload): Use crtl->abi to test which registers would need
10409 saving in the prologue before use.
10410 (find_reg): Likewise.
10411 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10412 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10413 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10414
10415 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10416
10417 * regrename.h (du_head::call_clobber_mask): New field.
10418 (du_head::need_caller_save_reg): Replace with...
10419 (du_head::call_abis): ...this new field.
10420 * regrename.c: Include function-abi.h.
10421 (call_clobbered_in_chain_p): New function.
10422 (check_new_reg_p): Use crtl->abi when deciding whether a register
10423 is free for use after RA. Use call_clobbered_in_chain_p to test
10424 whether a candidate register would be clobbered by a call.
10425 (find_rename_reg): Don't add call-clobber conflicts here.
10426 (rename_chains): Check call_abis instead of need_caller_save_reg.
10427 (merge_chains): Update for changes to du_head.
10428 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10429 target. Record the ABI identifier in call_abis and the set of
10430 fully or partially clobbered registers in call_clobber_mask.
10431 Add fully-clobbered registers to hard_conflicts here rather
10432 than in find_rename_reg.
10433 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10434 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10435 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10436 function-abi.h.
10437 * config/c6x/c6x.c: Likewise.
10438
10439 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10440
10441 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10442 mode of the register when deciding whether it is no longer
10443 available after a call.
10444
10445 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10446
10447 * recog.c: Include function-abi.h.
10448 (peep2_find_free_register): Use crtl->abi when deciding whether
10449 a register is free for use after RA.
10450
10451 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10452
10453 * postreload-gcse.c: Include regs.h and function-abi.h.
10454 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10455 call insn target. Conservatively assume that partially-clobbered
10456 registers are altered.
10457
10458 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10459
10460 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10461 when deciding whether a register is free for use after RA.
10462 (reload_combine): Remove unnecessary use of fixed_reg_set.
10463 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10464 call insn target. Use reg_mode when testing whether a register
10465 is no longer available.
10466
10467 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10468
10469 * target.def (return_call_with_max_clobbers): Delete.
10470 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10471 * doc/tm.texi: Regenerate.
10472 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10473 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10474 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10475 (lra_reg::call_insn): Delete.
10476 * lra.c: Include function-abi.h.
10477 (initialize_lra_reg_info_element): Don't initialize the fields above.
10478 (lra): Use crtl->abi to test whether the current function needs to
10479 save a register in the prologue. Remove special pre-inheritance
10480 lra_create_live_ranges pass for flag_ipa_ra.
10481 * lra-assigns.c: Include function-abi.h
10482 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10483 function needs to save a register in the prologue.
10484 (lra_assign): Assert that registers aren't allocated to a
10485 conflicting register, rather than checking only for overlaps
10486 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10487 and for registers that are not live across a call.
10488 * lra-constraints.c (last_call_for_abi): New variable.
10489 (full_and_partial_call_clobbers): Likewise.
10490 (setup_next_usage_insn): Remove the register from
10491 full_and_partial_call_clobbers.
10492 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10493 whether the register needs a caller save.
10494 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10495 of call_used_or_fixed_regs.
10496 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10497 full_and_partial_call_clobbers.
10498 * lra-lives.c (check_pseudos_live_through_calls): Replace
10499 last_call_used_reg_set and call_insn arguments with an abi argument.
10500 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10501 as the set of conflicting registers.
10502 (calls_have_same_clobbers_p): Delete.
10503 (process_bb_lives): Track the ABI of the last call instead of an
10504 insn/HARD_REG_SET pair. Update calls to
10505 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10506 the set of registers that could be clobbered by an EH edge.
10507 Include partially-clobbered as well as fully-clobbered registers.
10508 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10509 * lra-remat.c: Include function-abi.h.
10510 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10511 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10512 registers and bitmap_view to combine them into dead_regs.
10513 (call_used_input_regno_present_p): Take a function_abi argument
10514 and use it to test whether a register is call-clobbered.
10515 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10516 call insn target. Update tje call to call_used_input_regno_present_p.
10517 (do_remat): Likewise.
10518 (lra_remat): Remove the initialization of call_used_regs_arr_len
10519 and call_used_regs_arr.
10520
10521 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10522
10523 * loop-iv.c: Include regs.h and function-abi.h.
10524 (simplify_using_initial_values): Use insn_callee_abi to get the
10525 ABI of the call insn target. Conservatively assume that
10526 partially-clobbered registers are altered.
10527
10528 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10529
10530 * function-abi.h (call_clobbers_in_region): Declare.
10531 (call_clobbered_in_region_p): New function.
10532 * function-abi.cc (call_clobbers_in_region): Likewise.
10533 * ira-int.h: Include function-abi.h.
10534 (ira_allocno::crossed_calls_abis): New field.
10535 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10536 (ira_need_caller_save_regs): New function.
10537 (ira_need_caller_save_p): Likewise.
10538 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10539 of call_used_or_fixed_regs.
10540 (do_reload): Use crtl->abi to test whether the current function
10541 needs to save a register in the prologue. Count registers that
10542 need to be saved rather than registers that don't.
10543 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10544 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10545 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10546 (propagate_some_info_from_allocno): Likewise.
10547 (copy_info_to_removed_store_destinations): Likewise.
10548 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10549 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10550 (ira_build): Use ira_need_caller_save_regs instead of
10551 call_used_or_fixed_regs.
10552 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10553 whether the current function would need to save a register
10554 before using it.
10555 (calculate_spill_cost): Likewise.
10556 (allocno_reload_assign): Use ira_need_caller_save_regs and
10557 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10558 * ira-conflicts.c (ira_build_conflicts): Use
10559 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10560 as the set of call-clobbered registers. Remove the
10561 call_used_or_fixed_regs mask from the calculation of
10562 temp_hard_reg_set and mask its use instead. Remove special
10563 handling of partially-clobbered registers.
10564 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10565 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10566 calculate the set of conflicting registers for calls that
10567 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10568 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10569 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10570 Use eh_edge_abi to calculate the set of registers that could
10571 be clobbered by an EH edge. Include partially-clobbered as
10572 well as fully-clobbered registers.
10573
10574 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10575
10576 * haifa-sched.c: Include function-abi.h.
10577 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10578 the function would need to save a register before using it.
10579
10580 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10581
10582 * gcse.c: Include function-abi.h.
10583 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10584 the call insn target. Invalidate partially call-clobbered
10585 registers as well as fully call-clobbered ones.
10586
10587 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10588
10589 * function.c (aggregate_value_p): Work out which ABI the
10590 function is using before testing which registers are at least
10591 partly preserved by a call.
10592
10593 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10594
10595 * early-remat.c: Include regs.h and function-abi.h.
10596 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10597 registers here.
10598 (early_remat::restrict_remat_for_unavail_regs): New function.
10599 (early_remat::restrict_remat_for_call): Likewise.
10600 (early_remat::process_block): Before calling emit_remat_insns
10601 for a previous call in the block, invalidate any candidates
10602 that would clobber call-preserved registers.
10603 (early_remat::emit_remat_insns_for_block): Likewise for the
10604 final call in a block. Do the same thing for live-in registers
10605 when calling emit_remat_insns at the head of a block.
10606
10607 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10608
10609 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10610 whether the current function needs to save at least part of a
10611 register before using it.
10612 (df_get_exit_block_use_set): Likewise for epilogue restores.
10613
10614 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10615
10616 * df-problems.c: Include regs.h and function-abi.h.
10617 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10618 sparse_invalidated_by_eh and dense_invalidated_by_call to
10619 dense_invalidated_by_eh.
10620 (df_print_bb_index): Update accordingly.
10621 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10622 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10623 that are clobbered by an EH edge. Clobber partially-clobbered
10624 registers as well as fully-clobbered ones.
10625 (df_md_confluence_n): Likewise.
10626 (df_rd_local_compute): Likewise. Update for changes to
10627 df_rd_problem_data.
10628 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10629 of registers that are clobbered by an EH edge. Includde partially-
10630 clobbered registers as well as fully-clobbered ones.
10631
10632 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10633
10634 * cselib.c (cselib_process_insn): If we know what mode a
10635 register was set in, check whether it is clobbered in that
10636 mode by a call. Only fall back to reg_raw_mode if that fails.
10637
10638 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10639
10640 * cse.c: Include regs.h and function-abi.h.
10641 (invalidate_for_call): Take the call insn as an argument.
10642 Use insn_callee_abi to get the ABI of the call and invalidate
10643 partially clobbered registers as well as fully clobbered ones.
10644 (cse_insn): Update call accordingly.
10645
10646 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10647
10648 * combine.c: Include function-abi.h.
10649 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10650 of the target of call insns. Invalidate partially-clobbered
10651 registers as well as fully-clobbered ones.
10652
10653 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10654
10655 * cfgloopanal.c: Include regs.h and function-abi.h.
10656 (init_set_costs): Use default_function_abi to test whether
10657 a general register is call-clobbered.
10658
10659 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10660
10661 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10662 instead of the call-clobbered sets.
10663
10664 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10665
10666 * caller-save.c (setup_save_areas): Remove redundant |s of
10667 fixed_reg_set.
10668 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10669 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10670 value is useful.
10671
10672 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10673
10674 * rtl.h (predefined_function_abi): Declare.
10675 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10676 instead of a boolean call_save flag.
10677 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10678 accordingly.
10679 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10680 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10681 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10682 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10683 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10684 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10685 * reginfo.c (init_reg_modes_target): Likewise.
10686 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10687 instead of a boolean call_save flag.
10688 * targhooks.c: Include function-abi.h.
10689 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10690 using eh_edge_abi to choose the mode.
10691
10692 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10693
10694 * target.def (hard_regno_call_part_clobbered): Take an ABI
10695 identifier instead of an rtx_insn.
10696 * doc/tm.texi: Regenerate.
10697 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10698 (hook_bool_uint_uint_mode_false): New function.
10699 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10700 (hook_bool_uint_uint_mode_false): New function.
10701 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10702 Take an ABI identifier instead of an rtx_insn.
10703 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10704 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10705 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10706 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10707 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10708 Likewise.
10709 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10710 * cselib.c: Include function-abi.h.
10711 (cselib_process_insn): Update call to
10712 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10713 to get the appropriate ABI identifier.
10714 * function-abi.cc (predefined_function_abi::initialize): Update call
10715 to targetm.hard_regno_call_part_clobbered.
10716 * ira-conflicts.c (ira_build_conflicts): Likewise.
10717 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10718 * lra-constraints.c: Include function-abi.h.
10719 (need_for_call_save_p): Update call to
10720 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10721 to get the appropriate ABI identifier.
10722 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10723 * regcprop.c (copyprop_hardreg_forward_1): Update call
10724 to targetm.hard_regno_call_part_clobbered.
10725 * reginfo.c (choose_hard_reg_mode): Likewise.
10726 * regrename.c (check_new_reg_p): Likewise.
10727 * reload.c (find_equiv_reg): Likewise.
10728 * reload1.c (emit_reload_insns): Likewise.
10729 * sched-deps.c: Include function-abi.h.
10730 (deps_analyze_insn): Update call to
10731 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10732 to get the appropriate ABI identifier.
10733 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10734 call to targetm.hard_regno_call_part_clobbered.
10735 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10736
10737 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10738
10739 * config/i386/i386.c: Include function-abi.h.
10740 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10741 if they preserve some 256-bit or 512-bit SSE registers.
10742
10743 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10744
10745 * target.def (insn_callee_abi): New hook.
10746 (remove_extra_call_preserved_regs): Delete.
10747 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10748 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10749 * doc/tm.texi: Regenerate.
10750 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10751 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10752 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10753 insn argument.
10754 (aarch64_remove_extra_call_preserved_regs): Delete.
10755 (aarch64_insn_callee_abi): New function.
10756 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10757 (TARGET_INSN_CALLEE_ABI): New macro.
10758 * rtl.h (get_call_fndecl): Declare.
10759 (cgraph_rtl_info): Fix formatting. Tweak comment for
10760 function_used_regs. Remove function_used_regs_valid.
10761 * rtlanal.c (get_call_fndecl): Moved from final.c
10762 * function-abi.h (insn_callee_abi): Declare.
10763 (target_function_abi_info): Mention insn_callee_abi.
10764 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10765 way to get_call_reg_set_usage did.
10766 (insn_callee_abi): New function.
10767 * regs.h (get_call_reg_set_usage): Delete.
10768 * final.c: Include function-abi.h.
10769 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10770 function_used_regs before the main loop rather than afterwards.
10771 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10772 if function_used_regs ends up not being useful.
10773 (get_call_fndecl): Move to rtlanal.c
10774 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10775 * caller-save.c: Include function-abi.h.
10776 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10777 instead of get_call_reg_set_usage.
10778 * cfgcleanup.c: Include function-abi.h.
10779 (old_insns_match_p): Use insn_callee_abi instead of
10780 get_call_reg_set_usage.
10781 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10782 a tree.
10783 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10784 function_used_regs.
10785 * df-scan.c: Include function-abi.h.
10786 (df_get_call_refs): Use insn_callee_abi instead of
10787 get_call_reg_set_usage.
10788 * ira-lives.c: Include function-abi.h.
10789 (process_bb_node_lives): Use insn_callee_abi instead of
10790 get_call_reg_set_usage.
10791 * lra-lives.c: Include function-abi.h.
10792 (process_bb_lives): Use insn_callee_abi instead of
10793 get_call_reg_set_usage.
10794 * postreload.c: Include function-abi.h.
10795 (reload_combine): Use insn_callee_abi instead of
10796 get_call_reg_set_usage.
10797 * regcprop.c: Include function-abi.h.
10798 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10799 get_call_reg_set_usage.
10800 * resource.c: Include function-abi.h.
10801 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10802 instead of get_call_reg_set_usage.
10803 * var-tracking.c: Include function-abi.h.
10804 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10805 get_call_reg_set_usage.
10806
10807 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10808
10809 * target.def (fntype_abi): New target hook.
10810 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10811 * doc/tm.texi: Regenerate.
10812 * target.h (predefined_function_abi): Declare.
10813 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10814 if defined.
10815 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10816 * config/aarch64/aarch64.c: Include function-abi.h.
10817 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10818 (TARGET_FNTYPE_ABI): Define.
10819
10820 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10821
10822 * Makefile.in (OBJS): Add function-abi.o.
10823 (GTFILES): Add function-abi.h.
10824 * function-abi.cc: New file.
10825 * function-abi.h: Likewise.
10826 * emit-rtl.h (rtl_data::abi): New field.
10827 * function.c: Include function-abi.h.
10828 (prepare_function_start): Initialize crtl->abi.
10829 * read-rtl-function.c: Include regs.h and function-abi.h.
10830 (read_rtl_function_body): Initialize crtl->abi.
10831 (read_rtl_function_body_from_file_range): Likewise.
10832 * reginfo.c: Include function-abi.h.
10833 (init_reg_sets_1): Initialize default_function_abi.
10834 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10835 when making a register global.
10836 * target-globals.h (this_target_function_abi_info): Declare.
10837 (target_globals::function_abi_info): New field.
10838 (restore_target_globals): Copy it.
10839 * target-globals.c: Include function-abi.h.
10840 (default_target_globals): Initialize the function_abi_info field.
10841 (target_globals): Allocate it.
10842 (save_target_globals): Free it.
10843
10844 2019-09-30 Nick Clifton <nickc@redhat.com>
10845
10846 PR target/85978
10847 * config/frv/frv.c (frv_register_move_cost): Add break statements
10848 to avoid falling through to the wrong cases. Tidy code.
10849
10850 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10851
10852 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10853 For multi-registers modes, test how big each register part is.
10854
10855 2019-09-30 Nick Clifton <nickc@redhat.com>
10856
10857 PR target/59205
10858 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10859 (TARGET_ASM_SELECT_SECTION): Remove definition.
10860 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10861
10862 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10863
10864 * emit-rtl.c (init_raw_REG): New function.
10865 (gen_raw_REG): Use init_raw_REG.
10866 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10867 macros.
10868 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10869 * rtl.h (rtx_init): New function.
10870 (rtx_alloca): New function.
10871 (init_raw_REG): New function.
10872 (alloca_raw_REG): New macro.
10873
10874 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10875
10876 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10877 (pcrel_local_address): Replace pcrel_address predicate, use the
10878 new function address_to_insn_form.
10879 (pcrel_external_address): Replace with new implementation using
10880 address_to_insn_form..
10881 (prefixed_mem_operand): Delete predicate which is now unused.
10882 (pcrel_external_mem_operand): Delete predicate which is now
10883 unused.
10884 * config/rs6000/rs6000-protos.h (enum insn_form): New
10885 enumeration.
10886 (enum non_prefixed_form): New enumeration.
10887 (address_to_insn_form): New declaration.
10888 (prefixed_load_p): New declaration.
10889 (prefixed_store_p): New declaration.
10890 (prefixed_paddi_p): New declaration.
10891 (rs6000_asm_output_opcode): New declaration.
10892 (rs6000_final_prescan_insn): Move declaration and update calling
10893 signature.
10894 (address_is_prefixed): New helper inline function.
10895 * config/rs6000/rs6000.c(print_operand_address): Check for either
10896 PC-relative local symbols or PC-relative external symbols.
10897 (rs6000_emit_move): Support loading PC-relative addresses.
10898 (mode_supports_prefixed_address_p): Delete, no longer used.
10899 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10900 (address_to_insn_form): New function to decode an address format.
10901 (reg_to_non_prefixed): New function to identify what the
10902 non-prefixed memory instruction format is for a register.
10903 (prefixed_load_p): New function to identify prefixed loads.
10904 (prefixed_store_p): New function to identify prefixed stores.
10905 (prefixed_paddi_p): New function to identify prefixed load
10906 immediates.
10907 (next_insn_prefixed_p): New static state variable.
10908 (rs6000_final_prescan_insn): New function to determine if an insn
10909 uses a prefixed instruction.
10910 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10911 prefixed instruction.
10912 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10913 (ASM_OUTPUT_OPCODE): New target hook.
10914 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10915 prefixed instructions.
10916 (prefixed_length): New insn attribute for the size of prefixed
10917 instructions.
10918 (non_prefixed_length): New insn attribute for the size of
10919 non-prefixed instructions.
10920 (pcrel_local_addr): New insn to load up a local PC-relative
10921 address.
10922 (pcrel_extern_addr): New insn to load up an external PC-relative
10923 address.
10924 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10925 GPR and loading a 128-bit floating point type to a GPR.
10926
10927 2019-09-30 Richard Biener <rguenther@suse.de>
10928
10929 * gimple.c (gimple_get_lhs): For PHIs return the result.
10930 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10931 SLP instance as argument.
10932 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10933 double-reduction PHIs with vectorizable_lc_phi.
10934 (vect_analyze_loop_operations): Adjust.
10935 (vect_create_epilog_for_reduction): Remove all code not dealing
10936 with reduction LC PHI or epilogue generation.
10937 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10938 for live stmts of reductions.
10939 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10940 do not handle defs that are not vect_internal_def.
10941 (can_vectorize_live_stmts): Adjust.
10942 (vect_analyze_stmt): When the vectorized stmt defined a value
10943 used on backedges adjust the backedge uses of vectorized PHIs.
10944
10945 2019-09-30 Martin Jambor <mjambor@suse.cz>
10946
10947 PR ipa/91853
10948 * tree-inline.c (force_value_to_type): New function.
10949 (setup_one_parameter): Use force_value_to_type to convert type.
10950 * tree-inline.c (force_value_to_type): Declare.
10951 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10952 with register type mismatches.
10953
10954 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10955
10956 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10957 32-bit PowerPC.
10958 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10959 * config/rs6000/t-freebsd64: Make use of the above define and build
10960 the 32-bit libraries with secure-plt.
10961
10962 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10963
10964 PR target/91931
10965 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10966 gen_int_mode instead of GEN_INT.
10967
10968 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10969
10970 * config/darwin.c (gen_macho_low): Amend to include the mode
10971 argument.
10972 (machopic_indirect_data_reference): Amend gen_macho_low call
10973 to include mode argument
10974 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10975 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10976 the macho_high expander and two define_insn entries.
10977
10978 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10979
10980 PR bootstrap/90543
10981 * optc-save-gen.awk: Fix up printing string option differences.
10982
10983 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10984
10985 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10986 vec_perm cost to 1 for non-Power7 VSX architectures.
10987
10988 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10989
10990 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10991 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10992 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10993
10994 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10995
10996 * config/darwin.c (gen_macho_high): Amend to include the mode
10997 argument.
10998 (machopic_indirect_data_reference): Amend gen_macho_high call
10999 to include mode argument.
11000 (machopic_legitimize_pic_address): Likewise.
11001 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11002 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11003 the macho_high expander and two define_insn entries.
11004
11005 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11006
11007 PR target/86805
11008 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11009
11010 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11011
11012 PR target/80672
11013 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11014 std::string::compare instead of std::string::find.
11015
11016 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11017
11018 * configure: Regenerate.
11019
11020 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11021
11022 PR middle-end/91920
11023 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11024 variables as shared.
11025
11026 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11027
11028 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11029 replaces the expander and two define_insn entries.
11030 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11031 call.
11032 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11033
11034 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11035
11036 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11037 (fibonacci_heap::nodes): Likewise.
11038 (fibonacci_heap::min_key): Likewise.
11039 (fibonacci_heap::min): Likewise.
11040
11041 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11042
11043 * cgraph.c (cgraph_node::get_fun): Make const.
11044 * cgraph.h (cgraph_node::get_fun): Likewise.
11045
11046 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11047
11048 PR target/91919
11049 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11050 of SImode MULT.
11051
11052 2019-09-27 Richard Biener <rguenther@suse.de>
11053
11054 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11055 (STMT_VINFO_REDUC_FN): Likewise.
11056 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11057 STMT_VINFO_REDUC_FN.
11058 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11059 for condition reductions.
11060 (vect_create_epilog_for_reduction): Compute all required state
11061 from the stmt to be vectorized.
11062 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11063 invocation and remove then dead code. For single def-use chains
11064 record only a single vector stmt.
11065
11066 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11067
11068 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11069 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11070 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11071 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11072 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11073 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11074 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11075 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11076 (aarch64_general_builtin_rsqrt): Declare.
11077 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11078 New function.
11079 (aarch64_mangle_builtin_type): Rename to...
11080 (aarch64_general_mangle_builtin_type): ...this.
11081 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11082 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11083 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11084 aarch64_general_add_builtin instead of add_builtin_function.
11085 (aarch64_init_builtins): Rename to...
11086 (aarch64_general_init_builtins): ...this. Use
11087 aarch64_general_add_builtin instead of add_builtin_function.
11088 (aarch64_builtin_decl): Rename to...
11089 (aarch64_general_builtin_decl): ...this and remove the unused
11090 arguments.
11091 (aarch64_expand_builtin): Rename to...
11092 (aarch64_general_expand_builtin): ...this and remove the unused
11093 arguments.
11094 (aarch64_builtin_rsqrt): Rename to...
11095 (aarch64_general_builtin_rsqrt): ...this.
11096 (aarch64_fold_builtin): Rename to...
11097 (aarch64_general_fold_builtin): ...this. Take the function subcode
11098 and return type as arguments. Remove the "ignored" argument.
11099 (aarch64_gimple_fold_builtin): Rename to...
11100 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11101 subcode and gcall as arguments, and return the new function call.
11102 * config/aarch64/aarch64.c (aarch64_init_builtins)
11103 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11104 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11105 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11106 instead of aarch64_builtin_rsqrt.
11107 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11108 instead of aarch64_mangle_builtin_type.
11109
11110 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11111
11112 * target.def (check_builtin_call): New target hook.
11113 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11114 * doc/tm.texi: Regenerate.
11115
11116 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11117
11118 PR tree-optimization/91909
11119 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11120 reduc_index parameter. When handling COND_REDUCTION, make sure
11121 that the reduction phi operand is in the correct arm of the
11122 VEC_COND_EXPR.
11123 (vectorizable_reduction): Pass reduc_index to the above.
11124
11125 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11126
11127 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11128 New combine pattern.
11129
11130 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11131
11132 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11133 loop instruction into new basic block before the loop when basic
11134 block that precedes the loop is empty.
11135
11136 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11137
11138 * function.c (gimplify_parameters): Use build_clobber function.
11139 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11140 * tree-inline.c (expand_call_inline): Likewise.
11141 * tree-sra.c (clobber_subtree): Likewise.
11142 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11143 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11144 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11145 lower_omp_target): Likewise.
11146 * omp-expand.c (expand_omp_for_generic): Likewise.
11147 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11148
11149 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11150
11151 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11152 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11153 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11154 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11155 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11156 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11157 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11158 LD_ELEMREV_V16QI): Use the PURE attribute.
11159
11160 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11161
11162 * config/rs6000/darwin.md: Replace the expanders for
11163 load_macho_picbase and reload_macho_picbase with use of '@'
11164 and <mode> in their respective define_insns.
11165 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11166 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11167 Pmode to gen_load_macho_picbase.
11168 * config/rs6000/rs6000.md: Likewise.
11169
11170 2019-09-25 Richard Biener <rguenther@suse.de>
11171
11172 PR tree-optimization/91896
11173 * tree-vect-loop.c (vectorizable_reduction): The single
11174 def-use cycle optimization cannot apply when there's more
11175 than one pattern stmt involved.
11176
11177 2019-09-26 Richard Biener <rguenther@suse.de>
11178
11179 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11180 loop-closed PHIs that are vect_internal_def.
11181 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11182 Simplify.
11183 (vectorizable_lc_phi): New.
11184 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11185 (vect_transform_stmt): Likewise.
11186 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11187 (vectorizable_lc_phi): Declare.
11188
11189 2019-09-26 Richard Biener <rguenther@suse.de>
11190
11191 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11192 vectorizable_reduction for vect_double_reduction_def.
11193 (vect_transform_loop): Likewise.
11194 (vect_create_epilog_for_reduction): Move double-reduction
11195 PHI creation and preheader argument setting of PHIs ...
11196 (vectorizable_reduction): ... here. Also process
11197 vect_double_reduction_def PHIs, creating the vectorized
11198 PHI nodes, remembering the scalar adjustment computed for
11199 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11200 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11201 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11202 Initialize STMT_VINFO_REDUC_CODE.
11203 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11204 (_stmt_vec_info::reduc_code): Likewise.
11205 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11206 (STMT_VINFO_REDUC_CODE): Likewise.
11207
11208 2019-09-26 Matt Turner <mattst88@gmail.com>
11209
11210 PR driver/69471
11211 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11212 (mtune=): Add Negative(mtune=).
11213 (mcpu=): Add Negative(mcpu=).
11214 * config/arm/arm.opt: Likewise.
11215
11216 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11217
11218 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11219 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11220 Define.
11221 * config/arm/arm_acle.h: Define builtins for the above.
11222 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11223 (simd32_op): Handle the above.
11224 * config/arm/unspecs.md: Define unspecs for the above.
11225
11226 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11227
11228 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11229 (arm_<sup>xtb16): Likewise.
11230 (arm_usada8): Likewise.
11231 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11232 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11233 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11234 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11235 __sxtb16, __uxtab16, __uxtb16): Define.
11236 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11237 * config/arm/unspecs.md: Define unspecs for the above.
11238 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11239 (USXTB16): Likewise.
11240 (simd32_op): New int_attribute.
11241 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11242 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11243
11244 2019-09-26 Martin Jambor <mjambor@suse.cz>
11245
11246 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11247 internal_error.
11248
11249 2019-09-26 Martin Jambor <mjambor@suse.cz>
11250
11251 * ipa-sra.c (process_scan_results): Fix continue condition.
11252
11253 2019-09-26 Martin Liska <mliska@suse.cz>
11254
11255 PR tree-optimization/91885
11256 * tree-vectorizer.c (try_vectorize_loop_1): Add
11257 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11258
11259 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11260
11261 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11262 aarch64_plus_immediate rather than aarch64_uimm12_shift
11263 to test for valid PLUS immediates.
11264
11265 2019-09-25 Martin Jambor <mjambor@suse.cz>
11266
11267 * tree-sra.c (no_accesses_p): Remove.
11268 (no_accesses_representant): Likewise.
11269
11270 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11271
11272 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11273 consistenly.
11274 (vaba_s16): Likewise.
11275 (vaba_s32): Likewise.
11276 (vaba_u8): Likewise.
11277 (vaba_u16): Likewise.
11278 (vaba_u32): Likewise.
11279 (vabal_high_s8): Likewise.
11280 (vabal_high_s16): Likewise.
11281 (vabal_high_s32): Likewise.
11282 (vabal_high_u8): Likewise.
11283 (vabal_high_u16): Likewise.
11284 (vabal_high_u32): Likewise.
11285 (vabal_s8): Likewise.
11286 (vabal_s16): Likewise.
11287 (vabal_s32): Likewise.
11288 (vabal_u8): Likewise.
11289 (vabal_u16): Likewise.
11290 (vabal_u32): Likewise.
11291 (vabaq_s8): Likewise.
11292 (vabaq_s16): Likewise.
11293 (vabaq_s32): Likewise.
11294 (vabaq_u8): Likewise.
11295 (vabaq_u16): Likewise.
11296 (vabaq_u32): Likewise.
11297 (vabd_s8): Likewise.
11298 (vabd_s16): Likewise.
11299 (vabd_s32): Likewise.
11300 (vabd_u8): Likewise.
11301 (vabd_u16): Likewise.
11302 (vabd_u32): Likewise.
11303 (vabdl_high_s8): Likewise.
11304 (vabdl_high_s16): Likewise.
11305 (vabdl_high_s32): Likewise.
11306 (vabdl_high_u8): Likewise.
11307 (vabdl_high_u16): Likewise.
11308 (vabdl_high_u32): Likewise.
11309 (vabdl_s8): Likewise.
11310 (vabdl_s16): Likewise.
11311 (vabdl_s32): Likewise.
11312 (vabdl_u8): Likewise.
11313 (vabdl_u16): Likewise.
11314 (vabdl_u32): Likewise.
11315 (vabdq_s8): Likewise.
11316 (vabdq_s16): Likewise.
11317 (vabdq_s32): Likewise.
11318 (vabdq_u8): Likewise.
11319 (vabdq_u16): Likewise.
11320 (vabdq_u32): Likewise.
11321 (vaddlv_s8): Likewise.
11322 (vaddlv_s16): Likewise.
11323 (vaddlv_u8): Likewise.
11324 (vaddlv_u16): Likewise.
11325 (vaddlvq_s8): Likewise.
11326 (vaddlvq_s16): Likewise.
11327 (vaddlvq_s32): Likewise.
11328 (vaddlvq_u8): Likewise.
11329 (vaddlvq_u16): Likewise.
11330 (vaddlvq_u32): Likewise.
11331 (vcvtx_f32_f64): Likewise.
11332 (vcvtx_high_f32_f64): Likewise.
11333 (vcvtxd_f32_f64): Likewise.
11334 (vmla_n_f32): Likewise.
11335 (vmla_n_s16): Likewise.
11336 (vmla_n_s32): Likewise.
11337 (vmla_n_u16): Likewise.
11338 (vmla_n_u32): Likewise.
11339 (vmla_s8): Likewise.
11340 (vmla_s16): Likewise.
11341 (vmla_s32): Likewise.
11342 (vmla_u8): Likewise.
11343 (vmla_u16): Likewise.
11344 (vmla_u32): Likewise.
11345 (vmlal_high_n_s16): Likewise.
11346 (vmlal_high_n_s32): Likewise.
11347 (vmlal_high_n_u16): Likewise.
11348 (vmlal_high_n_u32): Likewise.
11349 (vmlal_high_s8): Likewise.
11350 (vmlal_high_s16): Likewise.
11351 (vmlal_high_s32): Likewise.
11352 (vmlal_high_u8): Likewise.
11353 (vmlal_high_u16): Likewise.
11354 (vmlal_high_u32): Likewise.
11355 (vmlal_n_s16): Likewise.
11356 (vmlal_n_s32): Likewise.
11357 (vmlal_n_u16): Likewise.
11358 (vmlal_n_u32): Likewise.
11359 (vmlal_s8): Likewise.
11360 (vmlal_s16): Likewise.
11361 (vmlal_s32): Likewise.
11362 (vmlal_u8): Likewise.
11363 (vmlal_u16): Likewise.
11364 (vmlal_u32): Likewise.
11365 (vmlaq_n_f32): Likewise.
11366 (vmlaq_n_s16): Likewise.
11367 (vmlaq_n_s32): Likewise.
11368 (vmlaq_n_u16): Likewise.
11369 (vmlaq_n_u32): Likewise.
11370 (vmlaq_s8): Likewise.
11371 (vmlaq_s16): Likewise.
11372 (vmlaq_s32): Likewise.
11373 (vmlaq_u8): Likewise.
11374 (vmlaq_u16): Likewise.
11375 (vmlaq_u32): Likewise.
11376 (vmls_n_f32): Likewise.
11377 (vmls_n_s16): Likewise.
11378 (vmls_n_s32): Likewise.
11379 (vmls_n_u16): Likewise.
11380 (vmls_n_u32): Likewise.
11381 (vmls_s8): Likewise.
11382 (vmls_s16): Likewise.
11383 (vmls_s32): Likewise.
11384 (vmls_u8): Likewise.
11385 (vmls_u16): Likewise.
11386 (vmls_u32): Likewise.
11387 (vmlsl_high_n_s16): Likewise.
11388 (vmlsl_high_n_s32): Likewise.
11389 (vmlsl_high_n_u16): Likewise.
11390 (vmlsl_high_n_u32): Likewise.
11391 (vmlsl_high_s8): Likewise.
11392 (vmlsl_high_s16): Likewise.
11393 (vmlsl_high_s32): Likewise.
11394 (vmlsl_high_u8): Likewise.
11395 (vmlsl_high_u16): Likewise.
11396 (vmlsl_high_u32): Likewise.
11397 (vmlsl_n_s16): Likewise.
11398 (vmlsl_n_s32): Likewise.
11399 (vmlsl_n_u16): Likewise.
11400 (vmlsl_n_u32): Likewise.
11401 (vmlsl_s8): Likewise.
11402 (vmlsl_s16): Likewise.
11403 (vmlsl_s32): Likewise.
11404 (vmlsl_u8): Likewise.
11405 (vmlsl_u16): Likewise.
11406 (vmlsl_u32): Likewise.
11407 (vmlsq_n_f32): Likewise.
11408 (vmlsq_n_s16): Likewise.
11409 (vmlsq_n_s32): Likewise.
11410 (vmlsq_n_u16): Likewise.
11411 (vmlsq_n_u32): Likewise.
11412 (vmlsq_s8): Likewise.
11413 (vmlsq_s16): Likewise.
11414 (vmlsq_s32): Likewise.
11415 (vmlsq_u8): Likewise.
11416 (vmlsq_u16): Likewise.
11417 (vmlsq_u32): Likewise.
11418 (vmovl_high_s8): Likewise.
11419 (vmovl_high_s16): Likewise.
11420 (vmovl_high_s32): Likewise.
11421 (vmovl_high_u8): Likewise.
11422 (vmovl_high_u16): Likewise.
11423 (vmovl_high_u32): Likewise.
11424 (vmovl_s8): Likewise.
11425 (vmovl_s16): Likewise.
11426 (vmovl_s32): Likewise.
11427 (vmovl_u8): Likewise.
11428 (vmovl_u16): Likewise.
11429 (vmovl_u32): Likewise.
11430 (vmovn_high_s16): Likewise.
11431 (vmovn_high_s32): Likewise.
11432 (vmovn_high_s64): Likewise.
11433 (vmovn_high_u16): Likewise.
11434 (vmovn_high_u32): Likewise.
11435 (vmovn_high_u64): Likewise.
11436 (vmovn_s16): Likewise.
11437 (vmovn_s32): Likewise.
11438 (vmovn_s64): Likewise.
11439 (vmovn_u16): Likewise.
11440 (vmovn_u32): Likewise.
11441 (vmovn_u64): Likewise.
11442 (vmull_high_n_s16): Likewise.
11443 (vmull_high_n_s32): Likewise.
11444 (vmull_high_n_u16): Likewise.
11445 (vmull_high_n_u32): Likewise.
11446 (vmull_high_p8): Likewise.
11447 (vmull_high_s8): Likewise.
11448 (vmull_high_s16): Likewise.
11449 (vmull_high_s32): Likewise.
11450 (vmull_high_u8): Likewise.
11451 (vmull_high_u16): Likewise.
11452 (vmull_high_u32): Likewise.
11453 (vmull_n_s16): Likewise.
11454 (vmull_n_s32): Likewise.
11455 (vmull_n_u16): Likewise.
11456 (vmull_n_u32): Likewise.
11457 (vmull_p8): Likewise.
11458 (vmull_s8): Likewise.
11459 (vmull_s16): Likewise.
11460 (vmull_s32): Likewise.
11461 (vmull_u8): Likewise.
11462 (vmull_u16): Likewise.
11463 (vmull_u32): Likewise.
11464 (vpadal_s8): Likewise.
11465 (vpadal_s16): Likewise.
11466 (vpadal_s32): Likewise.
11467 (vpadal_u8): Likewise.
11468 (vpadal_u16): Likewise.
11469 (vpadal_u32): Likewise.
11470 (vpadalq_s8): Likewise.
11471 (vpadalq_s16): Likewise.
11472 (vpadalq_s32): Likewise.
11473 (vpadalq_u8): Likewise.
11474 (vpadalq_u16): Likewise.
11475 (vpadalq_u32): Likewise.
11476 (vpaddl_s8): Likewise.
11477 (vpaddl_s16): Likewise.
11478 (vpaddl_s32): Likewise.
11479 (vpaddl_u8): Likewise.
11480 (vpaddl_u16): Likewise.
11481 (vpaddl_u32): Likewise.
11482 (vpaddlq_s8): Likewise.
11483 (vpaddlq_s16): Likewise.
11484 (vpaddlq_s32): Likewise.
11485 (vpaddlq_u8): Likewise.
11486 (vpaddlq_u16): Likewise.
11487 (vpaddlq_u32): Likewise.
11488 (vpaddq_s8): Likewise.
11489 (vpaddq_s16): Likewise.
11490 (vpaddq_s32): Likewise.
11491 (vpaddq_s64): Likewise.
11492 (vpaddq_u8): Likewise.
11493 (vpaddq_u16): Likewise.
11494 (vpaddq_u32): Likewise.
11495 (vpaddq_u64): Likewise.
11496 (vqdmulh_n_s16): Likewise.
11497 (vqdmulh_n_s32): Likewise.
11498 (vqdmulhq_n_s16): Likewise.
11499 (vqdmulhq_n_s32): Likewise.
11500 (vqmovn_high_s16): Likewise.
11501 (vqmovn_high_s32): Likewise.
11502 (vqmovn_high_s64): Likewise.
11503 (vqmovn_high_u16): Likewise.
11504 (vqmovn_high_u32): Likewise.
11505 (vqmovn_high_u64): Likewise.
11506 (vqmovun_high_s16): Likewise.
11507 (vqmovun_high_s32): Likewise.
11508 (vqmovun_high_s64): Likewise.
11509 (vqrdmulh_n_s16): Likewise.
11510 (vqrdmulh_n_s32): Likewise.
11511 (vqrdmulhq_n_s16): Likewise.
11512 (vqrdmulhq_n_s32): Likewise.
11513 (vrsqrte_u32): Likewise.
11514 (vrsqrteq_u32): Likewise.
11515 (vtst_p8): Likewise.
11516 (vtst_p16): Likewise.
11517 (vtst_p64): Likewise.
11518 (vtstq_p8): Likewise.
11519 (vtstq_p16): Likewise.
11520 (vtstq_p64): Likewise.
11521 (vaddlv_s32): Likewise.
11522 (vaddlv_u32): Likewise.
11523 (vqtbl1_p8): Likewise.
11524 (vqtbl1_s8): Likewise.
11525 (vqtbl1_u8): Likewise.
11526 (vqtbl1q_p8): Likewise.
11527 (vqtbl1q_s8): Likewise.
11528 (vqtbl1q_u8): Likewise.
11529 (vqtbx1_s8): Likewise.
11530 (vqtbx1_u8): Likewise.
11531 (vqtbx1_p8): Likewise.
11532 (vqtbx1q_s8): Likewise.
11533 (vqtbx1q_u8): Likewise.
11534 (vqtbx1q_p8): Likewise.
11535 (vtbl1_s8): Likewise.
11536 (vtbl1_u8): Likewise.
11537 (vtbl1_p8): Likewise.
11538 (vtbl2_s8): Likewise.
11539 (vtbl2_u8): Likewise.
11540 (vtbl2_p8): Likewise.
11541 (vtbl3_s8): Likewise.
11542 (vtbl3_u8): Likewise.
11543 (vtbl3_p8): Likewise.
11544 (vtbl4_s8): Likewise.
11545 (vtbl4_u8): Likewise.
11546 (vtbl4_p8): Likewise.
11547 (vtbx2_s8): Likewise.
11548 (vtbx2_u8): Likewise.
11549 (vtbx2_p8): Likewise.
11550 (vld1_f32): Likewise.
11551 (vld1_f64): Likewise.
11552 (vld1_p8): Likewise.
11553 (vld1_p16): Likewise.
11554 (vld1_p64): Likewise.
11555 (vld1_s8): Likewise.
11556 (vld1_s16): Likewise.
11557 (vld1_s32): Likewise.
11558 (vld1_s64): Likewise.
11559 (vld1_u8): Likewise.
11560 (vld1_u16): Likewise.
11561 (vld1_u32): Likewise.
11562 (vld1_u64): Likewise.
11563 (vld1q_f32): Likewise.
11564 (vld1q_f64): Likewise.
11565 (vld1q_p8): Likewise.
11566 (vld1q_p16): Likewise.
11567 (vld1q_p64): Likewise.
11568 (vld1q_s8): Likewise.
11569 (vld1q_s16): Likewise.
11570 (vld1q_s32): Likewise.
11571 (vld1q_s64): Likewise.
11572 (vld1q_u8): Likewise.
11573 (vld1q_u16): Likewise.
11574 (vld1q_u32): Likewise.
11575 (vld1q_u64): Likewise.
11576 (vpmax_s8): Likewise.
11577 (vpmax_s16): Likewise.
11578 (vpmax_s32): Likewise.
11579 (vpmax_u8): Likewise.
11580 (vpmax_u16): Likewise.
11581 (vpmax_u32): Likewise.
11582 (vpmaxq_s8): Likewise.
11583 (vpmaxq_s16): Likewise.
11584 (vpmaxq_s32): Likewise.
11585 (vpmaxq_u8): Likewise.
11586 (vpmaxq_u16): Likewise.
11587 (vpmaxq_u32): Likewise.
11588 (vpmax_f32): Likewise.
11589 (vpmaxq_f32): Likewise.
11590 (vpmaxq_f64): Likewise.
11591 (vpmaxqd_f64): Likewise.
11592 (vpmaxs_f32): Likewise.
11593 (vpmaxnm_f32): Likewise.
11594 (vpmaxnmq_f32): Likewise.
11595 (vpmaxnmq_f64): Likewise.
11596 (vpmaxnmqd_f64): Likewise.
11597 (vpmaxnms_f32): Likewise.
11598 (vpmin_s8): Likewise.
11599 (vpmin_s16): Likewise.
11600 (vpmin_s32): Likewise.
11601 (vpmin_u8): Likewise.
11602 (vpmin_u16): Likewise.
11603 (vpmin_u32): Likewise.
11604 (vpminq_s8): Likewise.
11605 (vpminq_s16): Likewise.
11606 (vpminq_s32): Likewise.
11607 (vpminq_u8): Likewise.
11608 (vpminq_u16): Likewise.
11609 (vpminq_u32): Likewise.
11610 (vpmin_f32): Likewise.
11611 (vpminq_f32): Likewise.
11612 (vpminq_f64): Likewise.
11613 (vpminqd_f64): Likewise.
11614 (vpmins_f32): Likewise.
11615 (vpminnm_f32): Likewise.
11616 (vpminnmq_f32): Likewise.
11617 (vpminnmq_f64): Likewise.
11618 (vpminnmqd_f64): Likewise.
11619 (vpminnms_f32): Likewise.
11620 (vmla_f32): Likewise.
11621 (vmlaq_f32): Likewise.
11622 (vmlaq_f64): Likewise.
11623 (vmls_f32): Likewise.
11624 (vmlsq_f32): Likewise.
11625 (vmlsq_f64): Likewise.
11626 (vqtbl2_s8): Likewise.
11627 (vqtbl2_u8): Likewise.
11628 (vqtbl2_p8): Likewise.
11629 (vqtbl2q_s8): Likewise.
11630 (vqtbl2q_u8): Likewise.
11631 (vqtbl2q_p8): Likewise.
11632 (vqtbl3_s8): Likewise.
11633 (vqtbl3_u8): Likewise.
11634 (vqtbl3_p8): Likewise.
11635 (vqtbl3q_s8): Likewise.
11636 (vqtbl3q_u8): Likewise.
11637 (vqtbl3q_p8): Likewise.
11638 (vqtbl4_s8): Likewise.
11639 (vqtbl4_u8): Likewise.
11640 (vqtbl4_p8): Likewise.
11641 (vqtbl4q_s8): Likewise.
11642 (vqtbl4q_u8): Likewise.
11643 (vqtbl4q_p8): Likewise.
11644 (vqtbx2_s8): Likewise.
11645 (vqtbx2_u8): Likewise.
11646 (vqtbx2_p8): Likewise.
11647 (vqtbx2q_s8): Likewise.
11648 (vqtbx2q_u8): Likewise.
11649 (vqtbx2q_p8): Likewise.
11650 (vqtbx3_s8): Likewise.
11651 (vqtbx3_u8): Likewise.
11652 (vqtbx3_p8): Likewise.
11653 (vqtbx3q_s8): Likewise.
11654 (vqtbx3q_u8): Likewise.
11655 (vqtbx3q_p8): Likewise.
11656 (vqtbx4_s8): Likewise.
11657 (vqtbx4_u8): Likewise.
11658 (vqtbx4_p8): Likewise.
11659 (vqtbx4q_s8): Likewise.
11660 (vqtbx4q_u8): Likewise.
11661 (vqtbx4q_p8): Likewise.
11662 (vrev16_p8): Likewise.
11663 (vrev16_s8): Likewise.
11664 (vrev16_u8): Likewise.
11665 (vrev16q_p8): Likewise.
11666 (vrev16q_s8): Likewise.
11667 (vrev16q_u8): Likewise.
11668 (vrev32_p8): Likewise.
11669 (vrev32_p16): Likewise.
11670 (vrev32_s8): Likewise.
11671 (vrev32_s16): Likewise.
11672 (vrev32_u8): Likewise.
11673 (vrev32_u16): Likewise.
11674 (vrev32q_p8): Likewise.
11675 (vrev32q_p16): Likewise.
11676 (vrev32q_s8): Likewise.
11677 (vrev32q_s16): Likewise.
11678 (vrev32q_u8): Likewise.
11679 (vrev32q_u16): Likewise.
11680 (vrev64_f32): Likewise.
11681 (vrev64_p8): Likewise.
11682 (vrev64_p16): Likewise.
11683 (vrev64_s8): Likewise.
11684 (vrev64_s16): Likewise.
11685 (vrev64_s32): Likewise.
11686 (vrev64_u8): Likewise.
11687 (vrev64_u16): Likewise.
11688 (vrev64_u32): Likewise.
11689 (vrev64q_f32): Likewise.
11690 (vrev64q_p8): Likewise.
11691 (vrev64q_p16): Likewise.
11692 (vrev64q_s8): Likewise.
11693 (vrev64q_s16): Likewise.
11694 (vrev64q_s32): Likewise.
11695 (vrev64q_u8): Likewise.
11696 (vrev64q_u16): Likewise.
11697 (vrev64q_u32): Likewise.
11698 (vsha1cq_u32): Likewise.
11699 (vsha1mq_u32): Likewise.
11700 (vsha1pq_u32): Likewise.
11701 (vsha1h_u32): Likewise.
11702 (vsha1su0q_u32): Likewise.
11703 (vsha1su1q_u32): Likewise.
11704 (vsha256hq_u32): Likewise.
11705 (vsha256h2q_u32): Likewise.
11706 (vsha256su0q_u32): Likewise.
11707 (vsha256su1q_u32): Likewise.
11708 (vmull_p64): Likewise.
11709 (vmull_high_p64): Likewise.
11710 (vsqrt_f32): Likewise.
11711 (vsqrtq_f32): Likewise.
11712 (vsqrt_f64): Likewise.
11713 (vsqrtq_f64): Likewise.
11714 (vst1_f32): Likewise.
11715 (vst1_f64): Likewise.
11716 (vst1_p8): Likewise.
11717 (vst1_p16): Likewise.
11718 (vst1_p64): Likewise.
11719 (vst1_s8): Likewise.
11720 (vst1_s16): Likewise.
11721 (vst1_s32): Likewise.
11722 (vst1_s64): Likewise.
11723 (vst1_u8): Likewise.
11724 (vst1_u16): Likewise.
11725 (vst1_u32): Likewise.
11726 (vst1_u64): Likewise.
11727 (vst1q_f32): Likewise.
11728 (vst1q_f64): Likewise.
11729 (vst1q_p8): Likewise.
11730 (vst1q_p16): Likewise.
11731 (vst1q_p64): Likewise.
11732 (vst1q_s8): Likewise.
11733 (vst1q_s16): Likewise.
11734 (vst1q_s32): Likewise.
11735 (vst1q_s64): Likewise.
11736 (vst1q_u8): Likewise.
11737 (vst1q_u16): Likewise.
11738 (vst1q_u32): Likewise.
11739 (vst1q_u64): Likewise.
11740 (vst1_s64_x2): Likewise.
11741 (vst1_u64_x2): Likewise.
11742 (vst1_f64_x2): Likewise.
11743 (vst1_s8_x2): Likewise.
11744 (vst1_p8_x2): Likewise.
11745 (vst1_s16_x2): Likewise.
11746 (vst1_p16_x2): Likewise.
11747 (vst1_s32_x2): Likewise.
11748 (vst1_u8_x2): Likewise.
11749 (vst1_u16_x2): Likewise.
11750 (vst1_u32_x2): Likewise.
11751 (vst1_f16_x2): Likewise.
11752 (vst1_f32_x2): Likewise.
11753 (vst1_p64_x2): Likewise.
11754 (vst1q_s8_x2): Likewise.
11755 (vst1q_p8_x2): Likewise.
11756 (vst1q_s16_x2): Likewise.
11757 (vst1q_p16_x2): Likewise.
11758 (vst1q_s32_x2): Likewise.
11759 (vst1q_s64_x2): Likewise.
11760 (vst1q_u8_x2): Likewise.
11761 (vst1q_u16_x2): Likewise.
11762 (vst1q_u32_x2): Likewise.
11763 (vst1q_u64_x2): Likewise.
11764 (vst1q_f16_x2): Likewise.
11765 (vst1q_f32_x2): Likewise.
11766 (vst1q_f64_x2): Likewise.
11767 (vst1q_p64_x2): Likewise.
11768 (vst1_s64_x3): Likewise.
11769 (vst1_u64_x3): Likewise.
11770 (vst1_f64_x3): Likewise.
11771 (vst1_s8_x3): Likewise.
11772 (vst1_p8_x3): Likewise.
11773 (vst1_s16_x3): Likewise.
11774 (vst1_p16_x3): Likewise.
11775 (vst1_s32_x3): Likewise.
11776 (vst1_u8_x3): Likewise.
11777 (vst1_u16_x3): Likewise.
11778 (vst1_u32_x3): Likewise.
11779 (vst1_f16_x3): Likewise.
11780 (vst1_f32_x3): Likewise.
11781 (vst1_p64_x3): Likewise.
11782 (vst1q_s8_x3): Likewise.
11783 (vst1q_p8_x3): Likewise.
11784 (vst1q_s16_x3): Likewise.
11785 (vst1q_p16_x3): Likewise.
11786 (vst1q_s32_x3): Likewise.
11787 (vst1q_s64_x3): Likewise.
11788 (vst1q_u8_x3): Likewise.
11789 (vst1q_u16_x3): Likewise.
11790 (vst1q_u32_x3): Likewise.
11791 (vst1q_u64_x3): Likewise.
11792 (vst1q_f16_x3): Likewise.
11793 (vst1q_f32_x3): Likewise.
11794 (vst1q_f64_x3): Likewise.
11795 (vst1q_p64_x3): Likewise.
11796 (vst2_s64): Likewise.
11797 (vst2_u64): Likewise.
11798 (vst2_f64): Likewise.
11799 (vst2_s8): Likewise.
11800 (vst2_p8): Likewise.
11801 (vst2_s16): Likewise.
11802 (vst2_p16): Likewise.
11803 (vst2_s32): Likewise.
11804 (vst2_u8): Likewise.
11805 (vst2_u16): Likewise.
11806 (vst2_u32): Likewise.
11807 (vst2_f16): Likewise.
11808 (vst2_f32): Likewise.
11809 (vst2_p64): Likewise.
11810 (vst2q_s8): Likewise.
11811 (vst2q_p8): Likewise.
11812 (vst2q_s16): Likewise.
11813 (vst2q_p16): Likewise.
11814 (vst2q_s32): Likewise.
11815 (vst2q_s64): Likewise.
11816 (vst2q_u8): Likewise.
11817 (vst2q_u16): Likewise.
11818 (vst2q_u32): Likewise.
11819 (vst2q_u64): Likewise.
11820 (vst2q_f16): Likewise.
11821 (vst2q_f32): Likewise.
11822 (vst2q_f64): Likewise.
11823 (vst2q_p64): Likewise.
11824 (vst3_s64): Likewise.
11825 (vst3_u64): Likewise.
11826 (vst3_f64): Likewise.
11827 (vst3_s8): Likewise.
11828 (vst3_p8): Likewise.
11829 (vst3_s16): Likewise.
11830 (vst3_p16): Likewise.
11831 (vst3_s32): Likewise.
11832 (vst3_u8): Likewise.
11833 (vst3_u16): Likewise.
11834 (vst3_u32): Likewise.
11835 (vst3_f16): Likewise.
11836 (vst3_f32): Likewise.
11837 (vst3_p64): Likewise.
11838 (vst3q_s8): Likewise.
11839 (vst3q_p8): Likewise.
11840 (vst3q_s16): Likewise.
11841 (vst3q_p16): Likewise.
11842 (vst3q_s32): Likewise.
11843 (vst3q_s64): Likewise.
11844 (vst3q_u8): Likewise.
11845 (vst3q_u16): Likewise.
11846 (vst3q_u32): Likewise.
11847 (vst3q_u64): Likewise.
11848 (vst3q_f16): Likewise.
11849 (vst3q_f32): Likewise.
11850 (vst3q_f64): Likewise.
11851 (vst3q_p64): Likewise.
11852 (vst4_s64): Likewise.
11853 (vst4_u64): Likewise.
11854 (vst4_f64): Likewise.
11855 (vst4_s8): Likewise.
11856 (vst4_p8): Likewise.
11857 (vst4_s16): Likewise.
11858 (vst4_p16): Likewise.
11859 (vst4_s32): Likewise.
11860 (vst4_u8): Likewise.
11861 (vst4_u16): Likewise.
11862 (vst4_u32): Likewise.
11863 (vst4_f16): Likewise.
11864 (vst4_f32): Likewise.
11865 (vst4_p64): Likewise.
11866 (vst4q_s8): Likewise.
11867 (vst4q_p8): Likewise.
11868 (vst4q_s16): Likewise.
11869 (vst4q_p16): Likewise.
11870 (vst4q_s32): Likewise.
11871 (vst4q_s64): Likewise.
11872 (vst4q_u8): Likewise.
11873 (vst4q_u16): Likewise.
11874 (vst4q_u32): Likewise.
11875 (vst4q_u64): Likewise.
11876 (vst4q_f16): Likewise.
11877 (vst4q_f32): Likewise.
11878 (vst4q_f64): Likewise.
11879 (vst4q_p64): Likewise.
11880 (vtbx4_s8): Likewise.
11881 (vtbx4_u8): Likewise.
11882 (vtbx4_p8): Likewise.
11883 (vtrn_f32): Likewise.
11884 (vtrn_p8): Likewise.
11885 (vtrn_p16): Likewise.
11886 (vtrn_s8): Likewise.
11887 (vtrn_s16): Likewise.
11888 (vtrn_s32): Likewise.
11889 (vtrn_u8): Likewise.
11890 (vtrn_u16): Likewise.
11891 (vtrn_u32): Likewise.
11892 (vtrnq_f32): Likewise.
11893 (vtrnq_p8): Likewise.
11894 (vtrnq_p16): Likewise.
11895 (vtrnq_s8): Likewise.
11896 (vtrnq_s16): Likewise.
11897 (vtrnq_s32): Likewise.
11898 (vtrnq_u8): Likewise.
11899 (vtrnq_u16): Likewise.
11900 (vtrnq_u32): Likewise.
11901 (vrsqrte_f16): Likewise.
11902 (vrsqrteq_f16): Likewise.
11903 (vsqrt_f16): Likewise.
11904 (vsqrtq_f16): Likewise.
11905 (vabd_f16): Likewise.
11906 (vabdq_f16): Likewise.
11907 (vpadd_f16): Likewise.
11908 (vpaddq_f16): Likewise.
11909 (vpmax_f16): Likewise.
11910 (vpmaxq_f16): Likewise.
11911 (vpmaxnm_f16): Likewise.
11912 (vpmaxnmq_f16): Likewise.
11913 (vpmin_f16): Likewise.
11914 (vpminq_f16): Likewise.
11915 (vpminnm_f16): Likewise.
11916 (vpminnmq_f16): Likewise.
11917 (vrsqrts_f16): Likewise.
11918 (vrsqrtsq_f16): Likewise.
11919
11920 2019-09-25 Richard Biener <rguenther@suse.de>
11921
11922 PR tree-optimization/91896
11923 * tree-vect-loop.c (vectorizable_reduction): The single
11924 def-use cycle optimization cannot apply when there's more
11925 than one pattern stmt involved.
11926
11927 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11928
11929 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11930 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11931 (reload_macho_picbase_<mode>): Likewise.
11932
11933 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11934
11935 * config/rs6000/rs6000.md: Move darwin.md include until
11936 after the definition of the mode iterators.
11937
11938 2019-09-23 Martin Sebor <msebor@redhat.com>
11939
11940 PR tree-optimization/91570
11941 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11942 non-constant minlen, maxlen and maxbound.
11943
11944 2019-09-24 Richard Biener <rguenther@suse.de>
11945
11946 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11947 Rename to...
11948 (_stmt_vec_info::cond_reduc_code): ... this.
11949 (_stmt_vec_info::induc_cond_initial_val): Add.
11950 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11951 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11952 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11953 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11954 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11955 the reduction code.
11956 (vect_create_epilog_for_reduction): Drop special
11957 induction condition reduction params, pass in reduction code
11958 and simplify.
11959 (vectorizable_reduction): Perform condition reduction kind
11960 selection only at analysis time. Adjust passing on state.
11961
11962 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11963
11964 * config/aarch64/aarch64.md (mov<mode>): Don't call
11965 aarch64_split_dimode_const_store on volatile MEM.
11966
11967 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11968
11969 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11970 Update hwcap string for fp16fml.
11971
11972 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11973
11974 PR middle-end/91866
11975 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11976 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11977
11978 2019-09-24 Martin Liska <mliska@suse.cz>
11979
11980 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11981 instead of if-elseif-elseif-...
11982 * gimple-expr.c (extract_ops_from_tree): Likewise.
11983 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11984 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11985
11986 2019-09-24 Martin Jambor <mjambor@suse.cz>
11987
11988 PR ipa/91831
11989 * ipa-param-manipulation.c (carry_over_param): Make a method of
11990 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11991 in case of a context mismatch.
11992 (ipa_param_body_adjustments::common_initialization): Adjust call to
11993 carry_over_param.
11994 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11995 private method carry_over_param.
11996
11997 2019-09-24 Martin Jambor <mjambor@suse.cz>
11998
11999 PR ipa/91832
12000 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12001
12002 2019-09-24 Richard Biener <rguenther@suse.de>
12003
12004 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12005 base.
12006
12007 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12008
12009 * config/arm/t-arm (arm-builtins.o): Add dependency on
12010 arm_acle_builtins.def.
12011
12012 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12013
12014 PR target/91823
12015 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12016 canonical CONST_INTs. Use gen_rtvec.
12017
12018 2019-09-23 Richard Biener <rguenther@suse.de>
12019
12020 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12021 avoid adjusting by + 0 or * 1.
12022 (vect_create_epilog_for_reduction): Get reduction code only
12023 when necessary. Deal with adjustment_def only when necessary.
12024
12025 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12026
12027 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12028 memmodel index.
12029
12030 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12031
12032 PR ipa/91835
12033 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12034 "ipa-sra".
12035
12036 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12037
12038 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12039 code. Merge code blocks with common conditionals. Use declared
12040 macro instead of a magic number for PIC level.
12041
12042 2019-09-21 Martin Sebor <msebor@redhat.com>
12043
12044 PR middle-end/91830
12045 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12046 Simplify computation of the offset of the referenced subobject.
12047
12048 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12049
12050 * config/darwin.c (machopic_legitimize_pic_address): Check
12051 for lra not reload.
12052
12053 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12054
12055 * ira-conflicts.c (can_use_same_reg_p): New function.
12056 (process_reg_shuffles): Take an insn parameter. Ignore cases
12057 in which input operand op_num could seemingly never be allocated
12058 to the same register as the destination.
12059 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12060
12061 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12062
12063 * simplify-rtx.c (neg_const_int): Replace with...
12064 (neg_poly_int_rtx): ...this new function.
12065 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12066 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12067 (simplify_plus_minus): Likewise for constant terms here.
12068
12069 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12070
12071 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12072 HOST_WIDE_PRINT_UNSIGNED.
12073
12074 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12075
12076 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12077 character.
12078
12079 2019-09-20 Maya Rashish <coypu@sdf.org>
12080
12081 PR target/86811
12082 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12083 Define to speculation_safe_value_not_needed.
12084
12085 2019-09-20 Richard Biener <rguenther@suse.de>
12086 Uros Bizjak <ubizjak@gmail.com>
12087
12088 PR target/91814
12089 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12090 previous change.
12091 (general_scalar_chain::convert_op): Force not suitable memory
12092 operands to a register.
12093
12094 2019-09-20 Richard Biener <rguenther@suse.de>
12095
12096 PR tree-optimization/91821
12097 * tree-vect-loop.c (check_reduction_path): Check we can compute
12098 reduc_idx.
12099 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12100 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12101 operands in canonical order.
12102 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12103 STMT_VINFO_REDUC_IDX.
12104 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12105 (STMT_VINFO_REDUC_IDX): Likewise.
12106
12107 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12108
12109 PR target/91269
12110 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12111
12112 2019-09-20 Richard Biener <rguenther@suse.de>
12113
12114 PR tree-optimization/91822
12115 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12116 parameter.
12117 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12118 for reduc_index in nested cycles, adjust vectorizable_condition
12119 calls.
12120 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12121 parameter.
12122 (vect_analyze_stmt): Adjust.
12123 (vect_transform_stmt): Likewise.
12124
12125 2019-09-20 Richard Biener <rguenther@suse.de>
12126
12127 PR target/91767
12128 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12129 Ensure there's a sequence point between allocating the new register
12130 and passing a reference to a reg via regno_reg_rtx.
12131
12132 2019-09-20 Martin Jambor <mjambor@suse.cz>
12133
12134 * coretypes.h (cgraph_edge): Declare.
12135 * ipa-param-manipulation.c: Rewrite.
12136 * ipa-param-manipulation.h: Likewise.
12137 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12138 (OBJS): Added ipa-sra.o.
12139 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12140 and ref_p, added fields param_adjustments and performed_splits.
12141 (struct cgraph_clone_info): Remove ags_to_skip and
12142 combined_args_to_skip, new field param_adjustments.
12143 (cgraph_node::create_clone): Changed parameters to use
12144 ipa_param_adjustments.
12145 (cgraph_node::create_virtual_clone): Likewise.
12146 (cgraph_node::create_virtual_clone_with_body): Likewise.
12147 (tree_function_versioning): Likewise.
12148 (cgraph_build_function_type_skip_args): Removed.
12149 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12150 using ipa_param_adjustments.
12151 (clone_of_p): Likewise.
12152 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12153 (build_function_decl_skip_args): Likewise.
12154 (duplicate_thunk_for_node): Adjust parameters using
12155 ipa_param_body_adjustments, copy param_adjustments instead of
12156 args_to_skip.
12157 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12158 (cgraph_node::create_virtual_clone): Likewise.
12159 (cgraph_node::create_version_clone_with_body): Likewise.
12160 (cgraph_materialize_clone): Likewise.
12161 (symbol_table::materialize_all_clones): Likewise.
12162 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12163 ipa_replace_map check.
12164 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12165 (initialize_node_lattices): Make aware that some parameters might have
12166 already been removed.
12167 (want_remove_some_param_p): New function.
12168 (create_specialized_node): Convert to using ipa_param_adjustments and
12169 deal with possibly pre-existing adjustments.
12170 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12171 (output_node_opt_summary): Do not stream removed fields. Stream
12172 parameter adjustments instead of argumetns to skip.
12173 (input_node_opt_summary): Likewise.
12174 (input_node_opt_summary): Likewise.
12175 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12176 * lto-streamer.h (lto_section_type): Likewise.
12177 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12178 param_body_adjs.
12179 (copy_decl_to_var): Declare.
12180 * tree-inline.c (update_clone_info): Do not remap old_tree.
12181 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12182 statements, walk all extra generated statements and remap their
12183 operands.
12184 (redirect_all_calls): Add killed SSA names to a hash set.
12185 (remap_ssa_name): Do not remap killed SSA names.
12186 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12187 half of functionality moved to ipa_param_body_adjustments.
12188 (copy_decl_to_var): Make exported.
12189 (copy_body): Destroy killed_new_ssa_names hash set.
12190 (expand_call_inline): Remap performed splits.
12191 (update_clone_info): Likewise.
12192 (tree_function_versioning): Simplify tree_map processing. Updated to
12193 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12194 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12195 for the new interface.
12196 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12197 (simd_clone_compute_base_data_type): Likewise.
12198 (simd_clone_init_simd_arrays): Adjust for the new interface.
12199 (simd_clone_adjust_argument_types): Likewise.
12200 (struct modify_stmt_info): Likewise.
12201 (ipa_simd_modify_stmt_ops): Likewise.
12202 (ipa_simd_modify_function_body): Likewise.
12203 (simd_clone_adjust): Likewise.
12204 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12205 (type_internals_preclude_sra_p): Make public.
12206 * tree-sra.h: New file.
12207 * ipa-inline-transform.c (save_inline_function_body): Update to
12208 refelct new tree_function_versioning signature.
12209 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12210 ipa_param_adjustments to get current parameter indices.
12211 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12212 (ipcp_update_bits): Likewise.
12213 (ipcp_update_vr): Likewise.
12214 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12215 * ipa-sra.c: New file.
12216 * multiple_target.c (create_target_clone): Update to reflet new type
12217 of create_version_clone_with_body.
12218 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12219 tree_function_versioning.
12220 (modify_function): Update to reflect new type of
12221 tree_function_versioning.
12222 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12223 * passes.def: Remove old IPA-SRA and add new one.
12224 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12225 (make_pass_ipa_sra): Declare.
12226 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12227 ipa_sra_retvalues.
12228 * doc/invoke.texi (ipa-sra-max-replacements): New.
12229
12230 2019-09-19 Martin Sebor <msebor@redhat.com>
12231
12232 PR middle-end/91631
12233 * builtins.c (component_size): Correct trailing array computation,
12234 rename to component_ref_size and move...
12235 (compute_objsize): Adjust.
12236 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12237 (builtin_access::strict): Do not consider memmove.
12238 (builtin_access::write_off): New function.
12239 (builtin_memref::builtin_memref): Initialize refsize.
12240 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12241 refsize.
12242 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12243 Handle refsize.
12244 (builtin_access::builtin_access): Initialize dstoff to destination
12245 refeence offset here instead of in maybe_diag_overlap. Adjust
12246 referencess even to unrelated objects. Adjust sizrange of bounded
12247 string functions to reflect bound. For strcat, adjust destination
12248 sizrange by that of source.
12249 (builtin_access::strcat_overlap): Adjust offsets and sizes
12250 to reflect the increase in destination sizrange above.
12251 (builtin_access::overlap): Do not set dstoff here but instead
12252 in builtin_access::builtin_access.
12253 (check_bounds_or_overlap): Use builtin_access::write_off.
12254 (maybe_diag_access_bounds): Add argument. Add informational notes.
12255 (dump_builtin_memref, dump_builtin_access): New functions.
12256 * tree.c (component_ref_size): ...to here.
12257 * tree.h (component_ref_size): Declare.
12258 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12259 nul in the size of the source string.
12260
12261 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12262
12263 PR c/67224
12264 * doc/cpp.texi: Document support for extended characters in
12265 identifiers.
12266 * doc/cppopts.texi: Likewise.
12267
12268 2019-09-19 Richard Biener <rguenther@suse.de>
12269
12270 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12271 (check_reduction_path): New overload having the path as result.
12272 (vect_is_simple_reduction): From the detected reduction
12273 path build a SLP reduction chain if possible.
12274
12275 2019-09-19 Richard Biener <rguenther@suse.de>
12276
12277 PR target/91814
12278 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12279 Force operand to a register if it isn't nonimmediate_operand.
12280
12281 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12282
12283 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12284 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12285 (logical_op): Remove code attribute.
12286 (logical_OP): Likewise.
12287
12288 2019-09-19 Martin Liska <mliska@suse.cz>
12289
12290 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12291 Use proper casting.
12292
12293 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12294
12295 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12296 registers with %R.
12297
12298 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12299 for NE comparison of TImode values.
12300 (aarch64_emit_load_exclusive): Add support for TImode.
12301 (aarch64_emit_store_exclusive): Likewise.
12302 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12303 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12304 Change iterator from ALLI to ALLI_TI.
12305 (@atomic_compare_and_swap<JUST_TI>): New.
12306 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12307 (aarch64_load_exclusive_pair): New.
12308 (aarch64_store_exclusive_pair): New.
12309 * config/aarch64/iterators.md (JUST_TI): New.
12310
12311 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12312 strong_zero_p for aarch64_track_speculation; unify some code paths;
12313 use aarch64_gen_compare_reg instead of open-coding.
12314
12315 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12316 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12317 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12318 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12319 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12320 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12321 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12322 (atomic_<atomic_op><ALLI>): Likewise.
12323 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12324 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12325 * doc/invoke.texi: Document -moutline-atomics.
12326
12327 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12328
12329 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12330 trivial predicate for condition branch.
12331 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12332 for switch case.
12333 (compute_bb_predicates): Update predicate based on post-dominating
12334 relationship.
12335 (analyze_function_body): Calculate post-dominating information.
12336
12337 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12338
12339 * tree-vectorizer.h (vectorizable_condition): Take an int
12340 reduction index instead of a boolean flag.
12341 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12342 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12343 reductions if the reduction accumulator is the "then" rather
12344 than the "else" value.
12345 (vect_analyze_stmt): Update call accordingly.
12346 (vect_transform_stmt): Likewise.
12347 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12348 asserting that the index is > 0.
12349
12350 2019-09-19 Martin Liska <mliska@suse.cz>
12351
12352 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12353 (sort_congruence_classes_by_decl_uid): Likewise.
12354 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12355 easier sorting.
12356 (sem_item_optimizer::merge_classes): Likewise.
12357
12358 2019-09-19 Richard Biener <rguenther@suse.de>
12359
12360 PR tree-optimization/91812
12361 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12362 volatile loads.
12363
12364 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12365
12366 * defaults.h (TARGET_UNIT): New macro.
12367 (target_unit): New type.
12368 * rtl.h (native_encode_rtx, native_decode_rtx)
12369 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12370 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12371 * rtlanal.c (subreg_lsb_1): Delete.
12372 (subreg_size_lsb): New function.
12373 * simplify-rtx.c: Include rtx-vector-builder.h
12374 (simplify_immed_subreg): Delete.
12375 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12376 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12377 functions.
12378 (simplify_subreg): Use them.
12379 (test_vector_subregs_modes, test_vector_subregs_repeating)
12380 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12381 (test_vector_subregs): New functions.
12382 (test_vector_ops): Call test_vector_subregs for integer vector
12383 modes with at least 2 elements.
12384
12385 2019-09-19 Richard Biener <rguenther@suse.de>
12386
12387 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12388 LOOP_VINFO_OPERANDS_SWAPPED.
12389 (parloops_is_simple_reduction): Likewise.
12390 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12391 initialize operands_swapped.
12392 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12393 (vect_is_slp_reduction): Do not swap operands.
12394 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12395 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12396
12397 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12398
12399 PR target/87007
12400 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12401 Add avx_partial_xmm_update.
12402
12403 2019-09-18 Jim Wilson <jimw@sifive.com>
12404
12405 PR target/91683
12406 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12407 (riscv_move_integer): Likewise.
12408 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12409 riscv_move_integer arg.
12410 (riscv_legitimize_move): Likewise.
12411 (riscv_force_temporary): New parameter in_splitter. Don't call
12412 force_reg if true.
12413 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12414 arg.
12415 (riscv_add_offset): Likewise.
12416 (riscv_split_symbol): New parameter in_splitter. Pass to
12417 riscv_force_temporary.
12418 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12419 arg.
12420 (riscv_move_integer): New parameter in_splitter. New local
12421 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12422 in_splitter TRUE.
12423 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12424 riscv_split_symbol, and riscv_force_temporary args.
12425 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12426 riscv_move_integer arg.
12427 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12428
12429 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12430
12431 PR target/90878
12432 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12433 hard register store cost to 6.
12434
12435 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12436
12437 PR target/91446
12438 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12439 pseudo register store cost from 3 to 6 to make it the same as
12440 QImode and HImode.
12441
12442 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12443
12444 PR target/91738
12445 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12446 (one_cmpldi2): Likewise.
12447 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12448 of the constant parts is simple.
12449 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12450 (logical_op): Add new code attribute.
12451 (logical_OP): Likewise.
12452 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12453 (arm_iordi_operand): Add predicate.
12454 (arm_xordi_operand): Add predicate.
12455
12456 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12457
12458 * config/arm/arm.md (maddsidi4): Remove expander.
12459 (mulsidi3adddi): Remove pattern.
12460 (mulsidi3adddi_v6): Likewise.
12461 (mulsidi3_nov6): Likewise.
12462 (mulsidi3_v6): Likewise.
12463 (umulsidi3): Remove expander.
12464 (umulsidi3_nov6): Remove pattern.
12465 (umulsidi3_v6): Likewise.
12466 (umulsidi3adddi): Likewise.
12467 (umulsidi3adddi_v6): Likewise.
12468 (<Us>mulsidi3): Add combined expander.
12469 (<Us>maddsidi4): Likewise.
12470 (<US>mull): Add combined umull and smull pattern.
12471 (<US>mlal): Likewise.
12472 * config/arm/iterators.md (Us): Add new iterator.
12473
12474 2019-09-18 Richard Biener <rguenther@suse.de>
12475
12476 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12477 swapping.
12478 (vectorize_fold_left_reduction): Remove assert.
12479 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12480 operand in position 2. Remove assert.
12481
12482 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12483
12484 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12485 (smulsi3_highpart_nov6): Remove pattern.
12486 (smulsi3_highpart_v6): Likewise.
12487 (umulsi3_highpart): Likewise.
12488 (umulsi3_highpart_nov6): Likewise.
12489 (umulsi3_highpart_v6): Likewise.
12490 (<US>mull_high): Add new combined multiply pattern.
12491
12492 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12493
12494 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12495 (arm_mulsi3_v6): Likewise.
12496 (mulsi3addsi_v6): Likewise.
12497 (mulsi3subsi): Likewise.
12498 (mul): Add new multiply pattern.
12499 (mla): Likewise.
12500 (mls): Likewise.
12501
12502 2019-09-18 Richard Biener <rguenther@suse.de>
12503
12504 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12505 (parloops_valid_reduction_input_p): Copy from
12506 valid_reduction_input_p.
12507 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12508 (parloops_needs_fold_left_reduction_p): Copy from
12509 needs_fold_left_reduction_p.
12510 (parloops_is_simple_reduction): Copy from
12511 vect_is_simple_reduction.
12512 (parloops_force_simple_reduction): Copy from
12513 vect_force_simple_reduction.
12514 (gather_scalar_reductions): Adjust.
12515 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12516 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12517
12518 2019-09-18 Richard Biener <rguenther@suse.de>
12519
12520 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12521 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12522 static.
12523 (vect_create_epilog_for_reduction): Remove dead code.
12524
12525 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12526
12527 * varasm.c (assemble_real): Generate canonical const_ints.
12528
12529 2019-09-18 Richard Biener <rguenther@suse.de>
12530
12531 PR lto/91763
12532 * lto-streamer-in.c (input_eh_regions): Move EH init to
12533 lto_materialize_function.
12534 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12535 Likewise.
12536
12537 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12538
12539 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12540 are INTEGER_CSTs.
12541
12542 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12543
12544 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12545 of checking specifically for INTEGER_CST.
12546
12547 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12548
12549 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12550 sizes instead of uhwi sizes.
12551
12552 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12553
12554 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12555 (add_const_value_attribute): Handle CONST_POLY_INT.
12556
12557 2019-09-18 Martin Liska <mliska@suse.cz>
12558
12559 * dbgcnt.def (store_merging): New counter.
12560 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12561 Use it in store merging.
12562
12563 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12564
12565 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12566 function.
12567 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12568 * config/arm/arm.c (arm_sched_variable_issue): New function.
12569 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12570
12571 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12572
12573 * config/arm/types.md (no_reservation): New reservation.
12574 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12575 no_insn here.
12576 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12577 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12578 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12579 * config/arm/arm1020e.md (1020alu_op): Likewise.
12580 * config/arm/arm1026ejs.md (alu_op): Likewise.
12581 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12582 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12583 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12584 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12585 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12586 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12587 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12588 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12589 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12590 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12591 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12592 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12593 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12594 * config/arm/fa526.md (526_alu_op): Likewise.
12595 * config/arm/fa606te.md (606te_alu_op): Likewise.
12596 * config/arm/fa626te.md (626te_alu_op): Likewise.
12597 * config/arm/fa726te.md (726te_alu_op): Likewise.
12598 * config/arm/xgene1.md (xgene1_nop): Likewise.
12599
12600 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12601
12602 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12603 "no_insn" to "branch".
12604
12605 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12606
12607 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12608
12609 2019-09-17 Richard Biener <rguenther@suse.de>
12610
12611 PR debug/91772
12612 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12613 was missing generate locations only once.
12614
12615 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12616
12617 PR ipa/91089
12618 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12619 option.
12620 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12621 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12622 for switch default case using range analysis information.
12623
12624 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12625
12626 PR target/91749
12627 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12628 mode attributed is supported by FDPIC.
12629
12630 2019-09-17 Richard Biener <rguenther@suse.de>
12631
12632 PR tree-optimization/91790
12633 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12634 use the correct DR for setting up realignment.
12635
12636 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12637
12638 PR target/91719
12639 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12640 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12641 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12642 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12643
12644 2019-09-16 Jason Merrill <jason@redhat.com>
12645
12646 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12647
12648 2019-09-16 Martin Liska <mliska@suse.cz>
12649
12650 * gimple-fold.c (or_comparisons_1): Remove rules moved
12651 to ...
12652 * match.pd: ... here.
12653
12654 2019-09-16 Martin Liska <mliska@suse.cz>
12655
12656 * gimple-fold.c (or_comparisons_1): Remove rules
12657 moved to ...
12658 * match.pd: ... here.
12659
12660 2019-09-16 Martin Liska <mliska@suse.cz>
12661
12662 * genmatch.c (dt_node::append_simplify): Do not print
12663 warning when we have duplicate patterns belonging
12664 to a same simplify rule.
12665 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12666 (maybe_fold_comparisons_from_match_pd): Handle
12667 tcc_comparison as a results.
12668 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12669
12670 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12671 Qi Feng <ffengqi@linux.ibm.com>
12672
12673 PR middle-end/88784
12674 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12675 (x > y && x == XXX_MIN): Optimize into 'false'.
12676 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12677 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12678 (x < y && x == XXX_MAX): Optimize into 'false'.
12679 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12680 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12681 (x <= y || x != XXX_MIN): Optimize into 'true'.
12682 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12683 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12684 (x >= y || x != XXX_MAX): Optimize into 'true'.
12685 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12686
12687 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12688 Martin Liska <mliska@suse.cz>
12689
12690 * gimple-fold.c (and_comparisons_1): Add type as first
12691 argument.
12692 (and_var_with_comparison): Likewise.
12693 (and_var_with_comparison_1): Likewise.
12694 (or_comparisons_1): Likewise.
12695 (or_var_with_comparison): Likewise.
12696 (or_var_with_comparison_1): Likewise.
12697 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12698 (maybe_fold_or_comparisons): Likewise.
12699 (maybe_fold_comparisons_from_match_pd): New.
12700 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12701 (maybe_fold_or_comparisons): Likewise.
12702 * gimple.c (gimple_size): Make it public and add num_ops argument.
12703 (gimple_init): New function.
12704 (gimple_alloc): Call gimple_init.
12705 * gimple.h (gimple_size): New.
12706 (gimple_init): Likewise.
12707 * tree-if-conv.c (fold_or_predicates): Pass type.
12708 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12709 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12710 (optimize_vec_cond_expr): Likewise.
12711 (ovce_extract_ops): Return type of conditional expression.
12712 * tree-ssanames.c (init_ssa_name_imm_use): New.
12713 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12714 * tree-ssanames.h (init_ssa_name_imm_use): New.
12715
12716 2019-09-16 Richard Biener <rguenther@suse.de>
12717
12718 PR tree-optimization/91756
12719 PR tree-optimization/87132
12720 * tree-ssa-alias.h (enum translate_flags): New.
12721 (get_continuation_for_phi): Use it instead of simple bool flag.
12722 (walk_non_aliased_vuses): Likewise.
12723 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12724 (get_continuation_for_phi): When looking across backedges only
12725 disallow valueization.
12726 (walk_non_aliased_vuses): Adjust.
12727 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12728 if requested.
12729
12730 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12731
12732 PR middle-end/80791
12733 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12734 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12735 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12736 * target.def (have_count_reg_decr_p): New hook.
12737 (doloop_cost_for_generic): Likewise.
12738 (doloop_cost_for_address): Likewise.
12739 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12740 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12741 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12742 * doc/tm.texi: Regenerate.
12743 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12744 addend.
12745 (record_group): Init doloop_p.
12746 (add_candidate_1): Add optional argument doloop, change the handlings
12747 accordingly.
12748 (add_candidate): Likewise.
12749 (generic_predict_doloop_p): Update attribute.
12750 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12751 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12752 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12753 MIN_EXPR.
12754 (get_computation_cost): Update for doloop IV cand extra cost.
12755 (determine_group_iv_cost_cond): Update for doloop IV cand.
12756 (determine_iv_cost): Likewise.
12757 (ivopts_estimate_reg_pressure): Likewise.
12758 (may_eliminate_iv): Update handlings for doloop IV cand.
12759 (add_iv_candidate_for_doloop): New function.
12760 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12761 (iv_ca_set_no_cp): Update for doloop IV cand.
12762 (iv_ca_set_cp): Likewise.
12763 (iv_ca_dump): Dump register cost.
12764 (find_doloop_use): New function.
12765 (analyze_and_mark_doloop_use): Likewise.
12766 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12767
12768 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12769
12770 PR middle-end/91708
12771 * cse.c (cse_insn): Do not replace anything with a
12772 MEM.
12773
12774 2019-09-13 Ian Lance Taylor <iant@golang.org>
12775
12776 * doc/invoke.texi (Optimize Options): Fix typo.
12777
12778 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12779
12780 PR tree-optimization/89386
12781 * config/i386/sse.md (smulhrs<mode>3): New expander.
12782 (smulhrsv4hi3): Ditto.
12783
12784 2019-09-12 Richard Biener <rguenther@suse.de>
12785
12786 PR tree-optimization/91750
12787 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12788 in the type of the evolution.
12789
12790 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12791
12792 PR tree-optimization/89386
12793 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12794 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12795 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12796 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12797 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12798 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12799 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12800 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12801 (su, r): Handle the unspecs above.
12802 (bt): New int attribute.
12803 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12804 * internal-fn.c (first_commutative_argument): Commutativity info for
12805 above.
12806 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12807 (umulhrs_optab): New optabs.
12808 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12809 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12810 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12811 function.
12812 (vect_vect_recog_func_ptrs): Add it.
12813
12814 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12815
12816 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12817 code.
12818
12819 2019-09-11 Nathan Sidwell <nathan@acm.org>
12820
12821 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12822 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12823
12824 2019-09-11 Richard Biener <rguenther@suse.de>
12825
12826 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12827 * lto-wrapper.c (merge_and_complain): Pick up -g.
12828 (append_compiler_options): Likewise.
12829 (run_gcc): Re-instantiate handling -g0 at link-time.
12830 * doc/invoke.texi (flto): Document debug info generation.
12831
12832 2019-09-11 Richard Biener <rguenther@suse.de>
12833
12834 PR tree-optimization/90387
12835 * vr-values.c (vr_values::extract_range_basic): After inlining
12836 simplify non-constant __builtin_constant_p to false.
12837
12838 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12839
12840 PR rtl-optimization/89795
12841 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12842 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12843
12844 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12845
12846 PR tree-optimization/91723
12847 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12848 instead of pointer equality when checking if argument vectypes are
12849 the same.
12850
12851 PR middle-end/91725
12852 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12853 of get_nonzero_bits, only call it for integral types.
12854
12855 2019-09-11 Richard Biener <rguenther@suse.de>
12856
12857 Revert
12858 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12859
12860 * match.pd: Add flag_unsafe_math_optimizations check
12861 before deciding on the widest type in a binary math operation.
12862
12863 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12864
12865 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12866 and CALL_REALLY_USED_REGISTERS must be defined, and that
12867 CALL_REALLY_USED_REGISTERS is preferred.
12868 * doc/tm.texi: Regenerate.
12869 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12870 (call_really_used_regs): Likewise.
12871 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12872 CALL_REALLY_USED_REGISTERS are defined.
12873 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12874 initial value if defined.
12875 (initial_call_really_used_regs): Delete.
12876 (saved_call_really_used_regs): Likewise.
12877 (CALL_REALLY_USED_REGNO_P): Likewise.
12878 (init_reg_sets): Remove handling of call_really_used_regs.
12879 (save_register_info, restore_register_info, globalize_reg): Likewise.
12880 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12881 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12882 outside operand_reg_set.
12883 (fix_register): Don't change call_used_regs if
12884 CALL_REALLY_USED_REGISTERS is defined.
12885 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12886 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12887 instead of call_really_used_regs.
12888 (csky_conditional_register_usage): Remove the old handling of
12889 call_used_regs and change the handling of call_really_used_regs
12890 to use call_used_regs instead.
12891 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12892 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12893 making a register fixed.
12894 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12895 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12896 instead of call_really_used_regs.
12897 (m32r_conditional_register_usage): Don't set call_used_regs when
12898 making a register fixed.
12899 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12900 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12901 instead of call_really_used_regs.
12902 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12903 (mips_cfun_call_saved_reg_p): Likewise.
12904 (mips_swap_registers): Remove the old handling of call_used_regs
12905 and change the handling of call_really_used_regs to use call_used_regs
12906 instead.
12907 (mips_conditional_register_usage): Likewise.
12908 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12909 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12910 instead of call_really_used_regs.
12911 (mn10300_get_live_callee_saved_regs): Likewise.
12912 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12913 (mn10300_conditional_register_usage): Don't set call_used_regs when
12914 making a register fixed.
12915 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12916 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12917 Remove the old handling of call_used_regs and change the handling
12918 of call_really_used_regs to use call_used_regs instead.
12919 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12920 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12921 instead of call_really_used_regs.
12922 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12923 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12924 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12925 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12926 (s390_conditional_register_usage): Remove the old handling of
12927 call_used_regs and change the handling of call_really_used_regs
12928 to use call_used_regs instead.
12929 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12930 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12931 (sh_fix_range, reg_unused_after): Likewise.
12932 (sh_conditional_register_usage): Remove the old handling of
12933 call_used_regs and change the handling of call_really_used_regs
12934 to use call_used_regs instead.
12935 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12936 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12937 call_used_regs when making a register fixed.
12938 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12939 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12940 call_used_regs when making a register fixed.
12941 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12942 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12943 set call_used_regs when making a register fixed.
12944 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12945 * config/visium/visium.c (visium_conditional_register_usage): Remove
12946 the old handling of call_used_regs and change the handling of
12947 call_really_used_regs to use call_used_regs instead.
12948
12949 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12950
12951 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12952 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12953 * reginfo.c (call_used_regs): New macro.
12954
12955 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12956
12957 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12958 fixed_regs test.
12959 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12960 (bpf_expand_epilogue): Likewise.
12961 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12962 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12963 (ft32_expand_epilogue): Likewise.
12964 * config/i386/i386.c (ix86_save_reg): Likewise.
12965 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12966 (moxie_expand_epilogue): Likewise.
12967 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12968 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12969 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12970
12971 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12972
12973 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12974 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12975 instead of testing call_used_regs directly.
12976 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12977 (aarch64_components_for_bb): Likewise.
12978 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12979 * config/arc/arc.c (arc_must_save_register): Likewise.
12980 (arc_epilogue_uses): Likewise.
12981 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12982 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12983 (arm_compute_save_reg0_reg12_mask): Likewise.
12984 (arm_compute_save_core_reg_mask): Likewise.
12985 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12986 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12987 (cmse_nonsecure_entry_clear_before_return): Likewise.
12988 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12989 (arm_expand_epilogue): Likewise.
12990 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12991 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12992 (_reg_unused_after): Likewise.
12993 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12994 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12995 (add_to_reg, hwloop_optimize): Likewise.
12996 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12997 (bpf_expand_epilogue): Likewise.
12998 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12999 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13000 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13001 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13002 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13003 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13004 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13005 * config/frv/frv.c (frv_stack_info): Likewise.
13006 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13007 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13008 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13009 (move_callee_saved_registers): Likewise.
13010 * config/h8300/h8300.c (byte_reg): Likewise.
13011 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13012 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13013 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13014 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13015 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13016 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13017 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13018 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13019 * config/m32c/m32c.c (need_to_save): Likewise.
13020 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13021 * config/mcore/mcore.c (calc_live_regs): Likewise.
13022 * config/microblaze/microblaze.c (microblaze_must_save_register):
13023 Likewise.
13024 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13025 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13026 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13027 (mmix_expand_epilogue): Likewise.
13028 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13029 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13030 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13031 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13032 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13033 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13034 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13035 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13036 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13037 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13038 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13039 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13040 * config/rl78/rl78.c (need_to_save): Likewise.
13041 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13042 (rs6000_stack_info, generate_set_vrsave): Likewise.
13043 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13044 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13045 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13046 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13047 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13048 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13049 (save_local_or_in_reg_p): Likewise.
13050 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13051 (xstormy16_epilogue_uses): Likewise.
13052 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13053 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13054 * config/v850/v850.c (compute_register_save_size): Likewise.
13055 * config/vax/vax.c (vax_expand_prologue): Likewise.
13056 * config/visium/visium.c (visium_save_reg_p): Likewise.
13057 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13058 * cselib.c (cselib_process_insn): Likewise.
13059 * df-scan.c (df_get_entry_block_def_set): Likewise.
13060 * function.c (aggregate_value_p): Likewise.
13061 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13062 * ira-lives.c (process_bb_node_lives): Likewise.
13063 * ira.c (do_reload): Likewise.
13064 * lra-lives.c (process_bb_lives): Likewise.
13065 * lra-remat.c (lra_remat): Likewise.
13066 * lra.c (lra): Likewise.
13067 * postreload.c (reload_combine_recognize_pattern): Likewise.
13068 (reload_cse_move2add): Likewise.
13069 * recog.c (peep2_find_free_register): Likewise.
13070 * regrename.c (check_new_reg_p): Likewise.
13071 * reload.c (find_equiv_reg): Likewise.
13072 * reload1.c (reload, find_reg): Likewise.
13073 * sel-sched.c (init_hard_regs_data): Likewise.
13074
13075 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13076
13077 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13078 regs_invalidated_by_call & ~fixed_reg_set instead of
13079 call_used_or_fixed_regs & ~fixed_reg_set.
13080 * config/sh/sh.c (output_stack_adjust): Likewise.
13081
13082 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13083
13084 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13085 (call_used_reg_set): Delete.
13086 (call_used_or_fixed_regs): New macro.
13087 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13088 of call_used_reg_set.
13089 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13090 instead of call_used_regs.
13091 (save_call_clobbered_regs): Likewise.
13092 * cfgcleanup.c (old_insns_match_p): Likewise.
13093 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13094 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13095 Likewise.
13096 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13097 * config/sh/sh.c (output_stack_adjust): Likewise.
13098 * final.c (collect_fn_hard_reg_usage): Likewise.
13099 * ira-build.c (ira_build): Likewise.
13100 * ira-color.c (calculate_saved_nregs): Likewise.
13101 (allocno_reload_assign, calculate_spill_cost): Likewise.
13102 * ira-conflicts.c (ira_build_conflicts): Likewise.
13103 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13104 * ira-lives.c (process_bb_node_lives): Likewise.
13105 * ira.c (setup_reg_renumber): Likewise.
13106 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13107 * lra-constraints.c (need_for_call_save_p): Likewise.
13108 (need_for_split_p, inherit_in_ebb): Likewise.
13109 * lra-lives.c (process_bb_lives): Likewise.
13110 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13111 * postreload.c (reload_combine): Likewise.
13112 * regrename.c (find_rename_reg): Likewise.
13113 * reload1.c (reload_as_needed): Likewise.
13114 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13115 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13116 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13117
13118 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13119
13120 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13121 (no_caller_save_reg_set): Delete.
13122 * caller-save.c (init_caller_save): Don't initialize it.
13123 * ira-conflicts.c (ira_build_conflicts): Calculate
13124 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13125
13126 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13127
13128 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13129 (target_hard_regs::x_savable_regs): New field.
13130 (call_fixed_reg_set): Delete.
13131 (savable_regs): New macro,
13132 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13133 (init_reg_sets_1): Likewise. Initialize savable_regs.
13134 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13135 for all registers. Set savable_regs instead of call_fixed_reg_set.
13136 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13137 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13138 * config/sh/sh.c (output_stack_adjust): Likewise.
13139
13140 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13141
13142 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13143 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13144 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13145
13146 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13147
13148 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13149 * rtlanal.c (get_call_rtx_from): Likewise.
13150 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13151 than the pattern to get_call_rtx_from.
13152 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13153 an rtx_insn * instead of an rtx.
13154 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13155
13156 2019-09-10 Martin Liska <mliska@suse.cz>
13157
13158 * common.opt: Use newly added WarnRemoved.
13159 * config/aarch64/aarch64.opt: Likewise.
13160 * config/arm/arm.opt: Likewise.
13161 * config/i386/i386.opt: Likewise.
13162 * config/ia64/ia64.opt: Likewise.
13163 * config/rs6000/rs6000.opt: Likewise.
13164 * doc/options.texi: Document WarnRemoved properly.
13165 * dwarf2out.c (gen_producer_string): Handle renamed
13166 OPT_SPECIAL_warn_removed.
13167 * lto-opts.c (lto_write_options): Likewise.
13168 * lto-wrapper.c (merge_and_complain): Likewise.
13169 * opts-common.c (decode_cmdline_option): Likewise.
13170 (prune_options): Likewise.
13171 (read_cmdline_option): Likewise.
13172 (control_warning_option): Likewise.
13173 * opts.c (print_filtered_help): Likewise.
13174 * optc-gen.awk: Parse for WarnRemoved and make usage
13175 of Deprecated an error.
13176 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13177
13178 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13179
13180 * doc/install.texi: Fix syntax for html generation.
13181
13182 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13183
13184 PR middle-end/91680
13185 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13186 the shift type to type.
13187
13188 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13189
13190 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13191 FDPIC mode.
13192 (stack_protect_combined_test_insn): Likewise.
13193
13194 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13195 Mickaël Guêné <mickael.guene@st.com>
13196
13197 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13198 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13199 (load_tp_soft_fdpic): New pattern.
13200 (load_tp_soft): Disable in FDPIC mode.
13201
13202 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13203 Mickaël Guêné <mickael.guene@st.com>
13204
13205 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13206 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13207 (arm_call_tls_get_addr): Add FDPIC support.
13208 (legitimize_tls_address): Likewise.
13209 (arm_emit_tls_decoration): Likewise.
13210
13211 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13212 Mickaël Guêné <mickael.guene@st.com>
13213
13214 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13215 support.
13216 (arm_trampoline_init): Likewise.
13217 (arm_trampoline_adjust_address): Likewise.
13218 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13219
13220 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13221 Mickaël Guêné <mickael.guene@st.com>
13222
13223 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13224 (legitimize_pic_address): Enforce binding rules on function
13225 pointers in FDPIC mode.
13226 (arm_assemble_integer): Likewise.
13227
13228 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13229 Mickaël Guêné <mickael.guene@st.com>
13230
13231 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13232 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13233 FDPIC.
13234
13235 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13236 Mickaël Guêné <mickael.guene@st.com>
13237
13238 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13239 field.
13240
13241 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13242 Mickaël Guêné <mickael.guene@st.com>
13243
13244 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13245 in FDPIC mode.
13246 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13247 new function.
13248 * config/arm/arm.c (arm_option_override): Define pic register to
13249 FDPIC_REGNUM.
13250 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13251 have no decl or go through PLT.
13252 (calculate_pic_address_constant): New function.
13253 (legitimize_pic_address): Call calculate_pic_address_constant.
13254 (arm_load_pic_register): Handle TARGET_FDPIC.
13255 (arm_is_segment_info_known): New function.
13256 (arm_pic_static_addr): Add support for FDPIC.
13257 (arm_load_function_descriptor): New function.
13258 (arm_emit_call_insn): Add support for FDPIC.
13259 (arm_assemble_integer): Add support for FDPIC.
13260 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13261 Define. (FDPIC_REGNUM): New define.
13262 * config/arm/arm.md (call): Add support for FDPIC.
13263 (call_value): Likewise.
13264 (restore_pic_register_after_call): New pattern.
13265 (untyped_call): Disable if FDPIC.
13266 (untyped_return): Likewise.
13267 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13268
13269 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13270 Mickaël Guêné <mickael.guene@st.com>
13271
13272 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13273 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13274 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13275 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13276 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13277 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13278 * config/arm/uclinuxfdpiceabi.h: New file.
13279
13280 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13281
13282 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13283
13284 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13285 Mickaël Guêné <mickael.guene@st.com>
13286
13287 * config/arm/arm.opt: Add -mfdpic option.
13288 * doc/invoke.texi: Add documentation for -mfdpic.
13289
13290 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13291
13292 * expmed.c (extract_bit_field): Update function comment
13293 regarding alt_rtl.
13294 * expr.c (expand_expr_real): Update function comment
13295 regarding alt_rtl.
13296 (expand_misaligned_mem_ref): New helper function.
13297 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13298 Remove duplicate assignment to "base" at case MEM_REF.
13299 Remove a shadowed variable "unsignedp" at case VCE.
13300
13301 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13302
13303 * regset.h (regs_invalidated_by_call_regset): Delete.
13304 (fixed_reg_set_regset): Likewise.
13305 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13306 (fixed_reg_set_regset, persistent_obstack): Likewise.
13307 (init_reg_sets_1, globalize_reg): Update accordingly.
13308 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13309 instead of a bitmap.
13310 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13311 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13312 instead of regs_invalidated_by_call_regset.
13313 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13314 * df-scan.c (df_scan_start_dump): Likewise.
13315 * dse.c (copy_fixed_regs): Likewise.
13316 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13317
13318 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13319
13320 * array-traits.h: New file.
13321 * coretypes.h (array_traits, bitmap_view): New types.
13322 * bitmap.h: Include "array-traits.h"
13323 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13324 (base_bitmap_view, bitmap_view): New classes.
13325 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13326 * hard-reg-set.h: Include array-traits.h.
13327 (array_traits<HARD_REG_SET>): New struct.
13328 * regset.h (IOR_REG_SET_HRS): New macro.
13329 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13330 rather than iterating over each hard register.
13331 * sched-deps.c (sched_analyze_insn): Likewise.
13332 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13333
13334 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13335
13336 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13337 instead of a HARD_REG_SET *.
13338 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13339 (ira_build): Update call accordingly.
13340 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13341
13342 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13343
13344 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13345 (HARD_REG_SET::operator!=): Likewise.
13346 (hard_reg_set_equal_p): Delete.
13347 * cfgcleanup.c (old_insns_match_p): Use == instead of
13348 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13349 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13350 (add_allocno_hard_regs_to_forest): Likewise.
13351 (setup_allocno_available_regs_num): Likewise.
13352 * ira.c (setup_pressure_classes): Likewise.
13353 (setup_allocno_and_important_classes): Likewise.
13354 (setup_reg_class_relations): Likewise.
13355 * lra-lives.c (process_bb_lives): Likewise.
13356 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13357
13358 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13359
13360 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13361 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13362 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13363 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13364 Likewise.
13365 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13366 * ira.c (setup_reg_renumber): Likewise.
13367 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13368 * regrename.c (regrename_find_superclass): Likewise.
13369 * reload1.c (find_reg): Likewise.
13370
13371 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13372
13373 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13374 * caller-save.c (setup_save_areas): Use "&~" instead of
13375 AND_COMPL_HARD_REG_SET.
13376 (save_call_clobbered_regs): Likewise.
13377 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13378 Likewise.
13379 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13380 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13381 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13382 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13383 (mips_conditional_register_usage): Likewise.
13384 * config/sh/sh.c (output_stack_adjust): Likewise.
13385 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13386 (setup_profitable_hard_regs): Likewise.
13387 (get_conflict_and_start_profitable_regs): Likewise.
13388 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13389 (ira_build_conflicts): Likewise.
13390 * ira-costs.c (restrict_cost_classes): Likewise.
13391 (setup_regno_cost_classes_by_aclass): Likewise.
13392 * ira-lives.c (process_bb_node_lives): Likewise.
13393 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13394 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13395 (setup_allocno_and_important_classes, setup_class_translate_array)
13396 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13397 Likewise.
13398 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13399 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13400 (process_alt_operands, inherit_in_ebb): Likewise.
13401 * lra-eliminations.c (update_reg_eliminate): Likewise.
13402 * lra-lives.c (process_bb_lives): Likewise.
13403 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13404 * resource.c (find_dead_or_set_registers): Likewise.
13405 (mark_target_live_regs): Likewise.
13406 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13407 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13408 (implicit_clobber_conflict_p): Likewise.
13409 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13410 (try_shrink_wrapping): Likewise.
13411
13412 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13413
13414 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13415 (HARD_REG_SET::operator|=): Likewise.
13416 (IOR_HARD_REG_SET): Delete.
13417 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13418 IOR_HARD_REG_SET.
13419 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13420 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13421 * final.c (collect_fn_hard_reg_usage): Likewise.
13422 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13423 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13424 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13425 (propagate_some_info_from_allocno): Likewise.
13426 (copy_info_to_removed_store_destinations): Likewise.
13427 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13428 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13429 (fast_allocation): Likewise.
13430 * ira-conflicts.c (ira_build_conflicts): Likewise.
13431 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13432 (process_bb_node_lives): Likewise.
13433 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13434 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13435 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13436 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13437 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13438 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13439 (process_bb_lives): Likewise.
13440 * lra-spills.c (assign_spill_hard_regs): Likewise.
13441 * postreload.c (reload_combine): Likewise.
13442 * reginfo.c (init_reg_sets_1): Likewise.
13443 * regrename.c (merge_overlapping_regs, find_rename_reg)
13444 (merge_chains): Likewise.
13445 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13446 (find_reload_regs, finish_spills, choose_reload_regs_init)
13447 (emit_reload_insns): Likewise.
13448 * reorg.c (redundant_insn): Likewise.
13449 * resource.c (find_dead_or_set_registers, mark_set_resources)
13450 (mark_target_live_regs): Likewise.
13451 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13452 * sched-deps.c (sched_analyze_insn): Likewise.
13453 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13454 (find_best_reg_for_expr): Likewise.
13455 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13456
13457 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13458
13459 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13460 (HARD_REG_SET::operator&): Likewise.
13461 (AND_HARD_REG_SET): Delete.
13462 * caller-save.c (setup_save_areas): Use "&" instead of
13463 AND_HARD_REG_SET.
13464 (save_call_clobbered_regs): Likewise.
13465 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13466 * config/m32c/m32c.c (reduce_class): Likewise.
13467 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13468 * final.c (get_call_reg_set_usage): Likewise.
13469 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13470 (setup_left_conflict_sizes_p): Likewise.
13471 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13472 (ira_build_conflicts): Likewise.
13473 * ira-costs.c (restrict_cost_classes): Likewise.
13474 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13475 (setup_reg_class_relations): Likewise.
13476 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13477 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13478 * resource.c (find_dead_or_set_registers): Likewise.
13479 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13480
13481 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13482
13483 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13484 (COMPL_HARD_REG_SET): Delete.
13485 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13486 of COMPL_HARD_REG_SET.
13487 (try_rename_operands): Likewise.
13488 * config/sh/sh.c (push_regs): Likewise.
13489 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13490 * lra-constraints.c (contains_reg_p): Likewise.
13491 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13492
13493 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13494
13495 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13496 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13497 of COPY_HARD_REG_SET.
13498 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13499 (epiphany_conditional_register_usage): Likewise.
13500 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13501 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13502 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13503 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13504 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13505 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13506 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13507 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13508 * config/sh/sh.c (output_stack_adjust): Likewise.
13509 * final.c (collect_fn_hard_reg_usage): Likewise.
13510 (get_call_reg_set_usage): Likewise.
13511 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13512 (ira_flattening): Likewise.
13513 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13514 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13515 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13516 (ira_reassign_pseudos): Likewise.
13517 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13518 (ira_build_conflicts): Likewise.
13519 * ira-costs.c (restrict_cost_classes): Likewise.
13520 (setup_regno_cost_classes_by_aclass): Likewise.
13521 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13522 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13523 (setup_stack_reg_pressure_class, setup_pressure_classes)
13524 (setup_allocno_and_important_classes, setup_class_translate_array)
13525 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13526 (ira_setup_eliminable_regset): Likewise.
13527 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13528 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13529 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13530 (process_alt_operands, inherit_in_ebb): Likewise.
13531 * lra-lives.c (process_bb_lives): Likewise.
13532 * lra-spills.c (assign_spill_hard_regs): Likewise.
13533 * lra.c (lra): Likewise.
13534 * mode-switching.c (new_seginfo): Likewise.
13535 * postreload.c (reload_combine): Likewise.
13536 * reg-stack.c (straighten_stack): Likewise.
13537 * reginfo.c (save_register_info, restore_register_info): Likewise.
13538 (init_reg_sets_1, record_subregs_of_mode): Likewise
13539 * regrename.c (create_new_chain, rename_chains): Likewise.
13540 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13541 (find_reload_regs): Likewise.
13542 * resource.c (find_dead_or_set_registers): Likewise.
13543 (mark_target_live_regs): Likewise.
13544 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13545
13546 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13547
13548 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13549 (note_pattern_stores): Declare.
13550 (note_stores): Take an rtx_insn *.
13551 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13552 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13553 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13554 (note_stores): Take an rtx_insn * as argument and process
13555 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13556 (note_pattern_stores): ...this.
13557 (find_first_parameter_load): Pass the insn rather than
13558 its pattern to note_stores.
13559 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13560 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13561 (insert_one_insn): Likewise.
13562 * combine.c (combine_instructions): Likewise.
13563 (likely_spilled_retval_p): Likewise.
13564 (try_combine): Use note_pattern_stores instead of note_stores.
13565 (record_dead_and_set_regs): Pass the insn rather than its pattern
13566 to note_stores.
13567 (reg_dead_at_p): Likewise.
13568 * config/bfin/bfin.c (workaround_speculation): Likewise.
13569 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13570 rather than an rtx.
13571 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13572 instead of note_stores.
13573 (frv_optimize_membar_local): Pass the insn rather than its pattern
13574 to note_stores.
13575 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13576 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13577 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13578 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13579 (mips_reorg_process_insns): Likewise.
13580 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13581 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13582 rather than rtxes.
13583 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13584 its pattern to note_stores.
13585 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13586 of note_stores.
13587 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13588 the insn to note_stores.
13589 (prescan_insns_for_dce): Update call accordingly.
13590 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13591 to note_stores.
13592 * df-problems.c (can_move_insns_across): Likewise.
13593 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13594 * function.c (assign_parm_setup_reg): Likewise.
13595 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13596 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13597 (single_set_gcse): Likewise.
13598 * ira.c (validate_equiv_mem): Likewise.
13599 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13600 for no_equiv.
13601 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13602 pattern to note_stores.
13603 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13604 * loop-iv.c (simplify_using_initial_values): Likewise.
13605 * mode-switching.c (optimize_mode_switching): Likewise.
13606 * optabs.c (emit_libcall_block_1): Likewise.
13607 (expand_atomic_compare_and_swap): Likewise.
13608 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13609 (record_opr_changes): Likewise. Remove explicit handling of
13610 CALL_INSN_FUNCTION_USAGE.
13611 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13612 * regcprop.c (kill_clobbered_values): Likewise.
13613 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13614 to note_stores.
13615 * regrename.c (build_def_use): Likewise.
13616 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13617 for mark_not_eliminable.
13618 (reload_as_needed): Pass the insn rather than its pattern
13619 to note_stores.
13620 (emit_output_reload_insns): Likewise.
13621 * resource.c (mark_target_live_regs): Likewise.
13622 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13623 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13624 instead of note_stores.
13625 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13626 its pattern to note_stores.
13627 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13628 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13629
13630 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13631
13632 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13633 than a #define. Use a structure rather than an array as the
13634 fallback definition. Remove special cases for low array sizes.
13635 (const_hard_reg_set): New typedef.
13636 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13637 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13638 (hard_reg_set_empty_p): Likewise.
13639 (SET_HARD_REG_BIT): Use a function rather than a macro to
13640 handle the case in which HARD_REG_SET is a structure.
13641 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13642 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13643 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13644 (IOR_COMPL_HARD_REG_SET): Likewise.
13645 (hard_reg_set_iterator::pset): Constify the pointer target.
13646 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13647 of a "const HARD_REG_SET". Update the handling of non-integer
13648 HARD_REG_SETs.
13649 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13650 * reload.h: Likewise.
13651 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13652 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13653 of a "const HARD_REG_SET".
13654 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13655 (range_in_hard_reg_set_p): Likewise.
13656 * ira-costs.c (restrict_cost_classes): Likewise.
13657 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13658 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13659 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13660 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13661 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13662 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13663 take an unsigned int and open-code the HARD_REG_SET operations.
13664
13665 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13666
13667 * Makefile.in (OBJS): Remove bt-load.o.
13668 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13669 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13670 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13671 document that the option no longer does anything.
13672 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13673 * target.def (branch_target_register_class): Delete.
13674 (branch_target_register_callee_saved): Likewise.
13675 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13676 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13677 * doc/tm.texi: Regenerate.
13678 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13679 (make_pass_branch_target_load_optimize2): Likewise.
13680 * passes.def (pass_branch_target_load_optimize1): Likewise.
13681 (pass_branch_target_load_optimize2): Likewise.
13682 * targhooks.h (default_branch_target_register_class): Likewise.
13683 * targhooks.c (default_branch_target_register_class): Likewise.
13684 * opt-suggestions.c (test_completion_valid_options): Remove
13685 -fbtr-bb-exclusive from the list of test options.
13686 * bt-load.c: Remove.
13687
13688 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13689
13690 * match.pd: Add flag_unsafe_math_optimizations check
13691 before deciding on the widest type in a binary math operation.
13692
13693 2019-09-09 Martin Liska <mliska@suse.cz>
13694
13695 * config/i386/i386.opt: Update comment of removed
13696 options that are preserved only for backward
13697 compatibility.
13698
13699 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13700
13701 PR target/87853
13702 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13703 instead of __v16qs.
13704
13705 PR target/91704
13706 * config/i386/avxintrin.h (__v32qs): New typedef.
13707 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13708 instead of __v32qi.
13709
13710 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13711
13712 * doc/invoke.texi (Option Summary): Cover eBPF.
13713 (eBPF Options): New section.
13714 * doc/extend.texi (BPF Built-in Functions): Likewise.
13715 (BPF Kernel Helpers): Likewise.
13716
13717 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13718
13719 * config.gcc: Support for bpf-*-* targets.
13720 * common/config/bpf/bpf-common.c: New file.
13721 * config/bpf/t-bpf: Likewise.
13722 * config/bpf/predicates.md: Likewise.
13723 * config/bpf/constraints.md: Likewise.
13724 * config/bpf/bpf.opt: Likewise.
13725 * config/bpf/bpf.md: Likewise.
13726 * config/bpf/bpf.h: Likewise.
13727 * config/bpf/bpf.c: Likewise.
13728 * config/bpf/bpf-protos.h: Likewise.
13729 * config/bpf/bpf-opts.h: Likewise.
13730 * config/bpf/bpf-helpers.h: Likewise.
13731 * config/bpf/bpf-helpers.def: Likewise.
13732
13733 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13734
13735 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13736 indirect_calls.
13737
13738 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13739
13740 * opt-functions.awk (integer_range_info): Make sure values are in
13741 numeric context before operating with them.
13742
13743 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13744
13745 * genemit.c (gen_split): Print the filename and line number where the
13746 splitter (or peephole2) was defined, to the dump file.
13747
13748 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13749
13750 PR tree-optimization/91665
13751 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13752 incompatible with the type of PHI result.
13753
13754 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13755
13756 PR target/91684
13757 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13758 gen_unaligned_storedi for 4-byte aligned addresses.
13759
13760 2019-09-06 Jim Wilson <jimw@sifive.com>
13761
13762 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13763 change.
13764
13765 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13766
13767 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13768
13769 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13770
13771 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13772 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13773
13774 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13775
13776 PR target/91654
13777 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13778 cost of SSE->integer and integer->SSE moves from 2 to 6.
13779 (core_cost): Ditto.
13780
13781 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13782
13783 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13784 before testing TYPE_TRANSPARENT_AGGR.
13785 * calls.c (initialize_argument_information, load_register_parameters):
13786 Likewise.
13787
13788 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13789
13790 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13791 high regs.
13792 (cmp_ior): Likewise.
13793
13794 2019-09-06 Martin Liska <mliska@suse.cz>
13795
13796 * doc/match-and-simplify.texi: Separate tuples with ;.
13797
13798 2019-09-06 Martin Liska <mliska@suse.cz>
13799
13800 PR c++/91125
13801 * Makefile.in: Remove tlink.o.
13802 * collect2.c (do_link): New function isolated
13803 from do_tlink.
13804 (main): Use.
13805 * collect2.h (do_tlink): Remove declaration of do_tlink.
13806 * doc/extend.texi: Remove documentation of -frepo.
13807 * doc/invoke.texi: Likewise.
13808 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13809 * tlink.c: Remove.
13810
13811 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13812 Jim Wilson <jimw@sifive.com>
13813
13814 PR target/91635
13815 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13816 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13817 paradoxical_subreg_p (operands[0]).
13818 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13819 use as intermediate value.
13820
13821 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13822
13823 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13824 (sync_compare_and_swap<mode>_insn): Likewise.
13825
13826 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13827
13828 PR middle-end/91615
13829 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13830 without movmisalign optab.
13831
13832 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13833
13834 PR middle-end/91001
13835 PR middle-end/91105
13836 PR middle-end/91106
13837 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13838 types, use type of their first field instead of type of
13839 args[i].tree_value.
13840
13841 2019-09-05 Richard Biener <rguenther@suse.de>
13842
13843 PR rtl-optimization/91656
13844 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13845 of early out.
13846
13847 2019-09-05 Richard Biener <rguenther@suse.de>
13848
13849 PR middle-end/90501
13850 * tree-inline.c (declare_return_variable): Mark the return
13851 slot as addressable after building an address of it.
13852
13853 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13854
13855 * doc/install.texi: Update and clarify requirements to build GNAT.
13856
13857 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13858
13859 PR middle-end/91577
13860 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13861 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13862 call to be in memory.
13863 (pass_expand::execute): Call discover_nonconstant_array_refs before
13864 setting currently_expanding_to_rtl.
13865
13866 2019-09-04 Caroline Tice <cmtice@google.com>
13867
13868 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13869 specified together.
13870
13871 2019-09-04 Marek Polacek <polacek@redhat.com>
13872
13873 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13874
13875 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13876
13877 PR target/32413
13878 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13879 for QI and HImode moves between SSE and general registers.
13880
13881 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13882
13883 PR c/78736
13884 * doc/invoke.texi: Document -Wenum-conversion.
13885
13886 2019-09-04 Richard Biener <rguenther@suse.de>
13887
13888 PR rtl-optimization/36262
13889 * postreload-gcse.c: Include intl.h and gcse.h.
13890 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13891 to avoid linear list walk.
13892 (record_last_mem_set_info): Gate off if not computing transparentness.
13893 (get_bb_avail_insn): If transparentness isn't computed give up
13894 early.
13895 (gcse_after_reload_main): Skip compute_transp and extended PRE
13896 if gcse_or_cprop_is_too_expensive says so.
13897
13898 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13899
13900 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13901 noinit section.
13902 (msp430_select_section): Handle decls with the "noinit" attribute with
13903 default_elf_select_section.
13904 Handle SECCAT_RODATA_MERGE_* section types with
13905 default_elf_select_section.
13906 Add comments about handling of unsupported section types.
13907 (msp430_section_type_flags): Remove handling of the noinit section.
13908
13909 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13910
13911 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13912 conflicting msp430-specific attributes.
13913 (msp430_section_attr): Likewise.
13914 Add warnings about conflicts with generic "noinit" and "section"
13915 attributes.
13916 Fix grammar in -mlarge error message.
13917 (msp430_data_attr): Rename to msp430_persist_attr.
13918 Add warnings about conflicts with generic "noinit" and "section"
13919 attributes.
13920 Add warning for when variable is not initialized.
13921 Chain conditionals which prevent the attribute being added.
13922 (ATTR_EXCL): New helper.
13923 (attr_reent_exclusions): New exclusion table.
13924 (attr_naked_exclusions): Likewise.
13925 (attr_crit_exclusions): Likewise.
13926 (attr_lower_exclusions): Likewise.
13927 (attr_upper_exclusions): Likewise.
13928 (attr_either_exclusions): Likewise.
13929 (attr_persist_exclusions): Likewise.
13930 (msp430_attribute_table): Update with exclusion rules.
13931 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13932 has a section.
13933
13934 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13935
13936 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13937 (msp430_handle_generic_attribute): New function.
13938 * doc/tm.texi: Regenerate.
13939 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13940 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13941 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13942 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13943
13944 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13945
13946 PR tree-optimization/91504
13947 * match.pd: Add ((~a & b) ^a) --> (a | b).
13948
13949 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13950
13951 PR target/91604
13952 * config/i386/i386-expand.c (split_double_mode): If there is more than
13953 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13954 already split matching MEM operand instead of calling adjust_address
13955 again.
13956
13957 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13958
13959 * config.gcc: Obsolete spu target. Remove references to spu.
13960 * configure.ac: Remove references to spu.
13961 * configure: Regenerate.
13962 * config/spu/: Remove directory.
13963 * common/config/spu/: Remove directory.
13964
13965 * doc/extend.texi: Remove references to spu.
13966 * doc/invoke.texi: Likewise.
13967 * doc/md.texi: Likewise.
13968 * doc/sourcebuild.texi: Likewise.
13969
13970 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13971
13972 PR middle-end/91603
13973 PR middle-end/91612
13974 PR middle-end/91613
13975 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13976 and SSA_NAME referring to CONSTANT_P correctly.
13977
13978 2019-09-03 Richard Biener <rguenther@suse.de>
13979
13980 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13981 (vn_nary_op_insert): Likewise.
13982 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13983 (vn_nary_op_lookup): Likewise.
13984 (vn_nary_op_insert): Likewise.
13985
13986 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13987
13988 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13989 (*op0, 1) instead of XEXP (*op1, 0).
13990
13991 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13992
13993 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13994 (aarch64_fjcvtzs): New define_insn.
13995 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13996 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13997 Add AARCH64_JSCVT.
13998 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13999 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14000 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14001 __ARM_FEATURE_JCVT where appropriate.
14002 * config/aarch64/arm_acle.h (__jcvt): Define.
14003
14004 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14005
14006 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14007 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14008 (aarch64_<frintnzs_op><mode>): New define_insn.
14009 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14010 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14011 __ARM_FEATURE_FRINT when appropriate.
14012 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14013 frint32x, frint64z, frint64x.
14014 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14015 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14016 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14017 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14018 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14019 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14020 * config/aarch64/iterators.md (VSFDF): Define.
14021 (FRINTNZX): Likewise.
14022 (frintnzs_op): Likewise.
14023
14024 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14025
14026 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14027 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14028 Cortex-A34.
14029 * config/aarch64/aarch64-tune.md: Regenerated.
14030 * doc/invoke.texi: Document the new processors.
14031
14032 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14033
14034 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14035 string.
14036 (ssbs): Likewise.
14037 (sve2): Likewise.
14038 (sve2-sm4): Likewise.
14039 (sveaes): Likewise.
14040 (svesha3): Likewise.
14041 (svebitperm): Likewise.
14042
14043 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14044 Richard Biener <rguenther@suse.de>
14045
14046 PR tree-optimization/91597
14047 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14048 BIT_AND_EXPR optimization for pointers, even if both operand
14049 ranges don't include NULL, the result can be NULL.
14050
14051 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14052
14053 PR middle-end/91605
14054 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14055 (non_mem_decl_p): ...this.
14056 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14057 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14058 unconditionally as before.
14059
14060 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14061
14062 PR target/91323
14063 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14064 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14065 * tree.def (LTGT_EXPR): Likewise.
14066 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14067
14068 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14069
14070 PR go/91617
14071 * fold-const.c (range_check_type): For enumeral and boolean
14072 type, pass 1 to type_for_size langhook instead of
14073 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14074 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14075 (build_range_check): Don't call unsigned_type_for for pointer types.
14076 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14077 range_check_type result.
14078
14079 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14080
14081 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14082 (replace_ref): Do not replace a chain of only two candidates which are
14083 valid memory references.
14084
14085 2019-09-02 Martin Liska <mliska@suse.cz>
14086
14087 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14088 Bail out when we'll end up with the same number of clusters as
14089 at the beginning.
14090 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14091 (jump_table_cluster::can_be_handled): Remove the guard
14092 as it's already handled in ::is_enabled. Allocate output
14093 after early bail out.
14094
14095 2019-09-02 Martin Liska <mliska@suse.cz>
14096
14097 PR gcov-profile/91601
14098 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14099 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14100 also negative edges.
14101 (circuit): Handle also negative edges as they can happen
14102 in some situations.
14103
14104 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14105
14106 PR target/91472
14107 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14108 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14109 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14110
14111 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14112
14113 PR middle-end/91623
14114 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14115 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14116 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14117 zero vector.
14118
14119 PR lto/91572
14120 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14121 GIMPLE_ASM TREE_LIST operands.
14122
14123 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14124
14125 * doc/generic.texi (Unary and Binary Expressions): Mark up
14126 an instance of TYPE_MIN.
14127
14128 2019-08-31 Stafford Horne <shorne@gmail.com>
14129
14130 * config/or1k/constraints.md (t): New constraint.
14131 * config/or1k/or1k.h (GOT_REGS): New register class.
14132 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14133
14134 2019-08-30 Jim Wilson <jimw@sifive.com>
14135
14136 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14137 and -fpic and -mplt then disable -msave-restore and warn.
14138
14139 2019-08-30 Martin Sebor <msebor@redhat.com>
14140
14141 PR middle-end/91599
14142 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14143 the statement doesn't have one.
14144 * gimple-pretty-print.c (percent_G_format): Same.
14145
14146 PR middle-end/91584
14147 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14148 before using them to validate MEM_REF offset.
14149
14150 2019-08-30 Marek Polacek <polacek@redhat.com>
14151
14152 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14153
14154 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14155
14156 * config/arm/arm.md (unaligned_loaddi,
14157 unaligned_storedi): New unspec insn patterns.
14158 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14159 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14160 and unaligned_storedi for 4-byte aligned memory.
14161 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14162 4-byte aligned memory.
14163
14164 2019-08-30 Martin Jambor <mjambor@suse.cz>
14165
14166 tree-optimization/91579
14167 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14168 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14169 appropriate.
14170 (arg_needs_copy_p): Removed.
14171 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14172 arg_needs_copy_p.
14173 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14174
14175 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14176
14177 * config/i386/i386-features.c
14178 (general_scalar_chain::compute_convert_gain):
14179 Correct cost for double-word shifts.
14180 (general_scalar_to_vector_candidate_p): Reject count operands
14181 greater or equal to mode bitsize.
14182
14183 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14184
14185 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14186 for moves between SSE and non-general registers and between
14187 mask and non-general registers.
14188 (ix86_register_move_cost): Remove stalled comment.
14189
14190 2019-08-29 Richard Biener <rguenther@suse.de>
14191
14192 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14193 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14194
14195 2019-08-29 Richard Biener <rguenther@suse.de>
14196
14197 PR bootstrap/91580
14198 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14199 Do not emit scalar copies for debug-insns, instead replace
14200 their uses with the reg copy used in the chain or reset them
14201 if there is a reaching definition outside of the chain as well.
14202
14203 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14204
14205 PR target/91560
14206 * config/i386/i386-expand.c (expand_vec_perm_movs,
14207 expand_vec_perm_blend, expand_vec_perm_vpermil,
14208 expand_vec_perm_pshufb, expand_vec_perm_1,
14209 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14210 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14211 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14212 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14213 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14214 comments - replace ix86_expand_vec_perm_builtin_1 with
14215 ix86_expand_vec_perm_const_1.
14216 (expand_vec_perm2_vperm2f128_vblend): New function.
14217 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14218 expand_vec_perm2_vperm2f128_vblend as last resort.
14219 (canonicalize_perm): Formatting fix.
14220
14221 PR tree-optimization/91351
14222 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14223 unsigned_type_for.
14224 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14225 range_check_type returns NULL.
14226 * tree-switch-conversion.c (switch_conversion::build_one_array):
14227 Use range_check_type instead of unsigned_type_for, don't perform
14228 linear opt if it returns NULL.
14229 (bit_test_cluster::find_bit_tests): Formatting fix.
14230 (bit_test_cluster::emit): Use range_check_type instead of
14231 unsigned_type_for.
14232 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14233 returns NULL.
14234
14235 2019-08-29 Richard Biener <rguenther@suse.de>
14236
14237 PR tree-optimization/91568
14238 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14239 (vect_update_max_nunits): Add overload for poly_uint64.
14240 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14241 (vect_build_slp_tree): Record max_nunits into the subtree
14242 and merge it upwards.
14243 (vect_print_slp_tree): Print max_nunits.
14244
14245 2019-08-28 Marek Polacek <polacek@redhat.com>
14246
14247 Implement P1152R4: Deprecating some uses of volatile.
14248 PR c++/91361
14249 * doc/invoke.texi: Document -Wvolatile.
14250
14251 2019-08-28 Marek Polacek <polacek@redhat.com>
14252
14253 PR c++/91360 - Implement C++20 P1143R2: constinit.
14254 * doc/invoke.texi: Document -Wc++20-compat.
14255
14256 2019-08-28 Martin Sebor <msebor@redhat.com>
14257
14258 PR tree-optimization/91457
14259 * builtins.c (component_size): New function.
14260 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14261 * builtins.h (compute_objsize): Add argument.
14262 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14263 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14264 (vrp_prop::check_mem_ref): Same.
14265 (vrp_prop::search_for_addr_array): Set no-warning bit.
14266 (check_array_bounds): Same.
14267
14268 2019-08-28 Martin Sebor <msebor@redhat.com>
14269
14270 PR driver/80545
14271 * opts-common.c (option_enabled): Correct checking for language
14272 options.
14273
14274 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14275
14276 * config/i386/i386.c (ix86_register_move_cost): Do not
14277 limit the cost of moves to/from XMM register to minimum 8.
14278
14279 2019-08-28 Martin Jambor <mjambor@suse.cz>
14280
14281 PR ipa/91468
14282 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14283 checking assert a normal assert to test it really is redundant.
14284 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14285 redundant test.
14286 (update_jump_functions_after_inlining): Removed combining unary
14287 arithmetic operations with an ancestor jump function.
14288 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14289 instead of t.
14290
14291 2019-08-28 Richard Biener <rguenther@suse.de>
14292
14293 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14294 add the MD problem.
14295
14296 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14297 Richard Biener <rguenther@suse.de>
14298
14299 * expr.c (expand_assignment): Handle misaligned DECLs.
14300 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14301 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14302 too.
14303 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14304 * varasm.c (build_constant_desc): Align constants of misaligned types.
14305 * config/arm/predicates.md (aligned_operand): New predicate.
14306 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14307 aligned_operand to check restrictions on memory addresses.
14308 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14309 * config/arm/vec-common.md (mov<VALL>): Likewise.
14310
14311 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14312
14313 PR libgomp/91530
14314 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14315 V_128 iterator instead of VI_128.
14316
14317 2019-08-28 Martin Liska <mliska@suse.cz>
14318
14319 PR tree-optimization/90970
14320 * builtins.c (check_access): Remove assignment to maxread
14321 as it hasn't been used since when it was introduced in r255755.
14322
14323 2019-08-27 Martin Sebor <msebor@redhat.com>
14324
14325 PR tree-optimization/91567
14326 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14327 of unknown strings.
14328 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14329 to PTRDIFF_MAX - 2.
14330
14331 2019-08-27 Jeff Law <law@redhat.com>
14332
14333 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14334 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14335
14336 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14337
14338 PR target/91528
14339 * config/i386/i386-features.c (convert_scalars_to_vector):
14340 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14341 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14342 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14343 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14344
14345 2019-08-27 Richard Biener <rguenther@suse.de>
14346
14347 * config/i386/i386-features.h
14348 (general_scalar_chain::~general_scalar_chain): Add.
14349 (general_scalar_chain::insns_conv): New bitmap.
14350 (general_scalar_chain::n_sse_to_integer): New.
14351 (general_scalar_chain::n_integer_to_sse): Likewise.
14352 (general_scalar_chain::make_vector_copies): Adjust signature.
14353 * config/i386/i386-features.c
14354 (general_scalar_chain::general_scalar_chain): Outline,
14355 initialize new members.
14356 (general_scalar_chain::~general_scalar_chain): New.
14357 (general_scalar_chain::mark_dual_mode_def): Record insns
14358 we need to insert conversions at and count them.
14359 (general_scalar_chain::compute_convert_gain): Account
14360 for conversion instructions at chain boundary.
14361 (general_scalar_chain::make_vector_copies): Generate a single
14362 copy for a def by a specific insn.
14363 (general_scalar_chain::convert_registers): First populate
14364 defs_map, then make copies at out-of chain insns.
14365
14366 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14367
14368 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14369 comment.
14370 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14371
14372 2019-08-27 Martin Liska <mliska@suse.cz>
14373
14374 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14375 loop.
14376 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14377 Enclose in anonymous namespace.
14378 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14379 hard_register initialization in braces.
14380 * tree-vrp.h (value_range_base::supports_type_p): Return false
14381 for function with boolean return type.
14382
14383 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14384
14385 * config/i386/i386.c (emit_i387_cw_initialization)
14386 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14387
14388 2019-08-26 Martin Sebor <msebor@redhat.com>
14389
14390 PR c++/83431
14391 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14392 (sprintf_dom_walker): Remove class.
14393 (get_int_range): Make argument const.
14394 (directive::fmtfunc, directive::set_precision): Same.
14395 (format_none): Same.
14396 (build_intmax_type_nodes): Same.
14397 (adjust_range_for_overflow): Same.
14398 (format_floating): Same.
14399 (format_character): Same.
14400 (format_string): Same.
14401 (format_plain): Same.
14402 (get_int_range): Cast away constness.
14403 (format_integer): Same.
14404 (get_string_length): Call get_range_strlen_dynamic. Handle
14405 null lendata.maxbound.
14406 (should_warn_p): Adjust argument scope qualifier.
14407 (maybe_warn): Same.
14408 (format_directive): Same.
14409 (parse_directive): Same.
14410 (is_call_safe): Same.
14411 (try_substitute_return_value): Same.
14412 (sprintf_dom_walker::handle_printf_call): Rename...
14413 (handle_printf_call): ...to this. Initialize target to host charmap
14414 here instead of in pass_sprintf_length::execute.
14415 (struct call_info): Make global.
14416 (sprintf_dom_walker::compute_format_length): Make global.
14417 (sprintf_dom_walker::handle_gimple_call): Same.
14418 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14419 * print-rtl.c (print_pattern): Reduce the number of spaces to
14420 avoid -Wformat-truncation.
14421 * tree-pass.h (make_pass_warn_printf): New function.
14422 * tree-ssa-strlen.c (strlen_optimize): New variable.
14423 (get_string_length): Add comments.
14424 (get_range_strlen_dynamic): New function.
14425 (check_and_optimize_call): New function.
14426 (handle_integral_assign): New function.
14427 (strlen_check_and_optimize_stmt): Factor code out into
14428 strlen_check_and_optimize_call and handle_integral_assign.
14429 (strlen_dom_walker::evrp): New member.
14430 (strlen_dom_walker::before_dom_children): Use evrp member.
14431 (strlen_dom_walker::after_dom_children): Use evrp member.
14432 (printf_strlen_execute): New function.
14433 (pass_strlen::gate): Update to handle printf calls.
14434 (dump_strlen_info): New function.
14435 (pass_data_warn_printf): New variable.
14436 (pass_warn_printf): New class.
14437 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14438 (handle_printf_call): Same.
14439 * tree-vrp.c (value_range_base::type): Adjust assertion.
14440 * vr-values.c (vr_values::update_value_range): Use type of the first
14441 argument rather than the second.
14442
14443 2019-08-26 Richard Biener <rguenther@suse.de>
14444
14445 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14446 Remove.
14447 (convert_scalars_to_vector): Do not call it.
14448
14449 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14450 Uros Bizjak <ubizjak@gmail.com>
14451
14452 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14453 CASE_MATHFN_FLOATN for roundeven.
14454 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14455 I387_ROUNDEVEN.
14456 (ix86_mode_needed): Likewise.
14457 (ix86_mode_after): Likewise.
14458 (ix86_mode_entry): Likewise.
14459 (ix86_mode_exit): Likewise.
14460 (ix86_emit_mode_set): Likewise.
14461 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14462 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14463 (ix86_entity): Add I387_ROUNDEVEN.
14464 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14465 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14466 (define_int_iterator): Likewise.
14467 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14468 (define_constant): Define ROUND_ROUNDEVEN mode.
14469 (define_attr): Add roundeven mode for i387_cw.
14470 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14471 * internal-fn.def (ROUNDEVEN): New builtin function.
14472 * optabs.def (roundeven_optab): New optab.
14473
14474 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14475
14476 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14477 for ROUNDEVEN.
14478 * builtins.def: Added function definitions for roundeven function
14479 variants.
14480 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14481 function call. Adjust condition for floor, ceil, trunc and round.
14482 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14483 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14484 (integer_valued_real_call_p): Added case for roundeven function.
14485 * real.c (is_even): New function. Returns true if real number is even,
14486 otherwise returns false.
14487 (is_halfway_below): New function. Returns true if real number is
14488 halfway between two integers, else return false.
14489 (real_roundeven): New function. Round real number to nearest integer,
14490 rounding halfway cases towards even.
14491 * real.h (real_value): Added descriptive comments. Added function
14492 declaration for roundeven function.
14493 * doc/extend.texi (Other Builtins): List roundeven variants among
14494 functions which can be handled as builtins.
14495
14496 2019-08-26 Richard Biener <rguenther@suse.de>
14497
14498 PR target/91522
14499 PR target/91527
14500 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14501 New member.
14502 (general_scalar_chain::replace_with_subreg): Remove.
14503 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14504 (general_scalar_chain::convert_reg): Adjust signature.
14505 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14506 iterate over all defs of a reg.
14507 (general_scalar_chain::replace_with_subreg): Remove.
14508 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14509 (general_scalar_chain::make_vector_copies): Populate defs_map,
14510 place copy only after defs that are used as vectors in the chain.
14511 (general_scalar_chain::convert_reg): Emit a copy for a specific
14512 def in a specific instruction.
14513 (general_scalar_chain::convert_op): All reg uses are converted here.
14514 (general_scalar_chain::convert_insn): Emit copies for scalar
14515 uses of defs here. Replace uses with the copies we created.
14516 Replace and convert the def. Adjust REG_DEAD notes, remove
14517 REG_EQUIV/EQUAL notes.
14518 (general_scalar_chain::convert_registers): Only handle copies
14519 into the chain here.
14520
14521 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14522
14523 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14524
14525 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14526
14527 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14528 Add nop_convert case.
14529 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14530 Fold all statements if requested.
14531 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14532 Allow to fold all statements.
14533 * tree-vrp.c (class vrp_folder):
14534 Let substitute_and_fold_engine fold all statements.
14535
14536 2019-08-26 Richard Biener <rguenther@suse.de>
14537
14538 PR tree-optimization/91526
14539 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14540 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14541 TODO_update_address_taken.
14542
14543 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14544
14545 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14546 __STDC_HOSTED__.
14547
14548 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14549
14550 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14551 machine mode for unspec_volatile operand.
14552
14553 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14554
14555 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14556 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14557 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14558 (prefer_neon_for_64bits): Remove.
14559 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14560 (tune_params): Remove PREF_NEON_64_FALSE uses.
14561 (arm_option_override): Remove prefer_neon selection code.
14562 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14563 * config/arm/arm-protos.h (tune_params): Remove
14564 prefer_neon_for_64bits.
14565 (prefer_neon_for_64bits): Remove.
14566
14567 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14568
14569 PR pch/61250
14570 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14571 and issue any diagnostics needed before collecting the pre-PCH
14572 state.
14573
14574 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14575
14576 PR middle-end/91283
14577 * common.opt (fexcess-precision=): Add Optimization flag. Use
14578 flag_excess_precision variable instead of
14579 flag_excess_precision_cmdline.
14580 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14581 member.
14582 (flag_excess_precision): Don't define.
14583 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14584 flag_excess_precision_cmdline. Remove comment.
14585 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14586 and x_flag_excess_precision instead of
14587 frontend_set_flag_excess_precision_cmdline and
14588 x_flag_excess_precision_cmdline.
14589 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14590 x_flag_excess_precision_cmdline.
14591 * toplev.c (init_excess_precision): Remove.
14592 (lang_dependent_init_target): Don't call it.
14593
14594 2019-08-23 Martin Liska <mliska@suse.cz>
14595
14596 * lto-wrapper.c (run_gcc): When setting jobserver
14597 set also parallel to 1. This was done so before r273908.
14598
14599 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14600
14601 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14602 (cortex-a76ae): Likewise.
14603 (cortex-a77): Likewise
14604 * config/arm/arm-tables.opt: Regenerate.
14605 * config/arm/arm-tune.md: Likewise.
14606 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14607 cortex-a77 CPU options.
14608
14609 2019-08-23 Martin Liska <mliska@suse.cz>
14610
14611 * profile.c (instrument_values): Do not set
14612 0 as last argument.
14613 * tree-profile.c (gimple_gen_interval_profiler): Remove
14614 last argument.
14615 (gimple_gen_pow2_profiler): Likewise.
14616 (gimple_gen_topn_values_profiler): Likewise.
14617 (gimple_gen_ic_profiler): Likewise.
14618 (gimple_gen_time_profiler): Likewise.
14619 (gimple_gen_average_profiler): Likewise.
14620 (gimple_gen_ior_profiler): Likewise.
14621 * value-prof.c (dump_histogram_value): Use default
14622 in switch statement instead of HIST_TYPE_MAX.
14623 (stream_in_histogram_value): Likewise.
14624 (gimple_duplicate_stmt_histograms): Do not
14625 use NULL for implicitly set arguments.
14626 (gimple_divmod_values_to_profile): Do not use
14627 reserve+quick_push.
14628 (gimple_indirect_call_to_profile): Likewise.
14629 (gimple_find_values_to_profile): Use implicit
14630 function call arguments.
14631 * value-prof.h (gimple_alloc_histogram_value):
14632 Set default values.
14633 (gimple_gen_interval_profiler): Remove last argument.
14634 (gimple_gen_pow2_profiler): Likewise.
14635 (gimple_gen_topn_values_profiler): Likewise.
14636 (gimple_gen_ic_profiler): Likewise.
14637 (gimple_gen_time_profiler): Likewise.
14638 (gimple_gen_average_profiler): Likewise.
14639 (gimple_gen_ior_profiler): Likewise.
14640
14641 2019-08-22 Martin Sebor <msebor@redhat.com>
14642
14643 PR middle-end/91490
14644 * builtins.c (c_strlen): Rename argument and introduce new local.
14645 Set no-warning bit on original argument.
14646 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14647 Fold empty and zero constructors into empty strings.
14648 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14649 for missing initializers.
14650 * tree.c (build_string_literal): Handle optional argument.
14651 * tree.h (build_string_literal): Add defaulted argument.
14652 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14653 no-warning bit on original expression.
14654
14655 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14656
14657 PR target/91481
14658 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14659 and UNSPEC_DARN_RAW.
14660 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14661 UNSPECV_DARN_RAW.
14662 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14663 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14664 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14665
14666 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14667
14668 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14669 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14670 * config/rs6000/rs6000.md (unspec): ... here.
14671 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14672 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14673 cmpeqb, *cmpeqb_internal): Delete, move to...
14674 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14675 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14676 cmpeqb, *cmpeqb_internal): ... here.
14677
14678 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14679
14680 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14681 intrinsics if __ARM_FP.
14682 Use __ARM_FEATURE_CRC32 ifdef guard.
14683
14684 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14685
14686 * config/arm/arm.md (neon_for_64bits): Remove.
14687 (avoid_neon_for_64bits): Remove.
14688 (arm_adddi3): Always split early.
14689 (arm_subdi3): Always split early.
14690 (negdi2): Remove Neon expansion.
14691 (split zero_extend): Split before reload.
14692 (split sign_extend): Split before reload.
14693
14694 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14695
14696 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14697 (qhs_extenddi_cstr): Likewise.
14698 * config/arm/arm.md (ashldi3): Always expand early.
14699 (ashlsi3): Likewise.
14700 (ashrsi3): Likewise.
14701 (zero_extend<mode>di2): Remove Neon variants.
14702 (extend<mode>di2): Likewise.
14703 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14704 (signed_shift_di3_neon): Likewise.
14705 (unsigned_shift_di3_neon): Likewise.
14706 (ashrdi3_neon_imm_noclobber): Likewise.
14707 (lshrdi3_neon_imm_noclobber): Likewise.
14708 (<shift>di3_neon): Likewise.
14709 (split extend): Remove DI extend split patterns.
14710
14711 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14712
14713 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14714 (split not): Add DImode not splitter.
14715 (anddi3): Remove pattern.
14716 (anddi3_insn): Likewise.
14717 (anddi_zesidi_di): Likewise.
14718 (anddi_sesdi_di): Likewise.
14719 (anddi_notdi_di): Likewise.
14720 (anddi_notzesidi_di): Likewise.
14721 (anddi_notsesidi_di): Likewise.
14722 (iordi3): Likewise.
14723 (iordi3_insn): Likewise.
14724 (iordi_zesidi_di): Likewise.
14725 (iordi_sesidi_di): Likewise.
14726 (xordi3): Likewise.
14727 (xordi3_insn): Likewise.
14728 (xordi_sesidi_di): Likewise.
14729 (xordi_zesidi_di): Likewise.
14730 (one_cmpldi2): Likewise.
14731 (one_cmpldi2_insn): Likewise.
14732 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14733 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14734 alternative.
14735 (iwmmxt_xordi3): Likewise.
14736 (iwmmxt_anddi3): Likewise.
14737 * config/arm/neon.md (orndi3_neon): Remove pattern.
14738 (anddi_notdi_di): Likewise.
14739 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14740 (arm_iordi_operand_neon): Likewise.
14741 (arm_xordi_operand_neon): Likewise.
14742 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14743 (iordi_notzesidi_di): Likewise.
14744 (iordi_notdi_zesidi): Likewise.
14745 (iordi_notsesidi_di): Likewise.
14746
14747 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14748
14749 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14750 insn.
14751 (iorsi3_compare0_scratch): Likewise.
14752
14753 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14754
14755 * config/aarch64/aarch64-simd-builtins.def:
14756 (ld1x4): New.
14757 (st1x4): Likewise.
14758 * config/aarch64/aarch64-simd.md:
14759 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14760 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14761 (aarch64_ld1_x4_<mode>): Likewise.
14762 (aarch64_st1_x4_<mode>): Likewise.
14763 * config/aarch64/arm_neon.h:
14764 (vld1_s8_x4): New function.
14765 (vld1q_s8_x4): Likewise.
14766 (vld1_s16_x4): Likewise.
14767 (vld1q_s16_x4): Likewise.
14768 (vld1_s32_x4): Likewise.
14769 (vld1q_s32_x4): Likewise.
14770 (vld1_u8_x4): Likewise.
14771 (vld1q_u8_x4): Likewise.
14772 (vld1_u16_x4): Likewise.
14773 (vld1q_u16_x4): Likewise.
14774 (vld1_u32_x4): Likewise.
14775 (vld1q_u32_x4): Likewise.
14776 (vld1_f16_x4): Likewise.
14777 (vld1q_f16_x4): Likewise.
14778 (vld1_f32_x4): Likewise.
14779 (vld1q_f32_x4): Likewise.
14780 (vld1_p8_x4): Likewise.
14781 (vld1q_p8_x4): Likewise.
14782 (vld1_p16_x4): Likewise.
14783 (vld1q_p16_x4): Likewise.
14784 (vld1_s64_x4): Likewise.
14785 (vld1_u64_x4): Likewise.
14786 (vld1_p64_x4): Likewise.
14787 (vld1q_s64_x4): Likewise.
14788 (vld1q_u64_x4): Likewise.
14789 (vld1q_p64_x4): Likewise.
14790 (vld1_f64_x4): Likewise.
14791 (vld1q_f64_x4): Likewise.
14792 (vst1_s8_x4): Likewise.
14793 (vst1q_s8_x4): Likewise.
14794 (vst1_s16_x4): Likewise.
14795 (vst1q_s16_x4): Likewise.
14796 (vst1_s32_x4): Likewise.
14797 (vst1q_s32_x4): Likewise.
14798 (vst1_u8_x4): Likewise.
14799 (vst1q_u8_x4): Likewise.
14800 (vst1_u16_x4): Likewise.
14801 (vst1q_u16_x4): Likewise.
14802 (vst1_u32_x4): Likewise.
14803 (vst1q_u32_x4): Likewise.
14804 (vst1_f16_x4): Likewise.
14805 (vst1q_f16_x4): Likewise.
14806 (vst1_f32_x4): Likewise.
14807 (vst1q_f32_x4): Likewise.
14808 (vst1_p8_x4): Likewise.
14809 (vst1q_p8_x4): Likewise.
14810 (vst1_p16_x4): Likewise.
14811 (vst1q_p16_x4): Likewise.
14812 (vst1_s64_x4): Likewise.
14813 (vst1_u64_x4): Likewise.
14814 (vst1_p64_x4): Likewise.
14815 (vst1q_s64_x4): Likewise.
14816 (vst1q_u64_x4): Likewise.
14817 (vst1q_p64_x4): Likewise.
14818 (vst1_f64_x4): Likewise.
14819 (vst1q_f64_x4): Likewise.
14820
14821 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14822
14823 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14824
14825 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14826 Richard Sandiford <richard.sandiford@arm.com>
14827
14828 PR target/88839
14829 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14830 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14831
14832 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14833
14834 PR target/90724
14835 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14836 in reg if it fails aarch64_plus_operand predicate.
14837
14838 2019-08-21 Richard Biener <rguenther@suse.de>
14839
14840 PR tree-optimization/91482
14841 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14842 BUILT_IN_ASSUME_ALIGNED calls.
14843
14844 2019-08-21 Richard Biener <rguenther@suse.de>
14845
14846 PR target/91498
14847 PR target/91503
14848 * config/i386/i386-features.c
14849 (general_scalar_chain::make_vector_copies): Copy stack temporary
14850 rtx when using it multiple times.
14851 (general_scalar_chain::convert_reg): Likewise.
14852
14853 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14854
14855 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14856
14857 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14858
14859 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14860 catch more redundant zero initialization cases.
14861 (dse_dom_walker::dse_optimize_stmt): Likewise.
14862
14863 2019-08-20 Richard Biener <rguenther@suse.de>
14864
14865 PR lto/91307
14866 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14867 by collect2 when targetm.have_ctors_dtors which avoids dragging
14868 in temporary filenames from LTO input objects.
14869
14870 2019-08-20 Richard Biener <rguenther@suse.de>
14871
14872 PR tree-optimization/37242
14873 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14874 to (T)a + (T)b if we know that a + b does not overflow.
14875
14876 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14877
14878 PR rtl-optimization/91347
14879 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14880 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14881
14882 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14883
14884 * calls.h (function_arg_info): Add a pass_by_reference field,
14885 defaulting to false.
14886 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14887 when applying pass-by-reference semantics.
14888 (initialize_argument_information): Likewise.
14889 (emit_library_call_value_1): Likewise.
14890 * function.c (assign_parm_data_one): Remove passed_pointer field.
14891 (assign_parm_find_data_types): Don't set it.
14892 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14893 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14894 arg.pass_by_reference instead of passed_pointer.
14895
14896 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14897
14898 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14899 into a single function_arg_info, updating its fields when we
14900 apply pass-by-reference and promotion semantics. Use the
14901 function_arg_info to track the mode rather than keeping it in
14902 a separate local variable.
14903 (initialize_argument_information): Likewise. Base the final
14904 arg_to_skip on this new function_arg_info rather than creating
14905 a new one from scratch.
14906
14907 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14908
14909 * function.c (assign_parm_data_one): Replace passed_type,
14910 promoted_mode and named_arg with a function_arg_info field.
14911 (assign_parm_find_data_types): Remove local variables and
14912 assign directly to "data". Make data->passed_mode shadow
14913 data->arg.mode until promotion, then assign the promoted
14914 mode to data->arg.mode.
14915 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14916 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14917 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14918 (assign_parm_setup_block, assign_parm_setup_reg)
14919 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14920 arg.mode instead of promoted_mode, arg.type instead of passed_type
14921 and arg.named instead of named_arg. Use data->arg for
14922 function_arg_info structures that had the field values passed_type,
14923 promoted_mode and named_arg. Base other function_arg_infos on
14924 data->arg, changing the necessary properties.
14925
14926 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14927
14928 * calls.h (apply_pass_by_reference_rules): Declare.
14929 * calls.c (apply_pass_by_reference_rules): New function.
14930 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14931 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14932 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14933 * function.c (assign_parm_find_data_types): Likewise.
14934 * var-tracking.c (prepare_call_arguments): Likewise.
14935
14936 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14937
14938 * target.def (must_pass_in_stack): Take a function_arg_info instead
14939 of a mode and a type.
14940 * doc/tm.texi: Regenerate.
14941 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14942 instead of a mode and a type.
14943 (must_pass_in_stack_var_size_or_pad): Likewise.
14944 * calls.c (must_pass_in_stack_var_size): Likewise.
14945 (must_pass_in_stack_var_size_or_pad): Likewise.
14946 (initialize_argument_information): Update call to
14947 targetm.calls.must_pass_in_stack.
14948 (must_pass_va_arg_on_stack): Likewise.
14949 * function.c (assign_parm_find_entry_rtl): Likewise.
14950 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14951 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14952 (alpha_function_arg_advance): Likewise.
14953 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14954 (cr16_function_arg_advance): Likewise.
14955 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14956 (cris_arg_partial_bytes): Likewise.
14957 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14958 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14959 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14960 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14961 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14962 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14963 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14964 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14965 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14966 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14967 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14968 instead of a mode and a type.
14969 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14970 (fr30_num_arg_regs): Likewise.
14971 (fr30_setup_incoming_varargs): Update calls accordingly.
14972 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14973 (fr30_function_arg_advance): Likewise.
14974 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14975 instead of a mode and a type.
14976 * config/gcn/gcn.c (num_arg_regs): Likewise.
14977 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14978 num_arg_regs and targetm.calls.must_pass_in_stack.
14979 (gcn_arg_partial_bytes): Likewise.
14980 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14981 function_arg_info instead of a mode and a type.
14982 (classify_argument): Update call accordingly.
14983 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14984 function_arg_info instead of a mode and a type.
14985 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14986 Likewise.
14987 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14988 (rs6000_parm_needs_stack): Update call accordingly.
14989 (setup_incoming_varargs): Likewise.
14990
14991 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14992
14993 * target.def (callee_copies): Take a function_arg_info instead
14994 of a mode, type and named flag.
14995 * doc/tm.texi: Regenerate.
14996 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14997 instead of a mode, type and named flag.
14998 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14999 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15000 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15001 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15002 instead of a mode, type and named flag.
15003 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15004 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15005 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15006 * calls.h (reference_callee_copied): Take a function_arg_info
15007 instead of a mode, type and named flag.
15008 * calls.c (reference_callee_copied): Likewise.
15009 (initialize_argument_information): Update call accordingly.
15010 (emit_library_call_value_1): Likewise.
15011 * function.c (gimplify_parameters): Likewise.
15012 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15013 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15014 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15015 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15016 (TARGET_CALLEE_COPIES): Define to
15017 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15018 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15019 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15020 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15021 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15022 instead of a mode, type and named flag.
15023 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15024 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15025 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15026 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15027 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15028 (TARGET_CALLEE_COPIES): Define to
15029 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15030 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15031 instead of a mode, type and named flag.
15032 * config/sh/sh.c (sh_callee_copies): Likewise.
15033 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15034 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15035 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15036
15037 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15038
15039 * target.def (function_arg_advance): Take a function_arg_info instead
15040 of a mode, type and named flag.
15041 * doc/tm.texi: Regenerate.
15042 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15043 instead of a mode, type and named flag.
15044 * targhooks.c (default_function_arg_advance): Likewise.
15045 * calls.c (initialize_argument_information): Update call to
15046 targetm.calls.function_arg_advance.
15047 (emit_library_call_value_1): Likewise.
15048 * dse.c (get_call_args): Likewise.
15049 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15050 * function.c (assign_parms, gimplify_parameters): Likewise.
15051 * var-tracking.c (prepare_call_arguments): Likewise.
15052 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15053 function_arg_info instead of a mode, type and named flag.
15054 (aarch64_setup_incoming_varargs): Update call accordingly.
15055 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15056 function_arg_info instead of a mode, type and named flag.
15057 (alpha_setup_incoming_varargs): Update call accordingly.
15058 * config/arc/arc.c (arc_function_arg_advance): Take a
15059 function_arg_info instead of a mode, type and named flag.
15060 (arc_setup_incoming_varargs): Update call accordingly.
15061 * config/arm/arm.c (arm_function_arg_advance): Take a
15062 function_arg_info instead of a mode, type and named flag.
15063 (cmse_func_args_or_return_in_stack): Update call accordingly.
15064 (arm_function_ok_for_sibcall): Likewise.
15065 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15066 * config/avr/avr.c (avr_function_arg_advance): Take a
15067 function_arg_info instead of a mode, type and named flag.
15068 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15069 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15070 (c6x_call_saved_register_used): Update call accordingly.
15071 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15072 function_arg_info instead of a mode, type and named flag.
15073 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15074 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15075 (csky_setup_incoming_varargs): Update call accordingly.
15076 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15077 function_arg_info instead of a mode, type and named flag.
15078 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15079 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15080 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15081 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15082 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15083 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15084 (ix86_setup_incoming_varargs): Update call accordingly.
15085 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15086 function_arg_info instead of a mode, type and named flag.
15087 (ia64_setup_incoming_varargs): Update call accordingly.
15088 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15089 function_arg_info instead of a mode, type and named flag.
15090 (iq2000_expand_prologue): Update call accordingly.
15091 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15092 function_arg_info instead of a mode, type and named flag.
15093 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15094 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15095 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15096 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15097 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15098 Likewise.
15099 (microblaze_expand_prologue): Update call accordingly.
15100 * config/mips/mips.c (mips_function_arg_advance): Take a
15101 function_arg_info instead of a mode, type and named flag.
15102 (mips_setup_incoming_varargs): Update call accordingly.
15103 (mips_output_args_xfer): Likewise.
15104 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15105 function_arg_info instead of a mode, type and named flag.
15106 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15107 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15108 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15109 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15110 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15111 (nios2_setup_incoming_varargs): Update call accordingly.
15112 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15113 function_arg_info instead of a mode, type and named flag.
15114 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15115 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15116 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15117 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15118 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15119 (riscv_setup_incoming_varargs): Update call accordingly.
15120 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15121 function_arg_info instead of a mode, type and named flag.
15122 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15123 Likewise.
15124 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15125 (rs6000_parm_needs_stack): Update call accordingly.
15126 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15127 instead of a mode, type and named flag.
15128 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15129 (s390_call_saved_register_used): Update call accordingly.
15130 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15131 instead of a mode, type and named flag.
15132 (sh_output_mi_thunk): Update call accordingly.
15133 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15134 function_arg_info instead of a mode, type and named flag.
15135 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15136 (spu_setup_incoming_varargs): Update call accordingly.
15137 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15138 function_arg_info instead of a mode, type and named flag.
15139 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15140 (tilegx_setup_incoming_varargs): Update call accordingly.
15141 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15142 function_arg_info instead of a mode, type and named flag.
15143 (tilegx_setup_incoming_varargs): Update call accordingly.
15144 * config/v850/v850.c (v850_function_arg_advance): Take a
15145 function_arg_info instead of a mode, type and named flag.
15146 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15147 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15148 (visium_setup_incoming_varargs): Update call accordingly.
15149 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15150 function_arg_info instead of a mode, type and named flag.
15151
15152 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15153
15154 * target.def (function_arg, function_incoming_arg): Take a
15155 function_arg_info instead of a mode, tree and named flag.
15156 * doc/tm.texi: Regenerate.
15157 * targhooks.h (default_function_arg): Take a function_arg_info
15158 instead of a mode, tree and named flag.
15159 (default_function_incoming_arg): Likewise.
15160 * targhooks.c (default_function_arg): Likewise.
15161 (default_function_incoming_arg): Likewise.
15162 * calls.h (function_arg_info::end_marker_p): New function.
15163 (function_arg_info::end_marker): Likewise.
15164 * calls.c (prepare_call_address, initialize_argument_information)
15165 (expand_call, emit_library_call_value_1): Update calls to
15166 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15167 * dse.c: Include calls.h.
15168 (get_call_args): Update call to targetm.calls.function_arg.
15169 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15170 * var-tracking.c (prepare_call_arguments): Likewise.
15171 * function.c (assign_parm_find_entry_rtl): Update call to
15172 targetm.calls.function_incoming_arg.
15173 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15174 function_arg_info instead of a mode, tree and named flag.
15175 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15176 * config/arc/arc.c (arc_function_arg): Likewise.
15177 * config/arm/arm.c (arm_function_arg): Likewise.
15178 (cmse_func_args_or_return_in_stack): Update call accordingly.
15179 (arm_function_ok_for_sibcall): Likewise.
15180 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15181 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15182 instead of a mode, tree and named flag.
15183 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15184 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15185 (c6x_call_saved_register_used): Update call accordingly.
15186 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15187 instead of a mode, tree and named flag.
15188 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15189 (cris_function_arg_1): Likewise.
15190 * config/csky/csky.c (csky_function_arg): Likewise.
15191 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15192 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15193 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15194 (frv_function_arg_1): Likewise.
15195 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15196 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15197 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15198 * config/i386/i386.c (ix86_function_arg): Likewise.
15199 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15200 (ia64_function_arg_1): Likewise.
15201 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15202 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15203 accordingly.
15204 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15205 instead of a mode, tree and named flag.
15206 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15207 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15208 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15209 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15210 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15211 (microblaze_expand_prologue): Update call accordingly.
15212 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15213 instead of a mode, tree and named flag.
15214 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15215 (mmix_function_arg_1): Likewise.
15216 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15217 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15218 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15219 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15220 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15221 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15222 (nvptx_function_incoming_arg): Likewise.
15223 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15224 * config/pa/pa.c (pa_function_arg): Likewise.
15225 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15226 * config/pru/pru.c (pru_function_arg): Likewise.
15227 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15228 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15229 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15230 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15231 (rs6000_parm_needs_stack): Update call accordingly.
15232 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15233 instead of a mode, tree and named flag.
15234 * config/s390/s390.c (s390_function_arg): Likewise.
15235 (s390_call_saved_register_used): Update call accordingly.
15236 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15237 instead of a mode, tree and named flag.
15238 (sh_output_mi_thunk): Update call accordingly.
15239 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15240 (sparc_function_incoming_arg): Take a function_arg_info instead of
15241 a mode, tree and named flag.
15242 * config/spu/spu.c (spu_function_arg): Likewise.
15243 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15244 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15245 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15246 * config/v850/v850.c (v850_function_arg): Likewise.
15247 * config/vax/vax.c (vax_function_arg): Likewise.
15248 * config/visium/visium.c (visium_function_arg): Likewise.
15249 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15250 (xtensa_function_incoming_arg): Likewise.
15251
15252 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15253
15254 * target.def (setup_incoming_varargs): Take a function_arg_info
15255 instead of a mode and tree.
15256 * doc/tm.texi: Regenerate.
15257 * targhooks.h (default_setup_incoming_varargs): Take a
15258 function_arg_info instead of a mode and tree.
15259 * targhooks.c (default_setup_incoming_varargs): Likewise.
15260 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15261 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15262 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15263 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15264 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15265 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15266 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15267 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15268 Likewise.
15269 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15270 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15271 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15272 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15273 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15274 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15275 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15276 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15277 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15278 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15279 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15280 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15281 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15282 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15283 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15284 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15285 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15286 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15287 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15288 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15289 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15290 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15291 * function.c (assign_parms_setup_varargs): Update call to
15292 targetm.calls.setup_incoming_varargs.
15293
15294 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15295
15296 * target.def (pass_by_reference): Take a function_arg_info instead
15297 of a mode, type and named flag.
15298 * doc/tm.texi: Regenerate.
15299 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15300 accordingly.
15301 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15302 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15303 function_arg_info instead of a mode, type and named flag.
15304 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15305 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15306 mode, type and named flag.
15307 * calls.c (pass_by_reference): Likewise.
15308 (pass_va_arg_by_reference): Update call accordingly.
15309 (initialize_argument_information): Likewise.
15310 (emit_library_call_value_1): Likewise.
15311 * function.c (assign_parm_find_data_types): Likewise.
15312 * var-tracking.c (prepare_call_arguments): Likewise.
15313 * stor-layout.c: Include calls.h.
15314 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15315 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15316 function_arg_info instead of a mode, type and named flag.
15317 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15318 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15319 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15320 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15321 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15322 (c6x_call_saved_register_used): Update call to pass_by_reference.
15323 * config/cris/cris.c (cris_pass_by_reference): Take a
15324 function_arg_info instead of a mode, type and named flag.
15325 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15326 function_arg_info instead of a mode, type and named flag.
15327 (epiphany_arg_partial_bytes): Update call accordingly.
15328 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15329 function_arg_info instead of a mode, type and named flag.
15330 (ft32_arg_partial_bytes): Update call accordingly.
15331 * config/i386/i386.c (ix86_pass_by_reference): Take a
15332 function_arg_info instead of a mode, type and named flag.
15333 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15334 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15335 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15336 (m32r_return_in_memory): Update call accordingly.
15337 * config/mips/mips.c (mips_pass_by_reference): Take a
15338 function_arg_info instead of a mode, type and named flag.
15339 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15340 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15341 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15342 (moxie_arg_partial_bytes): Update call accordingly.
15343 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15344 function_arg_info instead of a mode, type and named flag.
15345 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15346 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15347 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15348 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15349 (riscv_return_in_memory): Update call accordingly.
15350 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15351 function_arg_info instead of a mode, type and named flag.
15352 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15353 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15354 * config/s390/s390.c (s390_pass_by_reference): Take a
15355 function_arg_info instead of a mode, type and named flag.
15356 (s390_call_saved_register_used): Update call accordingly.
15357 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15358 instead of a mode, type and named flag.
15359 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15360 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15361 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15362 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15363 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15364 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15365
15366 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15367
15368 * target.def (arg_partial_bytes): Take a function_arg_info instead
15369 of a mode, type and named flag.
15370 * doc/tm.texi: Regenerate.
15371 * target.h (function_arg_info): Declare.
15372 * calls.h (function_arg_info): New class.
15373 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15374 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15375 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15376 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15377 * calls.c (initialize_argument_information): Update call to
15378 targetm.calls.partial_bytes.
15379 (emit_library_call_value_1): Likewise.
15380 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15381 * function.c (assign_parm_find_entry_rtl): Likewise.
15382 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15383 function_arg_info instead of a mode, type and named flag.
15384 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15385 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15386 (cmse_func_args_or_return_in_stack): Update accordingly.
15387 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15388 function_arg_info instead of a mode, type and named flag.
15389 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15390 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15391 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15392 * config/fr30/fr30.c: Include calls.h.
15393 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15394 type and named flag.
15395 * config/frv/frv.c: Include calls.h.
15396 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15397 type and named flag.
15398 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15399 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15400 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15401 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15402 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15403 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15404 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15405 Likewise.
15406 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15407 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15408 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15409 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15410 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15411 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15412 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15413 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15414 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15415 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15416 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15417 (rs6000_parm_needs_stack): Update call accordingly.
15418 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15419 function_arg_info instead of a mode, type and named flag.
15420 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15421 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15422
15423 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15424
15425 * calls.h (must_pass_va_arg_in_stack): Declare.
15426 * calls.c (must_pass_va_arg_in_stack): New function.
15427 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15428 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15429 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15430 Likewise.
15431 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15432
15433 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15434
15435 * calls.h (pass_va_arg_by_reference): Declare.
15436 * calls.c (pass_va_arg_by_reference): New function.
15437 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15438 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15439 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15440 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15441 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15442 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15443 (mips_gimplify_va_arg_expr): Likewise.
15444 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15445 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15446 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15447 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15448 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15449 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15450 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15451 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15452 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15453 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15454 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15455
15456 2019-08-20 Richard Biener <rguenther@suse.de>
15457
15458 PR target/91498
15459 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15460 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15461 (convert_scalars_to_vector): Add timode_p parameter and use it
15462 to guard TImode-only operation.
15463 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15464 (pass_stv::execute): Pass down timode_p.
15465
15466 2019-08-20 Lili Cui <lili.cui@intel.com>
15467
15468 * common/config/i386/i386-common.c
15469 (processor_names): Add tigerlake and cooperlake.
15470 (processor_alias_table): Add tigerlake and cooperlake.
15471 * config.gcc: Add -march=tigerlake and cooperlake.
15472 * config/i386/driver-i386.c
15473 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15474 Add "has_avx" to classify processor.
15475 * config/i386/i386-builtins.c (processor_model) :
15476 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15477 (arch_names_table): Add tigerlake and cooperlake.
15478 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15479 and PROCESSOR_COOPERLAKE.
15480 * config/i386/i386-c.c
15481 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15482 * config/i386/i386-options.c
15483 (m_TIGERLAKE): Define.
15484 (m_COOPERLAKE): Ditto.
15485 (m_CORE_AVX512): Ditto.
15486 (processor_cost_table): Add cascadelake.
15487 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15488 * config/i386/i386.h
15489 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15490 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15491 (PTA_MOVDIRI): Ditto.
15492 (PTA_MOVDIR64B): Ditto.
15493 (PTA_COOPERLAKE): Ditto.
15494 (PTA_TIGERLAKE): Ditto.
15495 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15496 * doc/extend.texi: Add tigerlake and cooperlake.
15497 * doc/invoke.texi: Add tigerlake and cooperlake.
15498
15499 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15500
15501 * doc/install.texi (Specific, alpha): Remove note to use
15502 binutils 2.11.2 or later.
15503
15504 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15505
15506 PR middle-end/89544
15507 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15508 when possible.
15509
15510 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15511
15512 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15513 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15514 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15515 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15516 * config/aarch64/constraints.md (Dt): New constraint
15517 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15518
15519 2019-08-19 Richard Biener <rguenther@suse.de>
15520
15521 PR tree-optimization/91403
15522 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15523 cases we can handle with tail-recursion...
15524 (follow_ssa_edge_expr): ... here. Do so.
15525
15526 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15527
15528 PR target/91441
15529 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15530 implemented for -fsanitize=kernel-address, and merge check logic
15531 with -fsanitize=address.
15532
15533 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15534
15535 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15536 for cpu and machine. Factor 64/32b builtins.
15537
15538 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15539
15540 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15541 gone, point to sourceforge.net.
15542
15543 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15544
15545 * doc/ux.texi (User Experience Guidelines): Update reference.
15546
15547 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15548
15549 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15550 not LGPL".
15551
15552 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15553
15554 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15555 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15556
15557 2019-08-16 Martin Sebor <msebor@redhat.com>
15558
15559 * tree.def (TYPE_SIZE): Clarify.
15560 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15561
15562 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15563
15564 PR tree-optimization/91109
15565 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15566 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15567 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15568
15569 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15570
15571 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15572 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15573 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15574 (uavg<mode>3_ceil): New expander.
15575 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15576 mode iterator when creating CONST1_RTX.
15577 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15578 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15579 mode iterator for const1_operand predicate.
15580
15581 2019-08-16 Richard Biener <rguenther@suse.de>
15582
15583 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15584 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15585 follow_ssa_edge.
15586 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15587 (analyze_evolution_in_loop): Likewise.
15588 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15589 (follow_ssa_edge_expr): ... here. Refactor code.
15590
15591 2019-08-16 Richard Biener <rguenther@suse.de>
15592
15593 PR target/91469
15594 * config/i386/i386-features.c
15595 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15596
15597 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15598
15599 PR other/91255
15600 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15601 only if subst_name matches curr_attr string.
15602
15603 2019-08-16 Richard Biener <rguenther@suse.de>
15604
15605 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15606 stmt at gsi_p, instead replace it with a NOP removed later.
15607 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15608 that became dead because of that.
15609
15610 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15611
15612 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15613 for which we can't represent a range.
15614 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15615 set_varying.
15616 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15617 Set VR_UNDEFINED if type is not supported.
15618 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15619 * tree-vrp.c (value_range_base::check): Assert that a varying has
15620 min/max set.
15621 (value_range_base::equal_p): Early bail for undefines.
15622 (value_range_base::set_varying): Accept a type.
15623 (value_range::set_varying): Same.
15624 (value_range_base::type): VARYING can have a type, while UNDEFINE
15625 is typeless.
15626 (value_range_base::dump): Print type for VARYING nodes.
15627 (value_range_base::set): Add type to VARYING.
15628 (extract_range_from_multiplicative_op): Pass type to set_varying.
15629 (extract_range_from_binary_expr): Same.
15630 (value_range_base::intersect_helper): Same.
15631 (value_range_base::union_helper): Same.
15632 (value_range_base::normalize_symbolics): Same.
15633 (determine_value_range_1): Same.
15634 * tree-vrp.h (class value_range_base): Add type to set_varying.
15635 Add prototype for dump(void).
15636 Add prototype for supports_type_p.
15637 (class value_range): Add type to set_varying.
15638 Add prototype for dump(void).
15639 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15640 set_varying.
15641 (vr_values::get_lattice_entry): Set varying even if propagation
15642 finished.
15643 Pass type to set_varying.
15644 (vr_values::get_value_range): Remove vr_const_varying.
15645 Reallocate the lattice if needed.
15646 (vr_values::update_value_range): Pass type to set_varying.
15647 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15648 (vr_values::extract_range_from_binary_expr): Same.
15649 (vr_values::extract_range_from_unary_expr): Same.
15650 (vr_values::extract_range_from_cond_expr): Same.
15651 (vr_values::check_for_binary_op_overflow): Same.
15652 (vr_values::extract_range_basic): Same.
15653 (vr_values::extract_range_from_assignment): Same.
15654 (vr_values::vr_values): Increase size of num_vr_values.
15655 (vr_values::extract_range_from_phi_node): Pass type to
15656 set_varying.
15657
15658 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15659
15660 PR target/90878
15661 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15662 for costs of hard register moves.
15663 (ix86_register_move_cost): Likewise.
15664 * config/i386/i386.h (processor_costs): Move costs of hard
15665 register moves to hard_register. Add int_load, int_store,
15666 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15667 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15668 for costs of RTL expressions.
15669 * config/i386/x86-tune-costs.h: Move costs of hard register
15670 moves to hard_register. Duplicate int_load, int_store,
15671 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15672 sse_load, sse_store for costs of RTL expressions.
15673
15674 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15675
15676 * target.def (setup_incoming_vararg_bounds): Remove.
15677 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15678 * doc/tm.texi: Regenerate.
15679 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15680 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15681 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15682 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15683
15684 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15685
15686 MSP430: Fix lines over 80 characters long in
15687 config/msp430/*.{c,h} files
15688
15689 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15690 specifier in string.
15691 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15692 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15693 redundant old comment.
15694 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15695 Split line more than 80 characters long.
15696 * config/msp430/msp430.c (msp430_option_override): Likewise.
15697 (msp430_return_in_memory): Likewise.
15698 (msp430_gimplify_va_arg_expr): Likewise.
15699 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15700 (msp430_legitimate_constant): Likewise.
15701 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15702 (msp430_attr): Likewise.
15703 (msp430_data_attr): Likewise.
15704 (msp430_start_function): Likewise.
15705 (gen_prefix): Likewise.
15706 (msp430_init_sections): Likewise.
15707 (msp430_select_section): Likewise.
15708 (msp430_function_section): Likewise.
15709 (msp430_unique_section): Likewise.
15710 (msp430_output_aligned_decl_common): Likewise.
15711 (msp430_do_not_relax_short_jumps): Likewise.
15712 (msp430_init_builtins): Likewise.
15713 (msp430_expand_delay_cycles): Likewise.
15714 (msp430_expand_prologue): Likewise.
15715 (msp430_expand_epilogue): Likewise.
15716 (msp430_expand_helper): Likewise.
15717 (msp430_split_movsi): Likewise.
15718 (msp430_print_operand): Likewise.
15719 (msp430_return_addr_rtx): Likewise.
15720 (msp430x_extendhisi): Likewise.
15721 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15722 (ASM_SPEC): Likewise.
15723 Remove very obvious comments.
15724 (LIB_SPEC): Split line more than 80 characters long.
15725 (EH_RETURN_HANDLER_RTX): Likewise.
15726 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15727
15728 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15729
15730 MSP430: Fix whitespace errors and incorrect indentation in
15731 config/msp430/*.{c,h} files
15732
15733 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15734 (msp430_select_hwmult_lib): Likewise.
15735 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15736 (msp430_extract_mcu_data): Likewise.
15737 (struct t_msp430_mcu_data): Likewise.
15738 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15739 before left square bracket.
15740 (msp430_option_override): Fix indentation.
15741 (msp430_hard_regno_nregs_with_padding): Likewise.
15742 (msp430_initial_elimination_offset): Likewise.
15743 (msp430_special_register_convention_p): Remove whitespace before left
15744 square bracket and after exclamation mark.
15745 (msp430_evaluate_arg): Likewise.
15746 (msp430_callee_copies): Fix indentation.
15747 (msp430_gimplify_va_arg_expr): Likewise.
15748 (msp430_function_arg_advance): Remove whitespace before left square
15749 bracket.
15750 (reg_ok_for_addr): Likewise.
15751 (msp430_preserve_reg_p): Likewise.
15752 (msp430_compute_frame_info): Likewise.
15753 (msp430_asm_output_addr_const_extra): Add space between function name
15754 and open parenthesis.
15755 (has_section_name): Fix indentation.
15756 (msp430_attr): Remove trailing whitespace.
15757 (msp430_section_attr): Likewise.
15758 (msp430_data_attr): Likewise.
15759 (struct msp430_attribute_table): Fix comment and whitespace.
15760 (msp430_start_function): Remove whitespace before left square bracket.
15761 Add space between function name and open parenthesis.
15762 (msp430_select_section): Remove trailing whitespace.
15763 (msp430_section_type_flags): Remove trailing whitespace.
15764 (msp430_unique_section): Remove space before closing parenthesis.
15765 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15766 (msp430_builtins): Remove whitespace before left square bracket.
15767 (msp430_init_builtins): Fix indentation.
15768 (msp430_expand_prologue): Remove whitespace before left square bracket.
15769 Remove space before closing parenthesis.
15770 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15771 (msp430_split_movsi): Remove space before closing parenthesis.
15772 (helper_function_name_mappings): Fix indentation.
15773 (msp430_use_f5_series_hwmult): Fix whitespace.
15774 (use_32bit_hwmult): Likewise.
15775 (msp430_no_hwmult): Likewise.
15776 (msp430_output_labelref): Remove whitespace before left square bracket.
15777 (msp430_print_operand_raw): Likewise.
15778 (msp430_print_operand_addr): Likewise.
15779 (msp430_print_operand): Add two spaces after '.' in comment.
15780 Fix trailing whitespace.
15781 (msp430x_extendhisi): Fix indentation.
15782 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15783 tab.
15784 (PC_REGNUM): Likewise.
15785 (STACK_POINTER_REGNUM): Likewise.
15786 (CC_REGNUM): Likewise.
15787
15788 2019-08-15 Richard Biener <rguenther@suse.de>
15789
15790 PR target/91454
15791 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15792 helper.
15793 (general_scalar_chain::make_vector_copies): Use it.
15794
15795 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15796
15797 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15798
15799 2019-08-15 Martin Liska <mliska@suse.cz>
15800
15801 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15802 operators with no arguments.
15803 (eliminate_unnecessary_stmts): Likewise here.
15804
15805 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15806
15807 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15808 <case COMPARE>: Revert 2019-08-14 change.
15809 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15810 for (TARGET_64BIT || mode != DImode).
15811
15812 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15813
15814 * tree-vrp.c (value_range_base::set): Merge in code from
15815 value_range_base::set_and_canonicalize.
15816 Enforce canonicalization at set time.
15817 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15818 (value_range_base::set_undefined): Inline call to set().
15819 (value_range_base::set_varying): Same.
15820 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15821 (vrp_val_max): New argument handle_pointers.
15822 (vrp_val_min): Same.
15823 (ranges_from_anti_range): Same.
15824 (extract_range_into_wide_ints): Use tree argument instead of sign
15825 and precision.
15826 (extract_range_from_multiplicative_op): Take in tree type instead
15827 of precision and sign. Adapt function for canonicalized ranges.
15828 (extract_range_from_binary_expr): Pass type to
15829 extract_range_from_multiplicative_op.
15830 Adapt for canonicalized ranges.
15831 (extract_range_from_unary_expr): Same.
15832 (value_range_base::intersect_helper): Adjust for canonicalized
15833 ranges.
15834 (value_range_base::union_helper): Same.
15835 (value_range_base::normalize_symbolics): New.
15836 * tree-vrp.h (class value_range_base): Remove
15837 set_and_canonicalize.
15838 New prototype for normalize_symbolics.
15839 (class value_range): Remove set_and_canonicalize.
15840 (vrp_val_min): Adjust prototype.
15841 (vrp_val_max): Same.
15842 * vr-values.c
15843 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15844 instead of set_and_canonicalize.
15845
15846 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15847
15848 PR middle-end/91444
15849 * tree-vect-stmts.c (vectorizable_call): Check that the function
15850 is a BUILT_IN_MD function before passing it to
15851 targetm.vectorize.builtin_md_vectorized_function.
15852
15853 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15854
15855 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15856 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15857 (aarch64_select_early_remat_modes): Use it.
15858
15859 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15860
15861 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15862 16 for SVE predicates even if they are fixed-length.
15863
15864 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15865
15866 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15867 operand order match the MOV /Z alias.
15868
15869 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15870
15871 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15872 the vector pattern as an aarch64_svpattern argument. Update the
15873 overloaded caller accordingly.
15874 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15875 (aarch64_output_sve_vector_inc_dec): Likewise.
15876
15877 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15878
15879 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15880 multiplication case, try to compute VG * (lowest set bit) directly
15881 rather than always basing the multiplication on VG. Use
15882 expand_mult for the multiplication if we can.
15883
15884 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15885
15886 * config/aarch64/aarch64-protos.h
15887 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15888 (aarch64_sve_inc_dec_immediate_p): Rename to...
15889 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15890 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15891 (aarch64_output_sve_scalar_inc_dec): Declare.
15892 (aarch64_output_sve_inc_dec_immediate): Rename to...
15893 (aarch64_output_sve_vector_inc_dec): ...this.
15894 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15895 (aarch64_output_sve_scalar_inc_dec): New functions.
15896 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15897 arguments. Only handle true ADDVL and ADDPL instructions;
15898 don't emit an INC or DEC.
15899 (aarch64_sve_inc_dec_immediate_p): Rename to...
15900 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15901 (aarch64_output_sve_inc_dec_immediate): Rename to...
15902 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15903 aarch64_sve_vector_inc_dec_immediate_p.
15904 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15905 (aarch64_sve_plus_immediate): New predicates.
15906 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15907 rather than aarch64_sve_addvl_addpl_immediate.
15908 (aarch64_sve_inc_dec_immediate): Rename to...
15909 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15910 aarch64_sve_vector_inc_dec_immediate_p.
15911 (aarch64_sve_add_operand): Update accordingly.
15912 * config/aarch64/constraints.md (Uai): New constraint.
15913 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15914 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15915 operand into a register if it satisfies aarch64_sve_plus_immediate.
15916 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15917 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15918 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15919 aarch64_output_sve_vector_inc_dec instead of
15920 aarch64_output_sve_inc_dec_immediate.
15921
15922 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15923
15924 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15925 (UNSPEC_REVW): New constants.
15926 (elem_bits): New mode attribute.
15927 (SVE_INT_UNARY): New int iterator.
15928 (optab): Handle UNSPEC_REV[BHW].
15929 (sve_int_op): New int attribute.
15930 (min_elem_bits): Handle VNx16QI and the predicate modes.
15931 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15932 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15933 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15934 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15935 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15936 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15937 unspecs based on the total width of the reversed data.
15938 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15939 reinterpret followed by a subreg on big-endian targets.
15940
15941 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15942 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15943
15944 * config/aarch64/aarch64-sve.md
15945 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15946 alternatives in which one of the inputs is in the same register
15947 as the output.
15948
15949 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15950
15951 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15952 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15953
15954 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15955
15956 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15957 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15958
15959 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15960 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15961
15962 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15963 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15964 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15965
15966 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15967 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15968
15969 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15970 Add an alternative that uses reversed shifts.
15971
15972 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15973
15974 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15975 struct.
15976
15977 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15978
15979 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15980 a commutativity marker.
15981
15982 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15983 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15984
15985 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15986 (aarch64_prepare_sve_cond_int_fma): Declare.
15987 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15988 (aarch64_prepare_sve_int_fma): New functions.
15989 (aarch64_prepare_sve_cond_int_fma): Likewise.
15990 * config/aarch64/aarch64-sve.md
15991 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15992 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15993 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15994 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15995 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15996 (*madd<mode>): Rename to...
15997 (*fma<mode>4): ...this.
15998 (*msub<mode>): Rename to...
15999 (*fnma<mode>4): ...this.
16000
16001 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16002 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16003
16004 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16005 Print 2.0 naturally.
16006 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16007 * config/aarch64/predicates.md
16008 (aarch64_sve_float_negated_arith_immediate): New predicate,
16009 renamed from aarch64_sve_float_arith_with_sub_immediate.
16010 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16011 positive and negative constants.
16012 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16013 or an aarch64_sve_float_arith_with_sub_immediate.
16014 * config/aarch64/constraints.md (vsN): Use
16015 aarch64_sve_float_negated_arith_immediate.
16016 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16017 iterator.
16018 (sve_pred_fp_rhs2_immediate): New int attribute.
16019 * config/aarch64/aarch64-sve.md
16020 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16021 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16022 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16023 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16024 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16025 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16026
16027 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16028 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16029
16030 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16031 (*aarch64_cond_abd<SVE_F:mode>_3)
16032 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16033
16034 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16035 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16036
16037 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16038 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16039
16040 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16041 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16042
16043 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16044 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16045 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16046 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16047 optabs.
16048 * optabs.h (create_convert_operand_from): Expand comment.
16049 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16050 when mapping scalar rtxes to vector operands.
16051 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16052 ashiftrt and lshiftrt.
16053 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16054 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16055 (*cond_<optab><mode>_any_const): New patterns.
16056
16057 2019-08-15 Martin Liska <mliska@suse.cz>
16058
16059 PR ipa/91438
16060 * cgraph.c (cgraph_node::remove): When setting
16061 n->origin = NULL for all nested functions, reset
16062 also next_nested.
16063
16064 2019-08-15 Martin Liska <mliska@suse.cz>
16065
16066 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16067 and next_nested.
16068
16069 2019-08-15 Martin Liska <mliska@suse.cz>
16070
16071 PR ipa/91404
16072 * passes.c (order): Remove.
16073 (uid_hash_t): Likewise).
16074 (remove_cgraph_node_from_order): Remove from set
16075 of pointers (cgraph_node *).
16076 (insert_cgraph_node_to_order): New.
16077 (duplicate_cgraph_node_to_order): New.
16078 (do_per_function_toporder): Register all 3 cgraph hooks.
16079 Skip removed_nodes now as we know about all of them.
16080
16081 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16082
16083 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16084 <case E_V8QImode>: Use vector_set path for
16085 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16086 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16087 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16088
16089 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16090
16091 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16092
16093 2019-08-14 Martin Sebor <msebor@redhat.com>
16094
16095 PR tree-optimization/91294
16096 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16097 source length as exact.
16098
16099 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16100
16101 * doc/extend.texi: Add "noinit" attribute documentation.
16102 * doc/sourcebuild.texi: Add noinit effective target documentation.
16103 * varasm.c (default_section_type_flags): Add support for "noinit"
16104 section.
16105 (default_elf_select_section): Add support for "noinit" attribute.
16106 * config/msp430/msp430.c (msp430_attribute_table): Remove
16107 "noinit" entry.
16108
16109 2019-08-14 Richard Biener <rguenther@suse.de>
16110 Uroš Bizjak <ubizjak@gmail.com>
16111
16112 PR target/91154
16113 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16114 mode arguments.
16115 (scalar_chain::smode): New member.
16116 (scalar_chain::vmode): Likewise.
16117 (dimode_scalar_chain): Rename to...
16118 (general_scalar_chain): ... this.
16119 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16120 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16121 base with TImode and V1TImode.
16122 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16123 (general_scalar_chain::vector_const_cost): Adjust for SImode
16124 chains.
16125 (general_scalar_chain::compute_convert_gain): Likewise. Add
16126 {S,U}{MIN,MAX} support.
16127 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16128 (general_scalar_chain::make_vector_copies): Likewise. Handle
16129 non-DImode chains appropriately.
16130 (general_scalar_chain::convert_reg): Likewise.
16131 (general_scalar_chain::convert_op): Likewise.
16132 (general_scalar_chain::convert_insn): Likewise. Add
16133 fatal_insn_not_found if the result is not recognized.
16134 (convertible_comparison_p): Pass in the scalar mode and use that.
16135 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16136 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16137 (scalar_to_vector_candidate_p): Remove by inlining into single
16138 caller.
16139 (general_remove_non_convertible_regs): Rename from
16140 dimode_remove_non_convertible_regs.
16141 (remove_non_convertible_regs): Remove by inlining into single caller.
16142 (convert_scalars_to_vector): Handle SImode and DImode chains
16143 in addition to TImode chains.
16144 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16145 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16146 (*<maxmin>di3_doubleword): Likewise.
16147
16148 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16149 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16150
16151 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16152 (*cond_bic<mode>_any): New patterns.
16153
16154 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16155
16156 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16157 take the equivalent mask, as well as a bit count.
16158 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16159 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16160 (aarch64_sve_pred_and_operand): New predicates.
16161 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16162 code attribute.
16163 * config/aarch64/aarch64-sve.md
16164 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16165 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16166
16167 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16168
16169 * config/aarch64/aarch64-sve.md
16170 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16171 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16172 New patterns.
16173
16174 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16175 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16176
16177 * config/aarch64/aarch64-sve.md
16178 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16179 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16180
16181 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16182 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16183
16184 * config/aarch64/aarch64-sve.md
16185 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16186 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16187
16188 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16189
16190 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16191 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16192 New pattern.
16193
16194 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16195 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16196
16197 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16198
16199 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16200 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16201
16202 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16203 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16204 (aarch64_print_operand): Add support for %I.
16205 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16206 Bitcast floating-point constants to the corresponding integer constant.
16207 (aarch64_float_const_representable_p): Handle vectors as well
16208 as scalars.
16209 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16210 for the new vcond_mask_<mode><vpred> expander.
16211 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16212 test aarch64_float_const_representable_p.
16213 (aarch64_sve_reg_or_dup_imm): New predicate.
16214 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16215 gen_vcond_mask_<mode><vpred> instead of
16216 gen_aarch64_sve_dup<mode>_const.
16217 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16218 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16219 for operands 1 and 2 respectively. Force operand 2 into a
16220 register if operand 1 is a register. Fold old define_insn...
16221 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16222 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16223 floating-point constants that can be moved as integers. Add
16224 alternatives for MOV /M and FMOV /M.
16225 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16226 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16227 1 and 2 respectively.
16228 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16229 as scalars.
16230 (vss): New constraint.
16231
16232 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16233
16234 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16235 (aarch64_sve_float_maxmin_operand): New predicates.
16236 * config/aarch64/constraints.md (vsB): New constraint.
16237 (vsM): Fix typo.
16238 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16239 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16240 UNSPEC_COND_FMINNM.
16241 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16242 Use aarch64_sve_float_maxmin_operand for operand 2.
16243 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16244 Add alternatives for the constant forms.
16245
16246 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16247
16248 * config/aarch64/constraints.md (vsb): New constraint.
16249 (vsm): Generalize description.
16250 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16251 iterator.
16252 (sve_imm_con): Handle smax, smin, umax and umin.
16253 (sve_imm_prefix): New code attribute.
16254 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16255 (aarch64_sve_vsb_operand): New predicates.
16256 (aarch64_sve_mul_immediate): Rename to...
16257 (aarch64_sve_vsm_immediate): ...this.
16258 (aarch64_sve_mul_operand): Rename to...
16259 (aarch64_sve_vsm_operand): ...this.
16260 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16261 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16262 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16263 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16264 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16265 add movprfx support for the immediate alternatives.
16266 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16267 of the above.
16268 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16269 for operand 3.
16270
16271 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16272
16273 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16274 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16275 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16276
16277 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16278
16279 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16280 (optab, sve_int_op): Handle them.
16281 * config/aarch64/aarch64-sve.md: Expand comment.
16282
16283 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16284
16285 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16286 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16287 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16288
16289 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16290
16291 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16292 (aarch64_expand_sve_const_pred_trn): New functions.
16293 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16294 use the above functions when the parameter is true.
16295 (aarch64_expand_sve_const_pred): Update call accordingly.
16296 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16297 Rename to...
16298 (@aarch64_sve_<perm_insn><mode>): ...this.
16299
16300 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16301
16302 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16303 Declare.
16304 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16305 (aarch64_sve_emit_int_cmp): New functions.
16306 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16307 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16308 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16309 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16310 (UNSPEC_PRED_Z): New unspec.
16311 (set_clobber_cc_nzc): Delete.
16312 * config/aarch64/aarch64-sve.md: Add a block comment about
16313 UNSPEC_PRED_Z.
16314 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16315 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16316 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16317 UNSPEC_MERGE_PTRUE.
16318 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16319 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16320 check for compatible predicates.
16321 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16322 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16323 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16324 comparisons above.
16325
16326 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16327
16328 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16329 * config/aarch64/aarch64-sve.md: Add a section describing it.
16330 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16331 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16332 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16333 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16334 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16335 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16336 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16337 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16338 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16339 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16340 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16341 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16342 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16343 (aarch64_evpc_rev_local): Update accordingly.
16344
16345 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16346
16347 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16348 iterators.
16349 (SVE_BHSI, SVE_SDI): Tweak comment.
16350 (SVE_HSDI): Likewise. Fix definition.
16351 (SVE_SDF): New mode iterator.
16352 (elem_bits): New mode attribute.
16353 (SVE_COND_FCVT): New int iterator.
16354 * config/aarch64/aarch64-sve.md
16355 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16356 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16357 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16358 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16359 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16360 ...these new patterns.
16361 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16362 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16363 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16364 Merge into...
16365 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16366 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16367 ...these new patterns.
16368 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16369 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16370 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16371 ...this new pattern.
16372 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16373 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16374 ...this new pattern.
16375 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16376
16377 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16378
16379 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16380 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16381 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16382 unspecs.
16383 (optab, su): Handle them.
16384 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16385 * config/aarch64/aarch64-sve.md
16386 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16387 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16388 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16389 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16390 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16391 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16392 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16393 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16394 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16395 FIXUORS.
16396 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16397 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16398 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16399 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16400 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16401 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16402 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16403 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16404 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16405 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16406 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16407 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16408 of UNSPEC_FLOAT_CONVERT.
16409 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16410 aarch64_sve_extend<mode><Vwide>2.
16411
16412 2019-08-14 Richard Biener <rguenther@suse.de>
16413
16414 PR target/91154
16415 * config/i386/i386-features.c
16416 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16417 individual instruction gain. Fix reg-reg copy GRP cost. Use
16418 ix86_cost->sse_op for vector instruction costs.
16419
16420 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16421
16422 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16423 (cmp_op): Handle it.
16424 (SVE_COND_FP_CMP): Rename to...
16425 (SVE_COND_FP_CMP_I0): ...this.
16426 (SVE_FP_CMP): Remove.
16427 * config/aarch64/aarch64-sve.md
16428 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16429 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16430 using unspecs to represent the comparison.
16431 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16432 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16433 accordingly.
16434 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16435 (aarch64_unspec_cond_code): Move after integer code. Handle
16436 UNORDERED.
16437 (aarch64_emit_sve_predicated_cond): Replace with...
16438 (aarch64_emit_sve_fp_cond): ...this new function.
16439 (aarch64_emit_sve_or_conds): Replace with...
16440 (aarch64_emit_sve_or_fp_conds): ...this new function.
16441 (aarch64_emit_sve_inverted_cond): Replace with...
16442 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16443 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16444
16445 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16446
16447 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16448 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16449 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16450 SVE_HSD instead of SVE_SD.
16451
16452 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16453 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16454
16455 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16456 iterator.
16457 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16458 attributes.
16459 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16460 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16461 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16462 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16463 (*div<SVE_F:mode>3): Generalize to...
16464 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16465
16466 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16467 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16468
16469 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16470 constants.
16471 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16472 predicate.
16473 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16474 Declare.
16475 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16476 function.
16477 * config/aarch64/aarch64-sve.md: Add a block comment about the
16478 handling of predicated FP operations.
16479 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16480 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16481 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16482 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16483 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16484 operand.
16485 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16486 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16487 operand.
16488 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16489 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16490 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16491 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16492 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16493 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16494 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16495 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16496 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16497 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16498 strictness operands. Use aarch64_sve_pred_dominates_p to check
16499 whether the predicate on the conditional operation is suitable
16500 for merging. Split patterns into the canonical equal-predicate form.
16501 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16502 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16503
16504 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16505 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16506
16507 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16508 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16509 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16510 rtx codes.
16511 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16512 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16513 unspecs.
16514
16515 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16516 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16517
16518 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16519 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16520 actually has, rather than relying on REG_EQUAL notes.
16521 Make the insn operand order match the SVE operand order.
16522 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16523 the SVE operand order.
16524
16525 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16526
16527 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16528 (aarch64_emit_set_immediate): Likewise.
16529 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16530 (aarch64_pfalse_reg): Likewise.
16531 (aarch64_convert_sve_data_to_pred): New function.
16532 (aarch64_sve_move_pred_via_while): Take an optional target register
16533 and the required register mode.
16534 (aarch64_expand_sve_const_pred_1): New function.
16535 (aarch64_expand_sve_const_pred): Likewise.
16536 (aarch64_expand_mov_immediate): Build an all-true predicate
16537 if the significant bits of the immediate are all true. Use
16538 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16539 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16540 before register allocation.
16541 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16542 a VNx16BI PTRUE when splitting the memory alternative.
16543 (vec_duplicate<mode>): Update accordingly.
16544 (*pred_cmp<cmp_op><mode>): Rename to...
16545 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16546
16547 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16548
16549 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16550 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16551 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16552 (UNSPEC_PTEST): New unspec.
16553 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16554 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16555 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16556 * config/aarch64/aarch64-sve.md: Add a new section describing the
16557 handling of UNSPEC_PTEST.
16558 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16559 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16560 (ptest_ptrue<mode>): Replace with...
16561 (aarch64_ptest<mode>): ...this new pattern.
16562 (cbranch<mode>4): Update after above changes.
16563 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16564 UNSPEC_PTEST_PTRUE.
16565 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16566 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16567 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16568
16569 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16570
16571 PR lto/91287
16572 * builtins.c (builtin_with_linkage_p): New function.
16573 * builtins.h (builtin_with_linkage_p): New function.
16574 * symtab.c (write_symbol): Remove redundant assert.
16575 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16576 Remove FIXME and use builtin_with_linkage_p.
16577
16578 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16579
16580 PR middle-end/91421
16581 * tree-core.h (function_decl::function_code): Change type to
16582 unsigned int.
16583 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16584 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16585 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16586 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16587 is BUILT_IN_NORMAL.
16588 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16589 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16590 (fndecl_built_in_p): Change the type of the "name" argument to
16591 unsigned int.
16592 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16593 after check for DECL_BUILT_IN_CLASS.
16594 * cgraphclones.c (build_function_decl_skip_args): Use
16595 set_decl_built_in_function.
16596 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16597 * ipa-split.c (split_function): Likewise.
16598 * langhooks.c (add_builtin_function_common): Likewise.
16599 * omp-simd-clone.c (simd_clone_create): Likewise.
16600 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16601 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16602 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16603 DECL_FUNCTION_CODE.
16604 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16605 instead of DECL_FUNCTION_CODE.
16606 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16607 instead of DECL_FUNCTION_CODE.
16608 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16609 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16610 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16611 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16612 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16613 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16614 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16615 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16616 (alpha_gimple_fold_builtin): Likewise.
16617 * config/arc/arc.c (arc_expand_builtin): Likewise.
16618 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16619 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16620 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16621 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16622 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16623 * config/frv/frv.c (frv_expand_builtin): Likewise.
16624 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16625 (gcn_expand_builtin): Likewise.
16626 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16627 (fold_builtin_cpu): Likewise.
16628 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16629 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16630 (ix86_gimple_fold_builtin): Likewise.
16631 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16632 (ia64_expand_builtin): Likewise.
16633 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16634 * config/mips/mips.c (mips_expand_builtin): Likewise.
16635 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16636 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16637 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16638 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16639 * config/pa/pa.c (pa_expand_builtin): Likewise.
16640 * config/pru/pru.c (pru_expand_builtin): Likewise.
16641 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16642 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16643 Likewise.
16644 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16645 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16646 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16647 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16648 (rs6000_builtin_reciprocal): Likewise.
16649 * config/rx/rx.c (rx_expand_builtin): Likewise.
16650 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16651 * config/s390/s390.c (s390_expand_builtin): Likewise.
16652 * config/sh/sh.c (sh_expand_builtin): Likewise.
16653 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16654 (sparc_fold_builtin): Likewise.
16655 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16656 * config/spu/spu.c (spu_expand_builtin): Likewise.
16657 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16658 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16659 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16660 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16661 (xtensa_expand_builtin): Likewise.
16662
16663 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16664
16665 PR middle-end/91421
16666 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16667 before the DECL_FUNCTION_CODE.
16668 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16669 to check for a BUILT_IN_ALLOCA call.
16670 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16671 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16672 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16673 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16674 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16675 for BUILT_IN_NORMAL functions.
16676 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16677 test for BUILT_IN_TM_ABORT.
16678 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16679 to check for a BUILT_IN_STACK_RESTORE call.
16680 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16681 * tree-ssa-threadedge.c
16682 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16683 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16684 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16685 test for a BUILT_IN_NORMAL call instead of a negative test for
16686 an internal function call.
16687
16688 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16689
16690 * tree.h (build_vector_a_then_b): Declare.
16691 * tree.c (build_vector_a_then_b): New function.
16692 * fold-const-call.c (fold_while_ult): Likewise.
16693 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16694 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16695 (aarch64_svpattern): New enum.
16696 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16697 constants through aarch64_expand_mov_immediate.
16698 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16699 than general_operand as the predicate for operand 1.
16700 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16701 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16702 insn_type.
16703 (simd_immediate_info::simd_immediate_info): New overload that
16704 takes a scalar_int_mode and an svpattern.
16705 (simd_immediate_info::u): Add a "pattern" field.
16706 (svpattern_token): New function.
16707 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16708 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16709 (aarch64_sve_move_pred_via_while): New functions.
16710 (aarch64_expand_mov_immediate): Try using
16711 aarch64_sve_move_pred_via_while for predicates that contain N ones
16712 followed by M zeros but that do not correspond to a VLnnn pattern.
16713 (aarch64_sve_pred_valid_immediate): New function.
16714 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16715 with PTRUE and PFALSE.
16716 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16717 forms.
16718
16719 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16720
16721 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16722 flag.
16723 (darwin_override_options): Likewise.
16724 * config/darwin.h: Likewise.
16725 * config/darwin.opt: Likewise.
16726 * config/i386/i386.c (output_pic_addr_const): Likewise.
16727 * config/rs6000/darwin.h: Likewise.
16728 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16729 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16730 ... this TARGET_MACHO_SYMBOL_STUBS.
16731 (FUNCTION_PROFILER):Likewise.
16732 * config/i386/i386.h: Likewise.
16733
16734 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16735
16736 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16737 <case E_V2SImode>: Use vec_extr path for
16738 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16739 <case E_V8QImode>: Ditto.
16740 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16741 Use SWI48 mode iterator. Use %k to output operand 0.
16742 (*mmx_pextrw): New insn pattern.
16743 (*mmx_pextrb): Ditto.
16744 (*mmx_pextrb_zext): Ditto.
16745
16746 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16747
16748 * target.def (libc_has_function, libc_has_fast_function): Improve
16749 documentation strings.
16750 * doc/tm.texi: Regenerate.
16751
16752 2019-08-13 Caroline Tice <cmtice@google.com>
16753
16754 PR other/91396
16755 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16756 vtv_end.o or vtv_end_preinit.o files if !static.
16757
16758 2019-08-13 Olivier Hainque <hainque@adacore.com>
16759
16760 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16761
16762 2019-08-13 Olivier Hainque <hainque@adacore.com>
16763
16764 * rtlanal.c (tablejump_casesi_pattern): New function, to
16765 determine if a tablejump insn is a casesi dispatcher. Extracted
16766 from patch_jump_insn.
16767 * rtl.h (tablejump_casesi_pattern): Declare.
16768 * cfgrtl.c (patch_jump_insn): Use it.
16769 * dwarf2cfi.c (create_trace_edges): Use it.
16770
16771 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16772
16773 PR target/81800
16774 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16775 operand is larger than a long int.
16776
16777 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16778
16779 * machmode.h (opt_mode::else_mode): New function.
16780 (opt_mode::else_blk): Use it.
16781 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16782 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16783 (aarch64_gen_stepped_int_parallel): Likewise.
16784 (aarch64_stepped_int_parallel_p): Likewise.
16785 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16786 argument.
16787 * config/aarch64/aarch64.c
16788 (aarch64_expand_sve_widened_duplicate): Delete.
16789 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16790 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16791 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16792 argument. Use early returns in the !CONST_INT_P handling.
16793 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16794 than handling some inline.
16795 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16796 from...
16797 (aarch64_simd_container_mode): ...here.
16798 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16799 (aarch64_sve_ld1rq_operand_p): New functions.
16800 * config/aarch64/predicates.md (descending_int_parallel)
16801 (aarch64_sve_ld1rq_operand): New predicates.
16802 * config/aarch64/constraints.md (UtQ): New constraint.
16803 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16804 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16805 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16806 (@aarch64_sve_reinterpret<mode>): New expander.
16807 (*aarch64_sve_reinterpret<mode>): New pattern.
16808 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16809 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16810 (*sve_ld1rq<Vesize>): Replace with...
16811 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16812
16813 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16814
16815 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16816 16:12.
16817
16818 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16819
16820 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16821 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16822 (msp430_check_path_for_devices): New.
16823 (parse_devices_csv_1): New.
16824 (parse_devices_csv): New.
16825 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16826 MCU data in devices.csv before using the hard-coded data.
16827 Warn if devices.csv isn't found and the MCU wasn't found in the
16828 hard-coded data either.
16829 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16830 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16831 Search for devices.csv on -I and -L paths.
16832 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16833 msp430_set_driver_var.
16834 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16835 -mdevices-csv-loc=.
16836 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16837 searched for devices.csv.
16838 (mwarn-devices-csv): Document option.
16839
16840 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16841
16842 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16843 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16844 Use a single Dn alternative instead of separate Dz and Dm
16845 alternatives. Use aarch64_output_sve_move_immediate.
16846 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16847 function.
16848 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16849 for predicates too.
16850 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16851 (aarch64_output_ptrue): Delete.
16852
16853 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16854
16855 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16856 INDEX.
16857 (simd_immediate_info::value, simd_immediate_info::step)
16858 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16859 with...
16860 (simd_immediate_info::u): ...this new union.
16861 (simd_immediate_info::simd_immediate_info): Update accordingly.
16862 (aarch64_output_simd_mov_immediate): Likewise.
16863 (aarch64_output_sve_mov_immediate): Likewise.
16864
16865 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16866
16867 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16868 extra_gcc_objs.
16869 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16870 (msp430_select_cpu): New spec function.
16871 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16872 MCU data.
16873 * config/msp430/msp430-devices.c: New file.
16874 * config/msp430/msp430-devices.h: New file.
16875 * config/msp430/msp430.c: Remove msp430_mcu_data.
16876 (msp430_option_override): Use msp430_extract_mcu_data to extract
16877 MCU data.
16878 (msp430_use_f5_series_hwmult): Likewise.
16879 (use_32bit_hwmult): Likewise.
16880 (msp430_no_hwmult): Likewise.
16881 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16882 assembler.
16883 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16884 and -mcpu option.
16885 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16886 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16887 Remove hard-coded MCU multilib data.
16888
16889 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16890
16891 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16892 based on the mode instead of testing properties of it.
16893
16894 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16895
16896 * doc/md.texi: Document the x and y constraints for AArch64.
16897 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16898 (FP_LO8_REGS): New reg_class.
16899 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16900 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16901 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16902 * config/aarch64/predicates.md (aarch64_simd_register): Use
16903 FP_REGNUM_P instead of checking the classes manually.
16904 * config/aarch64/constraints.md (y): New constraint.
16905
16906 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16907
16908 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16909 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16910 * config/aarch64/aarch64-simd.md
16911 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16912 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16913 from the asm template.
16914 * config/aarch64/aarch64-sve.md
16915 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16916 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16917 from the asm template.
16918 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16919 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16920 from the asm template.
16921 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16922
16923 2019-08-13 Martin Liska <mliska@suse.cz>
16924
16925 * value-prof.c (gimple_ic_transform): Add new line.
16926 Print details with MSG_NOTE.
16927
16928 2019-08-13 Martin Liska <mliska@suse.cz>
16929
16930 * doc/invoke.texi: Document automatic detection of jobserver.
16931 * lto-wrapper.c (run_gcc): Detect jobserver always.
16932
16933 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16934
16935 * config/i386/i386-expand.c (ix86_expand_vector_set)
16936 <case E_V2SImode>: Use vec_merge path for
16937 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16938 <case E_V8QImode>: Ditto.
16939 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16940 (*mmx_pinsrb): Ditto.
16941
16942 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16943
16944 PR target/83250
16945 PR target/91340
16946 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16947 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16948 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16949 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16950 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16951
16952 2019-08-12 Richard Biener <rguenther@suse.de>
16953
16954 PR lto/91375
16955 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16956 flag_devirtualize.
16957
16958 2019-08-12 Richard Biener <rguenther@suse.de>
16959
16960 PR driver/91130
16961 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16962 lang_mask option, always use CL_DRIVER.
16963 (get_options_from_collect_gcc_options): Adjust.
16964 (find_and_merge_options): Likewise.
16965 (run_gcc): Likewise.
16966
16967 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16968
16969 * ipa-predicate.c (add_condition): Restore inverted test.
16970
16971 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16972
16973 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16974 (enum omp_clause_device_type_kind): New enum.
16975 (struct tree_omp_clause): Add subcode.device_type_kind.
16976 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16977 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16978 for device_type clause.
16979 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16980 * tree-pretty-print.c (dump_omp_clause): Likewise.
16981
16982 PR target/91408
16983 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16984 vector_operand.
16985
16986 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16987
16988 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16989 handling spilled pseudos.
16990
16991 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16992
16993 PR target/91386
16994 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16995 to preserve the contents of the original insns.
16996
16997 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16998
16999 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17000 (addsi3_compare_op2): Likewise.
17001
17002 2019-08-09 Martin Liska <mliska@suse.cz>
17003
17004 * alias.c (alias_ptr_types_compatible_p): Strengten
17005 type comparison in LTO mode.
17006
17007 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17008
17009 PR middle-end/90313
17010 * tree-tailcall.c (find_tail_calls): Reject calls that might
17011 read from an escaped RESULT_DECL.
17012
17013 2019-08-09 Martin Liska <mliska@suse.cz>
17014
17015 * doc/invoke.texi: Document the option value.
17016 * lto-wrapper.c (run_gcc): Set auto_parallel
17017 only with -flto=auto.
17018
17019 2019-08-09 Martin Liska <mliska@suse.cz>
17020
17021 * opts.c (common_handle_option): Error for an invalid argument
17022 to -flto=.
17023
17024 2019-08-09 Martin Liska <mliska@suse.cz>
17025
17026 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17027 use dump_printf to report optimization.
17028 (sem_variable::merge): Likwise.
17029 (sem_item_optimizer::merge_classes): Use dump_printf to report
17030 ICF hits.
17031
17032 2019-08-09 Martin Liska <mliska@suse.cz>
17033
17034 * value-prof.c (gimple_divmod_fixed_value_transform):
17035 Use dump_printf_loc.
17036 (gimple_mod_pow2_value_transform): Likewise.
17037 (gimple_mod_subtract_transform): Likewise.
17038 (init_node_map): Likewise.
17039 (gimple_ic_transform): Likewise.
17040 (gimple_stringops_transform): Likewise.
17041
17042 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17043
17044 * doc/extend.texi: Add const qualifier to ld intrinsics.
17045
17046 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17047
17048 * config/rs6000/dfp.md (D64_D128): Rename to ...
17049 (DDTD): ... this, throughout.
17050 (dfp_suffix): Rename to ...
17051 (q): ... this, throughout.
17052
17053 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17054
17055 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17056 (dfp_suffix): Ditto.
17057 (adddd3, addtd3): Merge to ...
17058 (add<mode>3 for D64_D128): ... this.
17059 (subdd3, subtd3): Merge to ...
17060 (sub<mode>3 for D64_D128): ... this.
17061 (muldd3, multd3): Merge to ...
17062 (mul<mode>3 for D64_D128): ... this.
17063 (divdd3, divtd3): Merge to ...
17064 (div<mode>3 for D64_D128): ... this.
17065 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17066 (*cmp<mode>_internal1 for D64_D128): ... this.
17067 (ftruncdd2, ftrunctd2): Merge to ...
17068 (ftrunc<mode>2 for D64_D128): ... this.
17069 (fixdddi2, fixtddi2): Merge to ...
17070 (fix<mode>di2 for D64_D128): ... this.
17071
17072 2019-08-08 Jim Wilson <jimw@sifive.com>
17073
17074 PR target/91229
17075 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17076 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17077 Pass into recursive call.
17078 (riscv_flatten_aggregate_argument): New arg. Pass to
17079 riscv_flatten_aggregate_field.
17080 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17081 riscv_flatten_aggregate_argument twice, with false and true as last
17082 arg. Process result twice. Compare results and warn if different.
17083 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17084
17085 2019-08-08 Martin Liska <mliska@suse.cz>
17086
17087 PR bootstrap/91352
17088 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17089 * lto-wrapper.c (jobserver_active_p): Likewise.
17090
17091 2019-08-08 Martin Liska <mliska@suse.cz>
17092
17093 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17094 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17095 (create_version_clone_with_body): Likewise.
17096
17097 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17098
17099 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17100 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17101 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17102 GOVD_EXPLICIT flags.
17103 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17104 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17105 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17106 call install_var_field with mask 11 instead of 3.
17107 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17108 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17109
17110 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17111
17112 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17113 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17114
17115 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17116
17117 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17118 MOVPRFX alternatives. Make the GPR alternatives more expensive
17119 than the FPR ones.
17120
17121 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17122
17123 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17124 Disparage the GPR alternative relative to the FPR one.
17125 Fix handling of 8-bit and 16-bit FPR values.
17126
17127 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17128
17129 * config/aarch64/iterators.md (BITWISEV): Delete.
17130 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17131 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17132 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17133 UNSPEC_FMINNMV, UNSPEC_FMINV.
17134 (bit_reduc_op): Delete.
17135 (sve_int_op): New int attribute.
17136 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17137 UNSPEC_FMINNMV, UNSPEC_FMINV.
17138 * config/aarch64/aarch64-sve.md
17139 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17140 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17141 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17142 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17143 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17144 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17145 new patterns.
17146 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17147 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17148 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17149 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17150 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17151 new patterns.
17152
17153 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17154
17155 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17156 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17157 (fms<mode>4, *fms<mode>4): Replace with...
17158 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17159 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17160 Use unspecs instead of rtx codes.
17161 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17162 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17163
17164 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17165
17166 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17167 int iterator.
17168 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17169 * config/aarch64/aarch64-sve.md
17170 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17171 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17172 use a single unspec for the rhs.
17173 (*<su><maxmin><mode>3): Delete.
17174 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17175
17176 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17177
17178 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17179 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17180 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17181 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17182 (optab, sve_fp_op): Handle them.
17183 (SVE_FP_UNARY): Delete.
17184 (optab): Remove sqrt entry.
17185 (sve_fp_op): Remove neg, abs and sqrt entries.
17186 (SVE_COND_FP_UNARY): New int iterator.
17187 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17188 (*<frint_pattern><mode>2): Delete.
17189 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17190 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17191 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17192 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17193
17194 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17195
17196 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17197
17198 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17199
17200 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17201 (UNSPEC_COND_FADD): ...this.
17202 (UNSPEC_COND_SUB): Rename to...
17203 (UNSPEC_COND_FSUB): ...this.
17204 (UNSPEC_COND_MUL): Rename to...
17205 (UNSPEC_COND_FMUL): ...this.
17206 (UNSPEC_COND_DIV): Rename to...
17207 (UNSPEC_COND_FDIV): ...this.
17208 (UNSPEC_COND_MAX): Rename to...
17209 (UNSPEC_COND_FMAXNM): ...this.
17210 (UNSPEC_COND_MIN): Rename to...
17211 (UNSPEC_COND_FMINNM): ...this.
17212 (UNSPEC_COND_LT): Rename to...
17213 (UNSPEC_COND_FCMLT): ...this.
17214 (UNSPEC_COND_LE): Rename to...
17215 (UNSPEC_COND_FCMLE): ...this.
17216 (UNSPEC_COND_EQ): Rename to...
17217 (UNSPEC_COND_FCMEQ): ...this.
17218 (UNSPEC_COND_NE): Rename to...
17219 (UNSPEC_COND_FCMNE): ...this.
17220 (UNSPEC_COND_GE): Rename to...
17221 (UNSPEC_COND_FCMGE): ...this.
17222 (UNSPEC_COND_GT): Rename to...
17223 (UNSPEC_COND_FCMGT): ...this.
17224 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17225 (sve_fp_op_rev): Update accordingly.
17226 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17227
17228 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17229
17230 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17231 banner comments.
17232 * config/aarch64/check-sve-md.awk: New file.
17233 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17234 (insn-conditions.md): Depend on it.
17235
17236 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17237
17238 PR target/91385
17239 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17240 (*negsi2_cmpz_zext): Ditto.
17241
17242 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17243
17244 * config/aarch64/iterators.md (commutative): Remove.
17245
17246 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17247
17248 PR driver/91130
17249 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17250 processing COLLECT_GCC_OPTIONS.
17251 (run_gcc): Likewise.
17252
17253 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17254
17255 PR tree-optimization/91109
17256 * lra-remat.c (update_scratch_ops): Remove assignment of the
17257 hard register.
17258
17259 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17260
17261 * data-streamer.h (streamer_write_poly_uint64): Declare.
17262 (streamer_read_poly_uint64): Likewise.
17263 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17264 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17265 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17266 (add_condition): Take a poly_int64 size.
17267 * ipa-predicate.c (add_condition): Likewise.
17268 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17269 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17270 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17271 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17272 condition::size as a poly_int64.
17273 (unmodified_parm_1): Take a poly_int64 size pointer.
17274 (unmodified_parm): Likewise.
17275 (unmodified_parm_or_parm_agg_item): Likewise.
17276 (set_cond_stmt_execution_predicate): Update accordingly.
17277 (set_switch_stmt_execution_predicate): Likewise.
17278 (will_be_nonconstant_expr_predicate): Likewise.
17279 (will_be_nonconstant_predicate): Likewise.
17280 (inline_read_section): Stream condition::size as a poly_int.
17281 (ipa_fn_summary_write): Likewise.
17282
17283 2019-08-07 Martin Liska <mliska@suse.cz>
17284
17285 * fold-const.c (twoval_comparison_p): Replace int
17286 with bool as a return type.
17287 (simple_operand_p): Likewise.
17288 (operand_equal_p): Replace int with bool as a return type.
17289 * fold-const.h (operand_equal_p): Likewise.
17290
17291 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17292
17293 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17294 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17295 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17296 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17297 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17298 * tree-pretty-print.c (dump_omp_clause): Likewise.
17299 * tree-nested.c (convert_nonlocal_omp_clauses,
17300 convert_local_omp_clauses): Likewise.
17301 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17302 Likewise.
17303 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17304 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17305 clause with array or reference to array types, no matter what type
17306 except for reference it has.
17307
17308 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17309
17310 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17311
17312 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17313
17314 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17315 (arch_canonicalize): Support rv32g and rv64g and fix error
17316 handling.
17317
17318 2019-08-06 Martin Liska <mliska@suse.cz>
17319
17320 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17321 and DECL_IS_OPERATOR_DELETE_P.
17322
17323 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17324
17325 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17326 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17327 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17328 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17329 (gimplify_omp_for): Don't do C++ random access iterator clause
17330 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17331 don't predetermine the artificial iterator in case of C++ random
17332 access iterators as lastprivate, but private. For OMP_LOOP, force
17333 bind expr around simd body and force for_pre_body before the
17334 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17335 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17336 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17337 diff var of C++ random access iterators. Handle
17338 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17339 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17340 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17341 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17342 * omp-low.c (lower_rec_input_clauses): For
17343 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17344 variables instead of default constructing them.
17345 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17346 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17347 is_taskloop_ctx check from the assert to the guarding condition.
17348
17349 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17350
17351 * config/riscv/multilib-generator: (canonical_order): New.
17352 (arch_canonicalize): Dito.
17353 Apply arch_canonicalize for alts.
17354
17355 2019-08-05 Martin Sebor <msebor@redhat.com>
17356
17357 * doc/extend.texi (Common Variable Attributes): Document alias
17358 attribute.
17359
17360 2019-08-05 Marek Polacek <polacek@redhat.com>
17361
17362 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17363 * doc/invoke.texi: Document -Wcomma-subscript.
17364
17365 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17366
17367 * tree-core.h (tree_function_decl): Make function_code an
17368 independent field. Group the remaining bitfields into bytes
17369 and move decl_type so that it contines to be at a byte boundary.
17370 Leave 12 bits for future expansion.
17371
17372 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17373
17374 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17375 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17376 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17377 IFN_MASK_STORE.
17378
17379 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17380
17381 * gimple.h (gimple_move_vops): Declare.
17382 * gimple.c (gimple_move_vops): New function
17383 * gimple-fold.c (replace_call_with_call_and_fold)
17384 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17385 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17386 (gimple_fold_call): Use it.
17387 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17388 * tree-call-cdce.c (use_internal_fn): Likewise.
17389 * tree-if-conv.c (predicate_load_or_store): Likewise.
17390 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17391 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17392 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17393 (update_call_from_tree): Likewise.
17394 * tree-vect-stmts.c (vectorizable_load): Likewise.
17395 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17396
17397 2019-08-05 Martin Liska <mliska@suse.cz>
17398
17399 PR c++/91334
17400 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17401 with not arguments.
17402 (eliminate_unnecessary_stmts): Likewise.
17403
17404 2019-08-05 Richard Biener <rguenther@suse.de>
17405
17406 PR middle-end/91169
17407 * fold-const.c (get_array_ctor_element_at_index): Create
17408 offset_ints according to the sign of the index type and treat
17409 that as signed if it is obviously so.
17410
17411 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17412
17413 PR target/91341
17414 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17415 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17416 _mm256_storeu2_m128i): New function.
17417
17418 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17419
17420 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17421 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17422
17423 2019-08-05 Alan Modra <amodra@gmail.com>
17424
17425 PR target/91349
17426 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17427 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17428
17429 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17430
17431 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17432 bug that was fixed in Tcl 8.6.1.
17433
17434 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17435
17436 * config/rs6000/future.md: New file.
17437 * config/rs6000/rs6000.md: Include future.md.
17438 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17439
17440 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17441
17442 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17443 check to use targetm.slow_unaligned_access instead.
17444
17445 * function.c (assign_param_data_one): Remove unused data members.
17446
17447 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17448
17449 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17450 build_distinct_type_copy.
17451 (simd_clone_adjust_argument_types): Ditto.
17452 (simd_clone_adjust): Call build_distinct_type_copy here.
17453 (expand_simd_clones): Ditto.
17454
17455 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17456
17457 PR target/91201
17458 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17459
17460 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17461
17462 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17463 from 'const void *'.
17464 (sort_locs_in_loop_postorder_cmp): Likewise.
17465
17466 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17467
17468 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17469 (hot-bb-count-ws-permille): Likewise.
17470 (hot-bb-frequency-fraction): Likewise.
17471 (unlikely-bb-count-fraction): Likewise.
17472 * params.def (hot-bb-count-fraction): Rework description.
17473 (hot-bb-count-ws-permille): Likewise.
17474 (hot-bb-frequency-fraction): Likewise.
17475 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17476 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17477
17478 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17479
17480 PR target/91323
17481 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17482 Return false.
17483
17484 2019-08-02 Richard Biener <rguenther@suse.de>
17485
17486 * vec.h (vec::sort): Add gcc_qsort_r support.
17487 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17488 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17489 to gcc_qsort_r style callback.
17490 (sort_locs_in_loop_postorder_cmp): Likewise.
17491 (analyze_memory_references): Use gcc_sort_r interfaces.
17492 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17493
17494 2019-08-02 Martin Liska <mliska@suse.cz>
17495
17496 PR lto/91313
17497 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17498 to detect working job server.
17499 (driver::detect_jobserver): Test whether jobserver
17500 is active from GCC driver. That will prevent situation where
17501 GCC is invoked from a LD plugin and the linker already uses
17502 file descriptors suggested by make. That leads to a wrong
17503 detection.
17504 * gcc.h (driver): Add detect_jobserver.
17505 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17506 not scanning for --jobserver-auth prefix.
17507
17508 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17509
17510 PR tree-optimization/91201
17511 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17512 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17513 extraction.
17514
17515 2019-08-01 Martin Sebor <msebor@redhat.com>
17516
17517 PR c++/90947
17518 * tree.c (type_initializer_zero_p): Define.
17519 * tree.h (type_initializer_zero_p): New function.
17520
17521 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17522
17523 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17524
17525 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17526
17527 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17528 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17529 * predict.c (maybe_hot_count_p): Likewise.
17530 (maybe_hot_bb_p): Tweak comment.
17531 (maybe_hot_edge_p): Likewise.
17532 (probably_never_executed): Likewise. Minor tweak.
17533 (probably_never_executed_bb_p): Likewise.
17534 (unlikely_executed_edge_p): Likewise.
17535 (probably_never_executed_edge_p): Likewise.
17536 (optimize_function_for_size_p): Likewise.
17537 (optimize_function_for_speed_p): Likewise.
17538 (function_optimization_type): Likewise.
17539 (optimize_bb_for_size_p): Likewise.
17540 (optimize_bb_for_speed_p): Likewise.
17541 (bb_optimization_type): Likewise.
17542 (optimize_edge_for_size_p): Likewise.
17543 (optimize_edge_for_speed_p): Likewise.
17544 (optimize_insn_for_size_p): Likewise.
17545 (optimize_insn_for_speed_p): Likewise.
17546 (optimize_loop_for_size_p): Likewise.
17547 (optimize_loop_for_speed_p): Likewise.
17548 (optimize_loop_nest_for_speed_p): Likewise.
17549 (optimize_loop_nest_for_size_p): Likewise.
17550 (predictable_edge_p): Likewise.
17551 (handle_missing_profiles): Minor tweak.
17552
17553 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17554
17555 * config/rs6000/predicates.md (pcrel_external_address): Update
17556 comment.
17557
17558 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17559
17560 PR target/85693
17561 * config/i386/mmx.md (usadv8qi): New expander.
17562
17563 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17564
17565 PR c++/90590
17566 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17567 with reserved names that are in a system header.
17568
17569 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17570
17571 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17572 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17573 (*vec_extractv2si_0_zext): Ditto.
17574 (*vec_extractv2si_1): Add (rm,x) alternative.
17575 (*vec_extractv2si_1_zext): New insn pattern.
17576 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17577 insn constraint.
17578
17579 2019-08-01 Richard Biener <rguenther@suse.de>
17580
17581 * domwalk.c (bb_postorder): Remove static variable.
17582 (cmp_bb_postorder): Adjust.
17583 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17584 (dom_walker::walk): Adjust.
17585
17586 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17587
17588 * sort.cc (sort_r_ctx): New struct.
17589 (reorder23): Make templated on context type.
17590 (reorder45): Ditto.
17591 (cmp1): Ditto. Adjust signature.
17592 (netsort): Ditto.
17593 (mergesort): Ditto.
17594 [CHECKING_P] (cmp2to3): New static function. Use it...
17595 (gcc_qsort) [CHECKING_P]: ...here.
17596 (gcc_sort_r): New function.
17597 * system.h (sort_r_cmp_fn): New function typedef.
17598 (qsort_chk): Adjust signature.
17599 (gcc_sort_r): Declare.
17600 * vec.c (qsort_chk_error): Adjust.
17601 (qsort_chk): Adjust.
17602
17603 2019-08-01 Richard Biener <rguenther@suse.de>
17604
17605 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17606 (compute_antic): Localize it here.
17607
17608 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17609
17610 * common/config/riscv/riscv-common.c: Check -march string ends
17611 with null.
17612
17613 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17614
17615 * ipa-devirt.c (type_warning_cmp): Make static.
17616 (decl_warning_cmp): Ditto.
17617
17618 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17619
17620 PR target/91050
17621 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17622 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17623 use of deleted rs6000_dejagnu_cpu_index variable.
17624 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17625 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17626 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17627 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17628 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17629 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17630
17631 2019-07-31 Richard Biener <rguenther@suse.de>
17632
17633 PR tree-optimization/91280
17634 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17635 Decompose MEM_REF manually for offset handling.
17636
17637 2019-07-31 Richard Biener <rguenther@suse.de>
17638
17639 PR tree-optimization/91293
17640 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17641 of reduction stmts.
17642
17643 2019-07-31 Matt Thomas <matt@3am-software.com>
17644 Nick Hudson <nick@nthcliff.demon.co.uk>
17645 Matthew Green <mrg@eterna.com.au>
17646 Maya Rashish <coypu@sdf.org>
17647
17648 * config.gcc (hppa*-*-netbsd*): New target.
17649 * config/pa/pa-netbsd.h: New file.
17650 * config/pa/pa32-netbsd.h: New file.
17651
17652 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17653
17654 PR tree-optimization/91201
17655 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17656
17657 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17658
17659 * config/gcn/gcn-valu.md
17660 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17661 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17662 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17663 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17664 struct ilist. Add nops for delayeduse insns.
17665 * config/gcn/gcn.md (delayeduse): New attribute.
17666 (*movbi): Remove s_waitcnt from stores.
17667 (*mov<mode>_insn): Likewise.
17668 (*movti_insn): Likewise. Add delayeduse attribute.
17669 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17670 (atomic_store<mode>): Remove or adjust s_waitcnt.
17671
17672 2019-07-31 Richard Biener <rguenther@suse.de>
17673
17674 * vr-values.h (vr_values::swap_vr_value): New.
17675 (vr_values::free_value_range): likewise.
17676 * vr-values.c (vr_values::swap_vr_value): Implement.
17677 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17678 Do not return a range or take a var.
17679 (evrp_range_analyzer::stack): Change back to recording a non-const
17680 value_range *.
17681 * gimple-ssa-evrp-analyze.c
17682 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17683 value-range.
17684 (evrp_range_analyzer::pop_to_marker): Adjust.
17685 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17686 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17687 no longer needed value-range.
17688
17689 2019-07-31 Martin Liska <mliska@suse.cz>
17690
17691 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17692 have size and (or) alignment as 2nd and later arguments.
17693 Mark all of them as necessary.
17694
17695 2019-07-31 Richard Biener <rguenther@suse.de>
17696
17697 PR tree-optimization/91178
17698 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17699 Use tail-recursion.
17700
17701 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17702
17703 PR tree-optimization/91201
17704 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17705 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17706 TARGET_AVX512F.
17707 (reduc_plus_scal_<mode>): Improve formatting by introducing
17708 a temporary.
17709
17710 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17711
17712 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17713 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17714 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17715 (aarch64_init_tme_builtins): New.
17716 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17717 (aarch64_expand_builtin_tme): New.
17718 (aarch64_expand_builtin): Handle TME builtins.
17719 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17720 __ARM_FEATURE_TME when enabled.
17721 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17722 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17723 (TARGET_TME): New.
17724 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17725 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17726 UNSPECV_TCANCEL.
17727 (tstart, ttest, tcommit, tcancel): New instructions.
17728 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17729 (__tcancel, __ttest): New.
17730 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17731 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17732 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17733 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17734 * config/arm/types.md: Add new tme type attr.
17735 * doc/invoke.texi: Document "tme".
17736
17737 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17738
17739 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17740 warn_unused_result attribute.
17741 (cmse_check_address_range): Add warn_unused_result attribute.
17742
17743 2019-07-31 Richard Biener <rguenther@suse.de>
17744
17745 PR tree-optimization/91257
17746 * tree-vrp.c (union_ranges): Unify equality and less tests
17747 by using compare_values. Re-order cheap tests first.
17748
17749 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17750
17751 PR middle-end/91301
17752 * gimplify.c (gimplify_omp_for): If for class iterator on
17753 distribute parallel for there is no data sharing clause
17754 on inner_for_stmt, look for private clause on combined
17755 parallel too and if found, move it to inner_for_stmt.
17756
17757 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17758
17759 * lra-int.h (lra_operand_data): Remove early_clobber field.
17760 (lra_insn_reg): Likewise.
17761 * lra.c (debug_operand_data): Update accordingly.
17762 (setup_operand_alternative): Likewise.
17763 (new_insn_reg): Likewise. Remove early_clobber parameter.
17764 (collect_non_operand_hard_regs): Update call accordingly.
17765 Don't assign to lra_insn_reg::early_clobber.
17766 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17767 and update calls to new_insn_reg.
17768 (lra_update_insn_regno_info): Update calls accordingly.
17769 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17770 alternative number as a parameter and test whether the operand
17771 is earlyclobbered in that particular alternative.
17772 (process_alt_operands): Update call accordingly. Use per-alternative
17773 checks for earyclobber here too.
17774 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17775 against zero for IRA_UNKNOWN_ALT.
17776
17777 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17778
17779 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17780
17781 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17782
17783 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17784 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17785
17786 2019-07-30 Martin Liska <mliska@suse.cz>
17787
17788 PR ipa/89330
17789 * cgraph.c (cgraph_edge::make_direct): Use
17790 edge->indirect_unknown_callee as edge->resolve_speculation can
17791 deallocate edge which is this pointer.
17792
17793 2019-07-30 Richard Biener <rguenther@suse.de>
17794
17795 PR tree-optimization/91257
17796 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17797
17798 2019-07-30 Martin Liska <mliska@suse.cz>
17799
17800 * doc/invoke.texi: Document new behavior.
17801 * lto-wrapper.c (cpuset_popcount): New function
17802 is a copy of libgomp/config/linux/proc.c.
17803 (init_num_threads): Likewise.
17804 (run_gcc): Automatically detect core count for -flto.
17805 (jobserver_active_p): New function.
17806
17807 2019-07-30 Richard Biener <rguenther@suse.de>
17808
17809 PR tree-optimization/91257
17810 * bitmap.h (bitmap_ior_into_and_free): Declare.
17811 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17812 whether to add the unliked element to the freelist.
17813 (bitmap_list_insert_element_after): Add defaulted param for
17814 an already allocated element.
17815 (bitmap_ior_into_and_free): New function.
17816 * tree-ssa-structalias.c (condense_visit): Reduce the
17817 ponts-to and edge bitmaps of the SCC members in a
17818 logarithmic fashion rather than all to one.
17819
17820 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17821
17822 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17823 parameter. When nonnull, make sure that the addition or subtraction
17824 has the same condition.
17825 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17826 for CFN_COND_MUL too.
17827
17828 2019-07-30 Richard Biener <rguenther@suse.de>
17829
17830 PR tree-optimization/91291
17831 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17832 constant values.
17833
17834 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17835
17836 PR middle-end/91216
17837 * omp-low.c (global_nonaddressable_vars): New variable.
17838 (use_pointer_for_field): For global decls, if they are non-addressable,
17839 remember it in the global_nonaddressable_vars bitmap, if they are
17840 addressable and in the global_nonaddressable_vars bitmap, ignore their
17841 TREE_ADDRESSABLE bit.
17842 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17843 vars in global_nonaddressable_vars bitmap.
17844 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17845
17846 PR target/91150
17847 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17848 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17849 comparison to unsigned HOST_WIDE_INT before shifting it left.
17850
17851 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17852
17853 * config/i386/i386.md (movstrict<mode>): Use register_operand
17854 predicate for operand 0. Add expander condition. Assert that
17855 operand 0 is a SUBREG RTX.
17856 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17857 Update operand constraints and insn condition.
17858 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17859 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17860 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17861 Update operand 0 constraints.
17862 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17863
17864 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17865
17866 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17867 when -m{code,data}-region are used without -mlarge.
17868 * config/msp430/msp430.c (msp430_option_override): Error when a
17869 non-default code or data region is used without -mlarge.
17870 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17871 attributes when they are used without -mlarge.
17872
17873 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17874
17875 PR target/70320
17876 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17877
17878 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17879
17880 PR middle-end/91242
17881 * wide-int.h (generic_wide_int::sext_elt): New function.
17882 * inchash.h (hash::add_wide_int): Use it instead of elt.
17883
17884 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17885
17886 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17887 CODE_FOR_arm_##.
17888 * config/arm/arm.md (<crc_variant>): Rename to...
17889 (arm_<crc_variant>): ... This.
17890 (<cdp>): Rename to...
17891 (arm_<cdp>): ... This.
17892 (<ldc>): Rename to...
17893 (arm_<ldc>): ... This.
17894 (<stc>): Rename to...
17895 (arm_<stc>): ... This.
17896 (<mcr>): Rename to...
17897 (arm_<mcr>): ... This.
17898 (<mrc>): Rename to...
17899 (arm_<mrc>): ... This.
17900 (<mcrr>): Rename to...
17901 (arm_<mcrr>): ... This.
17902 (<mrrc>): Rename to...
17903 (arm_<mrrc>): ... This.
17904
17905 2019-07-29 Richard Biener <rguenther@suse.de>
17906
17907 PR tree-optimization/91257
17908 * tree-ssa-sccvn.h (struct vn_avail): New.
17909 (struct vn_ssa_aux): Add avail member.
17910 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17911 member, add m_avail_freelist one.
17912 (rpo_elim::~rpo_elim): Remove.
17913 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17914 data structure.
17915 (rpo_elim::eliminate_push_avail): Likewise.
17916 (do_unwind): Likewise.
17917 (do_rpo_vn): Likewise.
17918
17919 2019-07-29 Richard Biener <rguenther@suse.de>
17920
17921 PR tree-optimization/91257
17922 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17923 most cases, instead call compare_values which handles the
17924 symbolic ranges we handle specially.
17925 (compare_values_warnv): Do not call operand_less_p but open-code
17926 the effective fold calls. Avoid converting so much.
17927
17928 2019-07-29 Martin Liska <mliska@suse.cz>
17929
17930 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17931 remove LHS of operator new call. It's handled latter.
17932
17933 2019-07-29 Richard Biener <rguenther@suse.de>
17934
17935 PR tree-optimization/91267
17936 * vr-values.c (vr_values::update_value_range): Add early return
17937 for effectively VARYING lattice entry.
17938
17939 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17940
17941 PR debug/86638
17942 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17943 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17944 necessary if keep_all_vdefs_p is true.
17945 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17946 that keep_all_vdefs_p is false.
17947 (mark_all_reaching_defs_necessary): Likewise.
17948 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17949
17950 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17951
17952 * common.opt (Og): Change the initial value of flag_dse to 0.
17953 * opts.c (default_options_table): Move OPT_ftree_dse from
17954 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17955 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17956 entry before the OPT_ftree_sra entry.
17957 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17958 of flags disabled by Og.
17959
17960 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17961
17962 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17963 variables for -Og.
17964
17965 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17966
17967 * doc/sourcebuild.texi (check-function-bodies): Document.
17968
17969 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17970
17971 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17972 VEC_DUPLICATE of a fixed-length vector even if the result
17973 is variable-length. Likewise fold a duplicate of a
17974 variable-length vector if the variable-length vector is
17975 itself a duplicate of a fixed-length sequence.
17976 (test_vector_ops_duplicate): Test more cases.
17977
17978 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17979
17980 * vector-builder.h (vector_builder): Add a shape template parameter.
17981 (vector_builder::new_unary_operation): New function, generalizing
17982 the old tree_vector_builder function.
17983 (vector_builder::new_binary_operation): Likewise.
17984 (vector_builder::binary_encoded_nelts): Likewise.
17985 * int-vector-builder.h (int_vector_builder): Update template
17986 parameters to vector_builder.
17987 (int_vector_builder::shape_nelts): New function.
17988 * rtx-vector-builder.h (rtx_vector_builder): Update template
17989 parameters to vector_builder.
17990 (rtx_vector_builder::shape_nelts): New function.
17991 (rtx_vector_builder::nelts_of): Likewise.
17992 (rtx_vector_builder::npatterns_of): Likewise.
17993 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17994 * tree-vector-builder.h (tree_vector_builder): Update template
17995 parameters to vector_builder.
17996 (tree_vector_builder::shape_nelts): New function.
17997 (tree_vector_builder::nelts_of): Likewise.
17998 (tree_vector_builder::npatterns_of): Likewise.
17999 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18000 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18001 (tree_vector_builder::new_binary_operation): Delete.
18002 (tree_vector_builder::binary_encoded_nelts): Likewise.
18003 * simplify-rtx.c: Include rtx-vector-builder.h.
18004 (distributes_over_addition_p): New function.
18005 (simplify_const_unary_operation)
18006 (simplify_const_binary_operation): Generalize handling of vector
18007 constants to include variable-length vectors.
18008 (test_vector_ops_series): Add more tests.
18009
18010 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18011
18012 PR lto/91222
18013 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18014 than INDENTIFIER_POINTER.
18015
18016 2019-07-28 Martin Liska <mliska@suse.cz>
18017
18018 PR ipa/89330
18019 * cgraph.c (symbol_table::create_edge): Always allocate
18020 a cgraph_edge.
18021 (symbol_table::free_edge): Store summary_id to
18022 edge_released_summary_ids if != -1;
18023 * cgraph.h (NEXT_FREE_NODE): Remove.
18024 (SET_NEXT_FREE_NODE): Likewise.
18025 (NEXT_FREE_EDGE): Likewise.
18026 (symbol_table::release_symbol): Store summary_id to
18027 cgraph_released_summary_ids if != -1;
18028 (symbol_table::allocate_cgraph_symbol): Always allocate
18029 a cgraph_node.
18030
18031 2019-07-28 Alan Modra <amodra@gmail.com>
18032
18033 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18034 gen_sibcall.
18035
18036 2019-07-28 Alan Modra <amodra@gmail.com>
18037
18038 PR target/91135
18039 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18040 define.
18041 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18042 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18043 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18044
18045 2019-07-28 Alan Modra <amodra@gmail.com>
18046
18047 PR target/91050
18048 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18049 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18050 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18051 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18052 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18053 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18054 in asm_default spec.
18055 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18056 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18057
18058 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18059
18060 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18061
18062 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18063
18064 PR target/89517
18065 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18066 * config/aarch64/aarch64-option-extensions.def: Add new comments
18067 and restore easier to read options.
18068
18069 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18070
18071 * convert.c (convert_to_real_1): Move part of conversion code...
18072 * match.pd: ...To here.
18073
18074 2019-07-26 Martin Jambor <mjambor@suse.cz>
18075
18076 PR ipa/89330
18077 * ipa-inline-transform.c (check_speculations_1): New function.
18078 (push_all_edges_in_set_to_vec): Likewise.
18079 (check_speculations): Use check_speculations_1, new parameter
18080 new_edges.
18081 (inline_call): Pass new_edges to check_speculations.
18082 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18083 NULL.
18084 (speculation_useful_p): Early return true if edge is inlined, remove
18085 later checks for inline_failed.
18086
18087 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18088
18089 PR rtl-optimization/91223
18090 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18091 matching with INOUT operand.
18092
18093 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18094
18095 * stmt.c (expand_case): Try to narrow the index type if it's larger
18096 than a word. Tidy up.
18097
18098 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18099
18100 * cif-code.def (NEVER_CALL): New code.
18101 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18102 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18103
18104 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18105
18106 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18107 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18108
18109 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18110
18111 * ipa-devirt.c (add_type_duplicate): Fix return value.
18112
18113 2019-07-25 Richard Biener <rguenther@suse.de>
18114
18115 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18116 type parameter and use it instead of guessing expression
18117 type from the first operand.
18118 (extract_range_from_binary_expr): Pass expr_type down.
18119
18120 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18121
18122 * config/arm/arm.md (SATrev): Change to code attribute.
18123 (*satsi_<SAT:code>): Adjust for the above.
18124 (*satsi_<SAT:code>_shift): Likewise.
18125
18126 2019-07-25 Richard Biener <rguenther@suse.de>
18127
18128 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18129 Make value_range * temporary const.
18130 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18131 Likewise.
18132 (evrp_range_analyzer::record_ranges_from_): Likewise.
18133 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18134 deal with having recorded a const one.
18135 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18136 Return a const value_range *.
18137 (evrp_range_analyzer::pop_value_range): Likewise.
18138 (evrp_range_analyzer::stack): Record const value_range *s.
18139 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18140 Adjust.
18141 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18142 (format_integer): Likewise.
18143 (sprintf_dom_walker::handle_gimple_call): Likewise.
18144 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18145 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18146 (vrp_prop::get_value_range): Adjust.
18147 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18148 modifying the lattice in-place.
18149 (vrp_prop::visit_stmt): Likewise.
18150 * vr-values.c (vr_values::get_lattice_entry): New private method.
18151 (vr_values::get_value_range): Wrap it and return a const
18152 value_range *.
18153 (vr_values::set_def_to_varying): New.
18154 (vr_values::set_defs_to_varying): Use it.
18155 (vr_values::update_value_range): Likewise.
18156 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18157 (values::op_with_constant_singleton_va): Likewise.
18158 (vr_values::extract_range_for_var_from_co): Likewise.
18159 (vr_values::extract_range_from_ssa_name): Likewise.
18160 (vr_values::extract_range_from_cond_expr): Likewise.
18161 (vr_values::extract_range_basic): Likewise.
18162 (compare_ranges): Take const value_range *, adjust.
18163 (compare_range_with_value): Likewise.
18164 (vrp_valueize): Adjust.
18165 (vrp_valueize_1): Likewise.
18166 (vr_values::get_vr_for_comparison): Return a const value_range *.
18167 (vr_values::compare_name_with_value): Adjust.
18168 (vr_values::compare_names): Likewise.
18169 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18170 Likewise.
18171 (vr_values::vrp_evaluate_conditional): Likewise.
18172 (find_case_label_ranges): Take a const value_range *.
18173 (vr_values::vrp_visit_switch_stmt): Adjust.
18174 (vr_values::extract_range_from_phi_node): Likewise.
18175 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18176 (vr_values::simplify_abs_using_ranges): Likewise.
18177 (test_for_singularity): Take a const value_range *.
18178 (range_fits_type_p): Likewise.
18179 (vr_values::simplify_cond_using_ranges_1): Adjust.
18180 (vr_values::simplify_cond_using_ranges_2): Likewise.
18181 (vr_values::simplify_switch_using_ranges): Likewise.
18182 (vr_values::simplify_float_conversion_usi): Likewise.
18183 (vr_values::two_valued_val_range_p): Likewise.
18184 * vr-values.h (vr_values::get_value_range): Return a const
18185 value_range *.
18186 (vr_values::set_def_to_varying): New.
18187 (vr_values::get_lattice_entry): New private method.
18188 (vr_values::get_vr_for_comparison): Return a const value_range *.
18189
18190 2019-07-25 Martin Liska <mliska@suse.cz>
18191 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18192
18193 PR c++/23383
18194 * common.opt: Add -fallocation-dce
18195 * gimple.c (gimple_call_operator_delete_p): New.
18196 * gimple.h (gimple_call_operator_delete_p): Likewise.
18197 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18198 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18199 DECL_IS_OPERATOR_DELETE_P.
18200 (mark_all_reaching_defs_necessary_1): Likewise.
18201 (propagate_necessity): Likewise.
18202 (eliminate_unnecessary_stmts): Handle
18203 gimple_call_operator_delete_p.
18204 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18205 Add packing of OPERATOR_DELETE.
18206 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18207 Similarly here.
18208 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18209 (DECL_SET_IS_OPERATOR_DELETE): New.
18210 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18211
18212 2019-07-25 Martin Liska <mliska@suse.cz>
18213
18214 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18215 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18216 * coverage.c (coverage_begin_function): Likewise.
18217 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18218 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18219 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18220 (sem_item::hash_referenced_symbol_properties): Likewise.
18221 * lto-streamer-out.c (hash_tree): Likewise.
18222 * predict.c (expr_expected_value_1): Likewise.
18223 * tree-inline.c (expand_call_inline): Likewise.
18224 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18225 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18226 * tree-core.h (enum function_decl_type): New enum.
18227 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18228 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18229 (set_function_decl_type): Likewise.
18230 (DECL_IS_OPERATOR_NEW_P): New.
18231 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18232 (DECL_LAMBDA_FUNCTION): Likewise.
18233 (DECL_LAMBDA_FUNCTION_P): Likewise.
18234 (DECL_IS_OPERATOR_NEW): Remove.
18235 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18236
18237 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18238
18239 * ipa-profile.c (get_most_common_single_value): Use
18240 get_nth_most_common_value.
18241 * profile.c (sort_hist_value): New function.
18242 (compute_value_histograms): Call sort_hist_value to sort the
18243 values after loading from disk.
18244 * value-prof.c (get_most_common_single_value): Rename to ...
18245 get_nth_most_common_value. Add input params n, return
18246 the n_th value and count.
18247 (gimple_divmod_fixed_value_transform): Use
18248 get_nth_most_common_value.
18249 (gimple_ic_transform): Likewise.
18250 (gimple_stringops_transform): Likewise.
18251 * value-prof.h (get_most_common_single_value): Add input params
18252 n, default to 0.
18253
18254 2019-07-25 Richard Biener <rguenther@suse.de>
18255
18256 PR tree-optimization/91236
18257 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18258 size of CONSTRUCTOR write. Fix buffer size we pass to
18259 native_encode_expr.
18260
18261 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18262
18263 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18264 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18265 r273773.
18266
18267 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18268
18269 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18270 explicitly disabled with --disable-initfini-array.
18271
18272 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18273
18274 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18275 if-exists.
18276
18277 2019-07-24 Martin Sebor <msebor@redhat.com>
18278
18279 PR tree-optimization/91183
18280 PR tree-optimization/86688
18281 * builtins.c (compute_objsize): Handle MEM_REF.
18282 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18283 (get_min_string_length): Remove.
18284 (count_nonzero_bytes): New function.
18285 (handle_char_store): Rename...
18286 (handle_store): to this. Handle multibyte stores via integer types.
18287 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18288 function name.
18289
18290 2019-07-24 Martin Sebor <msebor@redhat.com>
18291
18292 PR driver/80545
18293 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18294 (diagnostic_report_diagnostic): Same.
18295 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18296 (diagnostic_context::lang_mask): New data member.
18297 * ipa-pure-const.c (suggest_attribute): Use
18298 lang_hooks.option_lang_mask ().
18299 * opts-common.c (option_enabled): Handle new argument.
18300 (get_option_state): Pass an additional argument.
18301 * opts.c (print_filtered_help): Print supported languages for
18302 unsupported options. Adjust printing of current state.
18303 * opts.h (option_enabled): Add argument.
18304 * toplev.c (print_switch_values): Use lang_mask.
18305 (general_init): Set global_dc->lang_mask.
18306
18307 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18308
18309 PR bootstrap/87030
18310 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18311
18312 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18313
18314 * cgraphunit.c (symbol_table::compile): Start and stop
18315 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18316 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18317
18318 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18319
18320 * gimplify.c (flag_instrument_functions_exclude_p): Include
18321 namespace/class information in the printable name.
18322 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18323 to tokens entered into the vector.
18324
18325 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18326
18327 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18328 (get_static_chain): Call it instead of build_simple_mem_ref.
18329 (get_frame_field): Likewise.
18330 (get_nonlocal_debug_decl): Likewise.
18331 (convert_nonlocal_reference_op): Likewise.
18332
18333 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18334
18335 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18336 declaration.
18337 (arc_compute_frame_size): Millicode is disabled when compiling
18338 ISR.
18339 (arc_return_address_register): Likewise.
18340 (arc_compute_function_type): Likewise.
18341 (arc_compute_frame_size): Likewise.
18342 (secondary_reload_info): Likewise.
18343 (arc_get_unalign): Likewise.
18344 (arc_can_use_return_insn): Declare.
18345 * config/arc/arc.c (AUX_LP_START): Define
18346 (AUX_LP_END): Likewise.
18347 (arc_frame_info): Update gmask member to 64-bit datum.
18348 (GMASK_LEN): Update.
18349 (arc_compute_function_type): Make it static, move it forward.
18350 (arc_must_save_register): Update, consider the extra regs.
18351 (arc_compute_millicode_save_restore_regs): Update to use the 64
18352 bit gmask.
18353 (arc_compute_frame_size): Likewise.
18354 (arc_enter_leave_p): Likewise.
18355 (arc_save_callee_saves): Likewise.
18356 (arc_restore_callee_saves): Likewise.
18357 (arc_save_callee_enter): Likewise.
18358 (arc_restore_callee_leave): Likewise.
18359 (arc_save_callee_milli): Likewise.
18360 (arc_restore_callee_milli): Likewise.
18361 (arc_expand_prologue): Add new interrupt handling.
18362 (arc_return_address_register): Make it static, move it forward.
18363 (arc_expand_epilogue): Add new interrupt handling.
18364 (arc_get_unalign): Delete.
18365 (arc_epilogue_uses): Make sure we do not remove the extra
18366 saved/restored registers when interrupt.
18367 (arc_can_use_return_insn): New function.
18368 (push_reg): Likewise.
18369 (pop_reg): Likewise.
18370 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18371 procedures.
18372 (arc_restore_callee_saves): Likewise, but restoring.
18373 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18374 (R33_REG): Likewise.
18375 (R34_REG): Likewise.
18376 (R35_REG): Likewise.
18377 (R36_REG): Likewise.
18378 (R37_REG): Likewise.
18379 (R38_REG): Likewise.
18380 (R39_REG): Likewise.
18381 (R45_REG): Likewise.
18382 (R46_REG): Likewise.
18383 (R47_REG): Likewise.
18384 (R48_REG): Likewise.
18385 (R49_REG): Likewise.
18386 (R50_REG): Likewise.
18387 (R51_REG): Likewise.
18388 (R52_REG): Likewise.
18389 (R53_REG): Likewise.
18390 (R54_REG): Likewise.
18391 (R55_REG): Likewise.
18392 (R56_REG): Likewise.
18393 (R58_REG): Likewise.
18394 (type): Add rtie attribute.
18395 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18396 (movsi_insn): Accept moves to lp_count.
18397 (rtie): Update pattern.
18398 (simple_return): Simplify it, don't use this pattern as a return
18399 from an interrupt.
18400 (arc600_rtie): New pattern.
18401 (p_return_i): Clean up.
18402 (return): Likewise.
18403 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18404 family CPUs.
18405 * config/arc/predicates.md (move_src_operand): Consider lp_count
18406 as a register.
18407
18408 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18409
18410 * config/s390/predicates.md (addv_const_operand): New predicate.
18411 * config/s390/s390-modes.def (CCO): New condition code mode.
18412 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18413 (s390_branch_condition_mask): Likewise.
18414 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18415 ("mulv<mode>4"): New expanders.
18416 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18417 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18418 pattern definitions.
18419
18420 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18421
18422 PR middle-end/91166
18423 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18424 (define_predicates): Add entry for uniform_vector_p.
18425 (vec_same_elem_p): New match pattern.
18426
18427 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18428
18429 PR bootstrap/87030
18430 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18431 * config/i386/darwin32-biarch.h .. to here.
18432 * config/i386/darwin64-biarch.h: Adjust comments.
18433 * config/rs6000/darwin32-biarch.h: Likewise.
18434 * config/rs6000/darwin64-biarch.h: Likewise.
18435 * config.gcc: Missed commit from r273746
18436 (*-*-darwin*): Don't include CPU t-darwin here.
18437 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18438 an error message if i686-darwin configuration is attempted for
18439 Darwin >= 18.
18440
18441 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18442
18443 PR bootstrap/87030
18444 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18445 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18446 an error message if i686-darwin configuration is attempted for
18447 Darwin >= 18.
18448 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18449 (powerpc-*-darwin*): Use biarch files where needed.
18450 (powerpc64-*-darwin*): Likewise.
18451 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18452 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18453 arch case.
18454 * config/i386/darwin32-biarch.h: New.
18455 * config/i386/darwin64.h: Rename.
18456 * config/i386/darwin64-biarch.h: To this.
18457 * config/i386/t-darwin: Rename.
18458 * config/i386/t-darwin32-biarch: To this.
18459 * config/i386/t-darwin64: Rename.
18460 * config/i386/t-darwin64-biarch: To this.
18461 * config/rs6000/darwin32-biarch.h: New.
18462 * config/rs6000/darwin64.h: Rename.
18463 * config/rs6000/darwin64-biarch.h: To this.
18464 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18465 arch case.
18466 * config/rs6000/t-darwin8: Rename.
18467 * config/rs6000/t-darwin32-biarch: To this.
18468 * config/rs6000/t-darwin64 Rename.
18469 * config/rs6000/t-darwin64-biarch: To this.
18470
18471 2019-07-23 Martin Sebor <msebor@redhat.com>
18472
18473 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18474
18475 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18476
18477 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18478 (rh): New alias for it.
18479
18480 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18481
18482 * gdbhooks.py: Pass replace=True to
18483 gdb.printing.register_pretty_printer.
18484
18485 2019-07-23 Richard Biener <rguenther@suse.de>
18486
18487 PR debug/91231
18488 * lto-streamer-in.c (input_function): Drop inline-entry markers
18489 that ended up with an unknown location block.
18490
18491 2019-07-23 Richard Biener <rguenther@suse.de>
18492
18493 PR tree-optimization/83518
18494 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18495 init from a constant even when partial defs are already recorded.
18496
18497 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18498
18499 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18500 * config/i386/znver1.md: Enable patterns for znver2 and add store
18501 variants which use extra AGU unit.
18502
18503 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18504
18505 * config/i386/i386-options.c (ix86_option_override_internal): Default
18506 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18507 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18508 for ZNVER2.
18509
18510 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18511
18512 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18513 (znver2_costs): Update 256 bit SSE costs and multiplication.
18514
18515 2019-07-23 Jan Beulich <jbeulich@suse.com>
18516
18517 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18518 Require only AVX512F.
18519 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18520 alternative expanding to vpternlog.
18521
18522 2019-07-23 Martin Liska <mliska@suse.cz>
18523
18524 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18525 to -flto in dwarf producer string.
18526
18527 2019-07-23 Richard Biener <rguenther@suse.de>
18528
18529 * tree-cfg.c (label_for_bb): Remove global var.
18530 (main_block_label): Take label_for_bb as argument.
18531 (cleanup_dead_labels_eh): Likewise, adjust.
18532 (cleanup_dead_labels): Adjust.
18533
18534 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18535
18536 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18537 Configurations): Add documentation for __builtin_mtfsf.
18538
18539 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18540
18541 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18542 * config/riscv/riscv.c (riscv_constant_alignment): Use
18543 riscv_align_data_type.
18544 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18545 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18546 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18547 * config/riscv/riscv.opt (malign-data): New.
18548 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18549
18550 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18551
18552 * cgraph.c (dump_graphviz): New function.
18553 * cgraph.h (dump_graphviz): New function.
18554 * symtab.c (dump_graphviz): New function.
18555
18556 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18557
18558 * config/aarch64/aarch64-simd.md
18559 (*aarch64_simd_sra<mode>): New.
18560 * config/aarch64/iterators.md
18561 (SHIFTRT): New iterator.
18562 (sra_op): New attribute.
18563
18564 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18565
18566 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18567 callee-saved regs R4->R10 in an interrupt function that calls another
18568 function.
18569
18570 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18571
18572 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18573 (_mm_blendv_epi8): New.
18574
18575 2019-07-22 Richard Biener <rguenther@suse.de>
18576
18577 PR tree-optimization/91221
18578 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18579 restrict partial-def handling of empty constructors and
18580 memset to refs with known offset.
18581
18582 2019-07-22 Jan Beulich <jbeulich@suse.com>
18583
18584 * config/i386/sse.md (ternlogsuffix): New.
18585 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18586 AVX512F is in use.
18587 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18588
18589 2019-07-22 Martin Liska <mliska@suse.cz>
18590
18591 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18592 comment.
18593 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18594
18595 2019-07-22 Martin Liska <mliska@suse.cz>
18596
18597 * lto-section-in.c (lto_get_section_data):
18598 Use new function get_compression.
18599 * lto-streamer-out.c (produce_lto_section): Use
18600 set_compression to encode compression algorithm.
18601 * lto-streamer.h (struct lto_section): Do not
18602 use bitfields in the format.
18603
18604 2019-07-22 Martin Liska <mliska@suse.cz>
18605
18606 PR driver/91172
18607 * opts-common.c (decode_cmdline_option): Decode
18608 argument of -Werror and check it for a wrong language.
18609 * opts-global.c (complain_wrong_lang): Remove such case.
18610
18611 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18612
18613 * config/arc/arc.c (prepare_move_operands): Always use an
18614 intermediate register when storing a TLS symbols.
18615
18616 2019-07-22 Stafford Horne <shorne@gmail.com>
18617
18618 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18619 force_reg.
18620
18621 2019-07-22 Stafford Horne <shorne@gmail.com>
18622
18623 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18624 and munordered-float validations.
18625 * config/or1k/constraints.md (d): New register constraint.
18626 * config/or1k/predicates.md (fp_comparison_operator): New.
18627 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18628 operands.
18629 (or1k_expand_compare): Normalize unordered comparisons.
18630 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18631 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18632 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18633 * config/or1k/or1k.md (type): Add fpu.
18634 (fpu): New instruction reservation.
18635 (F, f, fr, fi, FI, FOP, fop): New.
18636 (<fop><F:mode>3): New ALU instruction definition.
18637 (float<fi><F:mode>2): New conversion instruction definition.
18638 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18639 (fpcmpcc): New code iterator.
18640 (*sf_fp_insn): New instruction definition.
18641 (cstore<F:mode>4): New expand definition.
18642 (cbranch<F:mode>4): New expand definition.
18643 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18644 munordered-float): New options.
18645 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18646 munordered-float.
18647
18648 2019-07-22 Stafford Horne <shorne@gmail.com>
18649
18650 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18651 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18652 documenation to be more clear.
18653 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18654 more clear.
18655 * config/or1k/or1k.opt (mrori): New option.
18656 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18657 msfimm, mshftimm): Rewrite documentation to be more clear.
18658 * config/or1k/or1k.md (insn_support): Add ror and rori.
18659 (enabled): Add conditions for ror and rori.
18660 (rotrsi3): Replace condition for shftimm with ror and rori.
18661
18662 2019-07-22 Stafford Horne <shorne@gmail.com>
18663
18664 PR target/90363
18665 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18666 (extend<mode>si2): Update predicate.
18667 * config/or1k/predicates.md (volatile_mem_operand): New.
18668 (reg_or_mem_operand): New.
18669
18670 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18671
18672 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18673 * config/rs6000/rs6000-call.c: ... to here.
18674
18675 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18676
18677 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18678 memory.
18679
18680 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18681
18682 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18683
18684 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18685
18686 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18687
18688 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18689
18690 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18691 (any_memory_operand): New predicate.
18692 (reg_or_mem_operand): Use it.
18693
18694 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18695
18696 PR target/91204
18697 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18698
18699 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18700
18701 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18702 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18703
18704 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18705
18706 * tree.def (OMP_LOOP): New tree code.
18707 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18708 (enum omp_clause_bind_kind): New enum.
18709 (struct tree_omp_clause): Add subcode.bind_kind.
18710 * tree.h (OMP_LOOP_CHECK): Rename to ...
18711 (OMP_LOOPING_CHECK): ... this.
18712 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18713 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18714 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18715 (OMP_CLAUSE_BIND_KIND): Define.
18716 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18717 bind clause entries.
18718 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18719 * tree-pretty-print.c (dump_omp_clause): Likewise.
18720 (dump_generic_node): Handle OMP_LOOP.
18721 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18722 (in_omp_construct): New variable.
18723 (is_gimple_stmt): Handle OMP_LOOP.
18724 (gimplify_scan_omp_clauses): For lastprivate don't set
18725 check_non_private if code == OMP_LOOP. For reduction clause
18726 on OMP_LOOP combined with parallel or teams propagate as shared
18727 on the combined construct. Handle OMP_CLAUSE_BIND.
18728 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18729 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18730 for constructs from a loop construct to gimplify_scan_omp_clauses.
18731 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18732 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18733 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18734 to match the implicit ORT_TARGET construct around whole body.
18735 Temporarily clear in_omp_construct when processing body.
18736 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18737 etc. temporarily set in_omp_construct when processing body.
18738 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18739 * omp-low.c (struct omp_context): Add loop_p.
18740 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18741 in that the original var might be private.
18742 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18743 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18744 addition of loop construct.
18745 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18746
18747 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18748 lastprivate non-addressable iterator of a collapse(1) simd.
18749
18750 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18751
18752 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18753 as in rs6000.c.
18754
18755 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18756
18757 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18758 refer to default conditions. Warn for the 'y' spec which is ignored
18759 by current linkers.
18760
18761 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18762
18763 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18764 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18765 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18766 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18767 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18768 init_cumulative_args, rs6000_promote_function_mode,
18769 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18770 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18771 rs6000_function_arg_boundary, rs6000_parm_offset,
18772 rs6000_parm_start, rs6000_arg_size,
18773 rs6000_darwin64_record_arg_advance_flush,
18774 rs6000_darwin64_record_arg_advance_recurse,
18775 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18776 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18777 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18778 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18779 rs6000_finish_function_arg, rs6000_function_arg,
18780 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18781 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18782 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18783 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18784 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18785 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18786 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18787 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18788 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18789 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18790 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18791 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18792 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18793 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18794 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18795 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18796 get_element_number, altivec_expand_vec_set_builtin,
18797 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18798 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18799 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18800 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18801 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18802 rs6000_expand_builtin, rs6000_vector_type,
18803 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18804 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18805 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18806 to rs6000-call.c.
18807 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18808 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18809 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18810 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18811 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18812 init_cumulative_args, rs6000_promote_function_mode,
18813 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18814 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18815 rs6000_function_arg_boundary, rs6000_parm_offset,
18816 rs6000_parm_start, rs6000_arg_size,
18817 rs6000_darwin64_record_arg_advance_flush,
18818 rs6000_darwin64_record_arg_advance_recurse,
18819 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18820 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18821 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18822 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18823 rs6000_finish_function_arg, rs6000_function_arg,
18824 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18825 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18826 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18827 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18828 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18829 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18830 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18831 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18832 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18833 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18834 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18835 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18836 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18837 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18838 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18839 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18840 get_element_number, altivec_expand_vec_set_builtin,
18841 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18842 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18843 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18844 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18845 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18846 rs6000_expand_builtin, rs6000_vector_type,
18847 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18848 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18849 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18850 to here from rs6000.c.
18851 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18852 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18853 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18854 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18855 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18856 rs6000_return_in_memory, rs6000_return_in_msb,
18857 rs6000_pass_by_reference, setup_incoming_varargs,
18858 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18859 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18860 rs6000_function_arg_padding, rs6000_function_arg,
18861 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18862 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18863 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18864 rs6000_passes_long_double, rs6000_passes_vector,
18865 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18866 altivec_builtin_mask_for_load) Add declarations.
18867 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18868 * config/config.gcc: Add new source file rs6000-call.c to garbage
18869 collector and extra_objs.
18870
18871 2019-07-19 Jeff Law <law@redhat.com>
18872
18873 PR tree-optimization/86061
18874 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18875 strncpy. Drop some trivial dead code.
18876 (maybe_trim_memstar_call): Handle strncpy.
18877
18878 2019-07-19 Richard Biener <rguenther@suse.de>
18879
18880 PR tree-optimization/91211
18881 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18882 memset encoding size.
18883
18884 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18885
18886 PR target/91204
18887 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18888
18889 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18890
18891 PR ipa/91194
18892 * ipa-inline.c (recursive_inlining): Fix limits check.
18893
18894 2019-07-19 Richard Biener <rguenther@suse.de>
18895
18896 PR tree-optimization/91200
18897 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18898 no PHI nodes in middle-bb.
18899
18900 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18901
18902 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18903 to +sve-bitperm.
18904 * config/aarch64/aarch64-option-extensions.def: Likewise.
18905
18906 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18907
18908 PR middle-end/91190
18909 * function.c (insert_temp_slot_address): Store into the hash table
18910 a copy of address to avoid RTL sharing issues.
18911
18912 2019-07-19 Richard Biener <rguenther@suse.de>
18913
18914 PR tree-optimization/91207
18915 Revert
18916 2019-07-17 Richard Biener <rguenther@suse.de>
18917
18918 PR tree-optimization/91178
18919 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18920 loads with a gap larger than the vector size always use
18921 VMAT_STRIDED_SLP.
18922 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18923 avoid loading vectors that are only contained in the gap
18924 and thus are not needed.
18925
18926 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18927
18928 * config/i386/i386.md (*addqi_2_slp): Remove.
18929 (*<code>qi_2_slp): Ditto.
18930
18931 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18932
18933 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18934 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18935 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18936 Rename function from rs6000_prefixed_address.
18937 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18938 TARGET_HAS_TOC.
18939 (TARGET_TOC): Likewise.
18940 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18941 rs6000.h.
18942 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18943 TARGET_HAS_TOC.
18944 (TARGET_TOC): Likewise.
18945 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18946 rs6000.h.
18947 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18948 TARGET_HAS_TOC.
18949 (TARGET_TOC): Likewise.
18950 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18951 check to require -mcmodel=medium for pc-relative addressing.
18952 (create_TOC_reference): Add assertion for TARGET_TOC.
18953 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18954 TARGET_NO_TOC.
18955 (rs6000_emit_move): Likewise.
18956 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18957 to 'TOC_alias_set'.
18958 (get_TOC_alias_set): Likewise.
18959 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18960 TARGET_NO_TOC.
18961 (rs6000_can_eliminate): Likewise.
18962 (rs6000_prefixed_address_mode_p): Rename function from
18963 rs6000_prefixed_address.
18964 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18965 TARGET_HAS_TOC and not pc-relative.
18966 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18967 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18968 TARGET_HAS_TOC.
18969 (TARGET_TOC): Likewise.
18970 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18971 rs6000.h.
18972
18973 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18974
18975 PR target/91188
18976 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18977 for operand 0. Do not use (match_dup) to match operand 1 with
18978 operand 0. Add check in insn constraint that either input operand
18979 matches operand 0. Use SWI12 mode iterator to also handle
18980 HImode operands.
18981 (*and<mode>_1_slp): Ditto.
18982 (*<code>qi_1_slp): Ditto.
18983 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18984 Do not use (match_dup) to match operand 1 with operand 0. Add
18985 check in insn constraint that operand 1 matches operand 0.
18986 Use SWI12 mode iterator to also handle HImode operands.
18987 (*ashl<mode>3_1_slp): Ditto.
18988 (*<shift_insn><mode>3_1_slp): Ditto.
18989 (*<rotate_insn><mode>3_1_slp): Ditto.
18990
18991 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18992
18993 * config/arm/arm-builtins.c
18994 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18995 (arm_expand_unop_builtin): Likewise.
18996 * config/arm/crypto.md
18997 (crypto_sha1h): Convert from define_insn to define_expand.
18998 (crypto_<crypto_pattern>): Likewise.
18999 (crypto_sha1h_lb): New define_insn.
19000 (crypto_<crypto_pattern>_lb): Likewise.
19001
19002 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19003
19004 PR target/90317
19005 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19006 (vsha1cq_u32): Likewise.
19007 (vsha1pq_u32): Likewise.
19008 (vsha1mq_u32): Likewise.
19009 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19010 vec select.
19011 (crypto_sha1c): Correct vec select.
19012 (crypto_sha1m): Likewise.
19013 (crypto_sha1p): Likewise.
19014
19015 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19016
19017 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19018 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19019 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19020 (subdi_zesidi_zesidi): Likewise.
19021 (negdi2_compare, negdi2_insn): Likewise.
19022 (negdi_extensidi): Likewise.
19023 (negdi_zero_extendsidi): Likewise.
19024 (arm_cmpdi_insn): Likewise.
19025 (subsi3_carryin): Use arm_borrow_operation.
19026 (subsi3_carryin_const): Likewise.
19027 (subsi3_carryin_const0): Likewise.
19028 (subsi3_carryin_compare): Likewise.
19029 (subsi3_carryin_compare_const): Likewise.
19030 (subsi3_carryin_compare_const0): Likewise.
19031 (subsi3_carryin_shift): Likewise.
19032 (rsbsi3_carryin_shift): Likewise.
19033 (negsi2_carryin_compare): Likewise.
19034
19035 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19036
19037 PR tree-optimization/91137
19038 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19039 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19040 Init, use and fini the above new field.
19041 (determine_base_object_1): New function.
19042 (determine_base_object): Reimplement using walk_tree.
19043
19044 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19045
19046 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19047 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19048 CLEANUP_FORCE_FAST_DCE is set.
19049 * ifcvt.c (rest_of_handle_if_conversion): Pass
19050 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19051 if-conversion succeeded.
19052
19053 2019-07-18 Richard Biener <rguenther@suse.de>
19054
19055 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19056 branches to make code less indented.
19057
19058 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19059
19060 PR middle-end/81824
19061 * attribs.c (decls_mismatched_attributes): Simplify the logic
19062 that avoids duplicates and false positives.
19063
19064 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19065
19066 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19067 data into data section when generating PIC code.
19068 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19069 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19070 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19071 return 2 for SOM and 0 for other targets.
19072
19073 2019-07-17 Jeff Law <law@redhat.com>
19074
19075 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19076 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19077 avoid unexpected switch statement fallthru.
19078
19079 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19080
19081 * config/i386/i386.md (*add<dwi>3_doubleword):
19082 Remove redundant constraints.
19083 (*add<mode>_1): Ditto.
19084 (*addhi_1): Ditto.
19085 (*addqi_1): Ditto.
19086 (*addqi_1_slp): Ditto.
19087 (*add<mode>_2): Ditto.
19088 (*addv<mode>4): Ditto.
19089 (*sub<dwi>3_doubleword): Ditto.
19090 (*sub<mode>_1): Ditto.
19091 (*subqi_1_slp): Ditto.
19092 (*sub<mode>_2): Ditto.
19093 (*subv<mode>4): Ditto.
19094 (*sub<mode>_3): Ditto.
19095 (@add<mode>3_carry): Ditto.
19096 (@sub<mode>3_carry): Ditto.
19097 (*add<mode>3_cc_overflow_1): Ditto.
19098 (*add<mode>3_zext_cc_overflow_2): Ditto.
19099 (*anddi_1): Ditto.
19100 (*and<mode>_1): Ditto.
19101 (*andqi_1): Ditto.
19102 (*andqi_1_slp): Ditto.
19103 (*anddi_2): Ditto.
19104 (*andqi_2_maybe_si): Ditto.
19105 (*and<mode>_2): Ditto.
19106 (*andqi_2_slp): Ditto.
19107 (*<code><mode>_1): Ditto.
19108 (*<code>qi_1): Ditto.
19109 (*<code>qi_1_slp): Ditto.
19110 (*<code><mode>_2): Ditto.
19111 (*<code>qi_2_slp): Ditto.
19112
19113 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19114
19115 * alias.c (record_component_aliases): Do not simplify pointed-to
19116 types of ODR types.
19117
19118 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19119
19120 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19121 partial reg stall on alternative 2.
19122
19123 2019-07-17 Richard Biener <rguenther@suse.de>
19124
19125 PR tree-optimization/91178
19126 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19127 lower SSA names to avoid quadratic behavior in the common case.
19128 * tree-data-ref.c (split_constant_offset): Add limit argument
19129 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19130 (split_constant_offset_1): Add limit argument and use it to
19131 limit SSA def walking. Optimize the common plus/minus case.
19132
19133 2019-07-17 Richard Biener <rguenther@suse.de>
19134
19135 PR tree-optimization/91178
19136 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19137 loads with a gap larger than the vector size always use
19138 VMAT_STRIDED_SLP.
19139 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19140 avoid loading vectors that are only contained in the gap
19141 and thus are not needed.
19142
19143 2019-07-17 Richard Biener <rguenther@suse.de>
19144
19145 PR tree-optimization/91180
19146 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19147 computation for memset partial defs.
19148
19149 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19150
19151 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19152 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19153 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19154 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19155 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19156 * omp-grid.c (grid_process_grid_body,
19157 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19158 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19159 == GF_OMP_FOR_KIND_SIMD.
19160 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19161 check_omp_nesting_restrictions, scan_omp_1_stmt,
19162 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19163 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19164 omp_find_scan): Likewise.
19165 * omp-expand.c (expand_omp_for): Likewise.
19166 * omp-general.c (omp_extract_for_data): Likewise.
19167
19168 PR tree-optimization/91157
19169 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19170 a vector boolean with scalar mode.
19171 (expand_vector_condition): Handle first operand being a vector boolean
19172 with scalar mode.
19173 (expand_vector_operations_1): For comparisons, don't bail out early
19174 if the return type is vector boolean with scalar mode, but comparison
19175 operand type is not.
19176
19177 2019-07-17 Richard Biener <rguenther@suse.de>
19178
19179 PR tree-optimization/91181
19180 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19181 IFN_LOADs as calls.
19182
19183 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19184
19185 * config/i386/i386.md (*testdi_1): Match CCZmode for
19186 constants that might have the SImode sign bit set.
19187 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19188 Use correct constraints for pentium pairing.
19189 (*test<mode>_1): Ditto.
19190
19191 2019-07-16 Jeff Law <law@redhat.com>
19192
19193 PR rtl-optimization/91173
19194 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19195 SSA_NAME with a constant value, fold its value into the offset
19196 and clear the base before calling gen_addr_rtx.
19197
19198 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19199
19200 PR rtl-optimization/91164
19201 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19202 invalidate dominance info.
19203
19204 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19205
19206 * read-md.h (md_reader::record_potential_iterator_use): Add a
19207 file_location parameter.
19208 * read-rtl.c (attribute_use::loc): New field.
19209 (map_attr_string): Take a file_location parameter. Report cases
19210 in which attributes map to multiple distinct values.
19211 (apply_attribute_uses): Update call accordingly.
19212 (md_reader::handle_overloaded_name): Likewise.
19213 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19214 nonnull strings.
19215 (record_attribute_use): Take a file_location parameter.
19216 Initialize attribute_use::loc.
19217 (md_reader::record_potential_iterator_use): Take a file_location
19218 parameter. Update call to record_attribute_use.
19219 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19220 (rtx_reader::read_rtx_code): Likewise.
19221 (rtx_reader::read_rtx_operand): Likewise. Record a location
19222 for implicitly-expanded empty strings.
19223
19224 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19225
19226 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19227 Use file_location instead of separate fields.
19228 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19229 separate filename and line number.
19230 * read-md.c (ptr_loc): As above.
19231 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19232 (md_reader::fprint_md_ptr_loc): Likewise.
19233 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19234 instead of a separate filename and line number.
19235 (md_reader::read_string): Update call accordingly.
19236
19237 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19238
19239 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19240 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19241 leaving the choice between SFDF and P implicit.
19242 (*mov<mode>_update2): Likewise.
19243 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19244 rather than leaving the choice betweem IBM128 and GPR implicit.
19245 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19246 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19247 QHSI implicit.
19248 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19249 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19250 * config/rs6000/vsx.md
19251 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19252 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19253 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19254 and VSX_EXTRACT_I implicit.
19255
19256 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19257
19258 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19259 Explicitly use <MOVEP1:MODE> for the mode attribute.
19260
19261 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19262
19263 PR bootstrap/91176
19264 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19265
19266 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19267
19268 PR target/91050
19269 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19270 .machine directive.
19271
19272 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19273
19274 * config/i386/i386.md (@test<mode>_ccno_1):
19275 Rename from test<mode>_ccno_1.
19276 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19277 (*testqi_1_maybe_si): Remove modrm attribute.
19278 (*test<mode>_1): Ditto.
19279 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19280 gen_test_ccno_1 and gen_extend_insn.
19281
19282 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19283
19284 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19285 to 0.
19286
19287 2019-07-15 Richard Biener <rguenther@suse.de>
19288
19289 PR middle-end/91162
19290 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19291 node make sure to replace all uses with something valid.
19292
19293 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19294
19295 PR tree-optimization/88497
19296 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19297 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19298 function undistribute_bitref_for_vector.
19299 (undistribute_bitref_for_vector): New function.
19300 (cleanup_vinfo_map): Likewise.
19301 (sort_by_mach_mode): Likewise.
19302
19303 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19304
19305 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19306 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19307 and testdi_ccno_1 using SWI48 mode attribute.
19308 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19309 x86_64_szext_general_operand.
19310 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19311 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19312 instead of genera_operand mode attribute.
19313
19314 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19315
19316 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19317 fopen and fclose to their respective types.
19318 (DotFn.invoke): Ditto.
19319
19320 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19321
19322 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19323 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19324 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19325 (array_index_predicate): Remove.
19326 (analyze_function_body): Account cost for variable ofsetted array
19327 indexing.
19328 (estimate_node_size_and_time): Do not compute array index hint.
19329 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19330 (inline_read_section): Do not read array index hint.
19331 (ipa_fn_summary_write): Do not write array index hint.
19332 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19333 * ipa-cp.c (hint_time_bonus): Remove.
19334 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19335 (ipa_fnsummary): Remove array_index.
19336 * ipa-inline.c (want_inline_small_function_p): Do not use
19337 array_index.
19338 (edge_badness): Likewise.
19339 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19340
19341 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19342
19343 PR target/91148
19344 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19345 superfluous "builtin function" phrasing.
19346
19347 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19348
19349 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19350 Break out from ...
19351 (aliasing_component_refs_walk): Break out from ...
19352 (aliasing_component_refs_p): ... here.
19353
19354 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19355
19356 PR target/91148
19357 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19358 "builtin function" phrasing.
19359
19360 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19361
19362 PR target/90723
19363 * recog.h (temporary_volatile_ok): New class.
19364 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19365 volatile_ok temporarily to true using temporary_volatile_ok.
19366 * expr.c (emit_block_move_via_cpymem): Likewise.
19367 * optabs.c (maybe_legitimize_operand): Likewise.
19368
19369 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19370
19371 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19372 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19373 uses inside of order(concurrent) constructs.
19374 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19375 OMP_CLAUSE_ORDER is seen.
19376 * omp-low.c (struct omp_context): Add order_concurrent member.
19377 (scan_sharing_clauses): Set ctx->order_concurrent if
19378 OMP_CLAUSE_ORDER is seen.
19379 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19380 of simd order(concurrent). Diagnose constructs not allowed inside of
19381 for order(concurrent).
19382 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19383 complaining about static double setjmp (double); or class static
19384 methods or non-global namespace setjmps.
19385 (omp_runtime_api_call): New function.
19386 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19387 order(concurrent) loops.
19388
19389 2019-07-12 Martin Sebor <msebor@redhat.com>
19390
19391 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19392 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19393 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19394 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19395
19396 2019-07-12 Jan Hubicka <jh@suse.cz>
19397
19398 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19399 (indirect_refs_may_alias_p): ... here.
19400 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19401 mem refs in the access paths.
19402
19403 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19404
19405 PR tree-optimization/89430
19406 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19407 store elimination for local variable without address escape.
19408
19409 2019-07-12 Jeff Law <law@redhat.com>
19410
19411 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19412 for the ".far" section.
19413
19414 2019-07-12 Richard Biener <rguenther@suse.de>
19415
19416 PR tree-optimization/91145
19417 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19418 chain check.
19419
19420 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19421
19422 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19423 rather than this_state as the lowering context for the ELSE
19424 seq in a GIMPLE_EH_ELSE.
19425
19426 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19427
19428 * vector-builder.h (vector_builder::elt): Allow already-supplied
19429 elements to be read back before building is complete.
19430
19431 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19432
19433 PR rtl-optimization/91136
19434 * df-core.c (ACCESSING REFS): Fix typos in comment.
19435 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19436 the beginning of the block to the initial set of live registers.
19437
19438 2019-07-12 Richard Biener <rguenther@suse.de>
19439
19440 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19441 * fold-const.c (get_array_ctor_element_at_index): Add
19442 ctor_idx output parameter informing the caller where in
19443 the constructor the element was (not) found. Add early exit
19444 for when the ctor is sorted.
19445 * gimple-fold.c (fold_array_ctor_reference): Support constant
19446 folding across multiple array elements.
19447
19448 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19449
19450 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19451 doesn't have location, set the current location to the function's end.
19452
19453 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19454
19455 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19456 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19457 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19458 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19459 * config/aarch64/aarch64-simd.md
19460 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19461 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19462 * config/aarch64/aarch64-sve.md
19463 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19464 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19465
19466 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19467
19468 * doc/md.texi: Document that @ patterns can have different
19469 numbers of operands.
19470 * genemit.c (handle_overloaded_gen): Handle this case.
19471 * genopinit.c (handle_overloaded_gen): Likewise.
19472 * gensupport.c (replace_operands_with_dups): Iterate over
19473 the new rtx's format rather than the old one's.
19474
19475 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19476
19477 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19478 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19479 order clause entries.
19480 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19481 * tree-pretty-print.c (dump_omp_clause): Likewise.
19482 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19483 Likewise.
19484 * omp-low.c (scan_sharing_clauses): Likewise.
19485 * tree-nested.c (convert_nonlocal_omp_clauses,
19486 convert_local_omp_clauses): Likewise.
19487
19488 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19489
19490 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19491 fallthrough target of current basic block isn't the placed
19492 right next.
19493
19494 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19495
19496 PR target/90980
19497 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19498 (_mm512_storeu_epi64): Likewise.
19499 (_mm512_loadu_epi32): Likewise.
19500 (_mm512_storeu_epi32): Likewise.
19501 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19502 (_mm_storeu_epi64): Likewise.
19503 (_mm256_storeu_epi32): Likewise.
19504 (_mm_storeu_epi32): Likewise.
19505
19506 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19507
19508 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19509
19510 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19511
19512 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19513 Handle Modula-2.
19514
19515 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19516
19517 PR target/91124
19518 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19519 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19520 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19521 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19522 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19523 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19524 define_insns.
19525 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19526 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19527 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19528 define_insns.
19529 (sse2_cvttpd2dq<mask_name>): Change into ...
19530 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19531 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19532 (*sse2_cvtpd2dq<mask_name>): Change into ...
19533 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19534 Add "C" constraint to const0_operand.
19535 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19536 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19537 changes.
19538
19539 PR target/91124
19540 * config/i386/i386-builtin-types.def
19541 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19542 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19543 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19544 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19545 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19546 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19547 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19548 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19549 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19550 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19551 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19552 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19553 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19554 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19555 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19556 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19557 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19558 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19559 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19560 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19561 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19562 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19563 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19564 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19565 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19566 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19567 __builtin_ia32_vpdpbusd_v4si_maskz,
19568 __builtin_ia32_vpdpbusds_v16si_mask,
19569 __builtin_ia32_vpdpbusds_v16si_maskz,
19570 __builtin_ia32_vpdpbusds_v8si_mask,
19571 __builtin_ia32_vpdpbusds_v8si_maskz,
19572 __builtin_ia32_vpdpbusds_v4si_mask,
19573 __builtin_ia32_vpdpbusds_v4si_maskz,
19574 __builtin_ia32_vpdpwssd_v16si_mask,
19575 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19576 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19577 __builtin_ia32_vpdpwssd_v4si_maskz,
19578 __builtin_ia32_vpdpwssds_v16si_mask,
19579 __builtin_ia32_vpdpwssds_v16si_maskz,
19580 __builtin_ia32_vpdpwssds_v8si_mask,
19581 __builtin_ia32_vpdpwssds_v8si_maskz,
19582 __builtin_ia32_vpdpwssds_v4si_mask,
19583 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19584 suffixed types rather than *_INT.
19585 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19586 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19587 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19588 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19589 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19590 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19591
19592 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19593
19594 * tree-vrp.c (intersect_ranges): If we know the intersection is
19595 empty, there is no need to conservatively add anything else to
19596 the set.
19597
19598 2019-07-11 Richard Biener <rguenther@suse.de>
19599
19600 PR middle-end/91131
19601 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19602 when the object is volatile and we have not cleared it even though
19603 there are no nonzero elements.
19604
19605 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19606
19607 * config/rs6000/predicates.md (cint34_operand): Update
19608 SIGNED_34BIT_OFFSET_P call.
19609 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19610 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19611 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19612 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19613 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19614 argument.
19615 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19616 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19617 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19618 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19619 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19620
19621 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19622
19623 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19624 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19625 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19626 (DEF_MIN_OSX_VERSION): New.
19627
19628 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19629
19630 * fold-const.c (fold_relational_const): Fix folding of
19631 vector-to-scalar NE_EXPRs.
19632 (test_vector_folding): Add more tests.
19633
19634 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19635
19636 PR target/91060
19637 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19638 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19639 (vec_setv2di_internal): Reexpress as...
19640 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19641 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19642 rather than gen_neon_vset_lane<mode>.
19643
19644 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19645
19646 PR target/91102
19647 * lra-constraints.c (process_alt_operands): Don't match user
19648 defined regs only if they are early clobbers.
19649
19650 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19651
19652 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19653
19654 2019-07-10 Richard Biener <rguenther@suse.de>
19655
19656 PR tree-optimization/91126
19657 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19658 native encoding offset for BYTES_BIG_ENDIAN.
19659 (vn_reference_lookup_3): Likewise.
19660
19661 2019-07-10 Richard Biener <rguenther@suse.de>
19662
19663 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19664 LHS whenever possible.
19665
19666 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19667
19668 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19669 from ...; work also on duplicated types.
19670 (nonoverlapping_component_refs_since_match): ... here
19671 (ncr_type_uid): Break out from ...
19672 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19673 available.
19674 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19675 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19676
19677 2019-07-09 Martin Sebor <msebor@redhat.com>
19678
19679 PR tree-optimization/90989
19680 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19681 optimization to just single character stores.
19682
19683 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19684
19685 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19686 Swap operands only once.
19687
19688 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19689
19690 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19691 for both call instructions.
19692
19693 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19694
19695 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19696 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19697
19698 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19699
19700 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19701 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19702 function from rs6000-logue.c back to rs6000.c.
19703 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19704
19705 2019-07-09 Martin Sebor <msebor@redhat.com>
19706
19707 PR c++/61339
19708 * auto-profile.c: Change class-key of PODs to struct and others
19709 to class.
19710 * basic-block.h: Same.
19711 * bitmap.c (bitmap_alloc): Same.
19712 * bitmap.h: Same.
19713 * builtins.c (expand_builtin_prefetch): Same.
19714 (expand_builtin_interclass_mathfn): Same.
19715 (expand_builtin_strlen): Same.
19716 (expand_builtin_mempcpy_args): Same.
19717 (expand_cmpstr): Same.
19718 (expand_builtin___clear_cache): Same.
19719 (expand_ifn_atomic_bit_test_and): Same.
19720 (expand_builtin_thread_pointer): Same.
19721 (expand_builtin_set_thread_pointer): Same.
19722 * caller-save.c (setup_save_areas): Same.
19723 (replace_reg_with_saved_mem): Same.
19724 (insert_restore): Same.
19725 (insert_save): Same.
19726 (add_used_regs): Same.
19727 * cfg.c (get_bb_copy): Same.
19728 (set_loop_copy): Same.
19729 * cfg.h: Same.
19730 * cfganal.h: Same.
19731 * cfgexpand.c (alloc_stack_frame_space): Same.
19732 (add_stack_var): Same.
19733 (add_stack_var_conflict): Same.
19734 (add_scope_conflicts_1): Same.
19735 (update_alias_info_with_stack_vars): Same.
19736 (expand_used_vars): Same.
19737 * cfghooks.c (redirect_edge_and_branch_force): Same.
19738 (delete_basic_block): Same.
19739 (split_edge): Same.
19740 (make_forwarder_block): Same.
19741 (force_nonfallthru): Same.
19742 (duplicate_block): Same.
19743 (lv_flush_pending_stmts): Same.
19744 * cfghooks.h: Same.
19745 * cfgloop.c (flow_loops_cfg_dump): Same.
19746 (flow_loop_nested_p): Same.
19747 (superloop_at_depth): Same.
19748 (get_loop_latch_edges): Same.
19749 (flow_loop_dump): Same.
19750 (flow_loops_dump): Same.
19751 (flow_loops_free): Same.
19752 (flow_loop_nodes_find): Same.
19753 (establish_preds): Same.
19754 (flow_loop_tree_node_add): Same.
19755 (flow_loop_tree_node_remove): Same.
19756 (flow_loops_find): Same.
19757 (find_subloop_latch_edge_by_profile): Same.
19758 (find_subloop_latch_edge_by_ivs): Same.
19759 (mfb_redirect_edges_in_set): Same.
19760 (form_subloop): Same.
19761 (merge_latch_edges): Same.
19762 (disambiguate_multiple_latches): Same.
19763 (disambiguate_loops_with_multiple_latches): Same.
19764 (flow_bb_inside_loop_p): Same.
19765 (glb_enum_p): Same.
19766 (get_loop_body_with_size): Same.
19767 (get_loop_body): Same.
19768 (fill_sons_in_loop): Same.
19769 (get_loop_body_in_dom_order): Same.
19770 (get_loop_body_in_custom_order): Same.
19771 (release_recorded_exits): Same.
19772 (get_loop_exit_edges): Same.
19773 (num_loop_branches): Same.
19774 (remove_bb_from_loops): Same.
19775 (find_common_loop): Same.
19776 (delete_loop): Same.
19777 (cancel_loop): Same.
19778 (verify_loop_structure): Same.
19779 (loop_preheader_edge): Same.
19780 (loop_exit_edge_p): Same.
19781 (single_exit): Same.
19782 (loop_exits_to_bb_p): Same.
19783 (loop_exits_from_bb_p): Same.
19784 (get_loop_location): Same.
19785 (record_niter_bound): Same.
19786 (get_estimated_loop_iterations_int): Same.
19787 (max_stmt_executions_int): Same.
19788 (likely_max_stmt_executions_int): Same.
19789 (get_estimated_loop_iterations): Same.
19790 (get_max_loop_iterations): Same.
19791 (get_max_loop_iterations_int): Same.
19792 (get_likely_max_loop_iterations): Same.
19793 * cfgloop.h (simple_loop_desc): Same.
19794 (get_loop): Same.
19795 (loop_depth): Same.
19796 (loop_outer): Same.
19797 (loop_iterator::next): Same.
19798 (loop_outermost): Same.
19799 * cfgloopanal.c (mark_irreducible_loops): Same.
19800 (num_loop_insns): Same.
19801 (average_num_loop_insns): Same.
19802 (expected_loop_iterations_unbounded): Same.
19803 (expected_loop_iterations): Same.
19804 (mark_loop_exit_edges): Same.
19805 (single_likely_exit): Same.
19806 * cfgloopmanip.c (fix_bb_placement): Same.
19807 (fix_bb_placements): Same.
19808 (remove_path): Same.
19809 (place_new_loop): Same.
19810 (add_loop): Same.
19811 (scale_loop_frequencies): Same.
19812 (scale_loop_profile): Same.
19813 (create_empty_if_region_on_edge): Same.
19814 (create_empty_loop_on_edge): Same.
19815 (loopify): Same.
19816 (unloop): Same.
19817 (fix_loop_placements): Same.
19818 (copy_loop_info): Same.
19819 (duplicate_loop): Same.
19820 (duplicate_subloops): Same.
19821 (loop_redirect_edge): Same.
19822 (can_duplicate_loop_p): Same.
19823 (duplicate_loop_to_header_edge): Same.
19824 (mfb_keep_just): Same.
19825 (has_preds_from_loop): Same.
19826 (create_preheader): Same.
19827 (create_preheaders): Same.
19828 (lv_adjust_loop_entry_edge): Same.
19829 (loop_version): Same.
19830 * cfgloopmanip.h: Same.
19831 * cgraph.h: Same.
19832 * cgraphbuild.c: Same.
19833 * combine.c (make_extraction): Same.
19834 * config/i386/i386-features.c: Same.
19835 * config/i386/i386-features.h: Same.
19836 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19837 (ix86_emit_outlined_ms2sysv_restore): Same.
19838 (ix86_noce_conversion_profitable_p): Same.
19839 (ix86_init_cost): Same.
19840 (ix86_simd_clone_usable): Same.
19841 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19842 Wstruct-not-pod.
19843 * coretypes.h: Same.
19844 * data-streamer-in.c (string_for_index): Change class-key of PODs
19845 to struct and others to class.
19846 (streamer_read_indexed_string): Same.
19847 (streamer_read_string): Same.
19848 (bp_unpack_indexed_string): Same.
19849 (bp_unpack_string): Same.
19850 (streamer_read_uhwi): Same.
19851 (streamer_read_hwi): Same.
19852 (streamer_read_gcov_count): Same.
19853 (streamer_read_wide_int): Same.
19854 * data-streamer.h (streamer_write_bitpack): Same.
19855 (bp_unpack_value): Same.
19856 (streamer_write_char_stream): Same.
19857 (streamer_write_hwi_in_range): Same.
19858 (streamer_write_record_start): Same.
19859 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19860 (add_cross_iteration_register_deps): Same.
19861 (build_intra_loop_deps): Same.
19862 * df-core.c (df_analyze): Same.
19863 (loop_post_order_compute): Same.
19864 (loop_inverted_post_order_compute): Same.
19865 * df-problems.c (df_rd_alloc): Same.
19866 (df_rd_simulate_one_insn): Same.
19867 (df_rd_local_compute): Same.
19868 (df_rd_init_solution): Same.
19869 (df_rd_confluence_n): Same.
19870 (df_rd_transfer_function): Same.
19871 (df_rd_free): Same.
19872 (df_rd_dump_defs_set): Same.
19873 (df_rd_top_dump): Same.
19874 (df_lr_alloc): Same.
19875 (df_lr_reset): Same.
19876 (df_lr_local_compute): Same.
19877 (df_lr_init): Same.
19878 (df_lr_confluence_n): Same.
19879 (df_lr_free): Same.
19880 (df_lr_top_dump): Same.
19881 (df_lr_verify_transfer_functions): Same.
19882 (df_live_alloc): Same.
19883 (df_live_reset): Same.
19884 (df_live_init): Same.
19885 (df_live_confluence_n): Same.
19886 (df_live_finalize): Same.
19887 (df_live_free): Same.
19888 (df_live_top_dump): Same.
19889 (df_live_verify_transfer_functions): Same.
19890 (df_mir_alloc): Same.
19891 (df_mir_reset): Same.
19892 (df_mir_init): Same.
19893 (df_mir_confluence_n): Same.
19894 (df_mir_free): Same.
19895 (df_mir_top_dump): Same.
19896 (df_word_lr_alloc): Same.
19897 (df_word_lr_reset): Same.
19898 (df_word_lr_init): Same.
19899 (df_word_lr_confluence_n): Same.
19900 (df_word_lr_free): Same.
19901 (df_word_lr_top_dump): Same.
19902 (df_md_alloc): Same.
19903 (df_md_simulate_one_insn): Same.
19904 (df_md_reset): Same.
19905 (df_md_init): Same.
19906 (df_md_free): Same.
19907 (df_md_top_dump): Same.
19908 * df-scan.c (df_insn_delete): Same.
19909 (df_insn_rescan): Same.
19910 (df_notes_rescan): Same.
19911 (df_sort_and_compress_mws): Same.
19912 (df_install_mws): Same.
19913 (df_refs_add_to_chains): Same.
19914 (df_ref_create_structure): Same.
19915 (df_ref_record): Same.
19916 (df_def_record_1): Same.
19917 (df_find_hard_reg_defs): Same.
19918 (df_uses_record): Same.
19919 (df_get_conditional_uses): Same.
19920 (df_get_call_refs): Same.
19921 (df_recompute_luids): Same.
19922 (df_get_entry_block_def_set): Same.
19923 (df_entry_block_defs_collect): Same.
19924 (df_get_exit_block_use_set): Same.
19925 (df_exit_block_uses_collect): Same.
19926 (df_mws_verify): Same.
19927 (df_bb_verify): Same.
19928 * df.h (df_scan_get_bb_info): Same.
19929 * doc/tm.texi: Same.
19930 * dse.c (record_store): Same.
19931 * dumpfile.h: Same.
19932 * emit-rtl.c (const_fixed_hasher::equal): Same.
19933 (set_mem_attributes_minus_bitpos): Same.
19934 (change_address): Same.
19935 (adjust_address_1): Same.
19936 (offset_address): Same.
19937 * emit-rtl.h: Same.
19938 * except.c (dw2_build_landing_pads): Same.
19939 (sjlj_emit_dispatch_table): Same.
19940 * explow.c (allocate_dynamic_stack_space): Same.
19941 (emit_stack_probe): Same.
19942 (probe_stack_range): Same.
19943 * expmed.c (store_bit_field_using_insv): Same.
19944 (store_bit_field_1): Same.
19945 (store_integral_bit_field): Same.
19946 (extract_bit_field_using_extv): Same.
19947 (extract_bit_field_1): Same.
19948 (emit_cstore): Same.
19949 * expr.c (emit_block_move_via_cpymem): Same.
19950 (expand_cmpstrn_or_cmpmem): Same.
19951 (set_storage_via_setmem): Same.
19952 (emit_single_push_insn_1): Same.
19953 (expand_assignment): Same.
19954 (store_constructor): Same.
19955 (expand_expr_real_2): Same.
19956 (expand_expr_real_1): Same.
19957 (try_casesi): Same.
19958 * flags.h: Same.
19959 * function.c (try_fit_stack_local): Same.
19960 (assign_stack_local_1): Same.
19961 (assign_stack_local): Same.
19962 (cut_slot_from_list): Same.
19963 (insert_slot_to_list): Same.
19964 (max_slot_level): Same.
19965 (move_slot_to_level): Same.
19966 (temp_address_hasher::equal): Same.
19967 (remove_unused_temp_slot_addresses): Same.
19968 (assign_temp): Same.
19969 (combine_temp_slots): Same.
19970 (update_temp_slot_address): Same.
19971 (preserve_temp_slots): Same.
19972 * function.h: Same.
19973 * fwprop.c: Same.
19974 * gcc-rich-location.h: Same.
19975 * gcov.c: Same.
19976 * genattrtab.c (check_attr_test): Same.
19977 (check_attr_value): Same.
19978 (convert_set_attr_alternative): Same.
19979 (convert_set_attr): Same.
19980 (check_defs): Same.
19981 (copy_boolean): Same.
19982 (get_attr_value): Same.
19983 (expand_delays): Same.
19984 (make_length_attrs): Same.
19985 (min_fn): Same.
19986 (make_alternative_compare): Same.
19987 (simplify_test_exp): Same.
19988 (tests_attr_p): Same.
19989 (get_attr_order): Same.
19990 (clear_struct_flag): Same.
19991 (gen_attr): Same.
19992 (compares_alternatives_p): Same.
19993 (gen_insn): Same.
19994 (gen_delay): Same.
19995 (find_attrs_to_cache): Same.
19996 (write_test_expr): Same.
19997 (walk_attr_value): Same.
19998 (write_attr_get): Same.
19999 (eliminate_known_true): Same.
20000 (write_insn_cases): Same.
20001 (write_attr_case): Same.
20002 (write_attr_valueq): Same.
20003 (write_attr_value): Same.
20004 (write_dummy_eligible_delay): Same.
20005 (next_comma_elt): Same.
20006 (find_attr): Same.
20007 (make_internal_attr): Same.
20008 (copy_rtx_unchanging): Same.
20009 (gen_insn_reserv): Same.
20010 (check_tune_attr): Same.
20011 (make_automaton_attrs): Same.
20012 (handle_arg): Same.
20013 * genextract.c (gen_insn): Same.
20014 (VEC_char_to_string): Same.
20015 * genmatch.c (print_operand): Same.
20016 (lower): Same.
20017 (parser::parse_operation): Same.
20018 (parser::parse_capture): Same.
20019 (parser::parse_c_expr): Same.
20020 (parser::parse_simplify): Same.
20021 (main): Same.
20022 * genoutput.c (output_operand_data): Same.
20023 (output_get_insn_name): Same.
20024 (compare_operands): Same.
20025 (place_operands): Same.
20026 (process_template): Same.
20027 (validate_insn_alternatives): Same.
20028 (validate_insn_operands): Same.
20029 (gen_expand): Same.
20030 (note_constraint): Same.
20031 * genpreds.c (write_one_predicate_function): Same.
20032 (add_constraint): Same.
20033 (process_define_register_constraint): Same.
20034 (write_lookup_constraint_1): Same.
20035 (write_lookup_constraint_array): Same.
20036 (write_insn_constraint_len): Same.
20037 (write_reg_class_for_constraint_1): Same.
20038 (write_constraint_satisfied_p_array): Same.
20039 * genrecog.c (optimize_subroutine_group): Same.
20040 * gensupport.c (process_define_predicate): Same.
20041 (queue_pattern): Same.
20042 (remove_from_queue): Same.
20043 (process_rtx): Same.
20044 (is_predicable): Same.
20045 (change_subst_attribute): Same.
20046 (subst_pattern_match): Same.
20047 (alter_constraints): Same.
20048 (alter_attrs_for_insn): Same.
20049 (shift_output_template): Same.
20050 (alter_output_for_subst_insn): Same.
20051 (process_one_cond_exec): Same.
20052 (subst_dup): Same.
20053 (process_define_cond_exec): Same.
20054 (mnemonic_htab_callback): Same.
20055 (gen_mnemonic_attr): Same.
20056 (read_md_rtx): Same.
20057 * ggc-page.c: Same.
20058 * gimple-loop-interchange.cc (dump_reduction): Same.
20059 (dump_induction): Same.
20060 (loop_cand::~loop_cand): Same.
20061 (free_data_refs_with_aux): Same.
20062 (tree_loop_interchange::interchange_loops): Same.
20063 (tree_loop_interchange::map_inductions_to_loop): Same.
20064 (tree_loop_interchange::move_code_to_inner_loop): Same.
20065 (compute_access_stride): Same.
20066 (compute_access_strides): Same.
20067 (proper_loop_form_for_interchange): Same.
20068 (tree_loop_interchange_compute_ddrs): Same.
20069 (prune_datarefs_not_in_loop): Same.
20070 (prepare_data_references): Same.
20071 (pass_linterchange::execute): Same.
20072 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20073 (unroll_jam_possible_p): Same.
20074 (fuse_loops): Same.
20075 (adjust_unroll_factor): Same.
20076 (tree_loop_unroll_and_jam): Same.
20077 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20078 (loop_versioning::expensive_stmt_p): Same.
20079 (loop_versioning::version_for_unity): Same.
20080 (loop_versioning::dump_inner_likelihood): Same.
20081 (loop_versioning::find_per_loop_multiplication): Same.
20082 (loop_versioning::analyze_term_using_scevs): Same.
20083 (loop_versioning::record_address_fragment): Same.
20084 (loop_versioning::analyze_expr): Same.
20085 (loop_versioning::analyze_blocks): Same.
20086 (loop_versioning::prune_conditions): Same.
20087 (loop_versioning::merge_loop_info): Same.
20088 (loop_versioning::add_loop_to_queue): Same.
20089 (loop_versioning::decide_whether_loop_is_versionable): Same.
20090 (loop_versioning::make_versioning_decisions): Same.
20091 (loop_versioning::implement_versioning_decisions): Same.
20092 * gimple-ssa-evrp-analyze.c
20093 (evrp_range_analyzer::record_ranges_from_phis): Same.
20094 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20095 (count_multiple_uses): Same.
20096 (split_group): Same.
20097 (imm_store_chain_info::output_merged_store): Same.
20098 (pass_store_merging::process_store): Same.
20099 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20100 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20101 (is_max): Same.
20102 (alloca_call_type): Same.
20103 (pass_walloca::execute): Same.
20104 * gimple-streamer-in.c (input_phi): Same.
20105 (input_gimple_stmt): Same.
20106 * gimple-streamer.h: Same.
20107 * godump.c (go_force_record_alignment): Same.
20108 (go_format_type): Same.
20109 (go_output_type): Same.
20110 (go_output_fndecl): Same.
20111 (go_output_typedef): Same.
20112 (keyword_hash_init): Same.
20113 (find_dummy_types): Same.
20114 * graph.c (draw_cfg_nodes_no_loops): Same.
20115 (draw_cfg_nodes_for_loop): Same.
20116 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20117 * hsa-brig.c: Same.
20118 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20119 * hsa-dump.c (dump_hsa_cfun): Same.
20120 * hsa-gen.c (gen_function_def_parameters): Same.
20121 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20122 * input.c (dump_line_table_statistics): Same.
20123 (test_lexer): Same.
20124 * input.h: Same.
20125 * internal-fn.c (get_multi_vector_move): Same.
20126 (expand_load_lanes_optab_fn): Same.
20127 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20128 (expand_GOMP_SIMT_EXIT): Same.
20129 (expand_GOMP_SIMT_LAST_LANE): Same.
20130 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20131 (expand_GOMP_SIMT_VOTE_ANY): Same.
20132 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20133 (expand_GOMP_SIMT_XCHG_IDX): Same.
20134 (expand_addsub_overflow): Same.
20135 (expand_neg_overflow): Same.
20136 (expand_mul_overflow): Same.
20137 (expand_call_mem_ref): Same.
20138 (expand_mask_load_optab_fn): Same.
20139 (expand_scatter_store_optab_fn): Same.
20140 (expand_gather_load_optab_fn): Same.
20141 * ipa-cp.c (ipa_get_parm_lattices): Same.
20142 (print_all_lattices): Same.
20143 (ignore_edge_p): Same.
20144 (build_toporder_info): Same.
20145 (free_toporder_info): Same.
20146 (push_node_to_stack): Same.
20147 (ipcp_lattice<valtype>::set_contains_variable): Same.
20148 (set_agg_lats_to_bottom): Same.
20149 (ipcp_bits_lattice::meet_with): Same.
20150 (set_single_call_flag): Same.
20151 (initialize_node_lattices): Same.
20152 (ipa_get_jf_ancestor_result): Same.
20153 (ipcp_verify_propagated_values): Same.
20154 (propagate_scalar_across_jump_function): Same.
20155 (propagate_context_across_jump_function): Same.
20156 (propagate_bits_across_jump_function): Same.
20157 (ipa_vr_operation_and_type_effects): Same.
20158 (propagate_vr_across_jump_function): Same.
20159 (set_check_aggs_by_ref): Same.
20160 (set_chain_of_aglats_contains_variable): Same.
20161 (merge_aggregate_lattices): Same.
20162 (agg_pass_through_permissible_p): Same.
20163 (propagate_aggs_across_jump_function): Same.
20164 (call_passes_through_thunk_p): Same.
20165 (propagate_constants_across_call): Same.
20166 (devirtualization_time_bonus): Same.
20167 (good_cloning_opportunity_p): Same.
20168 (context_independent_aggregate_values): Same.
20169 (gather_context_independent_values): Same.
20170 (perform_estimation_of_a_value): Same.
20171 (estimate_local_effects): Same.
20172 (value_topo_info<valtype>::add_val): Same.
20173 (add_all_node_vals_to_toposort): Same.
20174 (value_topo_info<valtype>::propagate_effects): Same.
20175 (ipcp_propagate_stage): Same.
20176 (ipcp_discover_new_direct_edges): Same.
20177 (same_node_or_its_all_contexts_clone_p): Same.
20178 (cgraph_edge_brings_value_p): Same.
20179 (gather_edges_for_value): Same.
20180 (create_specialized_node): Same.
20181 (find_more_scalar_values_for_callers_subset): Same.
20182 (find_more_contexts_for_caller_subset): Same.
20183 (copy_plats_to_inter): Same.
20184 (intersect_aggregates_with_edge): Same.
20185 (find_aggregate_values_for_callers_subset): Same.
20186 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20187 (decide_about_value): Same.
20188 (decide_whether_version_node): Same.
20189 (spread_undeadness): Same.
20190 (identify_dead_nodes): Same.
20191 (ipcp_store_vr_results): Same.
20192 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20193 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20194 (redirect_to_unreachable): Same.
20195 (edge_set_predicate): Same.
20196 (evaluate_conditions_for_known_args): Same.
20197 (evaluate_properties_for_edge): Same.
20198 (ipa_fn_summary_t::duplicate): Same.
20199 (ipa_call_summary_t::duplicate): Same.
20200 (dump_ipa_call_summary): Same.
20201 (ipa_dump_fn_summary): Same.
20202 (eliminated_by_inlining_prob): Same.
20203 (set_cond_stmt_execution_predicate): Same.
20204 (set_switch_stmt_execution_predicate): Same.
20205 (compute_bb_predicates): Same.
20206 (will_be_nonconstant_expr_predicate): Same.
20207 (phi_result_unknown_predicate): Same.
20208 (analyze_function_body): Same.
20209 (compute_fn_summary): Same.
20210 (estimate_edge_devirt_benefit): Same.
20211 (estimate_edge_size_and_time): Same.
20212 (estimate_calls_size_and_time): Same.
20213 (estimate_node_size_and_time): Same.
20214 (remap_edge_change_prob): Same.
20215 (remap_edge_summaries): Same.
20216 (ipa_merge_fn_summary_after_inlining): Same.
20217 (ipa_fn_summary_generate): Same.
20218 (inline_read_section): Same.
20219 (ipa_fn_summary_read): Same.
20220 (ipa_fn_summary_write): Same.
20221 * ipa-fnsummary.h: Same.
20222 * ipa-hsa.c (ipa_hsa_read_section): Same.
20223 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20224 * ipa-icf.c (sem_function::param_used_p): Same.
20225 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20226 * ipa-inline.c (edge_badness): Same.
20227 (inline_small_functions): Same.
20228 * ipa-polymorphic-call.c
20229 (ipa_polymorphic_call_context::stream_out): Same.
20230 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20231 (predicate::remap_after_inlining): Same.
20232 (predicate::stream_out): Same.
20233 * ipa-predicate.h: Same.
20234 * ipa-profile.c (ipa_profile_read_summary): Same.
20235 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20236 (count_formal_params): Same.
20237 (ipa_dump_param): Same.
20238 (ipa_alloc_node_params): Same.
20239 (ipa_print_node_jump_functions_for_edge): Same.
20240 (ipa_print_node_jump_functions): Same.
20241 (ipa_load_from_parm_agg): Same.
20242 (get_ancestor_addr_info): Same.
20243 (ipa_compute_jump_functions_for_edge): Same.
20244 (ipa_analyze_virtual_call_uses): Same.
20245 (ipa_analyze_stmt_uses): Same.
20246 (ipa_analyze_params_uses_in_bb): Same.
20247 (update_jump_functions_after_inlining): Same.
20248 (try_decrement_rdesc_refcount): Same.
20249 (ipa_impossible_devirt_target): Same.
20250 (update_indirect_edges_after_inlining): Same.
20251 (combine_controlled_uses_counters): Same.
20252 (ipa_edge_args_sum_t::duplicate): Same.
20253 (ipa_write_jump_function): Same.
20254 (ipa_write_indirect_edge_info): Same.
20255 (ipa_write_node_info): Same.
20256 (ipa_read_edge_info): Same.
20257 (ipa_prop_read_section): Same.
20258 (read_replacements_section): Same.
20259 * ipa-prop.h (ipa_get_param_count): Same.
20260 (ipa_get_param): Same.
20261 (ipa_get_type): Same.
20262 (ipa_get_param_move_cost): Same.
20263 (ipa_set_param_used): Same.
20264 (ipa_get_controlled_uses): Same.
20265 (ipa_set_controlled_uses): Same.
20266 (ipa_get_cs_argument_count): Same.
20267 * ipa-pure-const.c (analyze_function): Same.
20268 (pure_const_read_summary): Same.
20269 * ipa-ref.h: Same.
20270 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20271 * ipa-split.c (test_nonssa_use): Same.
20272 (dump_split_point): Same.
20273 (dominated_by_forbidden): Same.
20274 (split_part_set_ssa_name_p): Same.
20275 (find_split_points): Same.
20276 * ira-build.c (finish_loop_tree_nodes): Same.
20277 (low_pressure_loop_node_p): Same.
20278 * ira-color.c (ira_reuse_stack_slot): Same.
20279 * ira-int.h: Same.
20280 * ira.c (setup_reg_equiv): Same.
20281 (print_insn_chain): Same.
20282 (ira): Same.
20283 * loop-doloop.c (doloop_condition_get): Same.
20284 (add_test): Same.
20285 (record_reg_sets): Same.
20286 (doloop_optimize): Same.
20287 * loop-init.c (loop_optimizer_init): Same.
20288 (fix_loop_structure): Same.
20289 * loop-invariant.c (merge_identical_invariants): Same.
20290 (compute_always_reached): Same.
20291 (find_exits): Same.
20292 (may_assign_reg_p): Same.
20293 (find_invariants_bb): Same.
20294 (find_invariants_body): Same.
20295 (replace_uses): Same.
20296 (can_move_invariant_reg): Same.
20297 (free_inv_motion_data): Same.
20298 (move_single_loop_invariants): Same.
20299 (change_pressure): Same.
20300 (mark_ref_regs): Same.
20301 (calculate_loop_reg_pressure): Same.
20302 * loop-iv.c (biv_entry_hasher::equal): Same.
20303 (iv_extend_to_rtx_code): Same.
20304 (check_iv_ref_table_size): Same.
20305 (clear_iv_info): Same.
20306 (latch_dominating_def): Same.
20307 (iv_get_reaching_def): Same.
20308 (iv_constant): Same.
20309 (iv_subreg): Same.
20310 (iv_extend): Same.
20311 (iv_neg): Same.
20312 (iv_add): Same.
20313 (iv_mult): Same.
20314 (get_biv_step): Same.
20315 (record_iv): Same.
20316 (analyzed_for_bivness_p): Same.
20317 (record_biv): Same.
20318 (iv_analyze_biv): Same.
20319 (iv_analyze_expr): Same.
20320 (iv_analyze_def): Same.
20321 (iv_analyze_op): Same.
20322 (iv_analyze): Same.
20323 (iv_analyze_result): Same.
20324 (biv_p): Same.
20325 (eliminate_implied_conditions): Same.
20326 (simplify_using_initial_values): Same.
20327 (shorten_into_mode): Same.
20328 (canonicalize_iv_subregs): Same.
20329 (determine_max_iter): Same.
20330 (check_simple_exit): Same.
20331 (find_simple_exit): Same.
20332 (get_simple_loop_desc): Same.
20333 * loop-unroll.c (report_unroll): Same.
20334 (decide_unrolling): Same.
20335 (unroll_loops): Same.
20336 (loop_exit_at_end_p): Same.
20337 (decide_unroll_constant_iterations): Same.
20338 (unroll_loop_constant_iterations): Same.
20339 (compare_and_jump_seq): Same.
20340 (unroll_loop_runtime_iterations): Same.
20341 (decide_unroll_stupid): Same.
20342 (unroll_loop_stupid): Same.
20343 (referenced_in_one_insn_in_loop_p): Same.
20344 (reset_debug_uses_in_loop): Same.
20345 (analyze_iv_to_split_insn): Same.
20346 * lra-eliminations.c (lra_debug_elim_table): Same.
20347 (setup_can_eliminate): Same.
20348 (form_sum): Same.
20349 (lra_get_elimination_hard_regno): Same.
20350 (lra_eliminate_regs_1): Same.
20351 (eliminate_regs_in_insn): Same.
20352 (update_reg_eliminate): Same.
20353 (init_elimination): Same.
20354 (lra_eliminate): Same.
20355 * lra-int.h: Same.
20356 * lra-lives.c (initiate_live_solver): Same.
20357 * lra-remat.c (create_remat_bb_data): Same.
20358 * lra-spills.c (lra_spill): Same.
20359 * lra.c (lra_set_insn_recog_data): Same.
20360 (lra_set_used_insn_alternative_by_uid): Same.
20361 (init_reg_info): Same.
20362 (expand_reg_info): Same.
20363 * lto-cgraph.c (output_symtab): Same.
20364 (read_identifier): Same.
20365 (get_alias_symbol): Same.
20366 (input_node): Same.
20367 (input_varpool_node): Same.
20368 (input_ref): Same.
20369 (input_edge): Same.
20370 (input_cgraph_1): Same.
20371 (input_refs): Same.
20372 (input_symtab): Same.
20373 (input_offload_tables): Same.
20374 (output_cgraph_opt_summary): Same.
20375 (input_edge_opt_summary): Same.
20376 (input_cgraph_opt_section): Same.
20377 * lto-section-in.c (lto_free_raw_section_data): Same.
20378 (lto_create_simple_input_block): Same.
20379 (lto_free_function_in_decl_state_for_node): Same.
20380 * lto-streamer-in.c (lto_tag_check_set): Same.
20381 (lto_location_cache::revert_location_cache): Same.
20382 (lto_location_cache::input_location): Same.
20383 (lto_input_location): Same.
20384 (stream_input_location_now): Same.
20385 (lto_input_tree_ref): Same.
20386 (lto_input_eh_catch_list): Same.
20387 (input_eh_region): Same.
20388 (lto_init_eh): Same.
20389 (make_new_block): Same.
20390 (input_cfg): Same.
20391 (fixup_call_stmt_edges): Same.
20392 (input_struct_function_base): Same.
20393 (input_function): Same.
20394 (lto_read_body_or_constructor): Same.
20395 (lto_read_tree_1): Same.
20396 (lto_read_tree): Same.
20397 (lto_input_scc): Same.
20398 (lto_input_tree_1): Same.
20399 (lto_input_toplevel_asms): Same.
20400 (lto_input_mode_table): Same.
20401 (lto_reader_init): Same.
20402 (lto_data_in_create): Same.
20403 * lto-streamer-out.c (output_cfg): Same.
20404 * lto-streamer.h: Same.
20405 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20406 (generate_prolog_epilog): Same.
20407 (mark_loop_unsched): Same.
20408 (dump_insn_location): Same.
20409 (loop_canon_p): Same.
20410 (sms_schedule): Same.
20411 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20412 (expand_omp_for_generic): Same.
20413 (expand_omp_for_static_nochunk): Same.
20414 (expand_omp_for_static_chunk): Same.
20415 (expand_omp_simd): Same.
20416 (expand_omp_taskloop_for_inner): Same.
20417 (expand_oacc_for): Same.
20418 (expand_omp_atomic_pipeline): Same.
20419 (mark_loops_in_oacc_kernels_region): Same.
20420 * omp-offload.c (oacc_xform_loop): Same.
20421 * omp-simd-clone.c (simd_clone_adjust): Same.
20422 * optabs-query.c (get_traditional_extraction_insn): Same.
20423 * optabs.c (expand_vector_broadcast): Same.
20424 (expand_binop_directly): Same.
20425 (expand_twoval_unop): Same.
20426 (expand_twoval_binop): Same.
20427 (expand_unop_direct): Same.
20428 (emit_indirect_jump): Same.
20429 (emit_conditional_move): Same.
20430 (emit_conditional_neg_or_complement): Same.
20431 (emit_conditional_add): Same.
20432 (vector_compare_rtx): Same.
20433 (expand_vec_perm_1): Same.
20434 (expand_vec_perm_const): Same.
20435 (expand_vec_cond_expr): Same.
20436 (expand_vec_series_expr): Same.
20437 (maybe_emit_atomic_exchange): Same.
20438 (maybe_emit_sync_lock_test_and_set): Same.
20439 (expand_atomic_compare_and_swap): Same.
20440 (expand_atomic_load): Same.
20441 (expand_atomic_store): Same.
20442 (maybe_emit_op): Same.
20443 (valid_multiword_target_p): Same.
20444 (create_integer_operand): Same.
20445 (maybe_legitimize_operand_same_code): Same.
20446 (maybe_legitimize_operand): Same.
20447 (create_convert_operand_from_type): Same.
20448 (can_reuse_operands_p): Same.
20449 (maybe_legitimize_operands): Same.
20450 (maybe_gen_insn): Same.
20451 (maybe_expand_insn): Same.
20452 (maybe_expand_jump_insn): Same.
20453 (expand_insn): Same.
20454 * optabs.h (create_expand_operand): Same.
20455 (create_fixed_operand): Same.
20456 (create_output_operand): Same.
20457 (create_input_operand): Same.
20458 (create_convert_operand_to): Same.
20459 (create_convert_operand_from): Same.
20460 * optinfo.h: Same.
20461 * poly-int.h: Same.
20462 * predict.c (optimize_insn_for_speed_p): Same.
20463 (optimize_loop_for_size_p): Same.
20464 (optimize_loop_for_speed_p): Same.
20465 (optimize_loop_nest_for_speed_p): Same.
20466 (get_base_value): Same.
20467 (predicted_by_loop_heuristics_p): Same.
20468 (predict_extra_loop_exits): Same.
20469 (predict_loops): Same.
20470 (predict_paths_for_bb): Same.
20471 (predict_paths_leading_to): Same.
20472 (propagate_freq): Same.
20473 (pass_profile::execute): Same.
20474 * predict.h: Same.
20475 * profile-count.c (profile_count::differs_from_p): Same.
20476 (profile_probability::differs_lot_from_p): Same.
20477 * profile-count.h: Same.
20478 * profile.c (branch_prob): Same.
20479 * regrename.c (free_chain_data): Same.
20480 (mark_conflict): Same.
20481 (create_new_chain): Same.
20482 (merge_overlapping_regs): Same.
20483 (init_rename_info): Same.
20484 (merge_chains): Same.
20485 (regrename_analyze): Same.
20486 (regrename_do_replace): Same.
20487 (scan_rtx_reg): Same.
20488 (record_out_operands): Same.
20489 (build_def_use): Same.
20490 * regrename.h: Same.
20491 * reload.h: Same.
20492 * reload1.c (init_reload): Same.
20493 (maybe_fix_stack_asms): Same.
20494 (copy_reloads): Same.
20495 (count_pseudo): Same.
20496 (count_spilled_pseudo): Same.
20497 (find_reg): Same.
20498 (find_reload_regs): Same.
20499 (select_reload_regs): Same.
20500 (spill_hard_reg): Same.
20501 (fixup_eh_region_note): Same.
20502 (set_reload_reg): Same.
20503 (allocate_reload_reg): Same.
20504 (compute_reload_subreg_offset): Same.
20505 (reload_adjust_reg_for_icode): Same.
20506 (emit_input_reload_insns): Same.
20507 (emit_output_reload_insns): Same.
20508 (do_input_reload): Same.
20509 (inherit_piecemeal_p): Same.
20510 * rtl.h: Same.
20511 * sanopt.c (maybe_get_dominating_check): Same.
20512 (maybe_optimize_ubsan_ptr_ifn): Same.
20513 (can_remove_asan_check): Same.
20514 (maybe_optimize_asan_check_ifn): Same.
20515 (sanopt_optimize_walker): Same.
20516 * sched-deps.c (add_dependence_list): Same.
20517 (chain_to_prev_insn): Same.
20518 (add_insn_mem_dependence): Same.
20519 (create_insn_reg_set): Same.
20520 (maybe_extend_reg_info_p): Same.
20521 (sched_analyze_reg): Same.
20522 (sched_analyze_1): Same.
20523 (get_implicit_reg_pending_clobbers): Same.
20524 (chain_to_prev_insn_p): Same.
20525 (deps_analyze_insn): Same.
20526 (deps_start_bb): Same.
20527 (sched_free_deps): Same.
20528 (init_deps): Same.
20529 (init_deps_reg_last): Same.
20530 (free_deps): Same.
20531 * sched-ebb.c: Same.
20532 * sched-int.h: Same.
20533 * sched-rgn.c (add_branch_dependences): Same.
20534 (concat_insn_mem_list): Same.
20535 (deps_join): Same.
20536 (sched_rgn_compute_dependencies): Same.
20537 * sel-sched-ir.c (reset_target_context): Same.
20538 (copy_deps_context): Same.
20539 (init_id_from_df): Same.
20540 (has_dependence_p): Same.
20541 (change_loops_latches): Same.
20542 (bb_top_order_comparator): Same.
20543 (make_region_from_loop_preheader): Same.
20544 (sel_init_pipelining): Same.
20545 (get_loop_nest_for_rgn): Same.
20546 (make_regions_from_the_rest): Same.
20547 (sel_is_loop_preheader_p): Same.
20548 * sel-sched-ir.h (inner_loop_header_p): Same.
20549 (get_all_loop_exits): Same.
20550 * selftest.h: Same.
20551 * sese.c (sese_build_liveouts): Same.
20552 (sese_insert_phis_for_liveouts): Same.
20553 * sese.h (defined_in_sese_p): Same.
20554 * sreal.c (sreal::stream_out): Same.
20555 * sreal.h: Same.
20556 * streamer-hooks.h: Same.
20557 * target-globals.c (save_target_globals): Same.
20558 * target-globals.h: Same.
20559 * target.def: Same.
20560 * target.h: Same.
20561 * targhooks.c (default_has_ifunc_p): Same.
20562 (default_empty_mask_is_expensive): Same.
20563 (default_init_cost): Same.
20564 * targhooks.h: Same.
20565 * toplev.c: Same.
20566 * tree-affine.c (aff_combination_mult): Same.
20567 (aff_combination_expand): Same.
20568 (aff_combination_constant_multiple_p): Same.
20569 * tree-affine.h: Same.
20570 * tree-cfg.c (build_gimple_cfg): Same.
20571 (replace_loop_annotate_in_block): Same.
20572 (replace_uses_by): Same.
20573 (remove_bb): Same.
20574 (dump_cfg_stats): Same.
20575 (gimple_duplicate_sese_region): Same.
20576 (gimple_duplicate_sese_tail): Same.
20577 (move_block_to_fn): Same.
20578 (replace_block_vars_by_duplicates): Same.
20579 (move_sese_region_to_fn): Same.
20580 (print_loops_bb): Same.
20581 (print_loop): Same.
20582 (print_loops): Same.
20583 (debug): Same.
20584 (debug_loops): Same.
20585 * tree-cfg.h: Same.
20586 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20587 (chrec_fold_multiply_poly_poly): Same.
20588 (chrec_evaluate): Same.
20589 (chrec_component_in_loop_num): Same.
20590 (reset_evolution_in_loop): Same.
20591 (is_multivariate_chrec): Same.
20592 (chrec_contains_symbols): Same.
20593 (nb_vars_in_chrec): Same.
20594 (chrec_convert_1): Same.
20595 (chrec_convert_aggressive): Same.
20596 * tree-chrec.h: Same.
20597 * tree-core.h: Same.
20598 * tree-data-ref.c (dump_data_dependence_relation): Same.
20599 (canonicalize_base_object_address): Same.
20600 (data_ref_compare_tree): Same.
20601 (prune_runtime_alias_test_list): Same.
20602 (get_segment_min_max): Same.
20603 (create_intersect_range_checks): Same.
20604 (conflict_fn_no_dependence): Same.
20605 (object_address_invariant_in_loop_p): Same.
20606 (analyze_ziv_subscript): Same.
20607 (analyze_siv_subscript_cst_affine): Same.
20608 (analyze_miv_subscript): Same.
20609 (analyze_overlapping_iterations): Same.
20610 (build_classic_dist_vector_1): Same.
20611 (add_other_self_distances): Same.
20612 (same_access_functions): Same.
20613 (build_classic_dir_vector): Same.
20614 (subscript_dependence_tester_1): Same.
20615 (subscript_dependence_tester): Same.
20616 (access_functions_are_affine_or_constant_p): Same.
20617 (get_references_in_stmt): Same.
20618 (loop_nest_has_data_refs): Same.
20619 (graphite_find_data_references_in_stmt): Same.
20620 (find_data_references_in_bb): Same.
20621 (get_base_for_alignment): Same.
20622 (find_loop_nest_1): Same.
20623 (find_loop_nest): Same.
20624 * tree-data-ref.h (dr_alignment): Same.
20625 (ddr_dependence_level): Same.
20626 * tree-if-conv.c (fold_build_cond_expr): Same.
20627 (add_to_predicate_list): Same.
20628 (add_to_dst_predicate_list): Same.
20629 (phi_convertible_by_degenerating_args): Same.
20630 (idx_within_array_bound): Same.
20631 (all_preds_critical_p): Same.
20632 (pred_blocks_visited_p): Same.
20633 (predicate_bbs): Same.
20634 (build_region): Same.
20635 (if_convertible_loop_p_1): Same.
20636 (is_cond_scalar_reduction): Same.
20637 (predicate_scalar_phi): Same.
20638 (remove_conditions_and_labels): Same.
20639 (combine_blocks): Same.
20640 (version_loop_for_if_conversion): Same.
20641 (versionable_outer_loop_p): Same.
20642 (ifcvt_local_dce): Same.
20643 (tree_if_conversion): Same.
20644 (pass_if_conversion::gate): Same.
20645 * tree-if-conv.h: Same.
20646 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20647 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20648 (free_rdg): Same.
20649 (stmt_has_scalar_dependences_outside_loop): Same.
20650 (copy_loop_before): Same.
20651 (create_bb_after_loop): Same.
20652 (const_with_all_bytes_same): Same.
20653 (generate_memset_builtin): Same.
20654 (generate_memcpy_builtin): Same.
20655 (destroy_loop): Same.
20656 (build_rdg_partition_for_vertex): Same.
20657 (compute_access_range): Same.
20658 (data_ref_segment_size): Same.
20659 (latch_dominated_by_data_ref): Same.
20660 (compute_alias_check_pairs): Same.
20661 (fuse_memset_builtins): Same.
20662 (finalize_partitions): Same.
20663 (find_seed_stmts_for_distribution): Same.
20664 (prepare_perfect_loop_nest): Same.
20665 * tree-parloops.c (lambda_transform_legal_p): Same.
20666 (loop_parallel_p): Same.
20667 (reduc_stmt_res): Same.
20668 (add_field_for_name): Same.
20669 (create_call_for_reduction_1): Same.
20670 (replace_uses_in_bb_by): Same.
20671 (transform_to_exit_first_loop_alt): Same.
20672 (try_transform_to_exit_first_loop_alt): Same.
20673 (transform_to_exit_first_loop): Same.
20674 (num_phis): Same.
20675 (gen_parallel_loop): Same.
20676 (gather_scalar_reductions): Same.
20677 (get_omp_data_i_param): Same.
20678 (try_create_reduction_list): Same.
20679 (oacc_entry_exit_single_gang): Same.
20680 (parallelize_loops): Same.
20681 * tree-pass.h: Same.
20682 * tree-predcom.c (determine_offset): Same.
20683 (last_always_executed_block): Same.
20684 (split_data_refs_to_components): Same.
20685 (suitable_component_p): Same.
20686 (valid_initializer_p): Same.
20687 (find_looparound_phi): Same.
20688 (insert_looparound_copy): Same.
20689 (add_looparound_copies): Same.
20690 (determine_roots_comp): Same.
20691 (predcom_tmp_var): Same.
20692 (initialize_root_vars): Same.
20693 (initialize_root_vars_store_elim_1): Same.
20694 (initialize_root_vars_store_elim_2): Same.
20695 (finalize_eliminated_stores): Same.
20696 (initialize_root_vars_lm): Same.
20697 (remove_stmt): Same.
20698 (determine_unroll_factor): Same.
20699 (execute_pred_commoning_cbck): Same.
20700 (base_names_in_chain_on): Same.
20701 (combine_chains): Same.
20702 (pcom_stmt_dominates_stmt_p): Same.
20703 (try_combine_chains): Same.
20704 (prepare_initializers_chain_store_elim): Same.
20705 (prepare_initializers_chain): Same.
20706 (prepare_initializers): Same.
20707 (prepare_finalizers_chain): Same.
20708 (prepare_finalizers): Same.
20709 (insert_init_seqs): Same.
20710 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20711 (compute_overall_effect_of_inner_loop): Same.
20712 (add_to_evolution_1): Same.
20713 (add_to_evolution): Same.
20714 (follow_ssa_edge_binary): Same.
20715 (follow_ssa_edge_expr): Same.
20716 (backedge_phi_arg_p): Same.
20717 (follow_ssa_edge_in_condition_phi_branch): Same.
20718 (follow_ssa_edge_in_condition_phi): Same.
20719 (follow_ssa_edge_inner_loop_phi): Same.
20720 (follow_ssa_edge): Same.
20721 (analyze_evolution_in_loop): Same.
20722 (analyze_initial_condition): Same.
20723 (interpret_loop_phi): Same.
20724 (interpret_condition_phi): Same.
20725 (interpret_rhs_expr): Same.
20726 (interpret_expr): Same.
20727 (interpret_gimple_assign): Same.
20728 (analyze_scalar_evolution_1): Same.
20729 (analyze_scalar_evolution): Same.
20730 (analyze_scalar_evolution_for_address_of): Same.
20731 (get_instantiated_value_entry): Same.
20732 (loop_closed_phi_def): Same.
20733 (instantiate_scev_name): Same.
20734 (instantiate_scev_poly): Same.
20735 (instantiate_scev_binary): Same.
20736 (instantiate_scev_convert): Same.
20737 (instantiate_scev_not): Same.
20738 (instantiate_scev_r): Same.
20739 (instantiate_scev): Same.
20740 (resolve_mixers): Same.
20741 (initialize_scalar_evolutions_analyzer): Same.
20742 (scev_reset_htab): Same.
20743 (scev_reset): Same.
20744 (derive_simple_iv_with_niters): Same.
20745 (simple_iv_with_niters): Same.
20746 (expression_expensive_p): Same.
20747 (final_value_replacement_loop): Same.
20748 * tree-scalar-evolution.h (block_before_loop): Same.
20749 * tree-ssa-address.h: Same.
20750 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20751 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20752 (record_edge_info): Same.
20753 * tree-ssa-live.c (var_map_base_fini): Same.
20754 (remove_unused_locals): Same.
20755 * tree-ssa-live.h: Same.
20756 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20757 (pass_ch_vect::execute): Same.
20758 (pass_ch::process_loop_p): Same.
20759 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20760 (movement_possibility): Same.
20761 (outermost_invariant_loop): Same.
20762 (stmt_cost): Same.
20763 (determine_max_movement): Same.
20764 (invariantness_dom_walker::before_dom_children): Same.
20765 (move_computations): Same.
20766 (may_move_till): Same.
20767 (force_move_till_op): Same.
20768 (force_move_till): Same.
20769 (memref_free): Same.
20770 (record_mem_ref_loc): Same.
20771 (set_ref_stored_in_loop): Same.
20772 (mark_ref_stored): Same.
20773 (sort_bbs_in_loop_postorder_cmp): Same.
20774 (sort_locs_in_loop_postorder_cmp): Same.
20775 (analyze_memory_references): Same.
20776 (mem_refs_may_alias_p): Same.
20777 (find_ref_loc_in_loop_cmp): Same.
20778 (rewrite_mem_ref_loc::operator): Same.
20779 (first_mem_ref_loc_1::operator): Same.
20780 (sm_set_flag_if_changed::operator): Same.
20781 (execute_sm_if_changed_flag_set): Same.
20782 (execute_sm): Same.
20783 (hoist_memory_references): Same.
20784 (ref_always_accessed::operator): Same.
20785 (refs_independent_p): Same.
20786 (record_dep_loop): Same.
20787 (ref_indep_loop_p_1): Same.
20788 (ref_indep_loop_p): Same.
20789 (can_sm_ref_p): Same.
20790 (find_refs_for_sm): Same.
20791 (loop_suitable_for_sm): Same.
20792 (store_motion_loop): Same.
20793 (store_motion): Same.
20794 (fill_always_executed_in): Same.
20795 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20796 (estimated_unrolled_size): Same.
20797 (loop_edge_to_cancel): Same.
20798 (remove_exits_and_undefined_stmts): Same.
20799 (remove_redundant_iv_tests): Same.
20800 (unloop_loops): Same.
20801 (estimated_peeled_sequence_size): Same.
20802 (try_peel_loop): Same.
20803 (canonicalize_loop_induction_variables): Same.
20804 (canonicalize_induction_variables): Same.
20805 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20806 (name_info): Same.
20807 (stmt_after_inc_pos): Same.
20808 (contains_abnormal_ssa_name_p): Same.
20809 (niter_for_exit): Same.
20810 (find_bivs): Same.
20811 (mark_bivs): Same.
20812 (find_givs_in_bb): Same.
20813 (find_induction_variables): Same.
20814 (find_interesting_uses_cond): Same.
20815 (outermost_invariant_loop_for_expr): Same.
20816 (idx_find_step): Same.
20817 (add_candidate_1): Same.
20818 (add_iv_candidate_derived_from_uses): Same.
20819 (alloc_use_cost_map): Same.
20820 (prepare_decl_rtl): Same.
20821 (generic_predict_doloop_p): Same.
20822 (computation_cost): Same.
20823 (determine_common_wider_type): Same.
20824 (get_computation_aff_1): Same.
20825 (get_use_type): Same.
20826 (determine_group_iv_cost_address): Same.
20827 (iv_period): Same.
20828 (difference_cannot_overflow_p): Same.
20829 (may_eliminate_iv): Same.
20830 (determine_set_costs): Same.
20831 (cheaper_cost_pair): Same.
20832 (compare_cost_pair): Same.
20833 (iv_ca_cand_for_group): Same.
20834 (iv_ca_recount_cost): Same.
20835 (iv_ca_set_remove_invs): Same.
20836 (iv_ca_set_no_cp): Same.
20837 (iv_ca_set_add_invs): Same.
20838 (iv_ca_set_cp): Same.
20839 (iv_ca_add_group): Same.
20840 (iv_ca_cost): Same.
20841 (iv_ca_compare_deps): Same.
20842 (iv_ca_delta_reverse): Same.
20843 (iv_ca_delta_commit): Same.
20844 (iv_ca_cand_used_p): Same.
20845 (iv_ca_delta_free): Same.
20846 (iv_ca_new): Same.
20847 (iv_ca_free): Same.
20848 (iv_ca_dump): Same.
20849 (iv_ca_extend): Same.
20850 (iv_ca_narrow): Same.
20851 (iv_ca_prune): Same.
20852 (cheaper_cost_with_cand): Same.
20853 (iv_ca_replace): Same.
20854 (try_add_cand_for): Same.
20855 (get_initial_solution): Same.
20856 (try_improve_iv_set): Same.
20857 (find_optimal_iv_set_1): Same.
20858 (create_new_iv): Same.
20859 (rewrite_use_compare): Same.
20860 (remove_unused_ivs): Same.
20861 (determine_scaling_factor): Same.
20862 * tree-ssa-loop-ivopts.h: Same.
20863 * tree-ssa-loop-manip.c (create_iv): Same.
20864 (compute_live_loop_exits): Same.
20865 (add_exit_phi): Same.
20866 (add_exit_phis): Same.
20867 (find_uses_to_rename_use): Same.
20868 (find_uses_to_rename_def): Same.
20869 (find_uses_to_rename_in_loop): Same.
20870 (rewrite_into_loop_closed_ssa): Same.
20871 (check_loop_closed_ssa_bb): Same.
20872 (split_loop_exit_edge): Same.
20873 (ip_end_pos): Same.
20874 (ip_normal_pos): Same.
20875 (copy_phi_node_args): Same.
20876 (gimple_duplicate_loop_to_header_edge): Same.
20877 (can_unroll_loop_p): Same.
20878 (determine_exit_conditions): Same.
20879 (scale_dominated_blocks_in_loop): Same.
20880 (niter_for_unrolled_loop): Same.
20881 (tree_transform_and_unroll_loop): Same.
20882 (rewrite_all_phi_nodes_with_iv): Same.
20883 * tree-ssa-loop-manip.h: Same.
20884 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20885 (number_of_iterations_ne): Same.
20886 (assert_no_overflow_lt): Same.
20887 (assert_loop_rolls_lt): Same.
20888 (number_of_iterations_lt): Same.
20889 (adjust_cond_for_loop_until_wrap): Same.
20890 (tree_simplify_using_condition): Same.
20891 (simplify_using_initial_conditions): Same.
20892 (simplify_using_outer_evolutions): Same.
20893 (loop_only_exit_p): Same.
20894 (ssa_defined_by_minus_one_stmt_p): Same.
20895 (number_of_iterations_popcount): Same.
20896 (number_of_iterations_exit): Same.
20897 (find_loop_niter): Same.
20898 (finite_loop_p): Same.
20899 (chain_of_csts_start): Same.
20900 (get_val_for): Same.
20901 (loop_niter_by_eval): Same.
20902 (derive_constant_upper_bound_ops): Same.
20903 (do_warn_aggressive_loop_optimizations): Same.
20904 (record_estimate): Same.
20905 (get_cst_init_from_scev): Same.
20906 (record_nonwrapping_iv): Same.
20907 (idx_infer_loop_bounds): Same.
20908 (infer_loop_bounds_from_ref): Same.
20909 (infer_loop_bounds_from_array): Same.
20910 (infer_loop_bounds_from_pointer_arith): Same.
20911 (infer_loop_bounds_from_signedness): Same.
20912 (bound_index): Same.
20913 (discover_iteration_bound_by_body_walk): Same.
20914 (maybe_lower_iteration_bound): Same.
20915 (estimate_numbers_of_iterations): Same.
20916 (estimated_loop_iterations): Same.
20917 (estimated_loop_iterations_int): Same.
20918 (max_loop_iterations): Same.
20919 (max_loop_iterations_int): Same.
20920 (likely_max_loop_iterations): Same.
20921 (likely_max_loop_iterations_int): Same.
20922 (estimated_stmt_executions_int): Same.
20923 (max_stmt_executions): Same.
20924 (likely_max_stmt_executions): Same.
20925 (estimated_stmt_executions): Same.
20926 (stmt_dominates_stmt_p): Same.
20927 (nowrap_type_p): Same.
20928 (loop_exits_before_overflow): Same.
20929 (scev_var_range_cant_overflow): Same.
20930 (scev_probably_wraps_p): Same.
20931 (free_numbers_of_iterations_estimates): Same.
20932 * tree-ssa-loop-niter.h: Same.
20933 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20934 (idx_analyze_ref): Same.
20935 (analyze_ref): Same.
20936 (gather_memory_references_ref): Same.
20937 (mark_nontemporal_store): Same.
20938 (emit_mfence_after_loop): Same.
20939 (may_use_storent_in_loop_p): Same.
20940 (mark_nontemporal_stores): Same.
20941 (should_unroll_loop_p): Same.
20942 (volume_of_dist_vector): Same.
20943 (add_subscript_strides): Same.
20944 (self_reuse_distance): Same.
20945 (insn_to_prefetch_ratio_too_small_p): Same.
20946 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20947 (patch_loop_exit): Same.
20948 (find_or_create_guard_phi): Same.
20949 (easy_exit_values): Same.
20950 (connect_loop_phis): Same.
20951 (connect_loops): Same.
20952 (compute_new_first_bound): Same.
20953 (split_loop): Same.
20954 (tree_ssa_split_loops): Same.
20955 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20956 (is_maybe_undefined): Same.
20957 (tree_may_unswitch_on): Same.
20958 (simplify_using_entry_checks): Same.
20959 (tree_unswitch_single_loop): Same.
20960 (tree_unswitch_loop): Same.
20961 (tree_unswitch_outer_loop): Same.
20962 (empty_bb_without_guard_p): Same.
20963 (used_outside_loop_p): Same.
20964 (get_vop_from_header): Same.
20965 (hoist_guard): Same.
20966 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20967 (get_lsm_tmp_name): Same.
20968 * tree-ssa-loop.h: Same.
20969 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20970 (build_and_add_sum): Same.
20971 (no_side_effect_bb): Same.
20972 (get_ops): Same.
20973 (linearize_expr): Same.
20974 (should_break_up_subtract): Same.
20975 (linearize_expr_tree): Same.
20976 * tree-ssa-scopedtables.c: Same.
20977 * tree-ssa-scopedtables.h: Same.
20978 * tree-ssa-structalias.c (condense_visit): Same.
20979 (label_visit): Same.
20980 (dump_pred_graph): Same.
20981 (perform_var_substitution): Same.
20982 (move_complex_constraints): Same.
20983 (remove_preds_and_fake_succs): Same.
20984 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20985 (determine_bb_domination_status): Same.
20986 (duplicate_thread_path): Same.
20987 (thread_through_all_blocks): Same.
20988 * tree-ssa-threadupdate.h: Same.
20989 * tree-streamer-in.c (streamer_read_string_cst): Same.
20990 (input_identifier): Same.
20991 (unpack_ts_type_common_value_fields): Same.
20992 (unpack_ts_block_value_fields): Same.
20993 (unpack_ts_translation_unit_decl_value_fields): Same.
20994 (unpack_ts_omp_clause_value_fields): Same.
20995 (streamer_read_tree_bitfields): Same.
20996 (streamer_alloc_tree): Same.
20997 (lto_input_ts_common_tree_pointers): Same.
20998 (lto_input_ts_vector_tree_pointers): Same.
20999 (lto_input_ts_poly_tree_pointers): Same.
21000 (lto_input_ts_complex_tree_pointers): Same.
21001 (lto_input_ts_decl_minimal_tree_pointers): Same.
21002 (lto_input_ts_decl_common_tree_pointers): Same.
21003 (lto_input_ts_decl_non_common_tree_pointers): Same.
21004 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21005 (lto_input_ts_field_decl_tree_pointers): Same.
21006 (lto_input_ts_function_decl_tree_pointers): Same.
21007 (lto_input_ts_type_common_tree_pointers): Same.
21008 (lto_input_ts_type_non_common_tree_pointers): Same.
21009 (lto_input_ts_list_tree_pointers): Same.
21010 (lto_input_ts_vec_tree_pointers): Same.
21011 (lto_input_ts_exp_tree_pointers): Same.
21012 (lto_input_ts_block_tree_pointers): Same.
21013 (lto_input_ts_binfo_tree_pointers): Same.
21014 (lto_input_ts_constructor_tree_pointers): Same.
21015 (lto_input_ts_omp_clause_tree_pointers): Same.
21016 (streamer_read_tree_body): Same.
21017 * tree-streamer.h: Same.
21018 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21019 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21020 (vect_analyze_possibly_independent_ddr): Same.
21021 (vect_analyze_data_ref_dependence): Same.
21022 (vect_compute_data_ref_alignment): Same.
21023 (vect_enhance_data_refs_alignment): Same.
21024 (vect_analyze_data_ref_access): Same.
21025 (vect_check_gather_scatter): Same.
21026 (vect_find_stmt_data_reference): Same.
21027 (vect_create_addr_base_for_vector_ref): Same.
21028 (vect_setup_realignment): Same.
21029 (vect_supportable_dr_alignment): Same.
21030 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21031 (adjust_phi_and_debug_stmts): Same.
21032 (vect_set_loop_mask): Same.
21033 (add_preheader_seq): Same.
21034 (vect_maybe_permute_loop_masks): Same.
21035 (vect_set_loop_masks_directly): Same.
21036 (vect_set_loop_condition_masked): Same.
21037 (vect_set_loop_condition_unmasked): Same.
21038 (slpeel_duplicate_current_defs_from_edges): Same.
21039 (slpeel_add_loop_guard): Same.
21040 (slpeel_can_duplicate_loop_p): Same.
21041 (create_lcssa_for_virtual_phi): Same.
21042 (iv_phi_p): Same.
21043 (vect_update_ivs_after_vectorizer): Same.
21044 (vect_gen_vector_loop_niters_mult_vf): Same.
21045 (slpeel_update_phi_nodes_for_loops): Same.
21046 (slpeel_update_phi_nodes_for_guard1): Same.
21047 (find_guard_arg): Same.
21048 (slpeel_update_phi_nodes_for_guard2): Same.
21049 (slpeel_update_phi_nodes_for_lcssa): Same.
21050 (vect_do_peeling): Same.
21051 (vect_create_cond_for_alias_checks): Same.
21052 (vect_loop_versioning): Same.
21053 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21054 (vect_inner_phi_in_double_reduction_p): Same.
21055 (vect_analyze_scalar_cycles_1): Same.
21056 (vect_fixup_scalar_cycles_with_patterns): Same.
21057 (vect_get_loop_niters): Same.
21058 (bb_in_loop_p): Same.
21059 (vect_get_max_nscalars_per_iter): Same.
21060 (vect_verify_full_masking): Same.
21061 (vect_compute_single_scalar_iteration_cost): Same.
21062 (vect_analyze_loop_form_1): Same.
21063 (vect_analyze_loop_form): Same.
21064 (vect_active_double_reduction_p): Same.
21065 (vect_analyze_loop_operations): Same.
21066 (neutral_op_for_slp_reduction): Same.
21067 (vect_is_simple_reduction): Same.
21068 (vect_model_reduction_cost): Same.
21069 (get_initial_def_for_reduction): Same.
21070 (get_initial_defs_for_reduction): Same.
21071 (vect_create_epilog_for_reduction): Same.
21072 (vectorize_fold_left_reduction): Same.
21073 (vectorizable_reduction): Same.
21074 (vectorizable_induction): Same.
21075 (vectorizable_live_operation): Same.
21076 (loop_niters_no_overflow): Same.
21077 (vect_get_loop_mask): Same.
21078 (vect_transform_loop_stmt): Same.
21079 (vect_transform_loop): Same.
21080 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21081 (vect_determine_precisions): Same.
21082 (vect_pattern_recog_1): Same.
21083 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21084 * tree-vect-stmts.c (stmt_vectype): Same.
21085 (process_use): Same.
21086 (vect_init_vector_1): Same.
21087 (vect_truncate_gather_scatter_offset): Same.
21088 (get_group_load_store_type): Same.
21089 (vect_build_gather_load_calls): Same.
21090 (vect_get_strided_load_store_ops): Same.
21091 (vectorizable_simd_clone_call): Same.
21092 (vectorizable_store): Same.
21093 (permute_vec_elements): Same.
21094 (vectorizable_load): Same.
21095 (vect_transform_stmt): Same.
21096 (supportable_widening_operation): Same.
21097 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21098 (vec_info::free_stmt_vec_info): Same.
21099 (vect_free_loop_info_assumptions): Same.
21100 (vect_loop_vectorized_call): Same.
21101 (set_uid_loop_bbs): Same.
21102 (vectorize_loops): Same.
21103 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21104 * tree.c (add_tree_to_fld_list): Same.
21105 (fld_type_variant_equal_p): Same.
21106 (fld_decl_context): Same.
21107 (fld_incomplete_type_of): Same.
21108 (free_lang_data_in_binfo): Same.
21109 (need_assembler_name_p): Same.
21110 (find_decls_types_r): Same.
21111 (get_eh_types_for_runtime): Same.
21112 (find_decls_types_in_eh_region): Same.
21113 (find_decls_types_in_node): Same.
21114 (assign_assembler_name_if_needed): Same.
21115 * value-prof.c (stream_out_histogram_value): Same.
21116 * value-prof.h: Same.
21117 * var-tracking.c (use_narrower_mode): Same.
21118 (prepare_call_arguments): Same.
21119 (vt_expand_loc_callback): Same.
21120 (resolve_expansions_pending_recursion): Same.
21121 (vt_expand_loc): Same.
21122 * varasm.c (const_hash_1): Same.
21123 (compare_constant): Same.
21124 (tree_output_constant_def): Same.
21125 (simplify_subtraction): Same.
21126 (get_pool_constant): Same.
21127 (output_constant_pool_2): Same.
21128 (output_constant_pool_1): Same.
21129 (mark_constants_in_pattern): Same.
21130 (mark_constant_pool): Same.
21131 (get_section_anchor): Same.
21132 * vr-values.c (compare_range_with_value): Same.
21133 (vr_values::extract_range_from_phi_node): Same.
21134 * vr-values.h: Same.
21135 * web.c (unionfind_union): Same.
21136 * wide-int.h: Same.
21137
21138 2019-07-09 Martin Sebor <msebor@redhat.com>
21139
21140 PR c++/61339
21141 * align.h: Change class-key from class to struct and vice versa
21142 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21143 * alloc-pool.h: Same.
21144 * asan.c (shadow_mem_size): Same.
21145 * auto-profile.c: Same.
21146 * basic-block.h: Same.
21147 * bitmap.h: Same.
21148 * cfgexpand.c (set_rtl): Same.
21149 (expand_one_stack_var_at): Same.
21150 * cfghooks.h: Same.
21151 * cfgloop.h: Same.
21152 * cgraph.h: Same.
21153 * config/i386/i386.h: Same.
21154 * df-problems.c (df_print_bb_index): Same.
21155 * df-scan.c: Same.
21156 * df.h (df_single_use): Same.
21157 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21158 (layout::annotation_line_showed_range_p): Same.
21159 (get_printed_columns): Same.
21160 (correction::ensure_terminated): Same.
21161 (line_corrections::~line_corrections): Same.
21162 * dojump.h: Same.
21163 * dse.c: Same.
21164 * dump-context.h: Same.
21165 * dumpfile.h: Same.
21166 * dwarf2out.c: Same.
21167 * edit-context.c: Same.
21168 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21169 * flags.h: Same.
21170 * function.c (assign_stack_local): Same.
21171 * function.h: Same.
21172 * gcc.c: Same.
21173 * gcov.c (block_info::block_info): Same.
21174 * genattrtab.c: Same.
21175 * genextract.c: Same.
21176 * genmatch.c (comparison_code_p): Same.
21177 (id_base::id_base): Same.
21178 (decision_tree::print): Same.
21179 * genoutput.c: Same.
21180 * genpreds.c (write_one_predicate_function): Same.
21181 * genrecog.c (validate_pattern): Same.
21182 (find_operand_positions): Same.
21183 (optimize_subroutine_group): Same.
21184 (merge_pattern_transition::merge_pattern_transition): Same.
21185 (merge_pattern_info::merge_pattern_info): Same.
21186 (merge_state_result::merge_state_result): Same.
21187 (merge_into_state): Same.
21188 * gensupport.c: Same.
21189 * gensupport.h: Same.
21190 * ggc-common.c (init_ggc_heuristics): Same.
21191 * ggc-tests.c (test_union): Same.
21192 * gimple-loop-interchange.cc (dump_induction): Same.
21193 * gimple-loop-versioning.cc: Same.
21194 * gimple-match.h (gimple_match_cond::any_else): Same.
21195 * gimple-ssa-backprop.c: Same.
21196 * gimple-ssa-sprintf.c: Same.
21197 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21198 Same.
21199 (store_immediate_info::store_immediate_info): Same.
21200 (merged_store_group::apply_stores): Same.
21201 (get_location_for_stmts): Same.
21202 * gimple-ssa-strength-reduction.c: Same.
21203 * gimple-ssa-warn-alloca.c: Same.
21204 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21205 * godump.c (go_type_decl): Same.
21206 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21207 * hash-map.h: Same.
21208 * hash-set-tests.c (test_set_of_strings): Same.
21209 * hsa-brig.c: Same.
21210 * hsa-common.h: Same.
21211 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21212 * input.c (assert_loceq): Same.
21213 * input.h: Same.
21214 * ipa-cp.c: Same.
21215 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21216 * ipa-fnsummary.h: Same.
21217 * ipa-inline.h: Same.
21218 * ipa-prop.h: Same.
21219 * ipa-split.c (visit_bb): Same.
21220 * ira-int.h (minmax_set_iter_next): Same.
21221 * loop-invariant.c: Same.
21222 * loop-iv.c: Same.
21223 * lra-eliminations.c: Same.
21224 * lra-int.h: Same.
21225 * lra-lives.c (mark_regno_dead): Same.
21226 * lra-remat.c: Same.
21227 * lra-spills.c: Same.
21228 * lto-streamer.h: Same.
21229 * mem-stats.h: Same.
21230 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21231 * omp-low.c (omp_clause_aligned_alignment): Same.
21232 * optabs-query.h (get_vcond_eq_icode): Same.
21233 * optabs.h: Same.
21234 * opts.c (wrap_help): Same.
21235 * poly-int.h: Same.
21236 * predict.c (predict_paths_leading_to_edge): Same.
21237 * pretty-print.h: Same.
21238 * profile-count.h: Same.
21239 * read-md.h: Same.
21240 * read-rtl-function.c: Same.
21241 * ree.c: Same.
21242 * reginfo.c: Same.
21243 * regrename.c: Same.
21244 * regrename.h: Same.
21245 * reload.h: Same.
21246 * rtl-iter.h: Same.
21247 * rtl.h (costs_add_n_insns): Same.
21248 * sanopt.c: Same.
21249 * sched-int.h: Same.
21250 * sel-sched-ir.h: Same.
21251 * selftest.h: Same.
21252 * sese.h (vec_find): Same.
21253 * stmt.c: Same.
21254 * target-globals.h: Same.
21255 * tree-affine.c (aff_combination_find_elt): Same.
21256 * tree-affine.h: Same.
21257 * tree-data-ref.h: Same.
21258 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21259 * tree-predcom.c: Same.
21260 * tree-scalar-evolution.c (find_var_scev_info): Same.
21261 * tree-ssa-alias.h: Same.
21262 * tree-ssa-ccp.c: Same.
21263 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21264 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21265 (rewrite_mem_refs): Same.
21266 (execute_sm_if_changed): Same.
21267 (hoist_memory_references): Same.
21268 * tree-ssa-loop-ivopts.c (operator<=): Same.
21269 * tree-ssa-loop.h: Same.
21270 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21271 * tree-ssa-structalias.c: Same.
21272 * tree-switch-conversion.h (cluster::cluster): Same.
21273 (simple_cluster::simple_cluster): Same.
21274 * tree-vect-patterns.c (type_conversion_p): Same.
21275 * tree-vectorizer.c (dump_stmt_cost): Same.
21276 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21277 * tree.c (protected_set_expr_location): Same.
21278 * tree.h (desired_pro_or_demotion_p): Same.
21279 (fndecl_built_in_p): Same.
21280 * unique-ptr-tests.cc: Same.
21281 * var-tracking.c (delete_variable_part): Same.
21282 * varasm.c (assemble_real): Same.
21283 (tree_output_constant_def): Same.
21284 * vec.c: Same.
21285 * wide-int-bitmask.h: Same.
21286 * wide-int.h (decompose): Same.
21287
21288 2019-07-09 Richard Biener <rguenther@suse.de>
21289
21290 PR tree-optimization/91114
21291 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21292 find a vector type isn't fatal.
21293
21294 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21295
21296 * config/aarch64/aarch64-simd.md
21297 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21298 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21299 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21300 (*aarch64_crypto_aese_fused,
21301 *aarch64_crypto_aesd_fused): Update to new definition.
21302 * config/aarch64/aarch64.c
21303 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21304
21305 2019-07-09 Richard Biener <rguenther@suse.de>
21306
21307 * gimple-match.h (gimple_match_op::resimplify): New.
21308 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21309 gimple_resimplify4, gimple_resimplify5): Remove.
21310 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21311 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21312 Make static.
21313 (gimple_match_op::resimplify): New.
21314 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21315 according to availability. Use gimple_match_op::resimplify.
21316
21317 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21318
21319 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21320
21321 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21322
21323 * config/arm/crypto.md:
21324 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21325 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21326 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21327 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21328 * config/arm/arm.c
21329 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21330 * config/arm/aarch-common-protos.h
21331 (aarch_crypto_can_dual_issue): Remove.
21332 * config/arm/aarch-common.c
21333 (aarch_crypto_can_dual_issue): Likewise.
21334 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21335 * config/arm/cortex-a53.md: Likewise.
21336 * config/arm/cortex-a57.md: Likewise.
21337 * config/arm/iterators.md:
21338 (CRYPTO_BINARY): Redefine.
21339 (CRYPTO_UNARY): Removed.
21340 (CRYPTO_AES, CRYPTO_AESMC): New.
21341
21342 2019-07-09 Richard Biener <rguenther@suse.de>
21343
21344 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21345 (vn_reference_lookup_3): If the main ref has no access path recorded
21346 but orig_ref has use it to do access-path based disambiguation.
21347 (vn_reference_lookup_pieces): Adjust.
21348 (vn_reference_lookup): Pass down original ref if we valueized.
21349
21350 2019-07-09 Martin Liska <mliska@suse.cz>
21351
21352 * doc/extend.texi: Document influence on loop
21353 optimizers.
21354
21355 2019-07-09 Martin Liska <mliska@suse.cz>
21356
21357 * lto-compress.c (lto_normalized_zstd_level): Do not use
21358 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21359 of libzstd. One can use 0 as a default compression level.
21360
21361 2019-07-09 Martin Liska <mliska@suse.cz>
21362
21363 * doc/invoke.texi: Add link from -fprofile-dir option.
21364 Use better wording for 'gcno filename'.
21365
21366 2019-07-08 Martin Sebor <msebor@redhat.com>
21367
21368 PR middle-end/71924
21369 PR middle-end/90549
21370 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21371 comment.
21372 (args_loc_t): New type.
21373 (args_loc_t, locmap_t): same.
21374 (diag_returned_locals): New function.
21375 (is_addr_local): Same.
21376 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21377 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21378 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21379
21380 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21381
21382 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21383 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21384 and casts in offset when different, both through gimple stmts
21385 and through trees. Rewritten using loops to minimize code duplication
21386 for each operand.
21387
21388 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21389
21390 * emit-rtl.c (set_insn_locations): New function moved from...
21391 * function.c (set_insn_locations): ...here.
21392 * ira-emit.c (emit_moves): Propagate location of the first instruction
21393 to the inserted move instructions.
21394 * reg-stack.c (compensate_edge): Set the location if the sequence is
21395 inserted on the edge.
21396 * rtl.h (set_insn_locations): Declare.
21397
21398 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21399
21400 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21401 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21402 .machine string.
21403
21404 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21405
21406 PR rtl-optimization/88233
21407 * common.opt (fsplit-wide-types-early): New option.
21408 * common/config/rs6000/rs6000-common.c
21409 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21410 OPT_LEVELS_ALL.
21411 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21412 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21413 flag_split_wide_types_early.
21414 (pass_data_lower_subreg3): New.
21415 (pass_lower_subreg3): New.
21416 (make_pass_lower_subreg3): New.
21417 * passes.def (pass_lower_subreg2): Move after the loop passes.
21418 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21419 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21420 the pass pipeline; its previous place is taken by ...
21421 (make_pass_lower_subreg3): ... this.
21422
21423 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21424
21425 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21426 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21427
21428 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21429
21430 * config/s390/constraints.md: Add new jsc constraint.
21431 * config/s390/predicates.md: New predicates.
21432 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21433 * config/s390/s390.c (s390_valid_shift_count): New function.
21434 (print_shift_count_operand): Use s390_valid_shift_count.
21435 (print_operand): Likewise.
21436 * config/s390/s390.md: Use new predicate.
21437 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21438 * config/s390/vector.md: Use new predicate.
21439
21440 2019-07-08 Andrew Waterman <andrew@sifive.com>
21441 Jim Wilson <jimw@sifive.com>
21442
21443 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21444 bitsize instead of BITS_PER_WORD.
21445
21446 2019-07-08 Martin Liska <mliska@suse.cz>
21447
21448 * collect2.c (defined): Revert to before r254460.
21449 (scan_prog_file): Revert to before r254460.
21450
21451 2019-07-08 Richard Biener <rguenther@suse.de>
21452
21453 PR tree-optimization/83518
21454 * tree-ssa-sccvn.c: Include splay-tree.h.
21455 (struct pd_range, struct pd_data): New.
21456 (struct vn_walk_cb_data): Add data to track partial definitions.
21457 (vn_walk_cb_data::~vn_walk_cb_data): New.
21458 (vn_walk_cb_data::push_partial_def): New.
21459 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21460 (vn_reference_lookup_2): When partial defs are registered give up.
21461 (vn_reference_lookup_3): Track partial defs for memset and
21462 constructor zeroing and for defs from constants.
21463
21464 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21465
21466 * doc/install.texi (bootstrap-Og): Document.
21467
21468 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21469
21470 * config/riscv/pic.md (*local_pic_load_s<mode>)
21471 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21472 referenced by <mode>, giving...
21473 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21474 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21475 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21476 use <X:MODE> for the mode attribute.
21477
21478 2019-07-07 Jeff Law <law@redhat.com>
21479
21480 PR tree-optimization/91090
21481 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21482 in handling of ranges to simplify switch statements.
21483
21484 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21485
21486 * config/darwin.c (darwin_override_options): Make a final check on PIC
21487 options.
21488
21489 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21490
21491 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21492 on for kernel code.
21493
21494 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21495
21496 PR target/91068
21497 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21498 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21499 instead of matching them to "l" output operands.
21500
21501 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21502
21503 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21504 and check whether addr.reg is nonnull before using it.
21505
21506 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21507
21508 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21509 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21510 variable(s). For conditional lastprivate look through outer
21511 GIMPLE_OMP_SCAN context.
21512 (lower_omp_1): For conditional lastprivate look through outer
21513 GIMPLE_OMP_SCAN context.
21514
21515 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21516 member to combined_into_simd_safelen1.
21517 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21518 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21519 clauses if ctx->combined_into_simd_safelen1 put statements after the
21520 predicate conditionalized block rather than into it.
21521
21522 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21523
21524 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21525 operand 1.
21526 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21527 Make the choice of <mode> explicit, giving...
21528 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21529
21530 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21531
21532 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21533 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21534 of .md attributes.
21535 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21536 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21537 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21538 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21539 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21540 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21541 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21542 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21543 (*avx512f_scatterdi<mode>): Likewise.
21544 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21545
21546 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21547
21548 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21549 specify the mode iterator referenced by <mode>, giving...
21550 (*push1_h8300hs_<QHI:mode>): ...this.
21551
21552 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21553
21554 * config/gcn/gcn-valu.md
21555 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21556 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21557 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21558 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21559 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21560 but using the _exec comparison patterns.
21561 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21562 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21563 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21564 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21565 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21566 but using the _exec comparison patterns.
21567
21568 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21569
21570 * config/arm/sync.md
21571 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21572 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21573 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21574 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21575 <SIDI:cas_cmp_str>.
21576
21577 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21578
21579 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21580 (maybe_lookup_ctx): Add forward declaration.
21581 (omp_find_scan): Likewise. Walk into body of simd if composited
21582 with worksharing loop.
21583 (scan_omp_simd_scan): New function.
21584 (scan_omp_1_stmt): Call it.
21585 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21586 ctx->for_simd_scan_phase.
21587 (lower_rec_input_clauses): Do much less work for inscan reductions
21588 in ctx->for_simd_scan_phase is_simd regions.
21589 (lower_omp_scan): Set is_simd also on simd constructs composited
21590 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21591 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21592 emit their body after in simd constructs composited with worksharing
21593 loop.
21594 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21595
21596 * omp-low.c (omp_find_scan): Make static.
21597 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21598 the second loop, var2 represents the first partial sum and so needs
21599 to go before rprivb[ivar].
21600
21601 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21602
21603 * config/rs6000/rs6000-logue.c: Remove unused code.
21604
21605 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21606
21607 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21608
21609 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21610
21611 PR target/90712
21612 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21613 check with a frame laid out check.
21614
21615 2019-07-05 Richard Biener <rguenther@suse.de>
21616
21617 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21618 when comparing against a store with possibly the same value.
21619
21620 2019-07-05 Richard Biener <rguenther@suse.de>
21621
21622 PR tree-optimization/91091
21623 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21624 (walk_non_aliased_vuses): Likewise.
21625 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21626 (get_continuation_for_phi): New tbaa_p parameter and pass
21627 it down.
21628 (walk_non_aliased_vuses): Likewise.
21629 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21630 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21631 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21632 Likewise.
21633 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21634 (adjust_offsets_for_equal_base_address): New function.
21635 (vn_reference_lookup_3): Use it to catch more base equivalences.
21636 Handle and pass down tbaa_p flag.
21637 (vn_reference_lookup_pieces): Adjust.
21638 (vn_reference_lookup): Remove alias-set altering, instead pass
21639 down false as tbaa_p.
21640
21641 2019-07-05 Richard Biener <rguenther@suse.de>
21642
21643 PR tree-optimization/91091
21644 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21645 accesses can happen with -fno-strict-aliasing.
21646
21647 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21648
21649 * tree-ssa-alias.c (alias_stats): Add
21650 nonoverlapping_component_refs_since_match_p_must_overlap.
21651 (dump_alias_stats): Print it.
21652 (nonoverlapping_component_refs_since_match_p): Add early exit.
21653 (nonoverlapping_component_refs_p): Do not account early exit.
21654
21655 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21656
21657 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21658 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21659 (emit_eh_dispatch): Delete.
21660 (lower_catch): Emit the eh_dispatch manually and set the location of
21661 the first catch statement onto it.
21662 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21663 (lower_eh_dispatch): Propagate location.
21664 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21665 (eliminate_build): Likewise.
21666
21667 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21668
21669 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21670 phi nodes if possible.
21671 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21672 location info on the newly created statement.
21673 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21674 newly created increment if needed.
21675
21676 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21677
21678 PR middle-end/78884
21679 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21680 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21681 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21682 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21683 ctx->add_safelen1 is set.
21684
21685 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21686 GOMP_loop_start at the start of second worksharing loop in a scan.
21687 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21688 worksharing loop in a scan even if there are conditional lastprivates,
21689 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21690
21691 2019-07-04 Jan Hubicka <jh@suse.cz>
21692
21693 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21694 Fix check for match in the ref walk.
21695
21696 2019-07-04 Martin Liska <mliska@suse.cz>
21697
21698 * tree-ssa-loop-niter.c
21699 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21700 (estimate_numbers_of_iterations):
21701 Support __builtin_expect_with_probability for analysis
21702 of # of loop iterations.
21703
21704 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21705
21706 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21707 * except.c: Likewise.
21708 * expr.c (expand_expr_real_1): Reject it.
21709 * gimplify.c (gimplify_expr): Gimplify it, within
21710 TRY_FINALLY_EXPR.
21711 * tree-dump.c (dequeue_and_dump): Dump it.
21712 * tree-pretty-print.c (dump_generic_node): Likewise.
21713 * tree.c (block_may_fallthru): Handle it.
21714 * tree.def (EH_ELSE_EXPR): Introduce it.
21715 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21716 with GIMPLE_EH_ELSE as try/finally/else.
21717
21718 2019-07-04 Richard Biener <rguenther@suse.de>
21719
21720 PR ipa/91062
21721 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21722 parameter whether to disable GC collection.
21723 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21724 honor it.
21725 (execute_all_ipa_transforms): Likewise and pass it down.
21726 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21727 collection from applying IPA transforms.
21728 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21729 from applying IPA transforms.
21730
21731 2019-07-04 Richard Biener <rguenther@suse.de>
21732
21733 PR tree-optimization/90911
21734 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21735 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21736 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21737 scalar_loop_scaling.
21738 (vect_transform_loop): Scale scalar loop profile if needed.
21739 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21740 the loop copy from if-conversion adjust edge probabilities
21741 and scale the vectorized loop body profile, queue the scalar
21742 profile for updating after peeling.
21743
21744 2019-07-04 Jan Hubicka <jh@suse.cz>
21745
21746 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21747 parameters; return early for must-alias.
21748 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21749 outer types match, try nonoverlapping_component_refs
21750 if must-alias is not obvious.
21751 (indirect_refs_may_alias_p): Likewise.
21752 (refs_may_alias_p_2): Likewise.
21753
21754 2019-07-04 Richard Biener <rguenther@suse.de>
21755
21756 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21757 argument.
21758 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21759 globals into...
21760 (struct vn_walk_cb_data): New callback data struct.
21761 (vn_reference_lookup_2): Adjust.
21762 (vn_reference_lookup_3): Likewise.
21763 (vn_reference_lookup_pieces): Likewise.
21764 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21765 (visit_reference_op_load): Adjust.
21766
21767 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21768
21769 PR tree-optimization/91063
21770 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21771 stmt from stmts sequence before calling vect_init_vector_1.
21772 Formatting fix.
21773
21774 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21775
21776 PR target/88833
21777 * fwprop.c (reg_single_def_p): New function.
21778 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21779 (forward_propagate_into): New parameter reg_prop_only
21780 with default value false.
21781 Propagate def's src into loop only if SET_SRC and SET_DEST
21782 of def_set have single definitions.
21783 Likewise if reg_prop_only is set to true.
21784 (fwprop): New param fwprop_addr_p.
21785 Integrate fwprop_addr into fwprop.
21786 (fwprop_addr): Remove.
21787 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21788 to true.
21789 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21790 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21791 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21792
21793 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21794
21795 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21796 in worksharing loop scans.
21797
21798 PR tree-optimization/91074
21799 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21800 temporary.
21801
21802 PR rtl-optimization/90756
21803 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21804 for VECTOR_TYPE_P.
21805
21806 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21807
21808 * config/aarch64/aarch64.md: Remove redundant constraints from
21809 define_expand but keep some patterns untouched if they are
21810 specially selected by TARGET_SECONDARY_RELOAD hook.
21811 * config/aarch64/aarch64-sve.md: Likewise.
21812 * config/aarch64/atomics.md: Remove redundant constraints from
21813 define_expand.
21814 * config/aarch64/aarch64-simd.md: Likewise.
21815
21816 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21817
21818 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21819 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21820 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21821 clauses.
21822 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21823 DARWIN_NOPIE_SPEC.
21824
21825 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21826
21827 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21828 (STARTFILE_SPEC): Split crt3 into a separate spec.
21829 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21830 (DARWIN_CRT2_SPEC): New.
21831 (DARWIN_CRT3_SPEC): New.
21832 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21833 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21834 (DARWIN_CRT3_SPEC): New.
21835
21836 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21837
21838 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21839 Change the RTL attribute "length" from "4" to "*" to allow the
21840 length attribute to be adjusted automatically for prefixed load,
21841 store, and add immediate instructions.
21842 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21843 Likewise.
21844 (extendsi<mode>2, EXTSI iterator): Likewise.
21845 (movsi_internal1): Likewise.
21846 (movsi_from_sf): Likewise.
21847 (movdi_from_sf_zero_ext): Likewise.
21848 (mov<mode>_internal): Likewise.
21849 (movcc_internal1, QHI iterator): Likewise.
21850 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21851 (movsf_from_si): Likewise.
21852 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21853 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21854 (mov<mode>, FMOVE128 iterator): Likewise.
21855 (movdi_internal64): Likewise.
21856 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21857 Likewise.
21858 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21859 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21860 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21861 (vsx_splat_v4sf): Likewise.
21862
21863 2019-07-03 Mark Wielaard <mark@klomp.org>
21864
21865 PR debug/90981
21866 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21867 DW_AT_addr_base if there is actually a .debug_addr section with
21868 addresses.
21869 (output_addr_table): Add DWARF5 table header generation here after
21870 checking there are actually any addresses from...
21871 (dwarf2out_finish): ...here.
21872
21873 2019-07-03 Richard Biener <rguenther@suse.de>
21874
21875 PR middle-end/91069
21876 * match.pd (vec_perm -> bit_insert): Fix element read from
21877 first vector.
21878
21879 2019-07-03 Martin Liska <mliska@suse.cz>
21880
21881 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21882 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21883 condition.
21884 * generic-match-head.c: Include dbgcnt.h.
21885 * gimple-match-head.c: Likewise.
21886
21887 2019-07-03 Martin Liska <mliska@suse.cz>
21888
21889 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21890 (GCOV_COUNTER_V_TOPN): New.
21891 (GCOV_COUNTER_V_INDIR): Use _topn.
21892 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21893 (GCOV_TOPN_VALUES): New.
21894 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21895 (GCOV_TOPN_VALUES_COUNTERS): New.
21896 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21897 * tree-profile.c:
21898 (gimple_init_gcov_profiler): Rename variables from one_value
21899 to topn_values.
21900 (gimple_gen_one_value_profiler): Remove.
21901 (gimple_gen_topn_values_profiler): New function.
21902 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21903 names instead of SINGLE_VALUE.
21904 (stream_out_histogram_value): Likewise.
21905 (stream_in_histogram_value): Likewise.
21906 (get_most_common_single_value): Likewise.
21907 (gimple_divmod_fixed_value_transform): Likewise.
21908 (gimple_stringops_transform): Likewise.
21909 (gimple_divmod_values_to_profile): Likewise.
21910 (gimple_stringops_values_to_profile): Likewise.
21911 (gimple_find_values_to_profile): Likewise.
21912 * value-prof.h (enum hist_type): Rename to TOPN.
21913 (gimple_gen_one_value_profiler): Remove.
21914 (gimple_gen_topn_values_profiler): New.
21915
21916 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21917
21918 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21919 if it has the DW_AT_data_member_location attribute.
21920
21921 2019-07-03 Richard Biener <rguenther@suse.de>
21922
21923 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21924 dumping.
21925
21926 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21927
21928 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21929 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21930 (tlsdesc_small_sve_<mode>): Likewise.
21931
21932 2019-07-03 Martin Liska <mliska@suse.cz>
21933
21934 * Makefile.in: Define ZSTD_LIB.
21935 * common.opt: Adjust compression level
21936 to support also zstd levels.
21937 * config.in: Regenerate.
21938 * configure: Likewise.
21939 * configure.ac: Add --with-zstd and --with-zstd-include options
21940 and detect ZSTD.
21941 * doc/install.texi: Mention zstd dependency.
21942 * gcc.c: Print supported LTO compression algorithms.
21943 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21944 (lto_compression_zstd): Likewise.
21945 (lto_uncompression_zstd): Likewise.
21946 (lto_end_compression): Dispatch in between zlib and zstd.
21947 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21948 (lto_uncompression_zlib): Make it static.
21949 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21950 * lto-section-in.c (lto_get_section_data): Pass info
21951 about used compression.
21952 * lto-streamer-out.c: By default use zstd when possible.
21953 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21954 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21955
21956 2019-07-03 Martin Liska <mliska@suse.cz>
21957
21958 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21959 * lto-section-out.c (lto_destroy_simple_output_block): Never
21960 compress LTO_section_lto section.
21961 * lto-streamer-out.c (produce_asm): Do not set major_version
21962 and minor_version.
21963 (lto_output_toplevel_asms): Likewise.
21964 (produce_lto_section): New function.
21965 (lto_output): Call produce_lto_section.
21966 (lto_write_mode_table): Do not set major_version and
21967 minor_version.
21968 (produce_asm_for_decls): Likewise.
21969 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21970 type.
21971 (struct lto_header): Remove.
21972 (struct lto_section): New struct.
21973 (struct lto_simple_header): Do not inherit from lto_header.
21974 (struct lto_file_decl_data): Add lto_section_header field.
21975
21976 2019-07-03 Martin Liska <mliska@suse.cz>
21977
21978 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21979 dead assignemts.
21980 * reg-stack.c (check_asm_stack_operands): Likewise.
21981 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21982 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21983 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21984 force_expand_binop.
21985
21986 2019-07-03 Martin Liska <mliska@suse.cz>
21987
21988 PR tree-optimization/90892
21989 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21990 in string constants.
21991
21992 2019-07-03 Martin Liska <mliska@suse.cz>
21993
21994 PR middle-end/90899
21995 * multiple_target.c (create_dispatcher_calls): Add to comdat
21996 group only if set for ifunc.
21997
21998 2019-07-03 Martin Liska <mliska@suse.cz>
21999
22000 PR target/88056
22001 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22002 Define local_object_name in outer scope in order to handle
22003 use-after-scope issue.
22004
22005 2019-07-03 Martin Liska <mliska@suse.cz>
22006
22007 * common.opt: Add fprofile-note.
22008 * coverage.c (coverage_init): Append the option
22009 to bbg_file_name.
22010 * doc/invoke.texi: Document -fprofile-note.
22011
22012 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22013
22014 PR tree-optimization/91033
22015 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22016 vect_analyze_data_refs): Add bool * arguments.
22017 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22018 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22019 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22020 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22021 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22022 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22023 vect_analyze_data_refs caller.
22024
22025 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22026 clause.
22027 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22028 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22029 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22030 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22031 OMP_CLAUSE__SCANTEMP_ entry.
22032 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22033 * tree-pretty-print.c (dump_omp_clause): Likewise.
22034 * tree-nested.c (convert_nonlocal_omp_clauses,
22035 convert_local_omp_clauses): Likewise.
22036 * omp-general.h (struct omp_for_data): Add have_scantemp and
22037 have_nonctrl_scantemp members.
22038 * omp-general.c (omp_extract_for_data): Initialize them.
22039 * omp-low.c (struct omp_context): Add scan_exclusive member.
22040 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22041 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22042 ctx->scan_exclusive.
22043 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22044 of !ctx->scan_inclusive.
22045 (lower_rec_input_clauses): Simplify gimplification of dtors using
22046 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22047 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22048 loops. Don't add barrier for reduction_omp_orig_ref if
22049 ctx->scan_??xclusive.
22050 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22051 (lower_omp_scan): Use ctx->scan_exclusive instead
22052 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22053 reductions. Use new_vard != new_var instead of repeated
22054 omp_is_reference calls.
22055 (omp_find_scan, lower_omp_for_scan): New functions.
22056 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22057 inscan reductions.
22058 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22059 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22060 and fd->have_scantemp.
22061
22062 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22063 on worksharing loop propagate it as shared clause to containing
22064 combined parallel.
22065
22066 * omp-expand.c (expand_omp_for_static_nochunk,
22067 expand_omp_for_static_chunk): For nowait worksharing loop with
22068 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22069 at the end.
22070
22071 2019-07-02 qing zhao <qing.zhao@oracle.com>
22072
22073 PR preprocessor/90581
22074 * doc/cppopts.texi: Add document for -fmax-include-depth.
22075 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22076
22077 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22078
22079 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22080 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22081 (mmx_packssdw): Ditto.
22082 (mmx_punpckhbw): Ditto.
22083 (mmx_punpcklbw): Ditto.
22084 (mmx_punpckhwd): Ditto.
22085 (mmx_punpcklwd): Ditto.
22086 (mmx_punpckhdq): Ditto.
22087 (mmx_punpckldq): Ditto.
22088 (*vec_dupv4hi): Ditto.
22089 (*vec_dupv2si): Ditto.
22090 (mmx_pmovmskb): Ditto.
22091 * config/i386/sse.md (sse_cvtpi2ps): Use
22092 TARGET_SSE2 && SSE_REG_P in split condition.
22093 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22094 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22095 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22096 (ssse3_pshufbv8qi3): Ditto.
22097 (ssse3_palignrdi): Ditto.
22098
22099 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22100
22101 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22102 with inlined save and restore.
22103
22104 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22105
22106 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22107 to be inserted on single successor edge of the entry block. Then call
22108 commit_edge_insertions instead of inserting the instructions manually.
22109 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22110 RTL expansion and rebuild jump labels chain.
22111
22112 2019-07-02 Richard Biener <rguenther@suse.de>
22113
22114 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22115 TI_CHREC_KNOWN.
22116 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22117 Define here.
22118 * tree.c (build_common_tree_nodes): Initialize them.
22119 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22120 Make declarations comments.
22121 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22122 chrec_known): Remove definitions.
22123 (initialize_scalar_evolutions_analyzer): Remove.
22124 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22125 * tree-streamer.c (preload_common_nodes): Do not preload
22126 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22127
22128 2019-07-02 Jan Hubicka <jh@suse.cz>
22129
22130 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22131 sanity check.
22132
22133 2019-07-02 Jan Hubicka <jh@suse.cz>
22134
22135 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22136 to ..
22137 (nonoverlapping_component_refs_since_match_p): ... this one;
22138 handle also non-decl bases; return -1 if search gave up.
22139 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22140 nonoverlapping_component_refs_of_decl_p_no_alias to
22141 nonoverlapping_component_refs_since_match_p_may_alias,
22142 nonoverlapping_component_refs_since_match_p_no_alias.
22143 (dump_alias_stats): Update dumping.
22144 (aliasing_matching_component_refs_p): Break out from ...;
22145 dispatch to nonoverlapping_component_refs_for_decl_p
22146 and nonoverlapping_component_refs_since_match_p.
22147 (aliasing_component_refs_p): ... here; call
22148 nonoverlapping_component_refs_p in scenarios where we can not
22149 precisely determine base match.
22150 (decl_refs_may_alias_p): Use
22151 nonoverlapping_component_refs_since_match_p.
22152 (indirect_ref_may_alias_decl_p): Do not call
22153 nonoverlapping_component_refs_p.
22154 (indirect_refs_may_alias_p): Likewise.
22155
22156 2019-07-02 Jan Hubicka <jh@suse.cz>
22157
22158 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22159 to clobber of return value.
22160
22161 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22162
22163 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22164 for is_neon_type instructions that have not already been categorized.
22165
22166 2019-07-02 Richard Biener <rguenther@suse.de>
22167
22168 PR tree-optimization/58483
22169 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22170 for MEM_REF base hashing.
22171 (equal_mem_array_ref_p): Likewise for base comparison.
22172
22173 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22174
22175 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22176 parameterized name.
22177 (signbit<mode>2): Use that name. Simplify.
22178
22179 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22180
22181 PR middle-end/66726
22182 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22183 Tune heuristic from PR71016 to allow MIN / MAX.
22184
22185 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22186
22187 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22188 parameterized name.
22189 (abs<mode>2): Use that name. Simplify.
22190
22191 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22192
22193 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22194 parameterized name.
22195 (neg<mode>2): Use that name. Simplify.
22196
22197 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22198
22199 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22200 name.
22201 (abs<mode>2): Use that name. Simplify.
22202
22203 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22204
22205 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22206 name.
22207 (neg<mode>2): Use that name. Simplify.
22208
22209 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22210
22211 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22212 ("enabled" attribute): Handle sse_noavx isa attribute.
22213 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22214 Use TARGET_SSE && SSE_REGNO_P in split condition.
22215 (*vec_dupv2sf): Ditto.
22216
22217 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22218
22219 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22220 name.
22221 (floatsi<mode>2): Use that name. Simplify.
22222
22223 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22224
22225 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22226 parameterized name.
22227 (extenddf<mode>2_vsx): Make this a parameterized name.
22228 (extenddf<mode>2): Use those names. Simplify.
22229
22230 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22231
22232 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22233 name.
22234 (eh_return): Use that name. Simplify.
22235
22236 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22237
22238 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22239 (doloop_end): Use that name. Simplify.
22240
22241 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22242
22243 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22244 parameterized name.
22245 (indirect_jump): Use that name. Simplify.
22246
22247 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22248
22249 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22250 parameterized name.
22251 (abs<mode>2): Use that name. Simplify.
22252
22253 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22254
22255 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22256 parameterized name.
22257 (fix_trunc<mode>si2): Use that name. Simplify.
22258
22259 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22260
22261 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22262 (allocate_stack): Use that name. Simplify.
22263
22264 2019-07-01 Martin Sebor <msebor@redhat.com>
22265
22266 PR middle-end/90923
22267 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22268 (hash_map::get_or_insert): Same. Reformat comment.
22269 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22270 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22271 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22272 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22273 (hash_table::hash_table (const hash_table&)): Use copy ctor
22274 instead of assignment to copy elements.
22275
22276 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22277 John David Anglin <danglin@gcc.gnu.org>
22278
22279 PR target/90963
22280 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22281 using saved frame pointer.
22282
22283 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22284
22285 PR middle-end/64242
22286 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22287 Add frame clobber and schedule blockage.
22288
22289 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22290
22291 * doc/invoke.texi (Link Options): Further editorial changes to
22292 -flinker-output docs.
22293
22294 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22295
22296 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22297 Load both operands of a PLUS into registers separately.
22298
22299 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22300
22301 * config/s390/vector.md: Fix shift count operand printing.
22302
22303 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22304
22305 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22306
22307 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22308
22309 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22310 Use recog_data to test for an output operand.
22311
22312 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22313
22314 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22315 exclude any others that are disparaged or that are bound to need
22316 a reload or spill.
22317 (ira_get_dup_out_num): Expand comment.
22318
22319 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22320
22321 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22322 constraint string for each operand/alternative combo. Only handle
22323 '%' at the start of constraint strings, and look for it outside
22324 the main loop.
22325
22326 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22327
22328 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22329 alternative_mask instead of HARD_REG_SET to represent a
22330 bitmask of alternatives.
22331 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22332 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22333
22334 2019-07-01 Martin Liska <mliska@suse.cz>
22335
22336 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22337 use () for a constructor call.
22338 (test_applying_fixits_line_out_of_range): Likewise.
22339 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22340 argument.
22341 (free_page): Likewise.
22342
22343 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22344
22345 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22346 parameter names to match usage (no functional change).
22347 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22348
22349 2019-07-01 Richard Biener <rguenther@suse.de>
22350
22351 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22352 pass parameter.
22353 (pass_fre::execute): Honor it.
22354 * passes.def: Adjust pass_fre invocations to allow iterating,
22355 add non-iterating pass_fre before late threading/dom.
22356
22357 2019-07-01 Richard Biener <rguenther@suse.de>
22358
22359 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22360 TARGET_MEM_REF handling to also handle address-taken ones.
22361
22362 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22363
22364 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22365 hardware attributes): Document avx512vp2intersect.
22366
22367 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22368
22369 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22370 (abs<mode>2): New expander.
22371 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22372 Use CODE_FOR_ssse3_absv8qi2.
22373 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22374 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22375
22376 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22377
22378 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22379 to sse, sse_noavx and avx. Update all uses.
22380
22381 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22382
22383 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22384 (*mmx_<plusminus_insn><mode>3): Ditto.
22385 (*mmx_mulv4hi3"): Ditto.
22386 (*mmx_smulv4hi3_highpart): Ditto.
22387 (*mmx_umulv4hi3_highpart): Ditto.
22388 (*mmx_pmaddwd): Ditto.
22389 (*sse2_umulv1siv1di3): Ditto.
22390 (*mmx_<code>v4hi3): Ditto.
22391 (*mmx_<code>v8qi3): Ditto.
22392 (mmx_ashr<mode>3): Ditto.
22393 ("mmx_<shift_insn><mode>3): Ditto.
22394 (*mmx_eq<mode>3): Ditto.
22395 (mmx_gt<mode>3): Ditto.
22396 (mmx_andnot<mode>3): Ditto.
22397 (*mmx_<code><mode>3): Ditto.
22398 (*mmx_pinsrw): Ditto.
22399 (*mmx_pextrw): Ditto.
22400 (mmx_pshufw_1): Ditto.
22401 (*mmx_uavgv8qi3): Ditto.
22402 (*mmx_uavgv4hi3): Ditto.
22403 ("mmx_psadbw): Ditto.
22404 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22405 (sse_cvttps2pi): Ditto.
22406 (ssse3_pmaddubsw): Ditto.
22407 (*ssse3_pmulhrswv4hi3): Ditto.
22408 (ssse3_psign<mode>3): Ditto.
22409
22410 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22411
22412 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22413 adjustment for bit-fields to all aggregate types.
22414
22415 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22416
22417 * config/rs6000/predicates.md (pcrel_address): Use
22418 SYMBOL_REF_LOCAL_P to determine if a label is local.
22419 (pcrel_external_address): New predicate.
22420 (non_prefixed_mem_operand): Delete, predicate not used.
22421 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22422 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22423 addressing.
22424 (SYMBOL_REF_PCREL_P): Likewise.
22425
22426 PR target/91009
22427 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22428 alternative.
22429 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22430 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22431 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22432
22433 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22434
22435 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22436 override on extra_headers.
22437
22438 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22439
22440 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22441 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22442 from warning.
22443 (darwin_driver_init): Likewise.
22444
22445 2019-06-28 Jan Beulich <jbeulich@suse.com>
22446
22447 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22448 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22449 Eliminate redundant alternative.
22450
22451 2019-06-28 Jan Beulich <jbeulich@suse.com>
22452
22453 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22454 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22455 Use vector_operand.
22456
22457 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22458
22459 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22460 having a lower cost regardless of the speed option.
22461
22462 2019-06-28 Jan Beulich <jbeulich@suse.com>
22463
22464 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22465 vector_operand plus, on both alternatives, "Bm" constraint.
22466
22467 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22468
22469 * config/arm/arm.md: Remove redundant constraints from
22470 define_expand but leave reload_inm and reload_outm patterns
22471 untouched since they need special constraints to work.
22472 * config/arm/arm-fixed.md: Remove redundant constraints from
22473 define_expand.
22474 * config/arm/iwmmxt.md: Likewise.
22475 * config/arm/neon.md: Likewise.
22476 * config/arm/sync.md: Likewise.
22477 * config/arm/thumb1.md: Likewise.
22478 * config/arm/vec-common.md: Likewise.
22479
22480 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22481
22482 * doc/install.texi: Document --disable-tm-clone-registry.
22483
22484 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22485
22486 PR c++/91024
22487 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22488 statements.
22489
22490 PR tree-optimization/91010
22491 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22492 return true. Otherwise, don't call operand_equal_p if offset1 or
22493 offset2 is NULL and just return false.
22494
22495 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22496
22497 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22498 user-specified float mode choice for kernel mode code.
22499
22500 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22501
22502 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22503 spec.
22504
22505 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22506
22507 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22508 use longcall for 64b code.
22509
22510 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22511
22512 * builtins.c (get_memory_rtx): Fix comment.
22513 * optabs.def (movmem_optab): Change to cpymem_optab.
22514 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22515 (emit_block_move_hints): Change movmem to cpymem.
22516 * defaults.h: Change movmem to cpymem.
22517 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22518 (default_use_by_pieces_infrastructure_p): Ditto.
22519 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22520 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22521 to cpymem.
22522 * config/aarch64/aarch64.h: Change movmem to cpymem.
22523 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22524 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22525 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22526 movmem to cpymem.
22527 * config/arc/arc-protos.h: Change movmem to cpymem.
22528 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22529 * config/arc/arc.h: Change movmem to cpymem in comment.
22530 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22531 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22532 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22533 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22534 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22535 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22536 * config/avr/avr-protos.h: Change movmem to cpymem.
22537 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22538 avr_out_movmem): Change movmem to cpymem.
22539 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22540 Change movmem to cpymem.
22541 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22542 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22543 Change movmem to cpymem.
22544 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22545 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22546 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22547 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22548 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22549 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22550 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22551 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22552 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22553 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22554 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22555 expand_small_cpymem_or_setmem,
22556 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22557 expand_set_or_cpymem_constant_prologue,
22558 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22559 * config/i386/i386-protos.h: Change movmem to cpymem.
22560 * config/i386/i386.h: Change movmem to cpymem in comment.
22561 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22562 (setmem<mode>): Change expansion function name.
22563 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22564 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22565 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22566 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22567 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22568 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22569 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22570 to cpymem.
22571 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22572 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22573 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22574 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22575 Change movmem to cpymem.
22576 * config/mips/mips.h: Change movmem to cpymem.
22577 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22578 * config/nds32/nds32-memory-manipulation.c
22579 (nds32_expand_movmemsi_loop_unknown_size,
22580 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22581 nds32_expand_movmemsi_unroll,
22582 nds32_expand_movmemsi): Change movmem to cpymem.
22583 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22584 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22585 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22586 (pa_adjust_insn_length): Change call to compute_movmem_length.
22587 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22588 movmemdi, movmemdi_prereload,
22589 movmemdi_postreload): Change movmem to cpymem.
22590 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22591 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22592 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22593 * config/riscv/riscv.h: Change movmem to cpymem.
22594 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22595 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22596 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22597 movmem to cpymem.
22598 * config/s390/s390-protos.h: Change movmem to cpymem.
22599 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22600 s390_expand_insv): Change movmem to cpymem.
22601 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22602 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22603 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22604 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22605 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22606 for nonexistent function.
22607 * config/vax/vax.h: Change movmem to cpymem in comment.
22608 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22609 * config/visium/visium.h: Change movmem to cpymem in comment.
22610 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22611 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22612 * doc/md.texi: Change movmem to cpymem and update description to match.
22613 * doc/rtl.texi: Change movmem to cpymem.
22614 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22615 * doc/tm.texi: Regenerate.
22616
22617 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22618
22619 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22620 -fvariable-expansion-in-unroller by default.
22621 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22622 default for Power.
22623
22624 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22625
22626 Revert
22627 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22628 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22629
22630 * config.gcc(rs6000-*-*): Define target_gtfiles.
22631
22632 2019-06-27 Jan Hubicka <jh@suse.cz>
22633
22634 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22635 (add_type_duplicate): When odr hash is not allocated, to nothing.
22636 (odr_based_tbaa_p): New function.
22637 (set_type_canonical_for_odr_type): New function.
22638 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22639 set_type_canonical_for_odr_type): New.
22640 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22641 ODR based TBAA are not equivalent to non-ODR types.
22642
22643 2019-06-27 Martin Liska <mliska@suse.cz>
22644
22645 PR tree-optimization/90974
22646 PR rtl-optimization/90975
22647 PR rtl-optimization/90976
22648 PR target/91016
22649 PR tree-optimization/91017
22650 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22651 unused tmp.
22652 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22653 initial commit of IRA.
22654 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22655 of op0 and op1.
22656 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22657 Remove unused mode1.
22658 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22659 to new_stmt_info.
22660
22661 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22662
22663 PR target/90991
22664 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22665 instead of register_operand for operands[1], add m to its constraints
22666 if operands[2] uses "C" constraint. Ensure in condition that if
22667 operands[2] is not 0, then operands[1] is not a MEM. For last two
22668 alternatives, use unaligned loads instead of aligned if operands[1] is
22669 misaligned_operand.
22670
22671 2019-06-27 Martin Liska <mliska@suse.cz>
22672
22673 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22674 dead assignments.
22675 * bt-load.c (move_btr_def): Likewise.
22676 * builtins.c (expand_builtin_apply_args_1): Likewise.
22677 (expand_builtin_apply): Likewise.
22678 * cfgexpand.c (expand_asm_stmt): Likewise.
22679 (construct_init_block): Likewise.
22680 * cfghooks.c (verify_flow_info): Likewise.
22681 * cfgloopmanip.c (remove_path): Likewise.
22682 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22683 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22684 * combine.c (simplify_if_then_else): Likewise.
22685 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22686 (choose_basereg): Likewise.
22687 (ix86_expand_prologue): Likewise.
22688 (ix86_preferred_output_reload_class): Likewise.
22689 * cselib.c (cselib_record_sets): Likewise.
22690 * df-scan.c (df_scan_alloc): Likewise.
22691 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22692 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22693 * emit-rtl.c (try_split): Likewise.
22694 * graphite-scop-detection.c (assign_parameter_index_in_region):
22695 Likewise.
22696 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22697 * ira-color.c (setup_profitable_hard_regs): Likewise.
22698 * ira.c (rtx_moveable_p): Likewise.
22699 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22700 * read-rtl.c (read_subst_mapping): Likewise.
22701 * regrename.c (scan_rtx): Likewise.
22702 * reorg.c (fill_slots_from_thread): Likewise.
22703 * tree-inline.c (tree_function_versioning): Likewise.
22704 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22705 * tree-ssa-sink.c (statement_sink_location): Likewise.
22706 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22707 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22708 (vect_create_epilog_for_reduction): Likewise.
22709 * tree.c (build_nonstandard_integer_type): Likewise.
22710
22711 2019-06-27 Richard Biener <rguenther@suse.de>
22712
22713 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22714
22715 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22716
22717 PR tree-optimization/89772
22718 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22719 out-of-bound accesses checking.
22720
22721 2019-06-27 Martin Liska <mliska@suse.cz>
22722
22723 PR tree-optimization/91014
22724 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22725 when LHS is NULL_TREE.
22726
22727 2019-06-27 Martin Liska <mliska@suse.cz>
22728
22729 * symbol-summary.h (traverse): Pass
22730 argument a to the call of callback.
22731 (gt_ggc_mx): Mark arguments as unused.
22732 (gt_pch_nx): Likewise.
22733
22734 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22735
22736 PR target/62147
22737 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22738 finiteness.
22739
22740 2019-06-26 Jeff Law <law@redhat.com>
22741
22742 PR tree-optimization/90883
22743 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22744 (delete_dead_or_redundant_assignment): Likewise.
22745
22746 PR tree-optimization/90883
22747 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22748 * tree-ssa-dse.c: Update various comments to distinguish between
22749 dead and redundant stores.
22750 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22751 (dse_optimize_redundant_stores): New function.
22752 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22753 Distinguish between dead and redundant calls in dump output. All
22754 callers updated.
22755 (delete_dead_or_redundant_assignment): Similarly for assignments.
22756 (dse_optimize_stmt): Handle _CHK variants. For statements which
22757 store 0 into multiple memory locations, try to prove a subsequent
22758 store is redundant.
22759
22760 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22761
22762 PR target/89021
22763 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22764 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22765
22766 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22767
22768 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22769 (branch_islands): New extern.
22770 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22771 * config/rs6000/rs6000.c: .. here.
22772
22773 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22774
22775 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22776 (powerpc*-*-*) ... to here.
22777
22778 2019-06-26 Jeff Law <law@redhat.com>
22779
22780 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22781 memcpy, memmove and memset builtins.
22782 (maybe_trim_memstar_call): Likewise.
22783
22784 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22785
22786 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22787
22788 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22789
22790 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22791
22792 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22793
22794 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22795 declaration.
22796 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22797 "static".
22798 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22799 declaration.
22800
22801 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22802
22803 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22804
22805 2019-06-26 Richard Biener <rguenther@suse.de>
22806
22807 PR ipa/90982
22808 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22809
22810 2019-06-26 Richard Biener <rguenther@suse.de>
22811
22812 * lto-streamer.h (lto_bitmap_alloc): Remove.
22813 (lto_bitmap_free): Likewise.
22814 * lto-streamer.c (lto_bitmap_alloc): Remove.
22815 (lto_bitmap_free): Likewise.
22816 (lto_obstack): Likewise.
22817 (lto_obstack_initialized): Likewise.
22818 * lto-streamer-out.c (lto_output): Use own obstack for local
22819 bitmap, free it consistently.
22820
22821 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22822
22823 PR target/90991
22824 * config/i386/sse.md
22825 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22826 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22827 insns if operands[2] is misaligned_operand.
22828
22829 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22830
22831 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22832 TARGET_POWERPC64.
22833 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22834 to GPR.
22835
22836 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22837
22838 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22839
22840 2019-06-26 Martin Liska <mliska@suse.cz>
22841
22842 PR tree-optimization/90973
22843 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22844 epilogue_cost_vec instead of prologue_cost_vec for
22845 a epilogue cost.
22846
22847 2019-06-26 Martin Liska <mliska@suse.cz>
22848
22849 * bb-reorder.c (connect_better_edge_p): Add missing else
22850 statement in the middle of if-else statements.
22851
22852 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22853 H.J. Lu <hongjiu.lu@intel.com>
22854 Olga Makhotina <olga.makhotina@intel.com>
22855
22856 * common/config/i386/i386-common.c
22857 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22858 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22859 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22860 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22861 (ix86_handle_option): Handle -mavx512vp2intersect.
22862 * config/i386/avx512vp2intersectintrin.h: New.
22863 * config/i386/avx512vp2intersectvlintrin.h: New.
22864 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22865 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22866 AVX512VP2INTERSECT.
22867 * config/i386/i386-builtin-types.def: Add new types.
22868 * config/i386/i386-builtin.def: Add new builtins.
22869 * config/i386/i386-builtins.c: (enum processor_features): Add
22870 F_AVX512VP2INTERSECT.
22871 (static const _isa_names_table isa_names_table): Ditto.
22872 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22873 __AVX512VP2INTERSECT__.
22874 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22875 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22876 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22877 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22878 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22879 * config/i386/i386-options.c (ix86_target_string): Add
22880 -mavx512vp2intersect.
22881 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22882 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22883 P2HImode and P2QImode.
22884 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22885 number for P2QImode and P2HImode.
22886 (ix86_regmode_natural_size): New function.
22887 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22888 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22889 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22890 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22891 * config/i386/i386.opt: Add -mavx512vp2intersect.
22892 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22893 avx512vp2intersectvlintrin.h.
22894 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22895 (define_mode_iterator VI48_AVX512VP2VL): New.
22896 (avx512vp2intersect_2intersect<mode>,
22897 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22898 * config.gcc: Add avx512vp2intersectvlintrin.h and
22899 avx512vp2intersectintrin.h to extra_headers.
22900 * doc/invoke.texi: Document -mavx512vp2intersect.
22901
22902 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22903
22904 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22905
22906 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22907
22908 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22909 savres_routine_syms, savres_routine_name, morestack_ref,
22910 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22911 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22912 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22913 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22914 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22915 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22916 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22917 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22918 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22919 get_stack_clash_protection_probe_interval,
22920 get_stack_clash_protection_guard_size,
22921 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22922 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22923 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22924 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22925 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22926 gen_frame_mem_offset, rs6000_savres_routine_name,
22927 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22928 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22929 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22930 rs6000_global_entry_point_prologue_needed_p,
22931 rs6000_get_separate_components, rs6000_components_for_bb,
22932 rs6000_disqualify_components, rs6000_emit_prologue_components,
22933 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22934 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22935 rs6000_output_savres_externs, rs6000_output_function_prologue,
22936 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22937 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22938 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22939 rs6000_output_function_epilogue, gen_add3_const,
22940 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22941 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22942 to rs6000-logue.c.
22943 (machine_function): Moved to rs6000.h.
22944 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22945 rs6000-internal.h.
22946 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22947 savres_routine_syms, savres_routine_name, morestack_ref,
22948 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22949 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22950 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22951 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22952 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22953 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22954 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22955 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22956 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22957 get_stack_clash_protection_probe_interval,
22958 get_stack_clash_protection_guard_size,
22959 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22960 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22961 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22962 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22963 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22964 gen_frame_mem_offset, rs6000_savres_routine_name,
22965 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22966 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22967 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22968 rs6000_global_entry_point_prologue_needed_p,
22969 rs6000_get_separate_components, rs6000_components_for_bb,
22970 rs6000_disqualify_components, rs6000_emit_prologue_components,
22971 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22972 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22973 rs6000_output_savres_externs, rs6000_output_function_prologue,
22974 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22975 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22976 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22977 rs6000_output_function_epilogue, gen_add3_const,
22978 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22979 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22980 to here from rs6000.c.
22981 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22982 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22983 quad_address_offset_p) Moved to here from rs6000.c.
22984 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22985 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22986 collector.
22987
22988 2019-06-25 Martin Liska <mliska@suse.cz>
22989
22990 * hash-table.c (hashtab_chk_error): Move here from ...
22991 * hash-table.h (hashtab_chk_error): ... here.
22992
22993 2019-06-25 Martin Liska <mliska@suse.cz>
22994
22995 PR tree-optimization/90978
22996 * df-scan.c (df_update_entry_block_defs): Remove dead else
22997 branch.
22998 (df_update_exit_block_uses): Likewise.
22999
23000 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23001 Andrew Stubbs <ams@codesourcery.com>
23002
23003 * config.gcc (thread_file): Set to gcn for AMD GCN.
23004 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23005 (TARGET_EMUTLS_VAR_INIT): New hook.
23006
23007 2019-06-25 Martin Jambor <mjambor@suse.cz>
23008
23009 PR ipa/90939
23010 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23011
23012 2019-06-25 Richard Biener <rguenther@suse.de>
23013
23014 PR tree-optimization/90930
23015 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23016 into parallel form in the last pass instance.
23017
23018 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23019
23020 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23021 (arc_legitimize_pic_address): Simplify and cleanup the function.
23022 (SYMBOLIC_CONST): Remove.
23023 (prepare_pic_move): Likewise.
23024 (prepare_move_operands): Handle complex mov cases here.
23025 (arc_legitimize_address_0): Remove call to
23026 arc_legitimize_pic_address.
23027 (arc_legitimize_address): Remove call to
23028 arc_legitimize_tls_address.
23029 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23030 (movhi_insn): Likewise.
23031
23032 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23033
23034 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23035 PTRDIFF_TYPE.
23036 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23037 format of "__intN" types for UINTMAX_TYPE.
23038 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23039 format of "__intN" types for SIZETYPE.
23040 * tree.c (build_common_tree_nodes): Accept "__intN__"
23041 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23042 * doc/invoke.texi: Document that __intN__ disables pedantic
23043 warnings.
23044
23045 2019-06-25 Jan Hubicka <jh@suse.cz>
23046
23047 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23048 base2_alias_set is non-zero before doing TBAA based disambiguation.
23049
23050 2019-06-25 Martin Liska <mliska@suse.cz>
23051
23052 PR tree-optimization/90973
23053 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23054 of prologue and epilogue.
23055
23056 2019-06-24 Jan Hubicka <jh@suse.cz>
23057
23058 * ipa-utils.h (type_with_linkage_p): Verify that type is
23059 CXX_ODR_P.
23060 (odr_type_p): Remove extra return.
23061 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23062 hash STRING_FLAG only for arrays and integers.
23063 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23064 Update analogously.
23065 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23066 Likewise.
23067 * print-tree.c (print_node): Print cxx-odr-p
23068 and string-flag.
23069 * tree.c (need_assembler_name_p): Also check that type
23070 is CXX_ODR_TYPE_P
23071 (verify_type_variant): Update verification of SRING_FLAG;
23072 also check CXX_ODR_P.
23073 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23074 (TYPE_STRING_FLAG): Use it.
23075 (TYPE_CXX_ODR_P): New macro.
23076 * dwarf2out.c (gen_array_type_die): First check that type
23077 is an array and then test string flag.
23078
23079 2019-06-24 Richard Biener <rguenther@suse.de>
23080
23081 PR tree-optimization/90972
23082 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23083 in common code, dealing with STRING_CST properly.
23084
23085 2019-06-24 Richard Biener <rguenther@suse.de>
23086
23087 PR tree-optimization/90930
23088 PR tree-optimization/90316
23089 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23090 decrement of limit.
23091
23092 2019-06-24 Martin Sebor <msebor@redhat.com>
23093
23094 * tree-pretty-print.h: Remove unnecessary punctuation characters
23095 from a diagnostic.
23096 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23097
23098 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23099
23100 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23101 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23102 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23103
23104 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23105
23106 * config/rs6000/darwin.h: Handle GCC target pragma.
23107
23108 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23109
23110 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23111
23112 2019-06-22 Jeff Law <law@redhat.com>
23113
23114 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23115
23116 2019-06-22 Jan Hubicka <jh@suse.cz>
23117
23118 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23119 give up on bitfields; continue searching for different refs
23120 appearing later.
23121
23122 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23123
23124 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23125 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23126 containing the offset as possible simd lane access. Look through
23127 widening conversion. Move the
23128 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23129
23130 2019-06-21 Richard Biener <rguenther@suse.de>
23131
23132 PR tree-optimization/90930
23133 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23134 flag on new stmts to avoid re-processing them.
23135
23136 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23137
23138 PR c++/90875 - added -Wswitch-outside-range option
23139 * doc/invoke.texi (Wswitch-outside-range): Document.
23140
23141 2019-06-21 Jeff Law <law@redhat.com>
23142
23143 PR tree-optimization/90949
23144 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23145 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23146
23147 2019-06-21 Richard Biener <rguenther@suse.de>
23148
23149 PR debug/90914
23150 * dwarf2out.c (prune_unused_types_walk): Always consider
23151 function-local extern declarations as used.
23152
23153 2019-06-21 Richard Biener <rguenther@suse.de>
23154
23155 PR tree-optimization/90913
23156 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23157 the scalar variant of if-conversion versioning.
23158
23159 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23160
23161 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23162 create another "omp scan inscan exclusive" array if
23163 !ctx->scan_inclusive.
23164 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23165 (lower_omp_scan): Likewise.
23166 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23167 2-bit bitfield for simd_lane_access_p member.
23168 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23169 aux == (void *)-4 as simd lane access.
23170 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23171 comment with permutations to show the canonical permutation order.
23172 (vectorizable_scan_store): Handle exclusive scan.
23173 (vectorizable_store): Call vectorizable_scan_store even for
23174 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23175
23176 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23177 "omp simd array" arrays with one byte elements.
23178
23179 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23180
23181 * config/alpha/alpha.md (@unaligned_store<mode>):
23182 Rename from unaligned_store<mode>.
23183 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23184 * config/alpha/sync.md (@load_locked_<mode>): Rename
23185 from load_locked_<mode>.
23186 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23187 (@atomic_compare_and_swap<mode>_1): Rename
23188 from atomic_compare_and_swap<mode>_1.
23189 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23190 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23191 Use gen_reload_in_aligned and gen_unaligned_store.
23192 (emit_load_locked): Remove.
23193 (emit_store_conditional): Ditto.
23194 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23195 (alpha_split_compare_and_swap): Ditto.
23196 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23197 (alpha_split_compare_and_swap_12): Use gen_load_locked
23198 and gen_store_conditional.
23199 (alpha_split_atomic_exchange): Ditto.
23200 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23201 (alpha_split_atomic_exchange_12): Use gen_load_locked
23202 and gen_store_conditional.
23203
23204 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23205
23206 * config/aarch64/aarch64-errata.h: New file.
23207 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23208 (CA53_ERR_843419_SPEC): Delete.
23209 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23210 * config/aarch64/aarch64-linux.h: Likewise.
23211 * config/aarch64/aarch64-netbsd.h: Likewise.
23212 * config/aarch64/aarch64-freebsd.h: Likewise.
23213
23214 2019-06-20 Marek Polacek <polacek@redhat.com>
23215
23216 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23217
23218 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23219
23220 * config/rs6000/rs6000.md (isa attribute): Add support for
23221 for a future processor.
23222
23223 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23224
23225 PR target/54855
23226 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23227 standard scalar operation pattern for V2DF.
23228 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23229 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23230 (*ieee_<ieee_maxmin><mode>3): Likewise.
23231 (vec_setv2df_0): Likewise.
23232
23233 2019-06-20 Jan Hubicka <jh@suse.cz>
23234
23235 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23236 parameter; it has no use in gimple memory model.
23237 (indirect_ref_may_alias_decl_p): Update.
23238
23239 2019-06-20 Martin Liska <mliska@suse.cz>
23240
23241 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23242 to 10.
23243
23244 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23245
23246 * tree-vect-stmts.c (enum scan_store_kind): New type.
23247 (scan_store_can_perm_p): Change last argument from int * to
23248 vec<enum scan_store_kind> *, record precisely which permutations
23249 need whole vector left shift or that plus VEC_COND_EXPR.
23250 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23251 and additional VEC_COND_EXPR only for those iterations that need it.
23252
23253 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23254
23255 * config.gcc: Fix ARM --with-fpu checking and error message.
23256
23257 2019-06-19 Marek Polacek <polacek@redhat.com>
23258
23259 PR c++/60364 - noreturn after first decl not diagnosed.
23260 * attribs.c (get_attribute_namespace): No longer static.
23261 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23262 attributes.
23263 (attr_noreturn_exclusions): Make it extern.
23264 * attribs.h (get_attribute_namespace): Declare.
23265 * tree-inline.c (function_attribute_inlinable_p): Use
23266 get_attribute_name.
23267
23268 2019-06-19 Martin Sebor <msebor@redhat.com>
23269
23270 PR tree-optimization/90626
23271 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23272
23273 PR tree-optimization/90626
23274 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23275 (handle_builtin_string_cmp): Call it.
23276
23277 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23278
23279 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23280 and DARWIN_NOPIE_SPEC.
23281 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23282 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23283 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23284 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23285 (DARWIN_EXPORT_DYNAMIC): Delete.
23286 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23287 and pie options processing to darwin.h.
23288 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23289
23290 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23291
23292 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23293 in computing the number of options to be moved.
23294
23295 2019-06-19 Maya Rashish <coypu@sdf.org>
23296
23297 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23298 (CLEAR_INSN_CACHE) Use it.
23299
23300 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23301
23302 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23303
23304 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23305
23306 PR middle-end/84521
23307 * builtins.c (expand_builtin_setjmp_setup): Save
23308 hard_frame_pointer_rtx.
23309 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23310 restore fp.
23311 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23312 non-local goto.
23313 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23314 elimination code.
23315 (remove_reg_equal_offset_note): Remove unused function.
23316 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23317 code.
23318 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23319 (arc_builtin_setjmp_frame_value): Remove function.
23320 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23321 (avr_builtin_setjmp_frame_value): Remove function.
23322 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23323 (ix86_builtin_setjmp_frame_value): Remove function.
23324 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23325 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23326 (sparc_builtin_setjmp_frame_value): Remove function.
23327 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23328 (vax_builtin_setjmp_frame_value): Remove function.
23329 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23330 pointer if has_nonlocal_label.
23331
23332 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23333
23334 * doc/md.texi: Document vec_shl_<mode> pattern.
23335 * optabs.def (vec_shl_optab): New optab.
23336 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23337 argument, if == vec_shl_optab, check for left whole vector shift
23338 pattern rather than right shift.
23339 (expand_vec_perm_const): Add vec_shl_optab support.
23340 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23341 in the comment.
23342 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23343 can be handled by vec_shl_optab.
23344 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23345 (check_scan_store): Use it.
23346 (vectorizable_scan_store): If target can't do normal permutations,
23347 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23348 after it.
23349 * config/i386/sse.md (vec_shl_<mode>): New expander.
23350
23351 * omp-low.c (lower_rec_input_clauses): Handle references properly
23352 in inscan clauses.
23353 (lower_omp_scan): Likewise.
23354
23355 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23356
23357 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23358 mem_mode is BLKmode.
23359
23360 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23361
23362 PR target/90922
23363 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23364 pointer adjustment for the case of no callee-saved registers and
23365 stack frame bigger than 128 bytes.
23366
23367 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23368
23369 PR middle-end/90862
23370 * omp-low.c (check_omp_nesting_restrictions): Handle
23371 GF_OMP_TARGET_KIND_OACC_DECLARE.
23372
23373 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23374
23375 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23376 (@add<mode>3_carry): Rename from add<mode>3_carry.
23377 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23378 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23379 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23380 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23381 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23382 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23383 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23384 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23385 (cmpstrnsi): Use gen_cmp_1.
23386 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23387 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23388 (@umonitor_<mode>): Rename from umonitor_<mode>.
23389 * config/i386/i386-expand.c (ix86_expand_copysign):
23390 Use gen_copysign3_const and gen_copysign3_var.
23391 (ix86_expand_xorsign): Use gen_xorsign3_1.
23392 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23393 gen_sub3_carry_ccgz and gen_cmp1.
23394 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23395 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23396 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23397 (ix86_split_lshr): Ditto.
23398 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23399
23400 2019-06-18 Jason Merrill <jason@redhat.com>
23401
23402 * tree.c (build_constructor): Add MEM_STAT_DECL.
23403
23404 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23405
23406 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23407 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23408 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23409 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23410 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23411 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23412 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23413 Use CC_NZC instead of CC.
23414 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23415 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23416 (aarch64_print_operand): Handle E_CC_NZCmode.
23417 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23418 of gen_set_clobber_cc.
23419
23420 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23421
23422 * config/aarch64/aarch64-sve.md: Tabify file.
23423
23424 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23425
23426 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23427 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23428 * config/aarch64/aarch64-sve.md: Use it.
23429
23430 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23431
23432 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23433 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23434 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23435 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23436 (aarch64_expand_sve_vec_cmp_int): Use it.
23437 (aarch64_expand_sve_vec_cmp_float): Likewise.
23438 * config/aarch64/aarch64-sve.md: Likewise throughout.
23439
23440 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23441 Kugan Vivekanandarajah <kuganv@linaro.org>
23442
23443 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23444 (*cond_<optab><mode>_z): Fold into...
23445 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23446 operand 4 can be tied to operand 0 (either inherently or via RA).
23447
23448 2019-06-18 Richard Biener <rguenther@suse.de>
23449
23450 PR debug/90900
23451 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23452 as if optimized away.
23453
23454 2019-06-18 Tom de Vries <tdevries@suse.de>
23455
23456 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23457 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23458 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23459 Rename to ...
23460 (define_insn "@set_softstack_<mode>"): ... this.
23461 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23462 (define_insn "@omp_simt_enter_<mode>"): ... this.
23463 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23464 (define_insn "@omp_simt_exit_<mode>"): ... this.
23465
23466 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23467
23468 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23469 vf parameter. Restore the previous iv step of nscalars_step,
23470 but give it iv_type rather than compare_type. Tweak code order
23471 to match the comments.
23472 (vect_set_loop_condition_masked): Update accordingly.
23473 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23474 for iv_precision. Tweak comment formatting.
23475
23476 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23477
23478 * config/darwin.c: Strip trailing whitespace.
23479
23480 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23481
23482 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23483 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23484
23485 2019-06-18 Martin Jambor <mjambor@suse.cz>
23486
23487 PR ipa/90889
23488 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23489 caller does not have flag_ipa_cp set.
23490
23491 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23492
23493 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23494 from "*fold_left_plus_<mode>", updated operands order.
23495 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23496 * internal-fn.c (mask_fold_left_direct): New define.
23497 (expand_mask_fold_left_optab_fn): Likewise.
23498 (direct_mask_fold_left_optab_supported_p): Likewise.
23499 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23500 * optabs.def (mask_fold_left_plus_optab): New optab.
23501 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23502 masked internal_fn for a reduction ifn.
23503 (vectorize_fold_left_reduction): Add support for masking reductions.
23504
23505 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23506
23507 PR middle-end/80791
23508 * target.def (predict_doloop_p): New hook.
23509 * targhooks.h (default_predict_doloop_p): New declaration.
23510 * targhooks.c (default_predict_doloop_p): New function.
23511 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23512 * doc/tm.texi: Regenerate.
23513 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23514 (TARGET_PREDICT_DOLOOP_P): New macro.
23515 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23516
23517 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23518
23519 * omp-low.c (struct omp_context): Add scan_inclusive field.
23520 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23521 if inclusive scan.
23522 (struct omplow_simd_context): Add lastlane member.
23523 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23524 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23525 1 or 2 argument.
23526 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23527 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23528 (lower_omp_scan): New function.
23529 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23530 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23531 check 3rd argument if present rather than 2nd.
23532 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23533 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23534 2-bit bitfield.
23535 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23536 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23537 than 2nd.
23538 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23539 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23540 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23541 init.
23542 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23543 IFN_GOMP_SIMD_LANE argument.
23544 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23545 encoded ->aux value.
23546 * tree-vect-stmts.c: Include attribs.h.
23547 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23548 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23549 functions.
23550 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23551 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23552
23553 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23554
23555 PR target/62055
23556 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23557 (*nabs<mode>2_1): Ditto.
23558 (nabs sse-reg splitter): New splitter.
23559 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23560
23561 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23562
23563 PR bootstrap/90873.
23564 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23565 TMR index check.
23566
23567 2019-06-17 Tom de Vries <tdevries@suse.de>
23568
23569 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23570 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23571 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23572 ...
23573 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23574 match_operand 0.
23575 (define_insn "omp_simt_enter_insn"): Rename to ...
23576 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23577 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23578 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23579 gen_omp_simt_enter_si.
23580 (define_expand "omp_simt_exit"): New.
23581 (define_insn "omp_simt_exit"): Rename to ...
23582 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23583 match_operand 0.
23584
23585 2019-06-17 Matthew Green <mrg@eterna.com.au>
23586 Maya Rashish <coypu@sdf.org>
23587
23588 * config.gcc (aarch64*-*-netbsd*): New target.
23589 * config/aarch64/aarch64-netbsd.h: New file.
23590 * config/aarch64/t-aarch64-netbsd: Likewise.
23591
23592 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23593
23594 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23595 the access path from base to first VIEW_CONVERT_EXPR or
23596 BIT_FIELD_REF.
23597
23598 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23599
23600 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23601 access path on BIT_FIELD_REFs.
23602
23603 2019-06-17 Martin Liska <mliska@suse.cz>
23604
23605 PR ipa/90874
23606 * ipa-utils.h (odr_type_p): Remove dead code.
23607
23608 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23609
23610 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23611 alternative Solaris 11.4 format.
23612 * configure: Regenerate.
23613
23614 2019-06-17 Tom de Vries <tdevries@suse.de>
23615
23616 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23617 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23618 match_operand 0.
23619 (define_insn "call_value_insn"): Rename to ...
23620 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23621 match_operand 0.
23622 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23623 DI.
23624
23625 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23626
23627 PR middle-end/64242
23628 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23629 frame clobbers and schedule block.
23630 (builtin_longjmp): Likewise.
23631
23632 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23633
23634 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23635 describe how to perform MSPABI compliant 64-bit shift.
23636 * config/msp430/msp430.md (ashldi3): New define_expand.
23637 (ashrdi3): New define_expand.
23638 (lshrdi3): New define_expand.
23639
23640 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23641
23642 * doc/sourcebuild.texi: Document new effective target keyword
23643 longlong64.
23644
23645 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23646
23647 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23648 indirect_refs_may_alias_p): Revert accidental commits.
23649
23650 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23651 at the end of structures.
23652
23653 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23654
23655 * config/darwin.c (machopic_indirect_call_target): Use renamed
23656 darwin_picsymbol_stubs to decide on output.
23657 (darwin_override_options): Handle darwin_picsymbol_stubs.
23658 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23659 (LD64_VERSION): Revise default.
23660 * config/darwin.opt: (mpic-symbol-stubs): New option.
23661 (darwin_picsymbol_stubs): New variable.
23662 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23663 rename to TARGET_MACHO_PICSYM_STUBS.
23664 * config/i386/i386.c (output_pic_addr_const): Likewise.
23665 * config/i386/i386.h Likewise.
23666 * config/rs6000/darwin.h: Likewise.
23667 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23668 darwin_picsymbol_stubs.
23669
23670 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23671
23672 * config/darwin.opt (prebind, noprebind, seglinkedit,
23673 noseglinkedit): Add RejectNegative.
23674
23675 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23676
23677 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23678 in my previous patch.
23679
23680 2019-06-16 Tom de Vries <tdevries@suse.de>
23681
23682 PR tree-optimization/89376
23683 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23684
23685 2019-06-15 Maya Rashish <coypu@sdf.org>
23686
23687 * doc/invoke.texi (Spec Files): Update location of the
23688 Fortran spec file.
23689
23690 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23691
23692 * doc/extend.texi (Common Function Attributes): Clarify
23693 no_sanitize. Fix grammar.
23694
23695 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23696
23697 * tree-ssa-alias.c (alias_stats): Add
23698 nonoverlapping_component_refs_p_may_alias,
23699 nonoverlapping_component_refs_p_no_alias,
23700 nonoverlapping_component_refs_of_decl_p_may_alias,
23701 nonoverlapping_component_refs_of_decl_p_no_alias.
23702 (dump_alias_stats): Dump them.
23703 (nonoverlapping_component_refs_of_decl_p): Add stats.
23704 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23705 ARRAY_REF.
23706
23707 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23708
23709 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23710 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23711 only.
23712 (*anddi3_doubleword): Split before reload. Merge with
23713 anddi->zext pre-reload splitter.
23714 (*andndi3_doubleword): Split before reload.
23715 (*<code>di3_doubleword): Ditto.
23716 (*one_cmpldi2_doubleword): Ditto.
23717
23718 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23719
23720 PR middle-end/90779
23721 * gimplify.c: Include omp-offload.h and context.h.
23722 (gimplify_bind_expr): Add "omp declare target" attributes
23723 to static block scope variables inside of target region or target
23724 functions.
23725
23726 2019-06-15 Tom de Vries <tdevries@suse.de>
23727
23728 PR tree-optimization/90009
23729 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23730 Return NULL if bb contains IFN_UNIQUE.
23731
23732 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23733
23734 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23735 (un): New define_mode_attr.
23736 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23737 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23738 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23739 merge into ...
23740 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23741
23742 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23743
23744 * config/darwin.opt: Add RejectNegative where needed, reorder
23745 and add minimal functional descriptions.
23746
23747 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23748
23749 PR rtl-optimization/90765
23750 * calls.c (update_stack_alignment_for_call): New function.
23751 (expand_call): Call update_stack_alignment_for_call when
23752 outgoing parameter is passed in the stack.
23753 (emit_library_call_value_1): Likewise.
23754 * function.c (locate_and_pad_parm): Don't update
23755 stack_alignment_needed and preferred_stack_boundary.
23756
23757 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23758
23759 PR target/90877
23760 * config/i386/i386-features.c
23761 (dimode_scalar_chain::compute_convert_gain): Replace
23762 mmxsse_to_integer with sse_to_integer.
23763 * config/i386/i386.c (ix86_register_move_cost): Verify that
23764 moves between MMX and non-MMX units require secondary memory.
23765 Correct costs of moves between SSE and integer units.
23766 * config/i386/i386.h (processor_costs): Rename cost of moving
23767 SSE register to integer to sse_to_integer. Rename cost of
23768
23769 2019-06-14 Matt Thomas <matt@3am-software.com>
23770 Matthew Green <mrg@eterna.com.au>
23771 Nick Hudson <skrll@netbsd.org>
23772 Maya Rashish <coypu@sdf.org>
23773 Richard Earnshaw <rearnsha@arm.com>
23774
23775 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23776 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23777 * config/arm/netbsd-eabi.h: New file.
23778 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23779 redefining.
23780 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23781 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23782 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23783 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23784
23785 2019-06-14 Richard Biener <rguenther@suse.de>
23786
23787 * tree-loop-distribution.c (classify_partition): Return
23788 whether a reduction appeared in all partitions and do not
23789 stop builtin detection because of this.
23790 (distribute_loop): Sort a non-builtin partition last if
23791 there's a reduction in all partitions and make sure the
23792 partition prevailing as last is not a builtin.
23793
23794 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23795
23796 PR ipa/90401
23797 * ipa-prop.c (add_to_agg_contents_list): New function.
23798 (clobber_by_agg_contents_list_p): Likewise.
23799 (extract_mem_content): Likewise.
23800 (get_place_in_agg_contents_list): Delete.
23801 (determine_known_aggregate_parts): Renamed from
23802 determine_locally_known_aggregate_parts. New parameter
23803 aa_walk_budget_p.
23804
23805 2019-06-13 Martin Sebor <msebor@redhat.com>
23806
23807 PR tree-optimization/90662
23808 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23809 to the same type.
23810
23811 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23812
23813 PR bootstrap/90873
23814 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23815 dbase is not TARGET_MEM_REF.
23816
23817 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23818
23819 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23820 Update all uses.
23821 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23822 Do not generate DImode extends for 32bit targets.
23823 (and->zext post-reload splitter): Use gen_extend_insn
23824 instead of indirect functions.
23825 (anddi->zext pre-reload splitter): New.
23826 (*zext<mode>_doubleword_and): Remove.
23827 (*zext<mode>_doubleword): Ditto.
23828 (*zextsi_doubleword): Dittto.
23829
23830 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23831
23832 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23833 Use gen_sub3_insn instead of indirect function.
23834 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23835 indirect function.
23836 (ix86_adjust_counter): Ditto.
23837
23838 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23839 Lijia He <helijia@linux.ibm.com>
23840
23841 PR tree-optimization/77820
23842 * tree-ssa-threadedge.c
23843 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23844 function.
23845 (thread_across_edge): Add call to
23846 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23847
23848 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23849
23850 * config/darwin-driver.c (validate_macosx_version_min): New.
23851 (darwin_default_min_version): Cleanup and validate supplied version.
23852 (darwin_driver_init): Likewise and push cleaned version into opts.
23853
23854 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23855
23856 PR tree-optimization/90869
23857 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23858 converts in MEM_REF referencing decl rather than view converts
23859 from decl type to MEM_REF type.
23860
23861 2019-06-13 Richard Biener <rguenther@suse.de>
23862
23863 PR tree-optimization/90856
23864 * tree-sra.c (build_ref_for_model): Only use
23865 build_reconstructed_reference when address-spaces are the same.
23866
23867 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23868
23869 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23870 wrap ei variable name in the declaration in ()s.
23871 (nvptx_single): Actually use mode_label variable. Formatting fix.
23872
23873 2019-06-13 Richard Biener <rguenther@suse.de>
23874
23875 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23876 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23877 also return the condition stmt.
23878 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23879 loop we can version and version that, reusing the loop version
23880 created by if-conversion instead of versioning again.
23881
23882 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23883
23884 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23885 may_contain_p.
23886 * tree-vrp (value_range_base::may_contain_p): Call into
23887 value_inside_range.
23888 (value_inside_range): Make private inside value_range_base class.
23889 Take min/max from *this.
23890 (range_includes_p): Remove.
23891 * tree-vrp.h (value_range_base): Add value_inside_range.
23892 (range_includes_p): Remove.
23893 (range_includes_zero_p): Call may_contain_p.
23894 * vr-values.c (compare_range_with_value): Same.
23895
23896 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23897
23898 * doc/extend.texi (ARC Function Attributes): Update info.
23899
23900 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23901
23902 PR tree-optimization/89713
23903 * doc/invoke.texi (-ffinite-loops): Document new option.
23904 * common.opt (-ffinite-loops): New option.
23905 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23906 IFN_GOACC_LOOP calls as necessary.
23907 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23908 is finite.
23909 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23910 IFN_GOACC_LOOP call is not used.
23911 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23912
23913 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23914
23915 PR target/88838
23916 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23917 compare_type is not with Pmode size, we will create an IV with
23918 Pmode size with truncated use (i.e. converted to the correct type).
23919 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23920 (vect_iv_limit_for_full_masking): New. Factored out of
23921 vect_set_loop_condition_masked.
23922 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23923 (vect_iv_limit_for_full_masking): Declare.
23924
23925 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23926
23927 PR target/88834
23928 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23929 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23930 (get_alias_ptr_type_for_ptr_address): Likewise.
23931 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23932 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23933 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23934 allow_reg_index_p.
23935
23936 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23937
23938 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23939
23940 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23941
23942 * common/config/pru/pru-common.c: New file.
23943 * config.gcc: Add PRU target.
23944 * config/pru/alu-zext.md: New file.
23945 * config/pru/constraints.md: New file.
23946 * config/pru/predicates.md: New file.
23947 * config/pru/pru-opts.h: New file.
23948 * config/pru/pru-passes.c: New file.
23949 * config/pru/pru-pragma.c: New file.
23950 * config/pru/pru-protos.h: New file.
23951 * config/pru/pru.c: New file.
23952 * config/pru/pru.h: New file.
23953 * config/pru/pru.md: New file.
23954 * config/pru/pru.opt: New file.
23955 * config/pru/t-pru: New file.
23956 * doc/extend.texi: Document PRU pragmas.
23957 * doc/invoke.texi: Document PRU-specific options.
23958 * doc/md.texi: Document PRU asm constraints.
23959
23960 2019-06-12 Martin Sebor <msebor@redhat.com>
23961
23962 PR middle-end/90676
23963 * tree-pretty-print.c (dump_mem_ref): New function. Include
23964 MEM_REF type in output when different size than operand.
23965 (dump_generic_node): Move code to dump_mem_ref and call it.
23966
23967 2019-06-12 Martin Sebor <msebor@redhat.com>
23968
23969 PR tree-optimization/90662
23970 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23971 to arrays.
23972
23973 2019-06-12 Tom de Vries <tdevries@suse.de>
23974
23975 PR tree-optimization/90009
23976 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23977
23978 2019-06-12 Martin Liska <mliska@suse.cz>
23979
23980 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23981 the created map.
23982 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23983 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23984 Do not sanitize created maps.
23985
23986 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23987
23988 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23989 value_range::singleton_p.
23990 * tree-vrp.c (value_range_constant_singleton): Remove.
23991 * tree-vrp.h (value_range_constant_singleton): Remove.
23992 * vr-values.c (vr_values::singleton): Use
23993 value_range::singleton_p.
23994
23995 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23996
23997 PR target/90811
23998 * cfgexpand.c (align_local_variable): Add really_expand argument,
23999 don't SET_DECL_ALIGN if it is false.
24000 (add_stack_var): Add really_expand argument, pass it through to
24001 align_local_variable.
24002 (expand_one_stack_var_1): Pass true as really_expand to
24003 align_local_variable.
24004 (expand_one_ssa_partition): Pass true as really_expand to
24005 add_stack_var.
24006 (expand_one_var): Pass really_expand through to add_stack_var.
24007
24008 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24009
24010 * config/arm/iterators.md (VABAL): New int iterator.
24011 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24012 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24013 UNSPEC_VABAL_U values.
24014
24015 2019-06-12 Martin Liska <mliska@suse.cz>
24016
24017 * value-prof.c (stream_out_histogram_value): Only first value
24018 can't be negative.
24019
24020 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24021
24022 PR c/90760
24023 * symtab.c (symtab_node::set_section): Allow being called on aliases
24024 as long as they aren't analyzed yet.
24025
24026 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24027
24028 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24029 to `mips_set_text_contents_type' to indicate whether a
24030 non-debug insn follows.
24031
24032 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24033
24034 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24035 enabling -mpcrel by default.
24036 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24037 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24038 that the test against -mcpu=future is done first. Then test if
24039 -mprefixed-addr is on for -mpcrel.
24040 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24041
24042 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24043
24044 PR target/90811
24045 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24046 instead of and.u%d.
24047
24048 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24049
24050 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24051
24052 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24053
24054 PR c++/90449 - add -Winaccessible-base option.
24055 * doc/invoke.texi (Winaccessible-base): Document.
24056
24057 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24058
24059 PR tree-optimization/62041
24060 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24061
24062 2019-06-11 Jason Merrill <jason@redhat.com>
24063
24064 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24065 * tree.c (get_tree_code_name): Likewise.
24066 * print-tree.c (print_node): Only briefly print a node with an
24067 invalid code.
24068
24069 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24070
24071 PR bootstrap/90819
24072 * trans-mem.c (tm_memopt_compute_available): Add assertion
24073 that blocks is not empty. Formatting fix.
24074
24075 2019-06-11 Martin Liska <mliska@suse.cz>
24076
24077 PR c++/87847
24078 * hash-table.h: Extend create_gcc, add one parameter
24079 that is passed into hash_table::hash_table.
24080
24081 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24082
24083 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24084 New prototype.
24085 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24086 Emit clobber also for non-sse operations.
24087 (ix86_split_fp_absneg_operator): New function.
24088 * config/i386/i386.md (SSEMODEF): New mode iterator.
24089 (ssevecmodef): New mode attribute.
24090 (<code>tf2): Use absneg code iterator.
24091 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24092 Add three-operand AVX alternatives.
24093 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24094 Use absneg code iterator and X87MODEF mode iterator.
24095 (absneg fp_reg non-sse splitter): Call absneg code iterator
24096 and X87MODEF mode iterator.
24097 (absneg general_reg non-sse splitter): Use absneg code iterator
24098 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24099 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24100 code iterator. Add three-operand AVX alternative.
24101 (absneg sse_reg splitter): Use absneg code iterator
24102 and SSEMODEF mode iterator. Handle AVX operands.
24103 (absneg fp_reg splitter): Use absneg code iterator
24104 and MODEF mode iterator.
24105 (absneg general_reg splitter): Merge splitters using MODEF mode
24106 iterator. Use absneg code iterator. Call
24107 ix86_split_fp_absneg_operator.
24108 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24109 Do not enable for non-sse modes before reload.
24110 (CSGNMODE): Remove.
24111 (CSGNVMODE): Ditto.
24112 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24113 ssevecmodef mode attribute instaed of CSGNVMODE.
24114 (copysign<mode>3_const): Ditto.
24115 (copysign<mode>3_var): Ditto.
24116 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24117 Use absneg code iterator. Simplify code using std::swap.
24118 * config/i386/predicates.md (absneg_operator): Remove.
24119
24120 2019-06-10 Martin Sebor <msebor@redhat.com>
24121
24122 * gimple-fold.c (get_range_strlen): Update comment that didn't
24123 make it into r267503 or related commits.
24124
24125 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24126
24127 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24128 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24129
24130 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24131
24132 * tree.def (OMP_SCAN): New tree code.
24133 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24134 OMP_CLAUSE_EXCLUSIVE.
24135 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24136 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24137 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24138 OMP_CLAUSE_{IN,EX}CLUSIVE.
24139 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24140 * tree-nested.c (convert_nonlocal_reference_stmt,
24141 convert_local_reference_stmt, convert_gimple_call): Handle
24142 GIMPLE_OMP_SCAN.
24143 * tree-pretty-print.c (dump_omp_clause): Handle
24144 OMP_CLAUSE_{IN,EX}CLUSIVE.
24145 (dump_generic_node): Handle OMP_SCAN.
24146 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24147 * gimple.h (gomp_scan): New type.
24148 (is_a_helper <gomp_scan *>::test,
24149 is_a_helper <const gomp_scan *>::test): New templates.
24150 (gimple_build_omp_scan): Declare.
24151 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24152 gimple_omp_scan_set_clauses): New inline functions.
24153 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24154 * gimple.c (gimple_build_omp_scan): New function.
24155 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24156 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24157 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24158 GIMPLE_OMP_TASKGROUP.
24159 (dump_gimple_omp_scan): New function.
24160 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24161 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24162 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24163 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24164 (is_gimple_stmt): Handle OMP_SCAN.
24165 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24166 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24167 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24168 mentioned in nested #pragma omp scan. Handle
24169 OMP_CLAUSE_{IN,EX}CLUSIVE.
24170 (gimplify_expr): Handle OMP_SCAN.
24171 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24172 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24173 simd constructs.
24174 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24175 GIMPLE_OMP_SCAN.
24176
24177 2019-06-10 Martin Liska <mliska@suse.cz>
24178
24179 * ipa-cp.c (ignore_edge_p): New function.
24180 (build_toporder_info): Use it.
24181 * ipa-inline.c (ignore_edge_p): New function.
24182 (inline_small_functions): Use it.
24183 * ipa-pure-const.c (ignore_edge_for_nothrow):
24184 Verify opt_for_fn for caller and callee.
24185 (ignore_edge_for_pure_const): Likewise.
24186 * ipa-reference.c (ignore_edge_p): Extend to check
24187 for opt_for_fn.
24188 * ipa-utils.c (searchc): Refactor.
24189 * ipa-utils.h: Fix coding style.
24190
24191 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24192
24193 * config/arc/arc.c (arc_rtx_costs): Update costs.
24194
24195 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24196
24197 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24198 (arc_split_ior): Likewise.
24199 (arc_check_mov_const): Likewise.
24200 (arc_split_mov_const): Likewise.
24201 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24202 (arc_rtx_costs): Replace check Crr with Cax constraint.
24203 (prepare_move_operands): Cleanup, remove unused code.
24204 (arc_split_ior): New function.
24205 (arc_check_ior_const): Likewise.
24206 (arc_split_mov_const): Likewise.
24207 (arc_check_mov_const): Likewise.
24208 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24209 in define_insn_and_split pattern.
24210 (iorsi3): Likewise.
24211 (mulsi3_v2): Add new matching variant.
24212 (andsi3_i): Cleanup pattern.
24213 (rotrsi3_cnt1): Update pattern.
24214 (rotrsi3_cnt8): New pattern.
24215 (ashlsi2_cnt8): Likewise.
24216 (ashlsi2_cnt16): Likewise.
24217 * config/arc/constraints.md (C0p): Update constraint.
24218 (Crr): Remove it.
24219 (C0x): New pattern.
24220 (Cax): New pattern.
24221
24222 2019-06-10 Martin Liska <mliska@suse.cz>
24223
24224 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24225 Update coding style.
24226 (sem_item_optimizer::dump_cong_classes):
24227 Print how many items are in a non-singular class. Improve
24228 coding style.
24229
24230 2019-06-10 Martin Liska <mliska@suse.cz>
24231
24232 * value-prof.c (dump_histogram_value): Change dump format.
24233 (gimple_mod_subtract_transform): Remove legacy comment.
24234
24235 2019-06-10 Martin Liska <mliska@suse.cz>
24236
24237 * value-prof.c (dump_histogram_value): Print histogram values
24238 only if present.
24239
24240 2019-06-10 Martin Liska <mliska@suse.cz>
24241
24242 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24243 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24244 * ipa-profile.c (ipa_profile_generate_summary):
24245 Use get_most_common_single_value.
24246 * tree-profile.c (gimple_init_gcov_profiler):
24247 Instrument with __gcov_one_value_profiler_v2
24248 and __gcov_indirect_call_profiler_v4.
24249 * value-prof.c (dump_histogram_value):
24250 Print all values for HIST_TYPE_SINGLE_VALUE.
24251 (stream_out_histogram_value): Update assert for
24252 N values.
24253 (stream_in_histogram_value): Set number of
24254 counters for HIST_TYPE_SINGLE_VALUE.
24255 (get_most_common_single_value): New.
24256 (gimple_divmod_fixed_value_transform):
24257 Use get_most_common_single_value.
24258 (gimple_ic_transform): Likewise.
24259 (gimple_stringops_transform): Likewise.
24260 (gimple_find_values_to_profile): Set number
24261 of counters for HIST_TYPE_SINGLE_VALUE.
24262 * value-prof.h (get_most_common_single_value): New.
24263
24264 2019-06-10 Martin Liska <mliska@suse.cz>
24265
24266 * hash-map.h: Pass default value to hash_table ctor.
24267 * hash-table.h: Add default value to call of a ctor.
24268
24269 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24270
24271 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24272 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24273
24274 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24275
24276 PR target/90751
24277 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24278 Call pa_output_function_label.
24279 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24280 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24281 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24282 to declaration.
24283 (pa_linux_output_function_prologue): Declare.
24284 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24285 (pa_output_function_label): New.
24286 (pa_output_function_prologue): Revise to use pa_output_function_label.
24287 (pa_linux_output_function_prologue): New.
24288 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24289
24290 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24291
24292 * tree-vrp.h (value_range_base::intersect): New.
24293 (value_range::intersect_helper): Move from here...
24294 (value_range_base::intersect_helper): ...to here.
24295 * tree-vrp.c (value_range::intersect_helper): Rename to...
24296 (value_range_base::intersect_helper): ...this, and rewrite to
24297 return a value instead of modifying THIS in place.
24298 Also, move equivalence handling...
24299 (value_range::intersect): ...here, while calling intersect_helper.
24300 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24301 calling intersect.
24302 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24303 Same.
24304 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24305
24306 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24307
24308 * Makefile.in (genprogerr): Add condmd.
24309 (genprog): Remove it here.
24310
24311 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24312
24313 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24314
24315 2019-06-07 Richard Biener <rguenther@suse.de>
24316
24317 PR debug/90574
24318 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24319 that appear after user labels.
24320
24321 2019-06-07 Martin Liska <mliska@suse.cz>
24322
24323 * cselib.c (cselib_init): Disable hash table
24324 sanitization.
24325 * hash-set.h: Pass new default argument to m_table.
24326 * hash-table.c: Add global variable with hash table
24327 sanitization limit.
24328 * hash-table.h (Allocator>::hash_table): Add new argument
24329 to ctor.
24330 (hashtab_chk_error): New.
24331 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24332 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24333 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24334
24335 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24336
24337 * common.opt (flto-odr-type-merging): Ignore.
24338 * invoke.texi (-flto-odr-type-merging): Remove.
24339 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24340 (can_be_vtable_hashed_p): Remove.
24341 (hash_odr_vtable): Remove.
24342 (odr_vtable_hasher::hash): Remove.
24343 (types_same_for_odr): Remove.
24344 (types_odr_comparable): Remove.
24345 (odr_vtable_hasher::equal): Remove.
24346 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24347 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24348 (get_odr_type): Do not use vtable hash.
24349 (dump_odr_type): Remove commented out code.
24350 (build_type_inheritance_graph): Do not allocate vtable hash.
24351 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24352 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24353 (odr_type_p): Likewise.
24354 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24355 test.
24356
24357 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24358
24359 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24360 immediately after same_types_for_tbaa_p returns -1 and continue
24361 looking for possible exact match; if matching types are arrays
24362 watch for partial overlaps.
24363 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24364 (indirect_refs_may_alias_p): Do type based disambiguation first;
24365 update comment.
24366
24367 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24368
24369 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24370
24371 2019-06-07 Martin Liska <mliska@suse.cz>
24372
24373 * doc/invoke.texi: Remove param.
24374 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24375 Remove.
24376 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24377 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24378 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24379 * profile.c (instrument_values): Remove
24380 HIST_TYPE_INDIR_CALL_TOPN.
24381 * tree-profile.c (init_ic_make_global_vars):
24382 Always build __gcov_indirect_call only.
24383 (gimple_init_gcov_profiler): Remove usage
24384 of PARAM_INDIR_CALL_TOPN_PROFILE.
24385 (gimple_gen_ic_profiler): Likewise.
24386 * value-prof.c (dump_histogram_value): Likewise.
24387 (stream_in_histogram_value): Likewise.
24388 (gimple_indirect_call_to_profile): Likewise.
24389 (gimple_find_values_to_profile): Likewise.
24390 * value-prof.h (enum hist_type): Likewise.
24391
24392 2019-06-07 Martin Liska <mliska@suse.cz>
24393
24394 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24395 function.
24396
24397 2019-06-07 Martin Liska <mliska@suse.cz>
24398
24399 PR tree-optimization/78902
24400 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24401 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24402 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24403 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24404 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24405 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24406 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24407 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24408 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24409 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24410 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24411 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24412 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24413 New.
24414 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24415 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24416 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24417 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24418 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24419 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24420 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24421 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24422 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24423 warn_unused_result attribute.
24424 (BUILT_IN_STRDUP): Likewise.
24425 (BUILT_IN_STRNDUP): Likewise.
24426 (BUILT_IN_ALLOCA): Likewise.
24427 (BUILT_IN_CALLOC): Likewise.
24428 (BUILT_IN_MALLOC): Likewise.
24429 (BUILT_IN_REALLOC): Likewise.
24430
24431 2019-06-06 Jim Wilson <jimw@sifive.com>
24432
24433 PR target/89955
24434 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24435 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24436 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24437
24438 2019-06-06 Martin Sebor <msebor@redhat.com>
24439
24440 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24441 (handle_builtin_malloc): Remove trailing spaces.
24442 (handle_builtin_memset): Same.
24443 (handle_builtin_memcmp): Same.
24444 (compute_string_length): Same.
24445 (determine_min_objsize): Same.
24446 (handle_builtin_string_cmp): Same.
24447 (handle_char_store): Same. Break up excessively long line.
24448
24449 2019-06-06 Martin Jambor <mjambor@suse.cz>
24450
24451 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24452 check.
24453
24454 2019-06-06 Martin Jambor <mjambor@suse.cz>
24455
24456 * tree-sra.c (struct access): New field grp_same_access_path.
24457 (dump_access): Dump it.
24458 (build_reconstructed_reference): New function.
24459 (build_ref_for_model): Use it if possible.
24460 (path_comparable_for_same_access): New function.
24461 (same_access_path_p): Likewise.
24462 (sort_and_splice_var_accesses): Set the new flag.
24463 (analyze_access_subtree): Likewise.
24464 (propagate_subaccesses_across_link): Propagate zero value of the new
24465 flag down the access tree.
24466
24467 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24468
24469 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24470 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24471 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24472 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24473 Add gfx906.
24474
24475 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24476
24477 PR tree-optimization/90332
24478 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24479 Handle VALS containing two vectors.
24480 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24481 to...
24482 (@aarch64_combinez<mode>): ... This.
24483 (*aarch64_combinez_be<mode>): Rename to...
24484 (@aarch64_combinez_be<mode>): ... This.
24485 (vec_init<mode><Vhalf>): New define_expand.
24486 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24487
24488 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24489
24490 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24491 library functions only when not optimizing for size.
24492 (ashlsi3): Likewise.
24493 (ashrhi3): Likewise.
24494 (ashrsi3): Likewise.
24495 (lshrhi3): Likewise.
24496 (lshrsi3): Likewise.
24497
24498 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24499
24500 PR rtl-optimization/88751
24501 * ira.c (ira): Use the number of the actually referenced registers
24502 when calculating the threshold.
24503
24504 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24505
24506 * configure: Regenerate.
24507
24508 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24509
24510 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24511 register if it is in memory, so the shift can be emulated with a rotate
24512 instruction.
24513 (ashrhi3): Likewise.
24514 (lshrhi3): Likewise.
24515
24516 2019-06-06 Martin Liska <mliska@suse.cz>
24517
24518 PR tree-optimization/87954
24519 * match.pd: Simplify mult where both arguments are 0 or 1.
24520
24521 2019-06-06 Richard Biener <rguenther@suse.de>
24522
24523 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24524 put equivalences on UNDEFINED ranges.
24525 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24526 Make sure to drop defs of stmts added during simplification
24527 to VARYING.
24528
24529 2019-06-06 Richard Biener <rguenther@suse.de>
24530
24531 * tree-ssa-structalias.c: Include tree-cfg.h.
24532 (make_heapvar): Do not make heap vars artificial.
24533 (find_func_aliases_for_builtin_call): Handle stack allocation
24534 functions.
24535 (find_func_aliases): Delay processing of simple enough returns
24536 in non-IPA mode.
24537 (set_uids_in_ptset): Adjust.
24538 (find_what_var_points_to): Likewise.
24539 (solve_constraints): Do not dump points-to sets here.
24540 (compute_points_to_sets): Post-process return statements,
24541 amending the escaped solution. Dump points-to sets afterwards.
24542 (ipa_pta_execute): Dump points-to sets.
24543
24544 2019-06-06 Martin Liska <mliska@suse.cz>
24545
24546 PR web/87933
24547 * doc/install.texi: Fix HTML headers and
24548 titles for 'Installing GCC' pages.
24549
24550 2019-06-06 Martin Liska <mliska@suse.cz>
24551
24552 * ipa-icf-gimple.h (dump_message_1): Remove.
24553 (dump_message): Likewise.
24554 (return_false_with_message_1): Print also file.
24555 (return_false_with_msg): Likewise.
24556 (return_with_result): Likewise.
24557 (return_with_debug): Likewise.
24558 * ipa-icf.c (sem_function::equals_private): Remove call
24559 to dump_message.
24560
24561 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24562
24563 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24564 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24565 memory operand for it.
24566 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24567
24568 2019-06-05 Martin Sebor <msebor@redhat.com>
24569
24570 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24571 Adjust quoting and hyphenation.
24572 * convert.c (convert_to_real_1): Same.
24573 * gcc.c (driver_wrong_lang_callback): Same.
24574 (driver::handle_unrecognized_options): Same.
24575 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24576 * opts-common.c (cmdline_handle_error): Same.
24577 (read_cmdline_option): Same.
24578 * opts-global.c (complain_wrong_lang): Same.
24579 (print_ignored_options): Same.
24580 (handle_common_deferred_options): Same.
24581 * pretty-print.h: Same.
24582 * print-rtl.c (debug_bb_n_slim): Same.
24583 * sched-rgn.c (make_pass_sched_fusion): Same.
24584 * tree-cfg.c (verify_gimple_assign_unary): Same.
24585 (verify_gimple_label): Same.
24586 * tree-ssa-operands.c (verify_ssa_operands): Same.
24587 * varasm.c (do_assemble_alias): Same.
24588 (assemble_alias): Same.
24589
24590 2019-06-05 Richard Henderson <rth@twiddle.net>
24591
24592 * config/alpha/alpha.c (direct_return): Move down after
24593 struct machine_function definition; use saved frame_size;
24594 return bool.
24595 (struct machine_function): Add sa_mask, sa_size, frame_size.
24596 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24597 (alpha_compute_frame_layout): ... new function.
24598 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24599 (alpha_initial_elimination_offset): Use saved sa_size.
24600 (alpha_vms_initial_elimination_offset): Likewise.
24601 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24602 (alpha_expand_prologue): Use saved frame data. Merge integer
24603 and fp register save loops.
24604 (alpha_expand_epilogue): Likewise.
24605 (alpha_start_function): Use saved frame data.
24606 * config/alpha/alpha-protos.h (direct_return): Update.
24607 (alpha_sa_size): Remove.
24608
24609 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24610
24611 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24612 multiplication by a power-of-two value.
24613 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24614 and turn the modulo operation into a masking operation.
24615
24616 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24617
24618 PR debug/90733
24619 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24620 with VOIDmode inner operands.
24621
24622 2019-06-05 Richard Biener <rguenther@suse.de>
24623
24624 PR middle-end/90726
24625 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24626 turn an expression graph into a tree.
24627
24628 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24629
24630 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24631 member.
24632 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24633 treat it like explicit monotonic schedule modifier.
24634 (expand_omp_for): Initialize has_lastprivate_conditional.
24635 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24636 schedule modifier.
24637
24638 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24639 references, lookup in in hash map MEM_REF operand instead of the
24640 MEM_REF itself.
24641 (lower_omp_1): When looking for lastprivate conditional assignments,
24642 handle MEM_REFs with REFERENCE_TYPE operands.
24643
24644 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24645 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24646 and references a VLA. Handle references to non-VLAs if is_simd
24647 all privatization clauses like reductions.
24648 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24649 If omp_is_reference, use always omp simd arrays and set
24650 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24651 fails, emit reference initialization.
24652
24653 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24654
24655 PR target/89803
24656 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24657 _mm_mask_fpclass_sd_mask): New intrinsics.
24658 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24659 * config/i386/i386-builtin.def
24660 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24661 New builtins.
24662 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24663 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24664 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24665 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24666 case QI_FTYPE_V2SF_INT): Ditto.
24667 * config/i386/sse.md
24668 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24669 Extended to insnstructions with mask operands.
24670
24671 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24672
24673 * config/rs6000/constraints.md (define_register_constraint "wp"):
24674 Delete.
24675 (define_register_constraint "wq"): Delete.
24676 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24677 (rs6000_init_hard_regno_mode_ok): Adjust.
24678 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24679 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24680 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24681 (define_mode_attr VSa): Delete.
24682 (define_mode_attr VSisa): New.
24683 (rest of file): Adjust.
24684 * doc/md.texi (Machine Constraints): Adjust.
24685
24686 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24687
24688 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24689 (define_attr "enabled"): Handle those new isa values.
24690
24691 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24692
24693 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24694 (define_mode_attr VSr5): Delete.
24695 (define_mode_attr VStype_sqrt): Delete.
24696 (define_mode_iterator VSX_SPDP): Delete.
24697 (define_mode_attr VS_spdp_res): Delete.
24698 (define_mode_attr VS_spdp_insn): Delete.
24699 (define_mode_attr VS_spdp_type): Delete.
24700 (*vsx_sqrt<mode>2): Adjust.
24701 (vsx_<VS_spdp_insn>): Delete, split to...
24702 (vsx_xscvdpsp): ... this. New. And...
24703 (vsx_xvcvspdp): ... this. New. And...
24704 (vsx_xvcvdpsp): ... this. New.
24705
24706 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24707
24708 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24709 and V2DF.
24710 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24711 (rest of file): Adjust.
24712
24713 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24714
24715 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24716 (vsx_extract_<mode>_var): Ditto.
24717
24718 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24719
24720 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24721 with just "wa".
24722
24723 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24724
24725 * config/rs6000/constraints.md (define_register_constraint "ww"):
24726 Delete.
24727 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24728 (rs6000_init_hard_regno_mode_ok): Adjust.
24729 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24730 RS6000_CONSTRAINT_ww.
24731 * config/rs6000/rs6000.md: Adjust.
24732 * config/rs6000/vsx.md: Adjust.
24733 * doc/md.texi (Machine Constraints): Adjust.
24734
24735 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24736
24737 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24738 (define_mode_attr sd): New.
24739 (define_mode_attr s): New.
24740 (define_mode_attr Ftrad): Delete.
24741 (define_mode_attr Fvsx): Delete.
24742 (define_mode_attr Fs): Delete.
24743 (rest of file): Use the new mode attributes.
24744 * config.rs6000/vsx.md: Use the new mode attributes.
24745
24746 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24747
24748 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24749 with just "wa".
24750
24751 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24752
24753 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24754 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24755 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24756
24757 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24758
24759 PR target/78263
24760 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24761 C++ with strict ANSI requirements.
24762
24763 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24764
24765 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24766 computations when step is 1.
24767
24768 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24769
24770 * config/rs6000/constraints.md (define_register_constraint "wf"):
24771 Delete.
24772 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24773 (rs6000_init_hard_regno_mode_ok): Adjust.
24774 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24775 RS6000_CONSTRAINT_wf.
24776 * config/rs6000/rs6000.md: Adjust.
24777 * config/rs6000/vsx.md: Adjust.
24778 * doc/md.texi (Machine Constraints): Adjust.
24779
24780 2019-06-04 Andrew Pinski <apinski@marvell.com>
24781
24782 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24783 Fix ILP32 value.
24784
24785 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24786
24787 * config/rs6000/constraints.md (define_register_constraint "wd"):
24788 Delete.
24789 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24790 (rs6000_init_hard_regno_mode_ok): Adjust.
24791 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24792 RS6000_CONSTRAINT_wd.
24793 * config/rs6000/rs6000.md: Adjust.
24794 * config/rs6000/vsx.md: Adjust.
24795 * doc/md.texi (Machine Constraints): Adjust.
24796
24797 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24798
24799 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24800 (rest of file): Adjust.
24801
24802 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24803
24804 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24805 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24806 (vsx_splat_<mode>_reg): Adjust.
24807
24808 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24809
24810 * config/rs6000/constraints.md (define_register_constraint "ws"):
24811 Delete.
24812 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24813 (rs6000_init_hard_regno_mode_ok): Adjust.
24814 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24815 RS6000_CONSTRAINT_ws.
24816 * config/rs6000/rs6000.md: Adjust.
24817 * config/rs6000/vsx.md: Adjust.
24818 * doc/md.texi (Machine Constraints): Adjust.
24819
24820 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24821
24822 * config/rs6000/constraints.md (define_register_constraint "wv"):
24823 Delete.
24824 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24825 (rs6000_init_hard_regno_mode_ok): Adjust.
24826 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24827 RS6000_CONSTRAINT_wv.
24828 * config/rs6000/rs6000.md: Adjust.
24829 * config/rs6000/vsx.md: Adjust.
24830 * doc/md.texi (Machine Constraints): Adjust.
24831
24832 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24833
24834 * config/rs6000/constraints.md (define_register_constraint "wi"):
24835 Delete.
24836 (define_register_constraint "wt"): Delete.
24837 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24838 (rs6000_init_hard_regno_mode_ok): Adjust.
24839 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24840 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24841 * config/rs6000/rs6000.md: Adjust.
24842 * config/rs6000/vsx.md: Adjust.
24843 * doc/md.texi (Machine Constraints): Adjust.
24844
24845 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24846
24847 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24848 const.
24849 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24850 default_elf_asm_output_external.
24851
24852 2019-06-04 Martin Liska <mliska@suse.cz>
24853
24854 * ipa-icf.c (INCLUDE_LIST): Remove.
24855 (sem_item_optimizer::execute): Remove call to init_wpa.
24856 * ipa-icf.h (init_wpa): Remove.
24857
24858 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24859
24860 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24861 conditional on combined for simd.
24862 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24863 member.
24864 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24865 constructs, don't remove lastprivate_conditional_map, but instead set
24866 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24867 to parent construct temporaries.
24868 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24869 like !ctx->lastprivate_conditional_map.
24870 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24871 use up->outer context instead of up.
24872 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24873 gimple_omp_for_combined_p.
24874 (expand_omp_for_static_nochunk): Likewise.
24875 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24876 probably moved over into expand_omp_for_generic rather than being copied
24877 there.
24878
24879 2019-06-04 Martin Liska <mliska@suse.cz>
24880
24881 * value-prof.c (dump_histogram_value): Fix typo.
24882 (gimple_mod_subtract_transform): Likewise.
24883
24884 2019-06-04 Richard Biener <rguenther@suse.de>
24885
24886 PR middle-end/90726
24887 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24888 (tree_contains_chrecs): Likewise.
24889 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24890 exponential behaivor from ...
24891 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24892 ... here.
24893 (expression_expensive_p): Avoid exponential behavior and compute
24894 expanded size, rejecting any expansion.
24895 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24896 (idx_contains_abnormal_ssa_name_p): Likewise.
24897 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24898 (contains_abnormal_ssa_name_p): Simplify and use
24899 walk_tree_without_duplicates.
24900
24901 2019-06-04 Richard Biener <rguenther@suse.de>
24902
24903 PR tree-optimization/90738
24904 Revert
24905 2019-06-03 Richard Biener <rguenther@suse.de>
24906
24907 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24908 full reference tree and record in ref->ref.
24909 (vn_reference_lookup_3): Pass in original ref to
24910 ao_ref_init_from_vn_reference.
24911 (vn_reference_lookup): Likewise.
24912 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24913 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24914 Handle non-decl bases in the original reference.
24915
24916 2019-06-04 Martin Liska <mliska@suse.cz>
24917
24918 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24919 number of references.
24920 (sem_item_optimizer::do_congruence_step):
24921 (sem_item_optimizer::worklist_push): Dump how references
24922 a class has.
24923 (sem_item_optimizer::worklist_pop): Use heap.
24924 (sem_item_optimizer::process_cong_reduction): Likewise.
24925 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24926
24927 2019-06-04 Martin Liska <mliska@suse.cz>
24928
24929 * ipa-icf.h (struct sem_usage_pair_hash): New.
24930 (sem_usage_pair_hash::hash): Likewise.
24931 (sem_usage_pair_hash::equal): Likewise.
24932 (struct sem_usage_hash): Likewise.
24933 * ipa-icf.c (sem_item::sem_item): Initialize
24934 referenced_by_count.
24935 (sem_item::add_reference): Register a reference
24936 in ref_map and not in target->usages.
24937 (sem_item::setup): Remove initialization of
24938 dead vectors.
24939 (sem_item::~sem_item): Remove usage of dead vectors.
24940 (sem_item::dump): Remove dump of references.
24941 (sem_item_optimizer::sem_item_optimizer): Initialize
24942 m_references.
24943 (sem_item_optimizer::read_section): Remove useless
24944 dump.
24945 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24946 (sem_item_optimizer::build_graph): Pass m_references
24947 to ::add_reference.
24948 (sem_item_optimizer::verify_classes): Remove usage of dead
24949 vectors.
24950 (sem_item_optimizer::traverse_congruence_split): Return true
24951 when a class is split.
24952 (sem_item_optimizer::do_congruence_step_for_index): Use
24953 hash_map for look up of (sem_item *, index). That brings
24954 significant speed up.
24955 (sem_item_optimizer::do_congruence_step): Return true
24956 when a split is done.
24957 (congruence_class::is_class_used): Use referenced_by_count.
24958
24959 2019-06-04 Alan Modra <amodra@gmail.com>
24960
24961 PR target/90689
24962 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24963 error.
24964
24965 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24966
24967 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24968 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24969 (rs6000_secondary_reload_simple_move): Adjust.
24970 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24971 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24972 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24973 comment.
24974 (power6x): Adjust.
24975 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24976 (floatunssi<mode>2_lfiwzx): Adjust.
24977 (fix_trunc<mode>si2_stfiwx): Adjust.
24978 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24979 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24980 (mfpgpr): Mark as deprecated.
24981 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24982 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24983 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24984
24985 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24986
24987 * config/rs6000/constraints.md (define_register_constraint "wg"):
24988 Delete.
24989 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24990 RS6000_CONSTRAINT_wg.
24991 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24992 (rs6000_init_hard_regno_mode_ok): Adjust.
24993 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24994 Delete "wg" alternatives.
24995 * doc/md.texi (Machine Constraints): Adjust.
24996
24997 2019-06-03 Alan Modra <amodra@gmail.com>
24998
24999 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25000 (get_uncond_jump_length): Assert length less than INT_MAX and
25001 non-negative.
25002
25003 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25004
25005 PR middle-end/64242
25006 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25007 block.
25008 (expand_builtin_nonlocal_goto): Likewise.
25009
25010 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25011
25012 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25013 (aarch64_asm_output_external): Declare.
25014 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25015 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25016 (aarch64_asm_output_alias): New.
25017 (aarch64_asm_output_external): New.
25018 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25019 (ASM_OUTPUT_EXTERNAL): Define.
25020
25021 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25022 * tree-vrp.h (value_range_base::nonzero_p): New.
25023 (value_range_base::set_nonnull): Rename to...
25024 (value_range_base::set_nonzero): ...this.
25025 (value_range_base::set_null): Rename to...
25026 (value_range_base::set_zero): ...this.
25027 (value_range::set_nonnull): Remove.
25028 (value_range::set_null): Remove.
25029 * tree-vrp.c (range_is_null): Remove.
25030 (range_is_nonnull): Remove.
25031 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25032 instead of range_is_*null.
25033 (extract_range_from_unary_expr): Same.
25034 (value_range_base::set_nonnull): Rename to...
25035 (value_range_base::set_nonzero): ...this.
25036 (value_range::set_nonnull): Remove.
25037 (value_range_base::set_null): Rename to...
25038 (value_range_base::set_zero): ...this.
25039 (value_range::set_null): Remove.
25040 (extract_range_from_binary_expr): Rename set_*null uses to
25041 set_*zero.
25042 (extract_range_from_unary_expr): Same.
25043 (union_helper): Same.
25044 * vr-values.c (get_value_range): Use set_*zero instead of
25045 set_*null.
25046 (vr_values::extract_range_from_binary_expr): Same.
25047 (vr_values::extract_range_basic): Same.
25048
25049 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25050
25051 PR driver/90684
25052 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25053
25054 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25055
25056 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25057 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25058 Rename to...
25059 (aarch64_<su>abd<mode>_3): ... This.
25060 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25061
25062 2019-06-03 Richard Biener <rguenther@suse.de>
25063
25064 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25065 full reference tree and record in ref->ref.
25066 (vn_reference_lookup_3): Pass in original ref to
25067 ao_ref_init_from_vn_reference.
25068 (vn_reference_lookup): Likewise.
25069 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25070 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25071 Handle non-decl bases in the original reference.
25072
25073 2019-06-03 Martin Liska <mliska@suse.cz>
25074
25075 * doc/generic.texi: Remove Java Trees.
25076
25077 2019-06-03 Martin Liska <mliska@suse.cz>
25078
25079 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25080 returns 0 when operands are equal.
25081
25082 2019-06-03 Richard Biener <rguenther@suse.de>
25083
25084 PR tree-optimization/90716
25085 * tree-loop-distribution.c (destroy_loop): Process blocks in
25086 correct order.
25087
25088 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25089
25090 PR target/88837
25091 * vector-builder.h (vector_builder::count_dups): New method.
25092 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25093 Declare prototype.
25094 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25095 (vec_init<mode><Vel>): New pattern.
25096 * config/aarch64/aarch64.c (emit_insr): New function.
25097 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25098 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25099 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25100 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25101
25102 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25103
25104 PR tree-optimization/90681
25105 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25106 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25107 special case for SLP, but fail on non-groupped loads.
25108
25109 2019-06-03 Martin Liska <mliska@suse.cz>
25110
25111 * cfg.c (debug): Use TDF_DETAILS for debug and
25112 print edge info only once.
25113
25114 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25115
25116 PR fortran/90539
25117 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25118
25119 2019-06-01 Martin Sebor <msebor@redhat.com>
25120
25121 PR middle-end/90694
25122 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25123
25124 2019-05-31 Jan Hubicka <jh@suse.cz>
25125
25126 * alias.c: Include ipa-utils.h.
25127 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25128 * ipa-devirt.c (prevailing_odr_type): New.
25129 * ipa-utils.h (previaling_odr_type): Declare.
25130
25131 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25132 Hongtao Liu <hongtao.liu@intel.com>
25133
25134 PR target/89355
25135 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25136 NOTE_INSN_DELETED_LABEL check.
25137
25138 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25139 Robert Suchanek <robert.suchanek@mips.com>
25140
25141 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25142 and 3rd operands of the fmadd/fmsub/maddv builtin.
25143
25144 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25145
25146 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25147 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25148 on OMP_SIMD if not nested inside of worksharing loop that also has
25149 lastprivate conditional clause for the same decl.
25150 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25151 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25152 on simd.
25153 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25154 on simd construct.
25155 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25156 on simd construct.
25157 (lower_lastprivate_clauses): Likewise.
25158 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25159 calling lower_rec_input_clauses.
25160 (lower_omp_for): Likewise.
25161 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25162 clause on simd construct.
25163 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25164 OMP_CLAUSE__CONDTEMP_ clause is present.
25165
25166 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25167 ivar and lvar.
25168
25169 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25170
25171 PR c/43673
25172 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25173 TEX_D32, TEX_D64 or TEX_D128.
25174
25175 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25176
25177 * match.pd (~(vec?cst1:cst2)): New transformation.
25178
25179 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25180
25181 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25182 ((size_t)(A /[ex] B) CMP C): New transformation.
25183
25184 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25185
25186 * doc/md.texi: Document define_insn_and_rewrite.
25187 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25188 * gensupport.c (queue_elem): Update comment.
25189 (replace_operands_with_dups): New function.
25190 (gen_rewrite_sequence): Likewise.
25191 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25192 * read-rtl.c (apply_subst_iterator): Likewise.
25193 (add_condition_to_rtx, named_rtx_p): Likewise.
25194 (rtx_reader::read_rtx_operand): Likewise.
25195 * config/aarch64/aarch64-sve.md
25196 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25197 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25198 define_insn_and_rewrite.
25199 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25200 Remove separate define_split.
25201
25202 2019-05-31 Jan Hubicka <jh@suse.cz>
25203
25204 * tree-ssa-alias.c (type_has_components_p): New function.
25205 (aliasing_component_refs_p): Use it.
25206
25207 2019-05-31 Martin Liska <mliska@suse.cz>
25208
25209 * gdbhooks.py: Add const_tree to TreePrinter.
25210
25211 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25212
25213 PR debug/86964
25214 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25215 * doc/invoke.texi (Debugging Options): Document new default of
25216 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25217
25218 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25219
25220 PR tree-optimization/90671
25221 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25222 template_block used to be empty on the first call, don't use
25223 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25224 seq with bb_seq and set it with set_bb_seq.
25225
25226 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25227
25228 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25229
25230 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25231 Michael Meissner <meissner@linux.ibm.com>
25232
25233 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25234 (prefixed_mem_operand): Likewise.
25235 (non_prefixed_mem_operand): Likewise.
25236 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25237 prototype.
25238 * config/rs6000/rs6000.c (print_operand_address): Handle
25239 PC-relative addresses.
25240 (mode_supports_prefixed_address_p): New function.
25241 (rs6000_prefixed_address): New function.
25242 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25243 (SYMBOL_REF_PCREL_P): Likewise.
25244
25245 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25246
25247 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25248 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25249 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25250 is nested inside of parallel region, add _condtemp_ clause to both.
25251 * tree-nested.c (convert_nonlocal_omp_clauses,
25252 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25253 assertion failure.
25254 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25255 member.
25256 * omp-general.c (omp_extract_for_data): Compute it.
25257 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25258 (lower_rec_input_clauses): Likewise.
25259 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25260 clause is already present, just add one further one after it.
25261 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25262 (lower_send_shared_vars): Clear _condtemp_ vars.
25263 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25264 or section or taskgroup.
25265 * omp-expand.c (determine_parallel_type): Disallow combining only if
25266 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25267 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25268 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25269 expand_omp_for_static_chunk, expand_omp_for): Use
25270 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25271 determine if a special set of API routines are needed and if condtemp
25272 needs to be initialized, while always initialize cond_var if
25273 fd->lastprivate_conditional is non-zero.
25274
25275 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25276 Michael Meissner <meissner@linux.ibm.com>
25277
25278 * config/rs6000/constraints.md (eI): New constraint.
25279 * config/rs6000/predicates.md (cint34_operand): New predicate.
25280 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25281 (SIGNED_34BIT_OFFSET_P): Likewise.
25282 * doc/md.texi (eI): Document constraint.
25283
25284 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25285
25286 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25287
25288 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25289 Michael Meissner <meissner@linux.ibm.com>
25290
25291 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25292 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25293 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25294 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25295 (OTHER_FUTURE_MASKS): Likewise.
25296 (POWERPC_MASKS): Likewise.
25297 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25298 specified without -mprefixed-addr or -mcpu=future. Error if
25299 -mprefixed-addr is specified without -mcpu=future.
25300 (rs6000_opt_masks): Add entry for prefixed-addr.
25301 * rs6000.opt (mprefixed-addr): New option.
25302
25303 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25304
25305 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25306 cfun->is_thunk check.
25307
25308 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25309
25310 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25311 to length.
25312
25313 2019-05-30 Martin Liska <mliska@suse.cz>
25314
25315 * gdbinit.in: Fix 'ptc' command. Add trt
25316 that prints TREE_TYPE($).
25317
25318 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25319 Alan Modra <amodra@gmail.com>
25320
25321 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25322 calls here...
25323 (rs6000_indirect_call_template_1): ...and here.
25324 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25325 plt16_ha, plt16_lo, mtctr indirect calls. Use
25326 rs6000_pltseq_enum.
25327 (rs6000_decl_ok_for_sibcall): New function.
25328 (rs6000_function_ok_for_sibcall): Refactor.
25329 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25330 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25331 when pcrel. Reorganize.
25332 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25333 * rs6000.h (rs6000_pltseq_enum): New enum.
25334 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25335 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25336 (*pltseq_plt16_ha): Likewise.
25337 (*pltseq_plt16_lo): Likewise.
25338 (*pltseq_mtctr): Likewise.
25339 (*pltseq_plt_pcrel): New insn.
25340 (*call_local_aix): Handle @notoc calls.
25341 (*call_value_local_aix): Likewise.
25342 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25343 (*call_value_nonlocal_aix): Likewise.
25344 (*call_indirect_pcrel): New insn.
25345 (*call_value_indirect_pcrel): Likewise.
25346
25347 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25348
25349 * config/i386/sse.md (*save_multiple<mode>): Rename from
25350 save_multiple<mode>.
25351 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25352 (*restore_multiple_and_return<mode>): Rename from
25353 restore_multiple_and_return<mode>.
25354 (*restore_multiple_leave_return<mode>): Rename from
25355 restore_multiple_leave_return<mode>.
25356
25357 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25358
25359 * config.gcc (rx-*-linux*): New target.
25360 * config/rx/elf.opt: New file.
25361 * config/rx/linux.h: Likewise.
25362 * config/rx/t-linux: Likewise.
25363 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25364 make it zero.
25365 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25366 (ASM_APP_OFF): Likewise.
25367 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25368 moved elsewhere.
25369
25370 2019-05-29 Jan Hubicka <jh@suse.cz>
25371
25372 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25373 variants are pointer equivalent.
25374
25375 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25376
25377 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25378 * config/aarch64/aarch64-sve2.md: New file.
25379 (<u>avg<mode>3_floor): New pattern.
25380 (<u>avg<mode>3_ceil): Likewise.
25381 (*<sur>h<addsub><mode>): Likewise.
25382 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25383 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25384
25385 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25386
25387 PR bootstrap/90543
25388 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25389 for var_opt_string printing. In cl_optimization_print_diff, print
25390 (null) instead of invoking undefined behavior if one of the
25391 var_opt_string pointers is NULL and use && instead of first || in the
25392 guarding condition. For var_target_other options, handle const char *
25393 target variables similarly to const char * optimize node variables.
25394
25395 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25396
25397 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25398 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25399 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25400 Add autib1716 and pacib1716 initialisation.
25401 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25402 for autib1716 and pacib1716.
25403 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25404 aarch64_post_cfi_startproc): Define.
25405 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25406 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25407 aarch64_handle_pac_ret_protection): Set default sign key to A.
25408 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25409 aarch64_expand_prologue): Add check for b-key.
25410 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25411 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25412 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25413 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25414 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25415 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25416 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25417 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25418 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25419 pauth_hint_num_a with pauth_hint_num.
25420 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25421 pauth_hint_num_a with pauth_hint_num.
25422 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25423 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25424 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25425 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25426 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25427 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25428 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25429 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25430 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25431 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25432 UNSPEC_AUTIA1716 respectively.
25433 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25434 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25435 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25436 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25437 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25438 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25439
25440 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25441
25442 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25443 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25444 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25445 explicit clause on combined parallel into implicit shared clause.
25446 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25447 and firstprivate if the decl has one too from combined parallel to
25448 the worksharing construct.
25449
25450 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25451 Michael Meissner <meissner@linux.ibm.com>
25452
25453 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25454
25455 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25456
25457 * rtl.h (LABEL_REF_P): New #define.
25458
25459 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25460
25461 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25462
25463 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25464
25465 * internal-fn.c: Marked mask_load_direct as vectorizable.
25466 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25467 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25468 combined even if masks different with allow_slp_p param.
25469 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25470 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25471 dissolve SLP-only vectorizable groups when SLP has been discarded.
25472 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25473 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25474 masks.
25475 (vect_build_slp_tree_1): Fixed comment typo.
25476 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25477 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25478 loads for SLP only.
25479 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25480 vectorizable.
25481 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25482
25483 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25484
25485 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25486 Remove obsolete use_thunk reference.
25487 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25488 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25489 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25490 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25491 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25492 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25493 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25494 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25495 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25496
25497 2019-05-28 Nathan Sidwell <nathan@acm.org>
25498
25499 * tree.h (IDENTIFIER_ANON_P): New.
25500 (anon_aggrname_format, anon_aggname_p): Don't declare.
25501 (make_anon_name): Declare.
25502 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25503 (hash_tree): Likewise.
25504 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25505 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25506 (anon_cnt, make_anon_name): New.
25507
25508 2019-05-28 Martin Liska <mliska@suse.cz>
25509
25510 PR other/90315
25511 * opts-global.c (decode_options): Print help for all
25512 help_option_arguments.
25513 * opts.c (print_help): Add new argument.
25514 (common_handle_option): Remember all values into
25515 help_option_arguments.
25516 * opts.h (print_help): Add new argument.
25517
25518 2019-05-28 Martin Liska <mliska@suse.cz>
25519
25520 PR ipa/90555
25521 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25522 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25523 (func_checker::compare_bb): Call compare_loops.
25524
25525 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25526
25527 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25528 on sections construct.
25529 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25530 construct.
25531 (lower_omp_sections): Handle lastprivate conditional.
25532 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25533 lastprivate_conditional_map.
25534 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25535
25536 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25537 critical, taskgroup and section regions when looking for a region
25538 with non-NULL lastprivate_conditional_map.
25539
25540 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25541
25542 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25543 (*ix86_gen_sub3): Ditto.
25544 (*ix86_gen_sub3_carry): Ditto.
25545 (*ix86_gen_one_cmpl2): Ditto.
25546 (*ix86_gen_andsp): Ditto.
25547 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25548 (gen_and2_insn): New static function.
25549 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25550 Use gen_add3_insn instead of ix86_gen_add3.
25551 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25552 instead of ix86_gen_add3.
25553 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25554 Use gen_sub3_insn instead of ix86_gen_sub3.
25555 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25556 instead of ix86_gen_add3.
25557 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25558 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25559 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25560 * config/i386/i386-options.c (ix86_option_override_internal):
25561 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25562 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25563
25564 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25565
25566 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25567 and DW_OP_GNU_const_index opcodes.
25568
25569 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25570
25571 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25572
25573 2019-05-27 Richard Biener <rguenther@suse.de>
25574
25575 PR tree-optimization/90637
25576 * tree-ssa-sink.c (statement_sink_location): Honor the
25577 computed sink location for single-uses.
25578
25579 2019-05-27 Richard Biener <rguenther@suse.de>
25580
25581 PR middle-end/90610
25582 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25583 a bit-insert.
25584
25585 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25586
25587 * config/i386/i386.md (@sub<mode>3_carry): Rename
25588 from sub<mode>3_carry.
25589 (@leave_<mode>): New expander.
25590 (*leave): Rename from leave.
25591 (*leave_rex64): Rename from leave_rex64.
25592 (@monitorx_<mode>): Rename from monitorx_<mode>.
25593 (@clzero_<mode>): Rename from clzero_<mode>.
25594 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25595 from sse3_monitor_<mode>.
25596 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25597 (*ix86_gen_leave): Ditto.
25598 (*ix86_gen_monitor): Ditto.
25599 (*ix86_gen_monitorx): Ditto.
25600 (*ix86_gen_clzero): Ditto.
25601 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25602 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25603 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25604 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25605 Use gen_sse3_monitor instead of ix86_gen_monitor.
25606 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25607 instead of ix86_gen_monitorx.
25608 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25609 instead of ix86_gen_clzero.
25610 * config/i386/i386-options.c (ix86_option_override_internal):
25611 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25612 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25613
25614 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25615
25616 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25617 Rename from tls_global_dynamic_64_<mode>.
25618 (@tls_local_dynamic_base_64_<mode>): Rename from
25619 tls_local_dynamic_base_64_<mode>.
25620 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25621 Remove indirect function.
25622 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25623 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25624 instead of ix86_gen_tls_global_dynamic_64.
25625 Use gen_tls_local_dynamic_base_64 instead of
25626 ix86_gen_tls_local_dynamic_base_64.
25627 * config/i386/i386-options.c (ix86_option_override_internal):
25628 Do not initialize ix86_gen_tls_global_dynamic_64 and
25629 ix86_gen_tls_local_dynamic_base_64.
25630
25631 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25632
25633 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25634 Rename from pro_epilogue_adjust_stack_<mode>_add.
25635 (@pro_epilogue_adjust_stack_sub_<mode>)
25636 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25637 (@allocate_stack_worker_probe_<mode>):
25638 Rename from allocate_stack_worker_probe_<mode>.
25639 (allocate_stack): Use gen_allocate_stack_worker_probe.
25640 (probe_stack): Use gen_probe_stack_1.
25641 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25642 (@adjust_stack_and_probe_<mode>): Rename from
25643 adjust_stack_and_probe<mode>.
25644 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25645 (stack_protect_set): Use gen_stack_protect_set_1.
25646 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25647 (stack_protect_test): Use gen_stack_protect_test_1.
25648 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25649 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25650 Remove indirect function.
25651 (*ix86_gen_adjust_stack_and_probe): Ditto.
25652 (*ix86_gen_probe_stack_range): Ditto.
25653 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25654 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25655 (ix86_adjust_stack_and_probe_stack_clash): Use
25656 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25657 (ix86_adjust_stack_and_probe): Ditto.
25658 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25659 of ix86_gen_probe_stack_range.
25660 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25661 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25662 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25663 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25664 CODE_FOR_stack_protect_test_{si,di}.
25665 * config/i386/i386-options.c (ix86_option_override_internal):
25666 Do not initialize ix86_gen_allocate_stack_worker,
25667 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25668
25669 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25670
25671 * doc/invoke.texi (Link Options): Many editorial changes around
25672 -flinker-output.
25673
25674 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25675
25676 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25677 pre-Solaris 11 referene and most Studio compiler details.
25678
25679 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25680
25681 PR target/90530
25682 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25683 DImode to SImode in floating-point registers on 64-bit target.
25684 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25685 register_operand in xmpyu patterns.
25686
25687 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25688
25689 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25690 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25691 OMP_CLAUSE__REDUCTEMP_.
25692 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25693 OMP_CLAUSE__CONDTEMP_.
25694 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25695 * tree-pretty-print.c (dump_omp_clause): Likewise.
25696 * tree-nested.c (convert_nonlocal_omp_clauses,
25697 convert_local_omp_clauses): Likewise.
25698 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25699 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25700 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25701 on OMP_FOR.
25702 (gimplify_omp_for): Warn and disable conditional modifier from
25703 lastprivate on loop iterators.
25704 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25705 member.
25706 * omp-general.c (omp_extract_for_data): Initialize it.
25707 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25708 member.
25709 (delete_omp_context): Delete it.
25710 (lower_lastprivate_conditional_clauses): New function.
25711 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25712 handle lastprivate conditional clauses.
25713 (lower_reduction_clauses): Add CLIST argument, emit it into
25714 the critical section if any.
25715 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25716 lower_reduction_clauses callers.
25717 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25718 to lower_lastprivate_clauses.
25719 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25720 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25721 clist into a critical section if not emitted there already by
25722 lower_reduction_clauses.
25723 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25724 callers.
25725 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25726 conditional variables.
25727 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25728 clause is present.
25729 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25730 expand_omp_for_static_chunk): Handle lastprivate conditional.
25731 (expand_omp_for): Handle fd.lastprivate_conditional like
25732 fd.have_reductemp.
25733
25734 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25735
25736 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25737 kernel does not exit cleanly.
25738 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25739
25740 2019-05-24 Jason Merrill <jason@redhat.com>
25741
25742 Revert:
25743 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25744
25745 2019-05-24 Richard Biener <rguenther@suse.de>
25746
25747 PR testsuite/90607
25748 * tree-loop-distribution.c (struct partition): Add location
25749 member.
25750 (partition_alloc): Initialize all fields.
25751 (generate_memset_builtin): Use the location recorded in the
25752 partition for the generated call.
25753 (generate_memcpy_builtin): Likewise.
25754 (classify_partition): Record the location of a single store
25755 as location for the partition.
25756
25757 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25758
25759 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25760 for lo-part.
25761
25762 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25763
25764 PR target/90588
25765 * common/config/aarch64/aarch64-common.c
25766 (aarch64_rewrite_selected_cpu): Change local temporary variable
25767 type from unsigned long to uint64_t.
25768 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25769 aarch64_get_extension_string_for_isa_flags): Change declaration to
25770 match new definition by replacing unsigned long with uint64_t.
25771
25772 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25773
25774 PR target/90568
25775 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25776 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25777 Handle stack_protect_test_<mode> codegen similarly to corresponding
25778 sub instruction.
25779
25780 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25781
25782 * config/i386/darwin.h: Reject -mfentry*.
25783 * doc/sourcebuild.texi: Document mfentry target support.
25784
25785 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25786
25787 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25788 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25789 false for PC-relative functions.
25790 (rs6000_output_function_prologue): Change called function name to
25791 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25792 name,1" for PC-relative functions.
25793 (rs6000_elf_declare_function_name): Change called function name to
25794 rs6000_global_entry_point_prologue_needed_p.
25795
25796 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25797
25798 PR target/90552
25799 * config/i386/i386.c (gen_rtx_cost):
25800 Use ix86_tune_cost instead of ix86_cost.
25801
25802 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25803 Michael Meissner <meissner@linux.ibm.com>
25804 Segher Boessenkool <segher@kernel.crashing.org>
25805
25806 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25807 OPTION_MASK_PCREL.
25808 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25809 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25810 (rs6000_fndecl_pcrel_p): Likewise.
25811 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25812 error if -mpcrel is requested without -mcpu=future.
25813 (rs6000_opt_masks): Add entry for pcrel.
25814 (rs6000_fndecl_pcrel_p): New function.
25815 (rs6000_pcrel_p): Likewise.
25816 * config/rs6000/rs6000.opt (mpcrel): New option.
25817 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25818
25819 2019-05-23 Jan Hubicka <jh@suse.cz>
25820 Martin Liska <mliska@suse.cz>
25821
25822 PR tree-optimization/90576
25823 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25824 poly_int_tree_p.
25825 (aliasing_component_refs_p): Fix three way size compare conditional;
25826 give up earlier in case we can not decide on equivalence.
25827
25828 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25829 Michael Meissner <meissner@linux.ibm.com>
25830 Segher Boessenkool <segher@kernel.crashing.org>
25831
25832 * config.gcc: Add future cpu.
25833 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25834 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25835 #define.
25836 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25837 (RS6000_CPU): New instantiation for future cpu.
25838 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25839 PROCESSOR_FUTURE.
25840 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25841 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25842 * config/rs6000/rs6000-tables.opt: Regenerate.
25843 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25844 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25845 (rs6000_machine_from_flags): Handle future cpu.
25846 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25847 PROCESSOR_POWER9 for now.
25848 (rs6000_adjust_cost): Likewise.
25849 (rs6000_issue_rate): Likewise.
25850 (rs6000_register_move_cost): Likewise.
25851 (rs6000_opt_masks): Add entry for future.
25852 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25853 (MASK_FUTURE): New #define.
25854 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25855 * config/rs6000/rs6000.opt (mfuture): New target option.
25856 * doc/invoke.texi (mcpu): Add future cpu.
25857
25858 2019-05-23 Martin Liska <mliska@suse.cz>
25859
25860 PR c++/90587
25861 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25862 operation points to a temporary (pointed via tree_to_wide_ref)
25863 that is out of scope after the &.
25864
25865 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25866
25867 PR c++/90592
25868 * doc/extend.texi (Function Names): Add missing word.
25869
25870 2019-05-23 Richard Biener <rguenther@suse.de>
25871
25872 PR tree-optimization/88440
25873 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25874 at -O[2s]+.
25875 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25876 generated call.
25877 (generate_memcpy_builtin): Likewise.
25878 (distribute_loop): Pass in whether to only distribute patterns.
25879 (prepare_perfect_loop_nest): Also allow size optimization.
25880 (pass_loop_distribution::execute): When optimizing a loop
25881 nest for size allow pattern replacement.
25882
25883 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25884
25885 PR target/90568
25886 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25887 of xor.
25888
25889 2019-05-23 Martin Liska <mliska@suse.cz>
25890
25891 PR sanitizer/90570
25892 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25893 expression similarly to gimplify_decl_expr.
25894
25895 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25896
25897 * cse.c (cse_dump_path): s/dump_file/f.
25898
25899 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25900
25901 PR c++/90462
25902 * diagnostic-format-json.cc: Include "selftest.h".
25903 (json_from_expanded_location): Only add "file" key for non-NULL
25904 file strings.
25905 (json_from_location_range): Don't add "start" and "finish"
25906 children if they are UNKNOWN_LOCATION.
25907 (selftest::test_unknown_location): New selftest.
25908 (selftest::test_bad_endpoints): New selftest.
25909 (selftest::diagnostic_format_json_cc_tests): New function.
25910 * json.cc (json::object::get): New function.
25911 (selftest::test_object_get): New selftest.
25912 (selftest::json_cc_tests): Call it.
25913 * json.h (json::object::get): New decl.
25914 * selftest-run-tests.c (selftest::run_tests): Call
25915 selftest::diagnostic_format_json_cc_tests.
25916 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25917 decl.
25918
25919 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25920 Andrew Stubbs <amd@codesourcery.com>
25921
25922 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25923 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25924 (kernel): Rename to...
25925 (main_kernel): ... this.
25926 (load_image): Load _init_array and _fini_array kernels.
25927 (run): Add argument for kernel to run.
25928 (main): Run init_array_kernel before main_kernel, and
25929 fini_array_kernel after.
25930 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25931 amdgpu_hsa_kernel attribute on functions.
25932 (gcn_disable_constructors): Delete.
25933 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25934 * config/gcn/crt0.c (size_t): Define.
25935 (_init_array, _fini_array): New.
25936 (__preinit_array_start, __preinit_array_end,
25937 __init_array_start, __init_array_end,
25938 __fini_array_start, __fini_array_end): Declare weak references.
25939
25940 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25941
25942 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25943
25944 2019-05-22 Jason Merrill <jason@redhat.com>
25945
25946 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25947
25948 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25949
25950 PR target/88483
25951 * config/i386/i386-options.c (ix86_init_machine_status): Set
25952 stack_frame_required to true.
25953 * config/i386/i386.c (ix86_get_frame_size): New function.
25954 (ix86_frame_pointer_required): Replace get_frame_size with
25955 ix86_get_frame_size.
25956 (ix86_compute_frame_layout): Likewise.
25957 (ix86_find_max_used_stack_alignment): Changed to void. Set
25958 stack_frame_required.
25959 (ix86_finalize_stack_frame_flags): Always call
25960 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25961 ix86_get_frame_size.
25962 * config/i386/i386.h (machine_function): Add stack_frame_required.
25963
25964 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25965
25966 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25967
25968 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25969
25970 * common/config/aarch64/aarch64-common.c
25971 (struct aarch64_option_extension, struct processor_name_to_arch,
25972 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25973 aarch64_contains_opt,
25974 aarch64_get_extension_string_for_isa_flags): Change type of
25975 variables storing flags to uint64_t.
25976 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25977 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25978 * config/aarch64/aarch64.c (struct processor,
25979 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25980 aarch64_validate_march, aarch64_override_options,
25981 aarch64_option_print, aarch64_handle_attr_isa_flags,
25982 aarch64_declare_function_name, aarch64_start_file): Make flag
25983 variables uint64_t.
25984 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25985 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25986 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25987 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25988 * config/aarch64/driver-aarch64.c
25989 (struct aarch64_arch_extension, struct aarch64_core_data,
25990 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25991 flag variables uint64_t.
25992 * doc/invoke.texi: Add documentation for new arguments.
25993
25994 2019-05-22 Richard Biener <rguenther@suse.de>
25995
25996 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25997 rewrite ...
25998 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25999
26000 2019-05-22 Martin Liska <mliska@suse.cz>
26001
26002 PR lto/90500
26003 * doc/extend.texi: Document the change.
26004
26005 2019-05-22 Richard Biener <rguenther@suse.de>
26006
26007 PR tree-optimization/90450
26008 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26009 (mem_ref_hasher::equal): Check it.
26010 (mem_ref_alloc): Initialize it.
26011 (gather_mem_refs_stmt): Set it.
26012
26013 2019-05-22 Richard Biener <rguenther@suse.de>
26014
26015 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26016 Add ABS_EXPR.
26017 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26018 as ABSU_EXPR.
26019
26020 2019-05-22 Alan Modra <amodra@gmail.com>
26021
26022 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26023 (ASM_CPU_SPEC): Conditionally add -many.
26024 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26025 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26026 (rs6000_file_start): ..extracted from here, and modified to
26027 test all ISA bits.
26028 (rs6000_output_function_prologue): Emit .machine as necessary.
26029
26030 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26031
26032 PR middle-end/90553
26033 * ira-lives.c (process_bb_node_lives): Consider defs
26034 for a call insn to be die before the call, not after.
26035
26036 * function.c (assign_parm_setup_block): Raise alignment of
26037 stacked parameter only for STRICT_ALIGNMENT targets.
26038
26039 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26040
26041 * config/rs6000/constraints.md (define_register_constraint "wz"):
26042 Delete.
26043 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26044 RS6000_CONSTRAINT_wz.
26045 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26046 (rs6000_init_hard_regno_mode_ok): Adjust.
26047 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26048 * doc/md.texi (Machine Constraints): Adjust.
26049
26050 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26051
26052 * config/rs6000/constraints.md (define_register_constraint "wl"):
26053 Delete.
26054 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26055 RS6000_CONSTRAINT_wl.
26056 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26057 (rs6000_init_hard_regno_mode_ok): Adjust.
26058 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26059 * doc/md.texi (Machine Constraints): Adjust.
26060
26061 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26062
26063 * config/rs6000/constraints.md (define_register_constraint "wm"):
26064 Delete.
26065 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26066 RS6000_CONSTRAINT_wm.
26067 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26068 (rs6000_init_hard_regno_mode_ok): Adjust.
26069 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26070 * doc/md.texi (Machine Constraints): Adjust.
26071
26072 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26073
26074 * config/rs6000/constraints.md (define_register_constraint "wk"):
26075 Delete.
26076 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26077 RS6000_CONSTRAINT_wk.
26078 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26079 (rs6000_init_hard_regno_mode_ok): Adjust.
26080 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26081 * doc/md.texi (Machine Constraints): Adjust.
26082
26083 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26084
26085 * config/rs6000/constraints.md (define_register_constraint "wj"):
26086 Delete.
26087 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26088 RS6000_CONSTRAINT_wj.
26089 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26090 (rs6000_init_hard_regno_mode_ok): Adjust.
26091 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26092 (VS_64dm): Delete.
26093 * config/rs6000/vsx.md: Ditto.
26094 * doc/md.texi (Machine Constraints): Adjust.
26095
26096 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26097
26098 * config/rs6000/constraints.md (define_register_constraint "wh"):
26099 Delete.
26100 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26101 RS6000_CONSTRAINT_wh.
26102 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26103 (rs6000_init_hard_regno_mode_ok): Adjust.
26104 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26105 * doc/md.texi (Machine Constraints): Adjust.
26106
26107 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26108
26109 PR target/90547
26110 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26111 Avoid calling gen_lowpart with CONST operand.
26112
26113 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26114
26115 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26116 field template_last_to_copy.
26117 (ssa_create_duplicates): Set it, and use it. Attempt to
26118 preserve more debug stmts.
26119
26120 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26121
26122 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26123 (signbit<mode>2): New expander
26124
26125 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26126
26127 PR bootstrap/87338
26128 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26129 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26130
26131 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26132
26133 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26134 %ebx and %ecx bafore calling cpuid with leaf 1 or
26135 non-constant leaf argument.
26136
26137 2019-05-21 Alan Modra <amodra@gmail.com>
26138
26139 PR target/90545
26140 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26141 power9 direct move cost.
26142
26143 2019-05-21 Richard Biener <rguenther@suse.de>
26144
26145 PR middle-end/90510
26146 * fold-const.c (fold_read_from_vector): New function.
26147 * fold-const.h (fold_read_from_vector): Declare.
26148 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26149 single-element insert permutations. Canonicalize selector
26150 further and fix issue with last commit.
26151
26152 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26153
26154 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26155 parameter with default value false to declaration.
26156 (split_edges_for_insertion): New inline function. Wrapper for
26157 split_critical_edges with for_edge_insertion_p = true.
26158 * tree-cfg.c (split_critical_edges): Don't split non-critical
26159 edges if for_edge_insertion_p is false. Fix whitespace.
26160 * tree-ssa-pre.c (pass_pre::execute): Call
26161 split_edges_for_insertion instead of split_critical_edges.
26162 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26163 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26164 (pass_data_sink_code): Update function name in the comment.
26165
26166 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26167
26168 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26169 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26170 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26171 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26172 positives.
26173
26174 2019-05-21 Martin Liska <mliska@suse.cz>
26175
26176 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26177 an extra newline.
26178 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26179 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26180 vec_lvsr.
26181 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26182 Quote a C type.
26183 (rs6000_function_arg): Likewise.
26184 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26185 (rs6000_expand_ternop_builtin): Use interval syntax.
26186 (get_element_number): Likewise.
26187 (altivec_expand_builtin): Likewise.
26188 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26189
26190 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26191
26192 PR c++/59813
26193 PR target/90418
26194 * function.h (struct function): Add calls_eh_return member.
26195 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26196 gimplifying __builtin_eh_return call.
26197 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26198 to cfun.
26199 (expand_call_inline): Or in src_cfun->calls_eh_return into
26200 dst_cfun->calls_eh_return.
26201 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26202 cfun->calls_eh_return.
26203 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26204 * lto-streamer-out.c (output_struct_function_base): Write
26205 calls_eh_return.
26206
26207 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26208
26209 PR rtl-optimization/43147
26210 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26211 IX86_BUILTIN_SHUFPD.
26212
26213 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26214
26215 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26216 (refs_may_alias_p_1): ... here; update stats.
26217 (refs_may_alias_p): Do not update stats here.
26218
26219 2019-05-20 Richard Biener <rguenther@suse.de>
26220
26221 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26222 doesn't produce pointers.
26223 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26224 the first operand points to.
26225
26226 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26227
26228 * tree-ssa-alias.c (compare_sizes): New function.
26229 (sompare_type_sizes): New function
26230 (aliasing_component_refs_p): Use it.
26231 (indirect_ref_may_alias_decl_p): Likewise.
26232
26233 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26234
26235 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26236
26237 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26238
26239 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26240 (LIBLSAN_EARLY_SPEC): Likewise.
26241 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26242
26243 2019-05-20 Martin Liska <mliska@suse.cz>
26244
26245 * config/i386/i386.c (ix86_libc_has_fast_function):
26246 Add ATTRIBUTE_UNUSED for the argument.
26247
26248 2019-05-20 Richard Biener <rguenther@suse.de>
26249
26250 * gimple-match-head.c: Include vec-perm-indices.h.
26251 * generic-match-head.c: Likewise.
26252 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26253 is included.
26254 * fold-const.c (fold_vec_perm): Export.
26255 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26256 (match.pd): ...here.
26257
26258 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26259
26260 * cfgloop.h (struct loop): Add simdlen member.
26261 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26262 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26263 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26264 as new argument to autovectorize_vector_sizes target hook. If
26265 loop->simdlen, pick up vector size where the vectorization factor
26266 is equal to loop->simd, and if there is none, fall back to the first
26267 successful one.
26268 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26269 caller.
26270 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26271 * omp-general.c (omp_max_vf): Likewise.
26272 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26273 * tree-vect-slp.c (vect_slp_bb): Likewise.
26274 * target.def (autovectorize_vector_sizes): Add ALL argument and
26275 document it.
26276 * doc/tm.texi: Adjust documentation.
26277 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26278 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26279 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26280 bool argument.
26281 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26282 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26283 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26284 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26285 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26286 preferred vector size is not 512-bit or 256-bit, just put those
26287 unpreferred ones last.
26288
26289 2019-05-20 Martin Liska <mliska@suse.cz>
26290
26291 * targhooks.c (default_libc_has_fast_function): New function.
26292 * targhooks.h (default_libc_has_fast_function): Likewise.
26293
26294 2019-05-20 Martin Liska <mliska@suse.cz>
26295
26296 PR middle-end/90263
26297 * builtins.c (expand_builtin_memory_copy_args): When having a
26298 target with fast mempcpy implementation do now use memcpy.
26299 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26300 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26301 * doc/tm.texi: Likewise.
26302 * doc/tm.texi.in: Likewise.
26303 * target.def:
26304 * expr.c (emit_block_move_hints): Add 2 new arguments.
26305 * expr.h (emit_block_move_hints): Bail out when libcall
26306 to memcpy would be used.
26307
26308 2019-05-20 Martin Liska <mliska@suse.cz>
26309
26310 * profile-count.c: Add vertical spacing in order
26311 to separate functions.
26312 * profile-count.h: Likewise.
26313
26314 2019-05-20 Martin Liska <mliska@suse.cz>
26315
26316 * profile-count.h: Do not use full qualified
26317 names if possible.
26318 * profile-count.c (profile_count::to_frequency): Likewise.
26319
26320 2019-05-20 Martin Liska <mliska@suse.cz>
26321
26322 * profile-count.h (enum profile_quality): Use capital letters
26323 for enum value names. Use the adjusted names.
26324 * profile-count.c: Use the adjusted names.
26325
26326 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26327
26328 * config/rs6000/constraints.md (define_register_constraint "wH"):
26329 Delete.
26330 (define_register_constraint "wI"): Delete.
26331 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26332 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26333 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26334 (rs6000_init_hard_regno_mode_ok): Adjust.
26335 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26336 resp. "d", or with "wa" as appropriate, all with "p8v".
26337 * config/rs6000/vsx.md: Ditto.
26338 * doc/md.texi (Machine Constraints): Adjust.
26339
26340 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26341
26342 * config/rs6000/constraints.md (define_register_constraint "wy"):
26343 Delete.
26344 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26345 RS6000_CONSTRAINT_wy.
26346 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26347 (rs6000_init_hard_regno_mode_ok): Adjust.
26348 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26349 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26350 (define_mode_attr Fisa): New.
26351 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26352 * doc/md.texi (Machine Constraints): Adjust.
26353
26354 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26355
26356 * config/rs6000/constraints.md (define_register_constraint "wu"):
26357 Delete.
26358 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26359 RS6000_CONSTRAINT_wu.
26360 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26361 (rs6000_init_hard_regno_mode_ok): Adjust.
26362 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26363 both with "p8v".
26364 (define_mode_attr Fa): Delete.
26365 * config/rs6000/vsx.md: Ditto.
26366 * doc/md.texi (Machine Constraints): Adjust.
26367
26368 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26369
26370 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26371 Delete.
26372 (define_register_constraint "wK"): Delete.
26373 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26374 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26375 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26376 (rs6000_init_hard_regno_mode_ok): Adjust.
26377 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26378 Replace "wK" constraint by "wH" with "p9v".
26379 * config/rs6000/vsx.md: Ditto.
26380 * doc/md.texi (Machine Constraints): Adjust.
26381
26382 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26383
26384 * config/rs6000/constraints.md (define_register_constraint "wb"):
26385 Delete.
26386 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26387 RS6000_CONSTRAINT_wb.
26388 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26389 (rs6000_init_hard_regno_mode_ok): Adjust.
26390 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26391 * config/rs6000/vsx.md: Ditto.
26392 * doc/md.texi (Machine Constraints): Adjust.
26393
26394 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26395
26396 * config/rs6000/constraints.md (define_register_constraint "wo"):
26397 Delete.
26398 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26399 RS6000_CONSTRAINT_wo.
26400 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26401 (rs6000_init_hard_regno_mode_ok): Adjust.
26402 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26403 * config/rs6000/altivec.md: Ditto.
26404 * doc/md.texi (Machine Constraints): Adjust.
26405
26406 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26407
26408 * config/darwin-c.c (darwin_register_objc_includes): Do not
26409 prepend the sysroot when building gnu-runtime header search
26410 paths.
26411
26412 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26413
26414 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26415 instead of direct output of the asm.
26416
26417 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26418
26419 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26420 argument to be type bool (was int before).
26421 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26422 at first use. Use type bool for some variables. Fix a theoretical
26423 eh_return bug for svr4.
26424
26425 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26426
26427 * config/rs6000/rs6000.md (isa): New attribute.
26428 (enabled): New attribute.
26429
26430 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26431
26432 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26433 assemble_start_function and assemble_end_function.
26434
26435 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26436
26437 PR middle-end/89433
26438 * omp-general.c (oacc_verify_routine_clauses): Change formal
26439 parameters. Add checking if already marked with an OpenACC
26440 'routine' directive. Adjust all users.
26441
26442 PR middle-end/89433
26443 * omp-general.c (oacc_build_routine_dims): Move some of its
26444 processing into...
26445 (oacc_verify_routine_clauses): ... this new function.
26446 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26447
26448 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26449
26450 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26451 formating of picbase labels to match other ports.
26452
26453 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26454
26455 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26456 in the generated code.
26457
26458 2019-05-16 Martin Sebor <msebor@redhat.com>
26459
26460 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26461 identifiers, keywords, operators, and types in diagnostics. Correct
26462 quoting, spelling, and sentence capitalization issues.
26463 (expand_builtin_atomic_is_lock_free): Same.
26464 (fold_builtin_next_arg): Same.
26465 * cfgexpand.c (expand_one_var): Same.
26466 (tree_conflicts_with_clobbers_p): Same.
26467 (expand_asm_stmt): Same.
26468 (verify_loop_structure): Same.
26469 * cgraphunit.c (process_function_and_variable_attributes): Same.
26470 * collect-utils.c (collect_execute): Same.
26471 * collect2.c (maybe_run_lto_and_relink): Same.
26472 (is_lto_object_file): Same.
26473 (scan_prog_file): Same.
26474 * convert.c (convert_to_real_1): Same.
26475 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26476 * except.c (verify_eh_tree): Same.
26477 * gcc.c (execute): Same.
26478 (eval_spec_function): Same.
26479 (run_attempt): Same.
26480 (driver::set_up_specs): Same.
26481 (compare_debug_auxbase_opt_spec_function): Same.
26482 * gcov-tool.c (unlink_gcda_file): Same.
26483 (do_merge): Same.
26484 (do_rewrite): Same.
26485 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26486 * gimplify.c (gimplify_asm_expr): Same.
26487 (gimplify_adjust_omp_clauses): Same.
26488 * hsa-gen.c (gen_hsa_addr_insns): Same.
26489 (gen_hsa_insns_for_load): Same.
26490 (gen_hsa_cmp_insn_from_gimple): Same.
26491 (gen_hsa_insns_for_operation_assignment): Same.
26492 (gen_get_level): Same.
26493 (gen_hsa_alloca): Same.
26494 (omp_simple_builtin::generate): Same.
26495 (gen_hsa_atomic_for_builtin): Same.
26496 (gen_hsa_insns_for_call): Same.
26497 * input.c (dump_location_info): Same.
26498 * ipa-devirt.c (compare_virtual_tables): Same.
26499 * ira.c (ira_setup_eliminable_regset): Same.
26500 * lra-assigns.c (lra_assign): Same.
26501 * lra-constraints.c (lra_constraints): Same.
26502 * lto-streamer-in.c (lto_input_mode_table): Same.
26503 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26504 (merge_and_complain): Same.
26505 (compile_offload_image): Same.
26506 (compile_images_for_offload_targets): Same.
26507 (debug_objcopy): Same.
26508 (run_gcc): Same.
26509 (main): Same.
26510 * opts.c (print_specific_help): Same.
26511 (parse_no_sanitize_attribute): Same.
26512 (print_help): Same.
26513 (handle_param): Same.
26514 * plugin.c (add_new_plugin): Same.
26515 (parse_plugin_arg_opt): Same.
26516 (try_init_one_plugin): Same.
26517 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26518 operators, and types in diagnostics. Correct quoting and spelling
26519 issues.
26520 * read-rtl-function.c (parse_edge_flag_token): Same.
26521 (function_reader::parse_enum_value): Same.
26522 * reg-stack.c (check_asm_stack_operands): Same.
26523 * regcprop.c (validate_value_data): Same.
26524 * sched-rgn.c (make_pass_sched_fusion): Same.
26525 * stmt.c (check_unique_operand_names): Same.
26526 * targhooks.c (default_target_option_pragma_parse): Same.
26527 * tlink.c (recompile_files): Same.
26528 * toplev.c (process_options): Same.
26529 (do_compile): Same.
26530 * trans-mem.c (diagnose_tm_1): Same.
26531 (ipa_tm_scan_irr_block): Same.
26532 (ipa_tm_diagnose_transaction): Same.
26533 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26534 format a tree code name in a diagnostic.
26535 (verify_types_in_gimple_min_lval): Same.
26536 (verify_types_in_gimple_reference): Same.
26537 (verify_gimple_call): Same.
26538 (verify_gimple_assign_unary): Same.
26539 (verify_gimple_assign_binary): Same.
26540 (verify_gimple_assign_ternary): Same.
26541 (verify_gimple_assign_single): Same.
26542 (verify_gimple_switch): Same.
26543 (verify_gimple_label): Same.
26544 (verify_gimple_phi): Same.
26545 (verify_gimple_in_seq): Same.
26546 (verify_eh_throw_stmt_node): Same.
26547 (collect_subblocks): Same.
26548 (gimple_verify_flow_info): Same.
26549 (do_warn_unused_result): Same.
26550 * tree-inline.c (expand_call_inline): Same.
26551 * tree-into-ssa.c (update_ssa): Same.
26552 * tree.c (tree_int_cst_elt_check_failed): Same.
26553 (tree_vec_elt_check_failed): Same.
26554 (omp_clause_operand_check_failed): Same.
26555 (verify_type_variant): Same.
26556 (verify_type): Same.
26557 * value-prof.c (verify_histograms): Same.
26558 * varasm.c (assemble_start_function): Same.
26559
26560 2019-05-16 Martin Sebor <msebor@redhat.com>
26561
26562 * config/i386/i386-expand.c (get_element_number): Quote keywords
26563 and other internal names in diagnostics. Adjust other diagnostic
26564 formatting issues noted by -Wformat-diag.
26565 * config/i386/i386-features.c
26566 (ix86_mangle_function_version_assembler_name): Same.
26567 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26568 * config/i386/i386.c (ix86_function_type_abi): Same.
26569 (ix86_function_ms_hook_prologue): Same.
26570 (classify_argument): Same.
26571 (ix86_expand_prologue): Same.
26572 (ix86_md_asm_adjust): Same.
26573 (ix86_memmodel_check): Same.
26574
26575 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26576
26577 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26578 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26579 and fpxx modes.
26580
26581 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26582
26583 PR target/90497
26584 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26585 intrinsics without SSE/SSE2/SSSE3.
26586 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26587 check.
26588 (*mmx_uavgv8qi3): Likewise.
26589
26590 2019-05-17 Richard Biener <rguenther@suse.de>
26591
26592 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26593 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26594
26595 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26596
26597 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26598 vec_sldw insn pattern.
26599
26600 2019-05-17 Richard Biener <rguenther@suse.de>
26601
26602 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26603
26604 2019-05-17 Martin Liska <mliska@suse.cz>
26605
26606 PR driver/90496
26607 * toplev.c (output_stack_usage): With LTO and sanitizer it
26608 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26609 has no file location.
26610
26611 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26612
26613 PR c++/90484
26614 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26615 sz0 is equal to sz1, instead return false in that case.
26616
26617 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26618 has non-constant expression, force sctx.lane and use two
26619 argument IFN_GOMP_SIMD_LANE instead of single argument.
26620 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26621 two argument IFN_GOMP_SIMD_LANE without lhs.
26622 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26623 member.
26624 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26625 Define.
26626 (LOOP_REQUIRES_VERSIONING): Or in
26627 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26628 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26629 simd_if_cond.
26630 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26631 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26632 from simd if clause if needed.
26633
26634 2019-05-16 Richard Biener <rguenther@suse.de>
26635
26636 * tree-affine.c (expr_to_aff_combination): New function split
26637 out from...
26638 (tree_to_aff_combination): ... here.
26639 (aff_combination_expand): Avoid building a GENERIC tree.
26640
26641 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26642
26643 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26644 assemble_start_function and assemble_end_function calls.
26645 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26646 assemble_start_function and assemble_end_function.
26647 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26648 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26649 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26650 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26651 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26652 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26653 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26654 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26655 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26656 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26657 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26658 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26659 Likewise.
26660 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26661 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26662 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26663 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26664 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26665 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26666 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26667 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26668 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26669 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26670 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26671 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26672 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26673 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26674 Likewise.
26675 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26676 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26677 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26678
26679 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26680
26681 * tree-ssa-alias.c (alias_stats): Add
26682 aliasing_component_refs_p_may_alias and
26683 aliasing_component_refs_p_no_alias.
26684 (dump_alias_stats): Print aliasing_component_refs_p stats.
26685 (aliasing_component_refs_p): Update stats.
26686
26687 2019-05-16 Martin Liska <mliska@suse.cz>
26688
26689 PR lto/90500
26690 * multiple_target.c (expand_target_clones): Do not allow
26691 target_clones being used with a symbol that is an alias.
26692
26693 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26694
26695 PR tree-optimization/90394
26696 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26697 positives rather than ICE for cases where (code2 == NE_EXPR
26698 && code1 == BIT_AND_EXPR).
26699
26700 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26701
26702 PR fortran/90329
26703 * tree-core.h (struct tree_decl_common): Document
26704 decl_nonshareable_flag for PARM_DECLs.
26705 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26706 * calls.c (expand_call): Don't try tail call if caller
26707 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26708 passed on the stack and callee needs to pass any arguments on the
26709 stack.
26710 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26711 else if instead of series of mutually exclusive ifs. Handle
26712 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26713 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26714
26715 * lto-streamer.h (LTO_major_version): Bump to 9.
26716
26717 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26718
26719 PR tree-optimization/90106
26720 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26721 new parameter as new internal function call, also move it to new
26722 basic block.
26723 (use_internal_fn): Pass internal function call to
26724 shrink_wrap_one_built_in_call_with_conds.
26725
26726 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26727
26728 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26729 max_vf to 1.
26730 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26731 safelen_int and set loop->dont_vectorize.
26732
26733 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26734
26735 PR target/89021
26736 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26737 SSE/SSE2/SSSE3.
26738 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26739 Likewise.
26740 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26741 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26742 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26743 is defined.
26744
26745 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26746
26747 PR target/89021
26748 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26749 define_insn_and_split to support SSE emulation.
26750 (*vec_extractv2sf_0): Likewise.
26751 (*vec_extractv2sf_1): Likewise.
26752 (*vec_extractv2si_0): Likewise.
26753 (*vec_extractv2si_1): Likewise.
26754 (*vec_extractv2si_zext_mem): Likewise.
26755 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26756 (vec_extractv2sf_1 splitter): Likewise.
26757 (vec_extractv2sfsf): Likewise.
26758 (vec_setv2si): Likewise.
26759 (vec_extractv2si_1 splitter): Likewise.
26760 (vec_extractv2sisi): Likewise.
26761 (vec_setv4hi): Likewise.
26762 (vec_extractv4hihi): Likewise.
26763 (vec_setv8qi): Likewise.
26764 (vec_extractv8qiqi): Likewise.
26765 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26766 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26767 (vec_extractv2sisi): Likewise.
26768 (vec_extractv4hihi): Likewise.
26769 (vec_extractv8qiqi): Likewise.
26770 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26771 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26772 (vec_initv2sisi): Likewise.
26773 (vec_initv4hihi): Likewise.
26774 (vec_initv8qiqi): Likewise.
26775 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26776 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26777 (vec_setv4hi): Likewise.
26778 (vec_setv8qi): Likewise.
26779
26780 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26781
26782 PR target/89021
26783 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26784 TARGET_MMX_WITH_SSE.
26785 (MMXMODE:*mov<mode>_internal): Likewise.
26786 (MMXMODE:movmisalign<mode>): Likewise.
26787
26788 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26789
26790 PR target/89021
26791 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26792 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26793 (sse2_cvtpd2pi): Ditto.
26794 (sse2_cvttpd2pi): Ditto.
26795 (*vec_concatv2sf_sse4_1): Ditto.
26796 (*vec_concatv2sf_sse): Ditto.
26797 (*vec_concatv2si_sse4_1): Ditto.
26798 (*vec_concatv2si): Ditto.
26799 (*vec_concatv4si_0): Ditto.
26800 (*vec_concatv2di_0): Ditto.
26801
26802 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26803
26804 PR target/89021
26805 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26806
26807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26808
26809 PR target/89021
26810 * config/i386/sse.md (ssse3_palignrdi): Changed to
26811 define_insn_and_split to support SSE emulation.
26812
26813 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26814
26815 PR target/89021
26816 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26817
26818 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26819
26820 PR target/89021
26821 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26822 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26823 SSE emulation.
26824
26825 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26826
26827 PR target/89021
26828 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26829 or TARGET_MMX_WITH_SSE.
26830 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26831
26832 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26833
26834 PR target/89021
26835 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26836
26837 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26838
26839 PR target/89021
26840 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26841 Changed to define_insn_and_split to support SSE emulation.
26842
26843 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26844
26845 PR target/89021
26846 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26847 Changed to define_insn_and_split to support SSE emulation.
26848
26849 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26850
26851 PR target/89021
26852 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26853 (*mmx_<emms>): This.
26854 (mmx_<emms>): New expander.
26855
26856 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26857
26858 PR target/89021
26859 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26860 support.
26861 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26862
26863 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26864
26865 PR target/89021
26866 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26867
26868 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26869
26870 PR target/89021
26871 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26872
26873 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26874
26875 PR target/89021
26876 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26877 TARGET_MMX_WITH_SSE.
26878 (*mmx_uavgv4hi3): Add SSE emulation.
26879
26880 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26881
26882 PR target/89021
26883 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26884 and TARGET_MMX_WITH_SSE.
26885 (*mmx_uavgv8qi3): Add SSE emulation.
26886
26887 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26888
26889 PR target/89021
26890 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26891 maskmovdqu for __MMX_WITH_SSE__.
26892
26893 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26894
26895 PR target/89021
26896 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26897 TARGET_MMX and TARGET_MMX_WITH_SSE.
26898 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26899
26900 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26901
26902 PR target/89021
26903 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26904 define_insn_and_split to support SSE emulation.
26905
26906 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26907
26908 PR target/89021
26909 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26910 and TARGET_MMX_WITH_SSE.
26911 (mmx_<code>v8qi3): Likewise.
26912 (smaxmin:<code>v4hi3): New.
26913 (umaxmin:<code>v8qi3): Likewise.
26914 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26915 (umaxmin:*mmx_<code>v8qi3): Likewise.
26916
26917 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26918
26919 PR target/89021
26920 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26921 TARGET_MMX_WITH_SSE.
26922 (*mmx_pinsrw): Add SSE emulation.
26923
26924 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26925
26926 PR target/89021
26927 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26928
26929 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26930
26931 PR target/89021
26932 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26933 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26934 SSE emulation.
26935
26936 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26937
26938 PR target/89021
26939 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26940 (sse_cvttps2pi): Likewise.
26941
26942 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26943
26944 PR target/89021
26945 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26946 TARGET_MMX_WITH_SSE.
26947 (mmx_pshufw_1): Add SSE emulation.
26948 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26949 TARGET_MMX_WITH_SSE to support SSE emulation.
26950
26951 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26952
26953 PR target/89021
26954 * config/i386/constraints.md (Yw): New constraint.
26955 * config/i386/mmx.md (*vec_dupv2si): Changed to
26956 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26957 support SSE emulation.
26958
26959 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26960
26961 PR target/89021
26962 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26963 TARGET_MMX_WITH_SSE.
26964 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26965 support.
26966 (mmx_gt<mode>3): Likewise.
26967
26968 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26969
26970 PR target/89021
26971 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26972 TARGET_MMX_WITH_SSE. Add SSE support.
26973
26974 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26975
26976 PR target/89021
26977 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26978 TARGET_MMX_WITH_SSE.
26979 (any_logic:<code><mode>3): New.
26980 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26981 Add SSE support.
26982
26983 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26984
26985 PR target/89021
26986 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26987 TARGET_MMX_WITH_SSE. Add SSE emulation.
26988 (mmx_<shift_insn><mode>3): Likewise.
26989 (ashr<mode>3): New.
26990 (<shift_insn><mode>3): Likewise.
26991
26992 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26993
26994 PR target/89021
26995 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26996 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26997
26998 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26999
27000 PR target/89021
27001 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27002 TARGET_MMX_WITH_SSE.
27003 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27004 SSE support.
27005
27006 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27007
27008 PR target/89021
27009 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27010 TARGET_MMX_WITH_SSE.
27011 (mulv4hi3): New.
27012 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27013 support.
27014
27015 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27016
27017 PR target/89021
27018 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27019 (plusminus:mmx_<plusminus_insn><mode>3): Check
27020 TARGET_MMX_WITH_SSE.
27021 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27022 (<plusminus_insn><mode>3): New.
27023 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27024 (*mmx_<plusminus_insn><mode>3): Likewise.
27025
27026 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27027
27028 PR target/89021
27029 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27030 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27031 prototype.
27032 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27033 define_insn_and_split to support SSE emulation.
27034 (mmx_punpcklbw): Likewise.
27035 (mmx_punpckhwd): Likewise.
27036 (mmx_punpcklwd): Likewise.
27037 (mmx_punpckhdq): Likewise.
27038 (mmx_punpckldq): Likewise.
27039
27040 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27041 Uros Bizjak <ubizjak@gmail.com>
27042
27043 PR target/89021
27044 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27045 New function.
27046 (ix86_split_mmx_pack): Likewise.
27047 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27048 New prototype.
27049 (ix86_split_mmx_pack): Likewise.
27050 * config/i386/i386.md (mmx_isa): New.
27051 (enabled): Also check mmx_isa.
27052 * config/i386/mmx.md (any_s_truncate): New code iterator.
27053 (s_trunsuffix): New code attr.
27054 (mmx_packsswb): Removed.
27055 (mmx_packssdw): Likewise.
27056 (mmx_packuswb): Likewise.
27057 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27058 MMX packsswb/packuswb with SSE2.
27059 (mmx_packssdw): Likewise.
27060 * config/i386/predicates.md (register_mmxmem_operand): New.
27061
27062 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27063
27064 PR target/89021
27065 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27066 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27067 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27068 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27069 (ix86_vector_mode_supported_p): Likewise.
27070 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27071
27072 2019-05-15 Martin Liska <mliska@suse.cz>
27073
27074 PR middle-end/90478
27075 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27076 Check for overflow.
27077
27078 2019-05-15 Richard Biener <rguenther@suse.de>
27079
27080 * tree-into-ssa.c (pass_build_ssa::execute): Run
27081 update_address_taken before going into SSA.
27082
27083 2019-05-15 Richard Biener <rguenther@suse.de>
27084
27085 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27086 as __BIT_FIELD_REF with type with -gimple.
27087
27088 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27089
27090 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27091 semantically equivalent branches (left over after prior refactorings).
27092
27093 2019-05-15 Richard Biener <rguenther@suse.de>
27094
27095 PR tree-optimization/88828
27096 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27097 bogus check.
27098
27099 2019-05-14 Richard Biener <rguenther@suse.de>
27100
27101 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27102 as __VIEW_CONVERT with -gimple.
27103
27104 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27105
27106 PR target/82920
27107 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27108 Darwin.
27109
27110 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27111
27112 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27113 define_split to become a define_insn_and_split.
27114
27115 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27116
27117 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27118 arguments.
27119 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27120 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27121 (sibcall_epilogue): Adjust.
27122 (epilogue): Adjust.
27123
27124 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27125
27126 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27127 to unsupported ones.
27128 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27129 * config.host: Likewise.
27130 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27131 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27132 __svr4__]: Remove "brand" fallback.
27133 [!KSTAT_DATA_STRING]: Remove.
27134 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27135 to *-*-solaris2*.
27136 (comdat_group): Likewise.
27137 (set_have_as_tls): Likewise.
27138 (gcc_cv_target_dl_iterate_phdr): Likewise.
27139 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27140 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27141 * configure: Regenerate.
27142 * doc/install.texi: Simplify Solaris target triplets.
27143 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27144 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27145 Remove Solaris 10 references.
27146 Remove obsolete Solaris bug reference.
27147 (Specific, sparc-sun-solaris2.10): Remove.
27148
27149 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27150
27151 * config/i386/i386.md (any_div): New code iterator.
27152 (paired_mod): New code attribute.
27153 (sgnprefix): Handle DIV and UDIV RTXes.
27154 (u): Ditto.
27155 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27156 and udivmod<mode>4 patterns using any_div code iterator.
27157 (divmod splitters): Macroize splitters using any_div code iterator.
27158 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27159 (*udivmodsi4_pow2_zext_2): Ditto.
27160 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27161 and *udivmod<mode>4_noext patterns using any_div code iterator.
27162 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27163 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27164 patterns using any_div code iterator.
27165 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27166 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27167 patterns using any_div code iterator.
27168 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27169 udivmodhiqi3 patterns using any_extend code iterator.
27170
27171 2019-05-14 Richard Biener <rguenther@suse.de>
27172 H.J. Lu <hongjiu.lu@intel.com>
27173
27174 PR tree-optimization/88828
27175 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27176 permuting in a single non-constant element not extracted
27177 from a vector.
27178
27179 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27180
27181 * internal-fn.def (SIGNBIT): New.
27182 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27183 defined.
27184 (signbitv4sf2): Likewise.
27185
27186 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27187
27188 PR target/90357
27189 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27190 next insn when the SRC reg is dead.
27191
27192 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27193
27194 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27195 (alloc_cand_and_find_basis): Ditto.
27196 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27197 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27198 (create_add_imm_cand, slsr_process_cast): Ditto.
27199 (slsr_process_copy, replace_mult_candidate): Ditto.
27200 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27201 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27202 (pass_strength_reduction::execute): Init the first NULL element.
27203
27204 2019-05-13 Nathan Sidwell <nathan@acm.org>
27205
27206 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27207 (run_attempt): Reformat line break.
27208
27209 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27210
27211 PR target/90418
27212 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27213 data registers in sibcall epilogues.
27214 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27215
27216 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27217
27218 PR target/89221
27219 * configure.ac (--enable-frame-pointer):
27220 Disable by default for cygwin and mingw.
27221 * configure: Regenerate.
27222
27223 2019-05-13 Nathan Sidwell <nathan@acm.org>
27224
27225 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27226 piece of code.
27227 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27228 (gen_member_die): Move abstract origin check earlier. Only VARs
27229 can be static_inline_p. Simplify splicing control flow.
27230
27231 2019-05-13 Richard Biener <rguenther@suse.de>
27232
27233 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27234 VIEW_CONVERT_EXPR.
27235 (vect_build_slp_tree_1): Likewise.
27236
27237 2019-05-13 Richard Biener <rguenther@suse.de>
27238
27239 PR tree-optimization/90402
27240 * tree-if-conv.c (tree_if_conversion): Value number only
27241 the loop body by making the latch an exit of the region
27242 as well.
27243 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27244 processing PHIs.
27245 (do_rpo_vn): Deal with multiple edges into the entry block
27246 that are not backedges inside the region by skipping PHIs
27247 of the entry block.
27248
27249 2019-05-13 Richard Biener <rguenther@suse.de>
27250
27251 PR tree-optimization/90316
27252 * tree-ssa-pre.c (insert_aux): Fold into ...
27253 (insert): ... this function. Use a RPO walk to reduce the
27254 number of required iterations.
27255
27256 2019-05-13 Martin Liska <mliska@suse.cz>
27257
27258 PR tree-optimization/90416
27259 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27260 string instead of passing the second part as va_arg argument.
27261
27262 2019-05-13 Martin Liska <mliska@suse.cz>
27263
27264 PR gcov-profile/90380
27265 * gcov.c (handle_cycle): Do not support zero cycle count,
27266 it should not be possible.
27267 (path_contains_zero_cycle_arc): New function.
27268 (circuit): Ignore zero cycle arc counts.
27269
27270 2019-05-13 Martin Liska <mliska@suse.cz>
27271
27272 PR gcov-profile/90380
27273 * gcov.c (enum loop_type): Remove the enum and
27274 the operator.
27275 (handle_cycle): Assert that we should not reach
27276 a negative count.
27277 (circuit): Use loop_found instead of a tri-state loop_type.
27278 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27279 happen.
27280
27281 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27282
27283 PR target/82920
27284 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27285 (ix86_output_indirect_branch_via_reg): Use output mechanism
27286 accounting for __USER_LABEL_PREFIX__.
27287 (ix86_output_indirect_branch_via_push): Likewise.
27288 (ix86_output_function_return): Likewise.
27289 (ix86_output_indirect_function_return): Likewise.
27290
27291 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27292
27293 * doc/md.texi: Document use of code attributes in rtx patterns.
27294 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27295 * read-rtl.c (find_code): Split out search loops into...
27296 (maybe_find_code): ...this new function.
27297 (check_code_iterator): Make the error message more informative.
27298 (check_code_attribute): New function.
27299 (rtx_reader::rtx_alloc_for_name): Likewise.
27300 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27301 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27302 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27303 <max_opp> directly as an rtx code instead of via a match_operator.
27304 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27305 (<su>abd<mode>_3): Update accordingly.
27306
27307 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27308
27309 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27310 is given, print the state of the EH "save world" computation for
27311 Darwin.
27312
27313 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27314
27315 PR c++/59813
27316 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27317 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27318
27319 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27320
27321 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27322 Use pinsrd for TARGET_SSE4_1.
27323 * config/i386/sse.md (movdi_to_sse): Ditto.
27324
27325 2019-05-10 Richard Biener <rguenther@suse.de>
27326
27327 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27328 (do_rpo_vn): Initialize next_value_id.
27329
27330 2019-05-10 Martin Liska <mliska@suse.cz>
27331
27332 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27333 Fix plural form.
27334
27335 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27336
27337 PR tree-optimization/90385
27338 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27339 arguments of the exit phis.
27340
27341 PR c++/90383
27342 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27343 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27344 id->do_not_fold.
27345 (copy_tree_body_r): Likewise.
27346 (copy_fn): Set id.do_not_fold to true.
27347
27348 2019-05-10 Martin Liska <mliska@suse.cz>
27349
27350 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27351 Reapply changes from r269790.
27352
27353 2019-05-10 Martin Liska <mliska@suse.cz>
27354
27355 PR middle-end/90340
27356 * doc/invoke.texi: New params.
27357 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27358 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27359 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27360 Use it.
27361 * tree-switch-conversion.h (struct jump_table_cluster):
27362 Likewise.
27363
27364 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27365
27366 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27367
27368 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27369
27370 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27371
27372 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27373
27374 PR rtl-optimization/88879
27375 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27376
27377 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27378
27379 PR target/90405
27380 * config/arm/arm.c (callee_saved_reg_p): Move before
27381 thumb_find_work_register.
27382 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27383 thumb_find_work_register. Only call df_get_live_out once.
27384 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27385 (thumb_find_work_register): Use
27386 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27387 algorithms to locate a spare call clobbered reg.
27388
27389 2019-05-09 Martin Liska <mliska@suse.cz>
27390
27391 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27392 and MAX_EXPR in GIMPLE FE format.
27393
27394 2019-05-09 Martin Liska <mliska@suse.cz>
27395
27396 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27397 * gimple-pretty-print.c (dump_gimple_bb_header):
27398 Dump BB count.
27399 (pp_cfg_jump): Dump edge probability.
27400 * profile-count.c (profile_quality_as_string): Simplify
27401 with a static array.
27402 (parse_profile_quality): New function.
27403 (profile_count::dump): Simplify with a static array.
27404 (profile_count::from_gcov_type): Add new argument.
27405 * profile-count.h (parse_profile_quality): Likewise.
27406 * predict.h (set_hot_bb_threshold): New.
27407 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27408 New param.
27409 * predict.c (get_hot_bb_threshold): Set from the new param.
27410 (set_hot_bb_threshold): New.
27411
27412 2019-05-09 Richard Biener <rguenther@suse.de>
27413
27414 PR tree-optimization/90395
27415 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27416 rewrite vector stores that throw internally.
27417
27418 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27419
27420 * cif-code.def (CHKP): Remove.
27421
27422 PR target/89221
27423 * configure.ac (--enable-frame-pointer): Disable by default for
27424 GNU systems.
27425 * configure: Regenerate.
27426
27427 2019-05-09 Alan Modra <amodra@gmail.com>
27428
27429 PR target/89271
27430 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27431 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27432 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27433 cost for general <-> vsx when direct moves are available.
27434 Cost union classes at minimal cost for any reg in the class.
27435 Correct calculation for moves between vsx, float, and altivec.
27436 Don't return a low cost for moves between special regs. Don't
27437 use hard coded register numbers.
27438 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27439 (rs6000_ira_change_pseudo_allocno_class): New function.
27440 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27441 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27442 alternatives.
27443 (movsi_internal1): Don't disparage vector alternatives.
27444 (mov<mode>_internal): Likewise, excepting alternative that
27445 will be split.
27446 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27447 we <- b alternative.
27448
27449 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27450
27451 PR c++/59813
27452 PR tree-optimization/89060
27453 * tree-ssa-live.h (live_vars_map): New typedef.
27454 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27455 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27456 (struct compute_live_vars_data): New type.
27457 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27458 live_vars_at_stmt, destroy_live_vars): New functions.
27459 * tree-tailcall.c: Include tree-ssa-live.h.
27460 (live_vars, live_vars_vec): New global variables.
27461 (find_tail_calls): Perform variable life analysis before punting.
27462 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27463 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27464 member.
27465 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27466 Perform variable life analysis to select variables that really need
27467 clobbers added.
27468 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27469 instead set id->eh_landing_pad_dest and assert it is the same.
27470 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27471
27472 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27473 Richard Earnshaw <rearnsha@arm.com>
27474
27475 PR target/88167
27476 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27477 function.
27478 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27479 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27480 register if both the epilogue and prologue can use call-clobbered
27481 regs.
27482 (thumb1_unexpanded_epilogue): Use
27483 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27484 picking temporaries for restoring high regs to match that of the
27485 prologue where possible.
27486 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27487 the list of work registers. Detect if the return address is still live
27488 at the end of the prologue and avoid using it for a work register if so.
27489 If the return address is not live, add LR to the list of pushable regs
27490 after the first pass.
27491
27492 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27493
27494 PR tree-optimization/90078
27495 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27496 (INFTY): Increase the value for infinite cost.
27497 (struct comp_cost): Promote type of members to int64_t.
27498 (infinite_cost): Don't set complexity in initialization.
27499 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27500 overflows to infinite_cost.
27501 (adjust_setup_cost): Promote type of parameter and cost computation
27502 to int64_t.
27503 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27504 int64_t.
27505 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27506 cost computation to int64_t.
27507 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27508 int64_t's format specifier in dump.
27509
27510 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27511
27512 PR tree-optimization/90240
27513 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27514 with respect to scaling factor pre-computed for each basic block.
27515 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27516 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27517 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27518 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27519 live range for array of loop's basic blocks. Cleanup aux field of
27520 loop's basic blocks.
27521
27522 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27523
27524 PR tree-optimization/90356
27525 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27526
27527 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27528
27529 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27530 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27531 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27532 (ix86_handle_option): Handle -mavx512bf16.
27533 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27534 to extra_headers.
27535 * config/i386/avx512bf16vlintrin.h: New.
27536 * config/i386/avx512bf16intrin.h: New.
27537 * config/i386/cpuid.h (bit_AVX512BF16): New.
27538 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27539 * config/i386/i386-builtin-types.def: Add new types.
27540 * config/i386/i386-builtin.def: Add new builtins.
27541 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27542 __AVX512BF16__.
27543 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27544 (ix86_option_override_internal): Handle BF16.
27545 (ix86_valid_target_attribute_inner_p): Ditto.
27546 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27547 * config/i386/i386-builtin.c (enum processor_features): Add
27548 F_AVX512BF16.
27549 (static const _isa_names_table isa_names_table): Ditto.
27550 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27551 (PTA_AVX512BF16): Ditto.
27552 * config/i386/i386.opt: Add -mavx512bf16.
27553 * config/i386/immintrin.h: Include avx512bf16intrin.h
27554 and avx512bf16vlintrin.h.
27555 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27556 avx512f_cvtneps2bf16_<mode><mask_name>,
27557 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27558 * config/i386/subst.md (mask_half): Add new subst.
27559 * doc/invoke.texi: Document -mavx512bf16.
27560
27561 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27562
27563 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27564 Delete declaration.
27565 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27566 (rs6000_debug_legitimize_reload_address): Delete.
27567 (rs6000_legitimize_reload_address_ptr): Delete.
27568 (rs6000_option_override_internal): Adjust.
27569 (mem_operand_gpr): Adjust comment.
27570 (legitimate_lo_sum_address_p): Ditto.
27571 (rs6000_legitimize_reload_address): Delete.
27572 (rs6000_debug_legitimize_reload_address): Delete.
27573 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27574
27575 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27576
27577 PR target/89765
27578 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27579 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27580 to compute vector element selector for both constant and variable
27581 operands.
27582
27583 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27584
27585 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27586 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27587 ashrdi3_cvt using SWI48 mode iterator.
27588
27589 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27590
27591 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27592 (aarch64_<su>abd<mode>_3): Likewise.
27593 (*aarch64_<su>abd<mode>_3): New define_insn.
27594 (<sur>sad<vsi2qi>): New define_expand.
27595 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27596 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27597 (build_vect_cond_expr): Likewise.
27598
27599 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27600
27601 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27602 clobbers outside of accessible_reg_set.
27603 * config/i386/i386.c (ix86_conditional_register_usage):
27604 Disable register sets by clearing corresponding bits in
27605 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27606 call_used_regs and don't clear corresponding reg_names array members.
27607
27608 2019-05-07 Richard Biener <rguenther@suse.de>
27609
27610 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27611 not specified still compute a comp_vectype for invariant
27612 compares.
27613
27614 2019-05-07 Richard Biener <rguenther@suse.de>
27615
27616 PR tree-optimization/90316
27617 * tree-ssa-pre.c (translate_vuse_through_block): When
27618 same_valid is NULL do not bother to search for a virtual
27619 PHI continuation.
27620 (phi_translate_1): When operands changed we cannot keep
27621 the same value-number so do not bother to ask whether
27622 that's possible from translate_vuse_through_block.
27623
27624 2019-05-07 Martin Liska <mliska@suse.cz>
27625
27626 * bitmap.c (bitmap_register): Come up with
27627 alloc_descriptor_max_uid and assign it for
27628 a new bitmap.
27629 (register_overhead): Use get_descriptor as
27630 a descriptor.
27631 (release_overhead): New.
27632 (bitmap_elem_to_freelist): Call it.
27633 (bitmap_elt_clear_from): Likewise.
27634 (bitmap_obstack_free): Likewise.
27635 (bitmap_move): Sensitively release memory.
27636 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27637 (bitmap_initialize): Initialize alloc_descriptor to zero.
27638 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27639
27640 2019-05-07 Richard Biener <rguenther@suse.de>
27641
27642 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27643 we build a SLP node. Remove max_size and limiting.
27644 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27645
27646 2019-05-07 Richard Biener <rguenther@suse.de>
27647
27648 PR tree-optimization/90316
27649 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27650 limit by reference.
27651 (walk_non_aliased_vuses): Take walking limit argument.
27652 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27653 walking if it is reached instead of just counting.
27654 (get_continuation_for_phi): Likewise.
27655 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27656 limiting to the callback.
27657 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27658 (vn_reference_lookup_3): Likewise.
27659 (vn_reference_lookup_pieces): Likewise.
27660 (vn_reference_lookup): Likewise.
27661 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27662 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27663 (avail_exprs_stack::lookup_avail_expr): Likewise.
27664
27665 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27666
27667 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27668 for comparaible types in the second direction even if first one
27669 hits incomparable type.
27670
27671 2019-05-07 Richard Biener <rguenther@suse.de>
27672
27673 PR lto/90369
27674 * lto-wrapper.c (debug_objcopy): Use the original filename
27675 including archive offset for the filename used for -save-temps.
27676
27677 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27678
27679 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27680 detection.
27681
27682 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27683 Hongtao Liu <hongtao.liu@intel.com>
27684
27685 PR target/89750
27686 PR target/86444
27687 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27688 Modified, original implementation isn't correct.
27689
27690 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27691
27692 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27693 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27694 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27695 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27696 (FRAME_POINTER_REGNUM): Change numbering.
27697 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27698 (alt_reg_names): Adjust.
27699 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27700 fixed.
27701 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27702 (DWARF_FRAME_REGISTERS): Delete.
27703 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27704 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27705 Adjust.
27706 (REG_ALLOC_ORDER): Adjust.
27707 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27708 (REG_CLASS_CONTENTS): Adjust.
27709 (RETURN_ADDR_RTX): Change comment.
27710 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27711 instead of 67.
27712 (REGISTER_NAMES): Adjust.
27713 (ADDITIONAL_REGISTER_NAMES): Adjust.
27714 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27715
27716 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27717
27718 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27719 Delete.
27720 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27721 (DWARF_FRAME_REGISTERS): Adjust.
27722 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27723 Adjust.
27724 (REG_ALLOC_ORDER): Adjust.
27725 (enum reg_class): Delete SPR_REGS.
27726 (REG_CLASS_NAMES): Delete SPR_REGS.
27727 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27728 (REGISTER_NAMES): Adjust.
27729 (ADDITIONAL_REGISTER_NAMES): Adjust.
27730 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27731 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27732 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27733 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27734 (htm_spr_regno): Delete.
27735 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27736 argument.
27737 (rs6000_dbx_register_number): Adjust.
27738
27739 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27740
27741 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27742
27743 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27744
27745 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27746 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27747
27748 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27749
27750 PR tree-optimization/88709
27751 PR tree-optimization/90271
27752 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27753 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27754 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27755 variable.
27756 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27757 of the store merging group is larger than
27758 PARAM_STORE_MERGING_MAX_SIZE parameter.
27759 (split_group): Add bzero_first argument. If set, always emit first
27760 the first store which must be = {} of the whole area and then for the
27761 rest of the stores consider all zero bytes as paddings.
27762 (imm_store_chain_info::output_merged_store): Check if first store
27763 is = {} of the whole area and if yes, determine which setting of
27764 bzero_first for split_group gives smaller number of stores. Adjust
27765 split_group callers.
27766 (lhs_valid_for_store_merging_p): Allow decls.
27767 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27768 no elts.
27769 (pass_store_merging::process_store): Likewise.
27770
27771 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27772
27773 PR target/89424
27774 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27775 handling of V1TImode.
27776
27777 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27778
27779 PR target/89221
27780 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27781 and enable_frame_pointer ...
27782 * configure.ac: ... here. Update help strings for
27783 --enable-frame-pointer.
27784 * configure: Regenerate.
27785 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27786 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27787 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27788 (USE_X86_64_FRAME_POINTER): Ditto.
27789
27790 2019-05-06 Martin Liska <mliska@suse.cz>
27791
27792 * config.gcc: Append to target_gtfiles and fix indentation.
27793
27794 2019-05-06 Richard Biener <rguenther@suse.de>
27795
27796 PR tree-optimization/90358
27797 * tree-vect-stmts.c (get_group_load_store_type): Properly
27798 detect unused upper half of load.
27799 (vectorizable_load): Likewise.
27800
27801 2019-05-06 Richard Biener <rguenther@suse.de>
27802
27803 PR tree-optimization/88828
27804 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27805 (simplify_vector_constructor): ...here. Handle constants in
27806 the constructor.
27807
27808 2019-05-06 Richard Biener <rguenther@suse.de>
27809
27810 PR tree-optimization/90328
27811 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27812 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27813 is valid in the loop nest before using it.
27814 (initialize_data_dependence_relation): Adjust.
27815 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27816 loop as loop-nest to dr_may_alias_p.
27817
27818 2019-05-06 Richard Biener <rguenther@suse.de>
27819
27820 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27821
27822 2019-05-06 Richard Biener <rguenther@suse.de>
27823
27824 PR tree-optimization/90316
27825 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27826 compute target on demand.
27827 (get_continuation_for_phi): Remove code walking stmts to
27828 get to a target virtual operand which could end up being
27829 quadratic.
27830
27831 2019-05-06 Martin Liska <mliska@suse.cz>
27832
27833 PR sanitizer/90312
27834 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27835 when -mabi is selected to a non-default version.
27836
27837 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27838 Martin Liska <mliska@suse.cz>
27839
27840 * Makefile.in: Add lto-dump.texi.
27841 * cgraph.h: Add new functions get_visibility_string and
27842 get_symtab_type_string.
27843 * doc/gcc.texi: Include lto-dump section.
27844 * doc/lto-dump.texi: New file.
27845 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27846 (parse_dump_option): Factor out this function.
27847 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27848 (parse_dump_option): Export the function.
27849 * symtab.c (symtab_node::get_visibility_string): New function.
27850 (symtab_node::get_symtab_type_string): Likewise.
27851
27852 2019-05-06 Martin Liska <mliska@suse.cz>
27853
27854 * config/i386/i386-builtins.c: New file.
27855 * config/i386/i386-builtins.h: New file.
27856 * config/i386/i386-expand.c: New file.
27857 * config/i386/i386-expand.h: New file.
27858 * config/i386/i386-features.c: New file.
27859 * config/i386/i386-features.h: New file.
27860 * config/i386/i386-options.c: New file.
27861 * config/i386/i386-options.h: New file.
27862 * config.gcc: Add new files into extra_objs and
27863 target_gtfiles.
27864 * config/i386/i386.c: Split content of the file
27865 into newly introduced files.
27866 * config/i386/i386.h: Declare common variables
27867 and macros.
27868 * config/i386/t-i386: Define dependencies for new files.
27869
27870 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27871
27872 PR target/89400
27873 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27874 Restrict 'all' variant to 32-bit configurations.
27875 (unaligned_loadhiu): Likewise.
27876 (unaligned_storehi): Likewise.
27877 (unaligned_storesi): Likewise.
27878 (unaligned_loadhis): Disable when compiling for thumb1.
27879
27880 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27881
27882 PR tree-optimization/90269
27883 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27884 Ignore clobbers.
27885
27886 2019-05-03 Martin Liska <mliska@suse.cz>
27887
27888 * hash-map.h: Add is_empty function.
27889 * hash-set.h: Likewise.
27890 * hash-table.h: Likewise.
27891 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27892 elements () == 0 (and similar usages).
27893 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27894 * gimplify.c (gimplify_bind_expr): Likewise.
27895 (gimplify_switch_expr): Likewise.
27896 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27897 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27898 * postreload-gcse.c (dump_hash_table): Likewise.
27899 (gcse_after_reload_main): Likewise.
27900 * predict.c (combine_predictions_for_bb): Likewise.
27901 * tree-parloops.c (reduction_phi): Likewise.
27902 (separate_decls_in_region): Likewise.
27903 (transform_to_exit_first_loop): Likewise.
27904 (gen_parallel_loop): Likewise.
27905 (gather_scalar_reductions): Likewise.
27906 (try_create_reduction_list): Likewise.
27907 * var-tracking.c (dump_vars): Likewise.
27908 (emit_notes_for_changes): Likewise.
27909 (vt_emit_notes): Likewise.
27910
27911 2019-05-03 Richard Biener <rguenther@suse.de>
27912
27913 PR tree-optimization/90316
27914 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27915 before running VN.
27916
27917 2019-05-03 Richard Biener <rguenther@suse.de>
27918
27919 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27920 peeling for gaps by loading only lower halves of vectors
27921 if possible.
27922 (vectorizable_load): Likewise.
27923
27924 2019-05-03 Richard Biener <rguenther@suse.de>
27925
27926 PR middle-end/89518
27927 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27928
27929 2019-05-03 Richard Biener <rguenther@suse.de>
27930
27931 PR middle-end/87314
27932 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27933 Handle STRING_CST vs DECL or STRING_CST.
27934
27935 2019-05-03 Richard Biener <rguenther@suse.de>
27936
27937 PR tree-optimization/88963
27938 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27939 vector loads feeding only BIT_FIELD_REFs to component
27940 loads. Rewrite stores fed by CONSTRUCTORs to component
27941 stores.
27942
27943 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27944
27945 * opts.h (finish_options): Remove lang_mask argument.
27946 (print_help, help_option_argument): Declare.
27947 * opts.c (print_help): Remove forward declaration, no longer static.
27948 (finish_options): Remove lang_mask argument, don't call print_help
27949 here.
27950 * opts-global.c (decode_options): Adjust finish_option caller, call
27951 print_help here.
27952
27953 PR tree-optimization/90303
27954 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27955 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27956
27957 2019-05-03 Richard Biener <rguenther@suse.de>
27958
27959 PR tree-optimization/89698
27960 * gimple-fold.c (canonicalize_constructor_val): Early out
27961 for constants, handle unfolded INTEGER_CSTs as they appear in
27962 C++ virtual table ctors.
27963
27964 2019-05-03 Richard Biener <rguenther@suse.de>
27965
27966 * passes.c (execute_function_todo): Remove dead code.
27967
27968 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27969
27970 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27971 the internal register number, for any "real" register.
27972
27973 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27974
27975 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27976 correct numbers for TFHAR, TFIAR, TEXASR.
27977
27978 2019-05-02 Richard Biener <rguenther@suse.de>
27979
27980 PR tree-optimization/89653
27981 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27982 update-address-taken before the pass.
27983 * passes.def (pass_tree_loop_init): Put comment before it.
27984
27985 2019-05-02 Richard Biener <rguenther@suse.de>
27986
27987 PR tree-optimization/89509
27988 * tree-ssa-structalias.c (compute_dependence_clique): Look
27989 at the first subvar when determining whether it is restrict.
27990
27991 2019-05-02 Richard Biener <rguenther@suse.de>
27992
27993 PR tree-optimization/90273
27994 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27995 useless debug stmts.
27996
27997 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27998
27999 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28000 ACLE branch.
28001 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28002 SVE ACLE branch.
28003 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28004 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28005 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28006 (vectorizable_reduction): Use the functions above to vectorize in a
28007 fully masked loop codes that don't have a conditional internal
28008 function.
28009
28010 2019-05-02 Martin Liska <mliska@suse.cz>
28011
28012 * cgraphclones.c: Call valid_attribute_p with 1 for
28013 target_clone.
28014 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28015 it's for target attribute.
28016 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28017 Add new boolean argument.
28018 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28019 Likewise.
28020 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28021 to ix86_valid_target_attribute_inner_p.
28022 (ix86_valid_target_attribute_p): Pass flags argument to
28023 ix86_valid_target_attribute_inner_p.
28024 (get_builtin_code_for_version): Use 0 as it's target attribute.
28025
28026 2019-05-02 Martin Liska <mliska@suse.cz>
28027
28028 * gcc.c (process_command): Add dummy file only
28029 if n_infiles == 0.
28030 * opts-global.c (decode_options): Pass lang_mask.
28031 * opts.c (print_help): New function.
28032 (finish_options): Print --help if help_option_argument
28033 is set.
28034 (common_handle_option): Factor out content of OPT__help_
28035 into print_help.
28036 * opts.h (finish_options): Add new argument.
28037
28038 2019-05-02 Martin Liska <mliska@suse.cz>
28039
28040 PR target/88809
28041 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28042 With -minline-all-stringops use inline expansion using 4B loop.
28043 * doc/invoke.texi: Document the change of
28044 -minline-all-stringops.
28045
28046 2019-05-01 Jeff Law <law@redhat.com>
28047
28048 PR tree-optimization/88797
28049 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28050 PHI feeds a conditional on the RHS of an assignment.
28051
28052 2019-04-30 Andrew Waterman <andrew@sifive.com>
28053 Jim Wilson <jimw@sifive.com>
28054
28055 * config/riscv/constraints.md (L): New.
28056 * config/riscv/predicates.md (lui_operand): New.
28057 (sfb_alu_operand): New.
28058 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28059 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28060 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28061 * config/riscv/risc.md (type): Add sfb_alu.
28062 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28063 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28064 (branch_zero<mode>): Delete.
28065 (mov<mode>cc): New.
28066 (mov<GPR:mode><X:mode>cc): Likewise.
28067 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28068
28069 2019-04-30 Nathan Sidwell <nathan@acm.org>
28070
28071 * tree.h (MARK_TS_EXP): New.
28072
28073 2019-04-30 Martin Liska <mliska@suse.cz>
28074
28075 * opts.c (enable_warning_as_error): Provide hints
28076 for unknown options.
28077
28078 2019-04-30 Martin Liska <mliska@suse.cz>
28079
28080 PR debug/90288
28081 * doc/invoke.texi: Add missing dash for gas-locview-support
28082 and gno-as-locview-support.
28083
28084 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28085
28086 PR target/89093
28087 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28088 whitespace at the start of target attribute string.
28089
28090 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28091
28092 PR target/86538
28093 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28094 Define __ARM_FEATURE_ATOMICS.
28095
28096 2019-04-30 Martin Liska <mliska@suse.cz>
28097
28098 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28099 into built_in_function enum. Remove code for endp == 2 and
28100 use BUILT_IN_* constants.
28101 (gimple_fold_builtin): Call the function with fcode.
28102
28103 2019-04-30 Martin Liska <mliska@suse.cz>
28104
28105 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28106 DECL_FUNCTION_CODE into ix86_builtins enum before
28107 the switch statement.
28108
28109 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28110
28111 PR tree-optimization/89475
28112 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28113 calls.
28114
28115 2019-04-30 Martin Liska <mliska@suse.cz>
28116
28117 PR translation/90274
28118 * opts.c (print_filtered_help): Wrap string in _(...).
28119
28120 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28121
28122 PR tree-optimization/90240
28123 Revert:
28124 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28125
28126 PR tree-optimization/90078
28127 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28128 checks for infinite_cost overflow.
28129
28130 2019-04-29 Jeff Law <law@redhat.com>
28131
28132 * passes.def: Move -Wrestrict pass after copy propagation.
28133
28134 2019-04-29 Maya Rashish <coypu@sdf.org>
28135
28136 * config.gcc (default_gnu_indirect_function): Default to yes
28137 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28138 sparc*-*-netbsd*, x86_64-*-netbsd*.
28139
28140 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28141
28142 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28143 where cond2 is NE_EXPR.
28144 (is_value_included_in): Update comment.
28145
28146 2019-04-29 Richard Biener <rguenther@suse.de>
28147
28148 PR tree-optimization/90278
28149 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28150 EH on comparison simplification.
28151
28152 2019-04-29 Jason Merrill <jason@redhat.com>
28153
28154 PR c++/82081 - tail call optimization breaks noexcept
28155 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28156 nothrow function to a might-throw function into a tail call.
28157
28158 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28159
28160 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28161 (DDR_INNER_LOOP): Likewise.
28162 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28163 (initialize_data_dependence_relation): Likewise.
28164 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28165
28166 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28167
28168 PR rtl-optimization/90257
28169 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28170 return value.
28171
28172 Revert the revert:
28173 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28174
28175 PR target/90178
28176 Revert:
28177 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28178
28179 Revert the revert:
28180 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28181
28182 Revert:
28183 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28184
28185 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28186
28187 2019-04-29 Richard Biener <rguenther@suse.de>
28188
28189 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28190 rhs issue a reset.
28191
28192 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28193
28194 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28195 varasm.h, and netbsd-protos.h.
28196
28197 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28198
28199 PR target/89261
28200 * config/i386/i386-protos.h (ix86_data_alignment): Change
28201 the second argument type to unsigned int.
28202 * config/i386/i386.c (ix86_data_alignment): Change "align"
28203 argument type to unsigned int.
28204
28205 2019-04-27 Martin Liska <mliska@suse.cz>
28206
28207 PR middle-end/90258
28208 * opt-suggestions.c (option_proposer::build_option_suggestions):
28209 When get_valid_option_values returns empty values, add the
28210 misspelling candidate.
28211
28212 2019-04-26 Jim Wilson <jimw@sifive.com>
28213
28214 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28215 parameter.
28216 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28217 Pass orig_mode to riscv_build_integer.
28218 (riscv_split_integer): Pass mode to riscv_move_integer.
28219 (riscv_legitimize_const_move): Likewise.
28220 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28221 promoted_mode. Replace force_reg call with code to load constant into
28222 promoted reg and then subreg it for the store.
28223 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28224 riscv_move_integer.
28225
28226 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28227
28228 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28229 corrupt codes.
28230
28231 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28232
28233 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28234 commentary about the encoding of precision.
28235
28236 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28237
28238 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28239 * config/i386/t-freebsd64: New file.
28240 * config.gcc: Add the t-freebsd64 for multilib support.
28241
28242 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28243
28244 * doc/extend.texi (vector_size): Add missing comma after @xref.
28245
28246 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28247
28248 * BASE-VER: Set to 10.0.0.
28249
28250 2019-04-25 Richard Biener <rguenther@suse.de>
28251
28252 PR middle-end/89765
28253 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28254 VIEW_CONVERT_EXPR into one operating on an rvalue.
28255
28256 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28257
28258 PR target/89929
28259 * config/i386/i386.c (feature_priority): Moved to file scope.
28260 (processor_features): Likewise.
28261 (processor_model): Likewise.
28262 (_arch_names_table): Likewise.
28263 (arch_names_table): Likewise.
28264 (_feature_list): Removed.
28265 (feature_list): Likewise.
28266 (_isa_names_table): Moved to file scope. Add priority.
28267 (isa_names_table): Likewise.
28268 (get_builtin_code_for_version): Replace feature_list with
28269 isa_names_table. Update error message for P_ZERO priority.
28270
28271 2019-04-25 Richard Biener <rguenther@suse.de>
28272
28273 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28274 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28275
28276 2019-04-24 Jeff Law <law@redhat.com>
28277
28278 PR tree-optimization/90037
28279 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28280 * passes.def: Replace all instance of phi-only cprop with the
28281 lattice propagator. Move propagation pass from after erroneous
28282 path isolation to before erroneous path isolation.
28283 * tree-ssa-phionlycprop.c: Remove.
28284
28285 2019-04-24 Richard Biener <rguenther@suse.de>
28286
28287 PR middle-end/90213
28288 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28289 by size and BITS_PER_UNIT on poly-wide-ints.
28290
28291 2019-04-25 Richard Biener <rguenther@suse.de>
28292
28293 PR middle-end/90194
28294 * match.pd: Add pattern to simplify view-conversion of an
28295 empty constructor.
28296
28297 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28298
28299 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28300 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28301 for Go on 32 bit AIX.
28302 * config/rs6000/aix72.h: Likewise.
28303
28304 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28305
28306 PR target/90193
28307 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28308 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28309
28310 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28311
28312 PR target/89952
28313 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28314 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28315 for restored hard frame pointer.
28316 (s390_sched_dependencies_evaluation): Implement new target hook.
28317 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28318
28319 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28320
28321 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28322 * config/arc/arc.c (arc_init): Cleanup warning message.
28323 (arc_override_options): Likewise.
28324
28325 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28326
28327 PR target/90187
28328 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28329 a register if both if_true and if_false are MEMs.
28330
28331 PR tree-optimization/90208
28332 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28333 after labels of new_bb, not before them.
28334
28335 PR tree-optimization/90211
28336 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28337 which are not SSA_NAMEs.
28338
28339 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28340
28341 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28342 AArch64.
28343 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28344
28345 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28346
28347 PR rtl-optimization/87979
28348 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28349 not equal zero.
28350
28351 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28352
28353 PR rtl-optimization/84032
28354 * modulo-sched.c (ps_insn_find_column): Change condition so that
28355 branch will always be the last insn in a row inside partial
28356 schedule.
28357
28358 2019-04-23 Richard Biener <rguenther@suse.de>
28359
28360 PR debug/90131
28361 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28362 dest_single_pred_p argument.
28363 (remove_forwarder_block): Adjust.
28364 (remove_forwarder_block_with_phi): Likewise.
28365
28366 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28367 Bernd Edlinger <bernd.edlinger@hotmail.de>
28368 Jakub Jelinek <jakub@redhat.com>
28369
28370 PR target/89093
28371 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28372 if used with general-regs-only.
28373 (arm_conditional_register_usage): Don't add non-general regs if
28374 general-regs-only.
28375 (arm_valid_target_attribute_rec): Handle general-regs-only.
28376 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28377 general-regs-only.
28378 (TARGET_HARD_FLOAT_SUB): Define.
28379 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28380 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28381 (TARGET_REALLY_IWMMXT2): Likewise.
28382 * config/arm/arm.opt: Add -mgeneral-regs-only.
28383 * doc/extend.texi: Document ARM general-regs-only target.
28384 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28385
28386 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28387
28388 PR tree-optimization/90078
28389 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28390 checks for infinite_cost overflow.
28391
28392 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28393
28394 PR tree-optimization/90021
28395 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28396 and check univariate against it.
28397 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28398 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28399
28400 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28401
28402 PR target/90178
28403 Revert:
28404 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28405
28406 Revert the revert:
28407 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28408
28409 Revert:
28410 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28411
28412 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28413
28414 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28415
28416 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28417 names using operand format, rather than hard-wired.
28418 (speculation_barrier): Likewise.
28419
28420 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28421
28422 PR tree-optimization/88055
28423 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28424 (gen_one_condition): Use it if !HONOR_NANS.
28425
28426 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28427
28428 PR middle-end/90139
28429 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28430 assign_temp instead of gen_reg_rtx.
28431
28432 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28433
28434 PR translation/90118
28435 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28436 Add missing space before %<.
28437
28438 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28439
28440 PR rtl-optimization/87871
28441 * ira-lives.c (make_object_dead): Don't add conflicts to
28442 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28443
28444 2019-04-18 Martin Sebor <msebor@redhat.com>
28445
28446 PR middle-end/89797
28447 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28448 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28449 assuming type size fits in SHWI.
28450
28451 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28452
28453 PR ipa/85051
28454 * ipa-inline.c (flatten_function): New parameter UPDATE.
28455 (ipa_inline, early_inliner): Use it.
28456
28457 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28458
28459 * fold-const.c (int_const_binop): Return early on failure.
28460
28461 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28462
28463 PR middle-end/85164
28464 * combine.c (force_int_to_mode): Cast the argument rather than
28465 the result of known_alignment.
28466 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28467
28468 2019-04-18 Richard Biener <rguenther@suse.de>
28469
28470 PR debug/90131
28471 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28472 out from ...
28473 (remove_forwarder_block): ... here.
28474 (remove_forwarder_block_with_phi): Also move debug stmts here.
28475
28476 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28477
28478 PR translation/79183
28479 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28480 inform where appropriate.
28481
28482 2019-04-18 Richard Biener <rguenther@suse.de>
28483
28484 * tree.c (get_qualified_type): Put found type variants at the
28485 head of the variant list.
28486
28487 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28488
28489 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28490
28491 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28492
28493 PR target/90125
28494 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28495 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28496 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28497 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28498 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28499
28500 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28501
28502 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28503 even for allocno's with no conflicts.
28504 (print_conflicts): Print an extra newline.
28505
28506 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28507
28508 * auto-inc-dec.c (attempt_change): Set the alignment of the
28509 temporary memory to that of the original.
28510
28511 2019-04-17 Joao Moreira <jmoreira@suse.de>
28512
28513 * targhooks.c (default_print_patchable_function_entry): Emit
28514 __patchable_function_entries section with writable flags to allow
28515 relocation resolution.
28516
28517 2019-04-17 Jonny Grant <jg@jguk.org>
28518
28519 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28520
28521 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28522
28523 PR middle-end/90095
28524 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28525 on lowpart SUBREGs.
28526
28527 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28528
28529 * config/arc/arc.c (arc_init): Format diagnostic string.
28530 (arc_override_options): Likewise.
28531 (check_if_valid_regno_const): Likewise.
28532 (arc_reorg): Likewise.
28533
28534 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28535
28536 PR target/17108
28537 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28538 name.
28539 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28540 name.
28541 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28542 (*movdi_update1): Use Pmode.
28543 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28544 (movdi_<mode>_update_stack): Rename to ...
28545 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28546 use Pmode.
28547 (*movsi_update1): Use Pmode.
28548 (*movsi_update2): Use Pmode.
28549 (movsi_update): Rename to ...
28550 (movsi_<mode>_update): ... this. Use Pmode.
28551 (movsi_update_stack): Fix condition.
28552 (*movhi_update1): Use Pmode. Fix argument to
28553 avoiding_indexed_address_p.
28554 (*movhi_update2): Ditto.
28555 (*movhi_update3): Ditto.
28556 (*movhi_update4): Ditto.
28557 (*movqi_update1): Ditto.
28558 (*movqi_update2): Ditto.
28559 (*movqi_update3): Ditto.
28560 (*movsf_update1, *movdf_update1): Merge, rename to...
28561 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28562 avoiding_indexed_address_p. Add "size" attribute.
28563 (*movsf_update2, *movdf_update2): Merge, rename to...
28564 (*mov<mode>_update2): This. Ditto.
28565 (*movsf_update3): Use Pmode. Fix argument to
28566 avoiding_indexed_address_p.
28567 (*movsf_update4): Ditto.
28568 (allocate_stack): Simplify condition. Adjust pattern names.
28569
28570 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28571
28572 PR target/89093
28573 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28574 whitespace at the start of target attribute string.
28575
28576 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28577
28578 PR target/84369
28579 * config/rs6000/power9.md: Add store forwarding bypass.
28580
28581 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28582
28583 PR debug/89528
28584 * valtrack.c (dead_debug_insert_temp): Reset debug references
28585 to the return value of a call being removed.
28586
28587 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28588
28589 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28590 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28591 implement target hook.
28592 (arc_memory_move_cost): New function.
28593 (TARGET_REGISTER_MOVE_COST): Define.
28594 (TARGET_MEMORY_MOVE_COST): Likewise.
28595 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28596 (MEMORY_MOVE_COST): Likewise.
28597
28598 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28599
28600 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28601 (sibcall_value_insn): Likewise.
28602 * config/arc/constraints.md (Rs5): Remove.
28603
28604 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28605
28606 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28607 for last two fake registers.
28608 (arc_conditional_register_usage): Make sure fake frame and arg
28609 pointer regs are in general regs class.
28610 (FRAME_POINTER_MASK): Remove.
28611 (RETURN_ADDR_MASK): Remove.
28612 (arc_must_save_register): Use hard frame regnum.
28613 (frame_restore_reg): Use hard_frame_pointer_rtx.
28614 (arc_save_callee_saves): Likewise.
28615 (arc_restore_callee_saves): Likewise.
28616 (arc_save_callee_enter): Likewise.
28617 (arc_restore_callee_leave): Likewise.
28618 (arc_save_callee_milli): Likewise.
28619 (arc_eh_return_address_location): Likewise.
28620 (arc_check_multi): Use hard frame regnum.
28621 (arc_can_eliminate): Likewise.
28622 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28623 for register allocator.
28624 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28625 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28626 (FRAME_POINTER_REGNUM): Change it to a fake register.
28627 (HARD_FRAME_POINTER_REGNUM): Defined.
28628 (ARG_POINTER_REGNUM): Change it to a new fake register.
28629 (ELIMINABLE_REGS): Update.
28630 (REGISTER_NAMES): Update names.
28631 * config/arc/arc.md (LP_START): Remove.
28632 (LP_END): Likewise.
28633 (shift_si3_loop): Update pattern.
28634
28635 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28636
28637 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28638 to avoid delay slot scheduling.
28639 (arc_must_save_register): Don't save SP.
28640 * config/arc/arc.md (stack_tie): Remove.
28641 (UNSPEC_ARC_STKTIE): Likewise.
28642
28643 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28644 Shiva Chen <shiva0217@gmail.com>
28645
28646 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28647 code gen with large shift amount.
28648
28649 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28650
28651 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28652 subreg.
28653
28654 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28655
28656 PR target/90096
28657 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28658 print -m64/-mx32/-m32 if it is true.
28659 (ix86_debug_options, ix86_function_specific_print): Pass true as
28660 ADD_ABI_P to ix86_target_string.
28661 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28662 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28663 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28664
28665 PR rtl-optimization/90082
28666 * dce.c (can_delete_call): New function.
28667 (deletable_insn_p, mark_insn): Use it.
28668
28669 PR tree-optimization/90090
28670 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28671 throw internally.
28672 (is_division_by_square): Likewise. Formatting fix.
28673
28674 2019-04-16 Richard Biener <rguenther@suse.de>
28675
28676 PR tree-optimization/56049
28677 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28678 equality check if alias-set zero will prevail.
28679
28680 2019-04-15 Jeff Law <law@redhat.com>
28681
28682 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28683 size and alignment as unsigned.
28684
28685 2019-04-15 Richard Biener <rguenther@suse.de>
28686
28687 PR debug/90074
28688 * tree-loop-distribution.c (destroy_loop): Preserve correct
28689 debug info.
28690
28691 2019-04-15 Richard Biener <rguenther@suse.de>
28692
28693 PR tree-optimization/90071
28694 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28695 abnormal operands from def stmts.
28696
28697 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28698
28699 PR rtl-optimization/89794
28700 * combine.c (count_auto_inc): New function.
28701 (try_combine): Count how many auto_inc expressions there were in the
28702 original instructions. Ensure we have the same number in the new
28703 instructions. Remove the code that tried to ensure auto_inc side
28704 effects on i1 and i0 are not lost.
28705
28706 2019-04-15 Richard Biener <rguenther@suse.de>
28707
28708 PR ipa/88936
28709 * tree.h (auto_var_p): Declare.
28710 * tree.c (auto_var_p): New function, split out from ...
28711 (auto_var_in_fn_p): ... here.
28712 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28713 member.
28714 (new_var_info): Initialize it.
28715 (set_uids_in_ptset): Also set the shadow variable uid if required.
28716 (ipa_pta_execute): Postprocess points-to solutions assigning
28717 shadow variable uids for locals that may reach their containing
28718 function recursively.
28719 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28720 assert but instead check whether the points-to solution is
28721 a singleton.
28722
28723 2019-04-15 Martin Jambor <mjambor@suse.cz>
28724
28725 PR ipa/pr89693
28726 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28727 the thunk chain.
28728
28729 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28730
28731 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28732
28733 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28734 Kito Cheng <kito.cheng@gmail.com>
28735 Shiva Chen <shiva0217@gmail.com>
28736
28737 * config/nds32/nds32-md-auxiliary.c
28738 (nds32_legitimize_pic_address): Use new PIC pattern.
28739 (nds32_legitimize_tls_address): Use new TLS pattern.
28740 (nds32_output_symrel): New.
28741 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28742 (nds32_alloc_relax_group_id): Ditto.
28743 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28744 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28745 relax_group_id.
28746 (nds32_group_tls_insn): Ditto.
28747 (nds32_group_float_insns): Ditto.
28748 * config/nds32/nds32.md (tls_le): New.
28749 (sym_got): Ditto.
28750
28751 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28752
28753 * configure: Add nds32 target for dwarf2 debug_line checking.
28754 * configure.ac: Regenerated.
28755
28756 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28757
28758 PR lto/89358
28759 * ipa-devirt.c (skip_in_fields_list_p): New.
28760 (odr_types_equivalent_p): Use it.
28761
28762 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28763
28764 PR target/89093
28765 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28766 instead of strncmp when checking for thumb and arm. Formatting fixes.
28767
28768 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28769
28770 * doc/install.texi: Document --with-target-system-zlib.
28771
28772 2019-04-12 Martin Sebor <msebor@redhat.com>
28773
28774 PR c/88383
28775 PR c/89288
28776 PR c/89798
28777 PR c/89797
28778 * targhooks.c (default_vector_alignment): Avoid assuming
28779 argument fits in SHWI.
28780 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28781 a shift expression.
28782 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28783
28784 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28785
28786 PR rtl-optimization/89965
28787 * dce.c: Include rtl-iter.h.
28788 (struct check_argument_load_data): New type.
28789 (check_argument_load): New function.
28790 (find_call_stack_args): Check for loads from stack slots still tracked
28791 in sp_bytes and punt if any is found.
28792
28793 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28794
28795 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28796
28797 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28798 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28799
28800 2019-04-12 Martin Liska <mliska@suse.cz>
28801
28802 PR middle-end/89970
28803 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28804 in error message.
28805 (separate_attrs): Handle multiple 'default's.
28806 (expand_target_clones): Rework error handling code.
28807
28808 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28809
28810 PR target/87532
28811 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28812 mode of vector rather than mode of destination for move instruction.
28813 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28814 Use QI inner mode with V16QI vector mode.
28815
28816 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28817
28818 PR target/52726
28819 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28820 "invalid %%t operand" in output_operand_lossage message.
28821
28822 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28823
28824 * config/s390/predicates.md (permute_pattern_operand): New
28825 predicate.
28826 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28827 operand for the permute pattern.
28828 ("*vec_perm<mode>"): New insn definition.
28829 ("bswap<mode>"): Generate the permute pattern operand in the
28830 expander and perform the operand reloads for pre arch13 level
28831 already.
28832 ("*bswap<mode>_emu"): Rename to ...
28833 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28834 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28835 Add the USE operand for the permute pattern.
28836 ("*vec_set_bswap_vec<mode>"): Likewise.
28837
28838 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28839
28840 PR c/89946
28841 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28842 and gcc_unreachable if it fails, just call tree_to_uhwi which
28843 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28844 Start warning message with a lower-case letter. Formatting fixes.
28845
28846 PR rtl-optimization/90026
28847 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28848 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28849 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28850 in cfglayout mode, use emit_barrier_after_bb.
28851
28852 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28853
28854 PR rtl-optimization/87763
28855 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28856 New Instruction.
28857
28858 2019-04-11 Tom de Vries <tdevries@suse.de>
28859
28860 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28861 max macro using statement expression.
28862
28863 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28864
28865 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28866 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28867 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28868 read_only_private_data_section using xcoff_private_rodata_section_name.
28869 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28870
28871 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28872
28873 PR target/90016
28874 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28875
28876 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28877
28878 PR rtl-optimization/89965
28879 * dce.c (sp_based_mem_offset): New function.
28880 (find_call_stack_args): Use sp_based_mem_offset.
28881
28882 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28883
28884 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28885
28886 2019-04-11 Richard Biener <rguenther@suse.de>
28887
28888 PR tree-optimization/90020
28889 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28890 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28891 * tree-ssa-pre.c (compute_avail): Use it to not put
28892 possibly trapping references after a call that might not
28893 return into EXP_GEN.
28894 * gcse.c (compute_hash_table_work): Do not elide
28895 marking a block containing a call if the call might not
28896 return.
28897
28898 2019-04-11 Richard Biener <rguenther@suse.de>
28899
28900 PR tree-optimization/90018
28901 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28902 Test both SLP and interleaving variants.
28903
28904 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28905
28906 * config/s390/8561.md: New file.
28907 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28908 Add arch13 cpu model.
28909 * config/s390/s390-opts.h (enum processor_type): Likewise.
28910 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28911 (s390_get_unit_mask): Likewise.
28912 (s390_is_fpd): Likewise.
28913 (s390_is_fxd): Likewise.
28914 * config/s390/s390.h (s390_tune_attr): Likewise.
28915 * config/s390/s390.md: Include arch13 pipeline description.
28916 * config/s390/s390.opt: Add arch13.
28917
28918 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28919
28920 PR rtl-optimization/87763
28921 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28922 New prototype.
28923 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28924 New function.
28925 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28926 New instruction.
28927 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28928 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28929 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28930 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28931
28932 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28933
28934 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28935 "Although" in -fipa-icf documentation.
28936
28937 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28938 of using multiple -g options.
28939
28940 2019-04-10 Martin Liska <mliska@suse.cz>
28941
28942 PR gcov-profile/89959
28943 * doc/gcov.texi: Make documentation of -x option
28944 more precise.
28945
28946 2019-04-10 Richard Biener <rguenther@suse.de>
28947
28948 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28949 member.
28950 (DR_GROUP_SAME_DR_STMT): Remove.
28951 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28952 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28953 replace with assert.
28954 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28955 (vect_record_grouped_load_vectors): Remove unreachable code.
28956
28957 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28958
28959 PR target/90016
28960 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28961 obsolete reference to N.
28962
28963 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28964
28965 PR middle-end/90025
28966 * expr.c (store_expr): Set properly size on the MEM passed to
28967 clear_storage.
28968
28969 PR c++/90010
28970 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28971 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28972 translation is needed, and when translation is needed, only append
28973 ... if the string length is hostsz or more bytes long. Avoid using
28974 strncpy or strcat.
28975
28976 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28977
28978 PR target/90024
28979 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28980 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28981 into three.
28982 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28983 differences directly.
28984 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28985
28986 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28987
28988 PR translation/90011
28989 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28990 from diagnostics.
28991 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28992 diagnostics.
28993 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28994 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28995 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28996 trailing space from -gsplit-dwarf diagnostics.
28997
28998 PR tree-optimization/89998
28999 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29000 instead of integer_type_node if possible, don't add ranges if return
29001 type is not compatible with int.
29002 * gimple-fold.c (gimple_fold_builtin_sprintf,
29003 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29004 integer_type_node.
29005
29006 2019-04-09 Martin Liska <mliska@suse.cz>
29007
29008 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29009 * doc/install.texi: Document the new config.
29010
29011 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29012
29013 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29014 use gimple_expr_type for load and store calls. Skip over the
29015 condition argument in a conditional internal function.
29016 Protect use of TREE_INT_CST_LOW.
29017
29018 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29019
29020 PR target/90015
29021 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29022 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29023 trailing period from it too.
29024
29025 2019-04-08 wu yuan <wuyuan5@huawei.com>
29026
29027 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29028 * config/aarch64/aarch64.md: Add "tsv110.md".
29029 * config/aarch64/tsv110.md: New file.
29030
29031 2019-04-08 Richard Biener <rguenther@suse.de>
29032
29033 PR tree-optimization/90006
29034 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29035 calls like lrint.
29036
29037 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29038
29039 PR target/83033
29040 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29041 construction.
29042 (fma_root_node): Likewise.
29043 (func_fma_steering): Likewise.
29044
29045 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29046
29047 PR rtl-optimization/89865
29048 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29049
29050 PR rtl-optimization/89865
29051 * config/i386/i386.md
29052 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29053 numbers not to clash with the additional operands[4].
29054 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29055 with extra register copy in the middle.
29056
29057 2019-04-08 Martin Liska <mliska@suse.cz>
29058
29059 PR gcov-profile/89961
29060 * doc/gcov.texi: Document data_file.
29061 * gcov.c (generate_results): Add data_info into JSON output.
29062
29063 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29064
29065 PR tree-optimization/89725
29066 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29067 loop's chrec as invariant symbol.
29068 * tree-chrec.h (chrec_contains_symbols): New parameter.
29069 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29070 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29071 function of loops not in DDR's loop_nest.
29072 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29073
29074 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29075
29076 PR target/89623
29077 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29078 Mask.
29079
29080 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29081
29082 PR target/89945
29083 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29084 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29085
29086 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29087
29088 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29089 targetm.fixed_condition_code_regs.
29090
29091 2019-04-05 Richard Biener <rguenther@suse.de>
29092
29093 PR debug/89892
29094 PR debug/89905
29095 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29096 debug bind stmts but reset them if they are not valid at the
29097 destination.
29098
29099 2019-04-05 Martin Liska <mliska@suse.cz>
29100
29101 PR translation/89936
29102 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29103 order to wrap keywords or arguments.
29104 * collect2.c (main): Likewise.
29105 (scan_prog_file): Likewise.
29106 (scan_libraries): Likewise.
29107 * common/config/riscv/riscv-common.c
29108 (riscv_subset_list::parsing_subset_version): Likewise.
29109 (riscv_subset_list::parse_std_ext): Likewise.
29110 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29111 Likewise.
29112 * config/arm/arm.c (arm_option_override): Likewise.
29113 * config/cris/cris.c (cris_print_operand): Likewise.
29114 * config/darwin-c.c (darwin_pragma_options): Likewise.
29115 (darwin_pragma_unused): Likewise.
29116 (darwin_pragma_ms_struct): Likewise.
29117 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29118 * config/i386/i386.c (print_reg): Likewise.
29119 (ix86_print_operand): Likewise.
29120 * config/i386/xm-djgpp.h: Likewise.
29121 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29122 * config/m32c/m32c.c (m32c_option_override): Likewise.
29123 * config/msp430/msp430.c (msp430_option_override): Likewise.
29124 * config/nds32/nds32.c (nds32_option_override): Likewise.
29125 * config/nvptx/mkoffload.c (main): Likewise.
29126 * config/rx/rx.c (rx_print_operand): Likewise.
29127 (valid_psw_flag): Likewise.
29128 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29129 (vms_pragma_nomember_alignment): Likewise.
29130 (vms_pragma_extern_model): Likewise.
29131 * lto-wrapper.c (compile_offload_image): Likewise.
29132 * omp-offload.c (oacc_parse_default_dims): Likewise.
29133 * symtab.c (symtab_node::verify_base): Likewise.
29134 * tlink.c (recompile_files): Likewise.
29135 (start_tweaking): Likewise.
29136 * tree-profile.c (parse_profile_filter): Likewise.
29137
29138 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29139
29140 PR tree-optimization/89956
29141 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29142 multiple negates of the same value.
29143
29144 2019-04-04 Martin Sebor <msebor@redhat.com>
29145
29146 PR middle-end/89957
29147 PR middle-end/89911
29148 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29149 have the same precision since the function crashes otherwise.
29150 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29151 has non-zero arguments.
29152
29153 2019-04-04 Martin Sebor <msebor@redhat.com>
29154
29155 PR middle-end/89934
29156 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29157 out if the number of arguments is less than expected.
29158
29159 2019-04-04 Jeff Law <law@redhat.com>
29160
29161 PR rtl-optimization/89399
29162 * ree.c (combine_set_extension): Use single_set rather than
29163 digging into PATTERN for items on the candidate list.
29164 (combine_reaching_defs): Likewise.
29165
29166 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29167
29168 PR rtl-optimization/46590
29169 * loop-invariant.c (find_defs): Move df_remove_problem and
29170 df_process_deferred_rescans to move_invariants.
29171 Move df_live_add_problem and df_live_set_all_dirty calls
29172 to move_invariants.
29173 (move_invariants): Likewise.
29174 (move_loop_invariants): Likewise, making the df_live calls
29175 conditional on -O. Remove the problem again if we added it
29176 locally.
29177
29178 2019-04-03 qing zhao <qing.zhao@oracle.com>
29179
29180 PR tree-optimization/89730
29181 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29182 -flive-patching=inline-only-static.
29183 (can_inline_edge_by_limits_p): Add the checking for
29184 -flive-patching=inline-only-static and grant always_inline
29185 even when -flive-patching=inline-only-static is specified.
29186
29187 2019-04-03 Jeff Law <law@redhat.com>
29188
29189 PR rtl-optimization/81025
29190 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29191
29192 2019-04-03 Richard Biener <rguenther@suse.de>
29193
29194 PR tree-optimization/84101
29195 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29196 regs.h for hard_regno_nregs.
29197 (cfun_returns): New helper.
29198 (vect_model_store_cost): When vectorizing a store to a decl
29199 we return and the function ABI returns in a multi-reg location
29200 account for the possible spilling that will happen.
29201
29202 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29203
29204 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29205 displacement addresses for vector mode operands.
29206
29207 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29208
29209 * config/arc/arc.c (GMASK_LEN): Define.
29210 (arc_restore_callee_saves): Restore first blink when
29211 !optimize_size.
29212
29213 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29214
29215 * doc/extend.texi: Add deprecated comment on sign-return-address
29216 function attribute and add mbranch-protection.
29217 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29218
29219 2019-04-03 Richard Biener <rguenther@suse.de>
29220
29221 PR lto/89896
29222 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29223 the all target phony.
29224
29225 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29226
29227 PR target/89902
29228 PR target/89903
29229 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29230 Return false for variable DImode shifts.
29231 (dimode_scalar_chain::compute_convert_gain): Do not handle
29232 register count operand in variable DImode shifts.
29233 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29234 count argument of a variable shift instruction to a vector register.
29235 (dimode_scalar_chain::convert_reg): Remove support to convert
29236 count argument of a variable shift instruction.
29237
29238 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29239
29240 PR rtl-optimization/84206
29241 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29242 iterating over loop headers.
29243
29244 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29245
29246 PR rtl-optimization/85876
29247 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29248 beyond the original fence.
29249
29250 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29251
29252 * config.gcc: Mark spu* targets as deprecated/obsolete.
29253
29254 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29255
29256 * config/s390/s390-builtin-types.def: New builtin function type
29257 definitions. Remove unused types.
29258 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29259 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29260 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29261 overloaded builtins.
29262 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29263 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29264 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29265 (vec_double, vec_signed, vec_unsigned): Define to use the new
29266 overloaded builtins.
29267 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29268 Remove expanders.
29269
29270 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29271
29272 * config/s390/s390-builtin-types.def: New builtin function type
29273 definitions.
29274 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29275 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29276 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29277 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29278 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29279 constant definitions.
29280 * config/s390/vecintrin.h (vec_search_string_cc)
29281 (vec_search_string_until_zero_cc): New builtin name definitions.
29282 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29283 expanders.
29284 ("vec_vstrs<mode>"): New insn definition.
29285
29286 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29287
29288 * config/s390/s390-builtin-types.def: Add new builtin function
29289 types.
29290 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29291 New overloaded builtins.
29292 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29293 s390_vsrd.
29294 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29295 (UNSPEC_VEC_SLDBYTE): ... this.
29296 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29297 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29298 definitions.
29299 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29300 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29301 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29302
29303 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29304
29305 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29306 New insn definition.
29307 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29308 * config/s390/vector.md (V_HW_HSD): ... here.
29309
29310 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29311
29312 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29313 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29314 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29315 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29316 New insn definitions.
29317
29318 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29319
29320 * config/s390/s390-builtin-types.def: Add new builtin function type.
29321 * config/s390/s390-builtins.def: Add overloaded builtin
29322 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29323 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29324 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29325 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29326 ("eltswap<mode>"): New expander.
29327 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29328 insn definitions.
29329
29330 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29331
29332 * config/s390/s390-builtin-types.def: Add new builtin function types.
29333 * config/s390/s390-builtins.def: Add overloaded builtin
29334 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29335 instructions.
29336 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29337 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29338 ("bswap<mode>"): New expander.
29339 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29340
29341 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29342
29343 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29344 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29345 vector builtin version number in __VEC__.
29346
29347 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29348
29349 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29350 iterators.
29351 (SFSI): New mode attribute.
29352 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29353 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29354 rename to ...
29355 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29356 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29357 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29358 ("floatsi<mode>2"): Add wcefb instruction.
29359
29360 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29361
29362 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29363 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29364 mode iterators.
29365 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29366 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29367 support 32 bit fp-int conversions. Rename to ...
29368 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29369 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29370 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29371 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29372 ... to these.
29373
29374 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29375
29376 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29377 if-then-else constructs if we can use the select instruction.
29378 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29379
29380 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29381
29382 * config/s390/s390.md ("*popcountdi_arch13_cc")
29383 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29384 definition.
29385 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29386 Append _z196 to make it ...
29387 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29388 ("popcounthi2_z196"): ... this.
29389 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29390 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29391
29392 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29393
29394 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29395 certain compares for arch13 in order to make use of the condition
29396 code result produced by the new instructions.
29397 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29398 nxrk, and nxgrk instruction patterns.
29399 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29400 (inv_no): Add new code iterator together with some attributes.
29401 ("*andc_split_<mode>"): Disable splitter for arch13.
29402 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29403 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29404 ("*<ANDOR:bitops_name>c<GPR:mode>")
29405 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29406 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29407 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29408 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29409
29410 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29411
29412 * common/config/s390/s390-common.c (processor_flags_table): New
29413 entry for arch13.
29414 * config.gcc: Support arch13 with the --with-arch= configure flag.
29415 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29416 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29417 * config/s390/s390.c (s390_get_sched_attrmask)
29418 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29419 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29420 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29421 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29422 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29423 definitions.
29424 * config/s390/s390.opt: Support arch13 as processor type in
29425 command line options.
29426
29427 2019-04-02 Martin Liska <mliska@suse.cz>
29428
29429 PR translation/89912
29430 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29431 Fix param description of graphite-max-arrays-per-scop.
29432
29433 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29434
29435 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29436 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29437 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29438
29439 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29440
29441 PR rtl-optimization/85412
29442 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29443 sel_sched_region_1, not after.
29444
29445 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29446
29447 PR rtl-optimization/86928
29448 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29449 compute_live if necessary.
29450 (sel_redirect_edge_and_branch): Likewise.
29451
29452 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29453
29454 PR rtl-optimization/89865
29455 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29456 register if it is a part of small class.
29457
29458 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29459
29460 PR rtl-optimization/87273
29461 * sel-sched-ir.c (merge_fences): Remove assert.
29462
29463 2019-04-01 Richard Biener <rguenther@suse.de>
29464
29465 PR tree-optimization/46590
29466 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29467 (dom_walker::m_reachability): Add in place of...
29468 (dom_walker::m_skip_unreachable_blocks): ...this.
29469 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29470 Move complex initialization ...
29471 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29472 lazily and initialize edge flags on each invocation.
29473 (dom_walker::bb_reachable): Use m_reachability.
29474
29475 2019-04-01 Martin Liska <mliska@suse.cz>
29476
29477 PR driver/89861
29478 * opt-suggestions.c (option_proposer::build_option_suggestions):
29479 Add variant without any argument in order to provide better
29480 hints.
29481
29482 2019-04-01 Richard Biener <rguenther@suse.de>
29483
29484 PR c/71598
29485 * gimple.c: Include langhooks.h.
29486 (gimple_get_alias_set): Treat enumeral types as the underlying
29487 integer type.
29488
29489 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29490 Eric Botcazou <ebotcazou@adacore.com>
29491
29492 PR rtl-optimization/89862
29493 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29494 that operates on the full registers for WORD_REGISTER_OPERATIONS
29495 architectures.
29496
29497 2019-03-29 Jim Wilson <jimw@sifive.com>
29498
29499 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29500 Clear MASK_RVC and then set if C subset supported.
29501
29502 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29503
29504 PR c/89872
29505 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29506 non-addressable complit into its initializer if it is volatile.
29507
29508 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29509
29510 * opts-common.c (integral_argument): Set errno properly in one case.
29511
29512 2019-03-29 Martin Liska <mliska@suse.cz>
29513
29514 * doc/invoke.texi: Remove -Wchkp from documentation.
29515
29516 2019-03-29 Martin Liska <mliska@suse.cz>
29517
29518 * dbgcnt.c (print_limit_reach): New function.
29519 (dbg_cnt): Use it.
29520
29521 2019-03-29 Martin Liska <mliska@suse.cz>
29522
29523 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29524 (dbg_cnt_process_opt): Parse first tokens aas
29525 dbg_cnt_process_single_pair is also using strtok.
29526
29527 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29528
29529 PR rtl-optimization/87485
29530 * function.c (expand_function_end): Move stack_protect_epilogue
29531 before loading of return value into hard register(s).
29532
29533 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29534
29535 PR middle-end/89621
29536 * tree-inline.h (struct copy_body_data): Add
29537 dont_remap_vla_if_no_change flag.
29538 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29539 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29540 and remap_type_2 returns false.
29541 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29542 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29543 only from where it is copied to nested contexts.
29544
29545 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29546
29547 PR target/89865
29548 * config/i386/i386.md (RMW operation with LEA peephole):
29549 Use LEAMODE mode attribute instead of SWI mode iterator for
29550 LEA pattern.
29551
29552 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29553
29554 PR target/89848
29555 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29556 Also process XEXP (src, 0) of a shift insn.
29557
29558 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29559
29560 PR middle-end/89725
29561 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29562 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29563
29564 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29565
29566 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29567 test.
29568 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29569 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29570 immediately after first one with df_analyze in between, but rather
29571 process all bbs, queueing ones that need second pass in a worklist,
29572 df_analyze, process queued debug insn changes and if second pass is
29573 needed, process bbs from worklist, df_analyze, process queued debug
29574 insns again.
29575
29576 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29577 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29578 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29579
29580 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29581
29582 PR c/79022
29583 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29584 definition.
29585
29586 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29587
29588 PR target/85667
29589 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29590 function for 32-bit MS_ABI.
29591 (function_value_ms_32): New function.
29592
29593 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29594
29595 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29596 (movdi): Call gen_movdi_symbol_save_scc.
29597 (gen_movdi_symbol_save_scc): New insn and split.
29598
29599 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29600
29601 PR rtl-optimization/89313
29602 * function.c (matching_constraint_num): New static function.
29603 (match_asm_constraints_1): Use it. Fixup white space and comment.
29604 Don't replace inputs with non-matching constraints which conflict
29605 with early clobber outputs.
29606
29607 2019-03-27 Jeff Law <law@redhat.com>
29608
29609 PR rtl-optimization/87761
29610 PR rtl-optimization/89826
29611 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29612 slightly later.
29613 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29614 note problem to get REG_DEAD/REG_UNUSED notes updated.
29615
29616 2019-03-27 Richard Biener <rguenther@suse.de>
29617
29618 PR tree-optimization/89463
29619 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29620 queue edges to remove.
29621 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29622 dead stmts. Delay edge removal until PHIs are removed to
29623 make debug-stmt creation not confused by seemingly degenerate
29624 PHIs.
29625
29626 2019-03-27 Alan Modra <amodra@gmail.com>
29627
29628 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29629 throughout file.
29630 * config/rs6000/darwin.h: Likewise.
29631 * config/rs6000/rs6000.c: Likewise.
29632
29633 2019-03-27 Alan Modra <amodra@gmail.com>
29634
29635 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29636 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29637
29638 2019-03-26 Andrew Waterman <andrew@sifive.com>
29639 Jim Wilson <jimw@sifive.com>
29640
29641 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29642 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29643 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29644 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29645 (generic_alu): Add auipc to type list.
29646 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29647 (riscv_microarchitecture): Declare.
29648 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29649 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29650 field.
29651 (riscv_microarchitecture): New.
29652 (sifive_7_tune_info): New.
29653 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29654 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29655 entries.
29656 (riscv_store_data_bypass_p): New.
29657 (riscv_option_override): Set riscv_microarchitecture from
29658 cpu->microarchitecture.
29659 * config/riscv/riscv.md: Include sifive-7.md.
29660 (type): Add auipc.
29661 (tune): New.
29662 (auipc<mode>): Change type to auipc.
29663 (restore_stack_nonlocal): New.
29664 * config/riscv/sifive-7.md: New.
29665 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29666
29667 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29668
29669 PR target/89827
29670 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29671 Also process XEXP (src, 0) of a shift insn.
29672
29673 2019-03-26 Richard Biener <rguenther@suse.de>
29674
29675 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29676 (copy_debug_stmt): Likewise.
29677 (expand_call_inline): Likewise.
29678 (copy_bb): Avoid redundant lookup & set of gimple_block.
29679 * gimple-low.c (lower_gimple_return): Likewise.
29680 (lower_builtin_setjmp): Likewise.
29681
29682 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29683
29684 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29685 is constant 0, turn into static const data member initialized to false.
29686 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29687 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29688
29689 2019-03-26 Jason Merrill <jason@redhat.com>
29690 Jakub Jelinek <jakub@redhat.com>
29691
29692 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29693 method.
29694 (mem_alloc_description::release_object_overhead): Fix comment typos.
29695 * hash-table.h (hash_table::~hash_table): Call
29696 release_instance_overhead only if m_entries is non-NULL, otherwise
29697 call unregister_descriptor.
29698
29699 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29700
29701 PR tree-optimization/81740
29702 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29703 In case of outer loop vectorization, check for backward dependence
29704 at the inner loop if outer loop dependence is reversed.
29705
29706 2019-03-26 Alan Modra <amodra@gmail.com>
29707
29708 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29709 rs6000_vector_mem init. Correct wI and wJ comment.
29710
29711 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29712
29713 PR rtl-optimization/88347
29714 PR rtl-optimization/88423
29715 * sched-deps.c (sched_analyze_insn): Take into account that for
29716 tablejumps the barrier appears after a label and a jump_table_data.
29717
29718 2019-03-25 Martin Sebor <msebor@redhat.com>
29719
29720 PR c/89812
29721 * c-common.c (check_user_alignment): Rename local. Correct maximum
29722 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29723 convert it to UHWI when it fits.
29724
29725 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29726
29727 PR debug/86964
29728 * dwarf2out.c (premark_used_variables): New function.
29729 (prune_unused_types_walk): Do not mark not premarked external
29730 variables.
29731 (prune_unused_types): Call premark_used_variables.
29732
29733 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29734
29735 PR rtl-optimization/89676
29736 * lra-constraints.c (curr_insn_transform): Do match reload for
29737 early clobbers when the match was successful only for different
29738 registers.
29739
29740 2019-03-25 Martin Sebor <msebor@redhat.com>
29741
29742 * doc/extend.texi (Common Type Attributes): Document vector_size.
29743 (Common Variable Attributes): Mention size constraint. Correct
29744 quoting and typos.
29745 (Vector Extensions): Use @dfn when defining bas type. Clarify
29746 base type and size constraints.
29747
29748 2019-03-25 Richard Biener <rguenther@suse.de>
29749
29750 PR tree-optimization/89789
29751 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29752 changes from non-undefined back to undefined.
29753
29754 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29755
29756 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29757 heap string and a gc string, but since this variable is unknown to
29758 ggc the gc string might get reused and corrupted. Fixed by always
29759 using a heap string.
29760
29761 2019-03-25 Richard Biener <rguenther@suse.de>
29762
29763 PR tree-optimization/89779
29764 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29765 to remove IV defs, delay actual removal.
29766 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29767 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29768 very end, properly also reset loop control IV information.
29769
29770 2019-03-25 Richard Biener <rguenther@suse.de>
29771
29772 PR tree-optimization/89802
29773 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29774 move EH data to folded stmt.
29775
29776 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29777
29778 * config/s390/s390-builtin-types.def: Remove few unused types and
29779 fix sort order for others.
29780
29781 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29782
29783 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29784 expected and found types with -mdebug during builtin matching.
29785
29786 2019-03-25 Richard Biener <rguenther@suse.de>
29787
29788 PR middle-end/89790
29789 * fold-const.c (operand_equal_p): Revert last change with
29790 updated comment.
29791
29792 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29793
29794 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29795 notes for the result of the __tls_get_addr calls.
29796 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29797
29798 2019-03-24 Jeff Law <law@redhat.com>
29799
29800 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29801
29802 PR rtl-optimization/87761
29803 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29804 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29805 as needed.
29806 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29807 rescans. Reprocess blocks as needed, calling df_analyze before
29808 reprocessing. Always call df_analyze before fixing up debug bind
29809 insns.
29810
29811 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29812
29813 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29814 big endian.
29815
29816 2019-03-22 Andrew Pinski <apinski@marvell.com>
29817
29818 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29819 attrribute for uxtw.
29820
29821 2019-03-26 Jeff Law <law@redhat.com>
29822
29823 PR rtl-optimization/87761
29824 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29825 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29826 (mips_split_move): Accept new INSN argument. Try to forward SRC
29827 into the next instruction.
29828 (mips_split_move_insn): Pass INSN through to mips_split_move.
29829
29830 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29831
29832 PR rtl-optimization/89676
29833 * lra-constraints.c (curr_insn_transform): Do match reload for
29834 early clobbers even if the match was successful.
29835
29836 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29837
29838 PR c++/87481
29839 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29840
29841 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29842
29843 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29844
29845 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29846
29847 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29848 <avx512>_fmsub_<mode>_mask3<round_name>,
29849 <avx512>_fnmadd_<mode>_mask3<round_name>,
29850 <avx512>_fnmsub_<mode>_mask3<round_name>,
29851 avx512f_vmfmadd_<mode>_mask3<round_name>,
29852 avx512f_vmfmsub_<mode>_mask3<round_name>,
29853 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29854 instead of register_operand and %v instead of v for match_operand 1.
29855 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29856 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29857 <round_nimm_predicate> instead of register_operand and %v instead of v
29858 for match_operand 1.
29859
29860 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29861 <avx512>_fmadd_<mode>_mask3<round_name>,
29862 <avx512>_fmsub_<mode>_mask<round_name>,
29863 <avx512>_fmsub_<mode>_mask3<round_name>,
29864 <avx512>_fnmadd_<mode>_mask<round_name>,
29865 <avx512>_fnmadd_<mode>_mask3<round_name>,
29866 <avx512>_fnmsub_<mode>_mask<round_name>,
29867 <avx512>_fnmsub_<mode>_mask3<round_name>,
29868 <avx512>_fmaddsub_<mode>_mask<round_name>,
29869 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29870 <avx512>_fmsubadd_<mode>_mask<round_name>,
29871 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29872 <round_nimm_predicate> instead of nonimmediate_operand.
29873 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29874 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29875 Use register_operand instead of <round_nimm_predicate> for the
29876 operand that needs to match output.
29877 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29878 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29879 Likewise. Formatting fixes.
29880
29881 PR target/89784
29882 * config/i386/i386.c (enum ix86_builtins): Remove
29883 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29884 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29885 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29886 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29887 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29888 __builtin_ia32_vfmsubss3_mask3): New builtins.
29889 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29890 avx512f_vmfmadd_<mode>_mask3<round_name>,
29891 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29892 *avx512f_vmfmsub_<mode>_mask<round_name>,
29893 avx512f_vmfmsub_<mode>_mask3<round_name>,
29894 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29895 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29896 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29897 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29898 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29899 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29900 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29901 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29902 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29903 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29904 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29905 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29906 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29907 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29908 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29909 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29910 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29911 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29912 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29913 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29914 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29915 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29916 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29917 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29918 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29919 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29920 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29921 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29922
29923 2019-03-21 Martin Sebor <msebor@redhat.com>
29924
29925 PR tree-optimization/89350
29926 * builtins.c (compute_objsize): Also ignore offsets whose upper
29927 bound is negative.
29928 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29929 (builtin_memref::builtin_memref): Initialize new member.
29930 Allow EXPR to be null.
29931 (builtin_memref::extend_offset_range): Replace local with a member.
29932 Avoid assuming pointer offsets are unsigned.
29933 (builtin_memref::set_base_and_offset): Determine base object
29934 before computing offset range.
29935 (builtin_access::builtin_access): Handle memset.
29936 (builtin_access::generic_overlap): Replace local with a member.
29937 (builtin_access::strcat_overlap): Same.
29938 (builtin_access::overlap): Same.
29939 (maybe_diag_overlap): Same.
29940 (maybe_diag_access_bounds): Same.
29941 (wrestrict_dom_walker::check_call): Handle memset.
29942 (check_bounds_or_overlap): Same.
29943
29944 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29945 Jakub Jelinek <jakub@redhat.com>
29946
29947 PR lto/89692
29948 * tree.c (fld_type_variant, fld_incomplete_type_of,
29949 fld_process_array_type): Call fld->pset.add and don't call
29950 add_tree_to_fld_list if it returns true.
29951 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29952 non-marked types from TYPE_NEXT_VARIANT list.
29953 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29954
29955 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29956
29957 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29958 to false, if true, don't alloc_entries during construction, but defer
29959 it to the first method that needs m_entries allocated.
29960 (hash_table::hash_table, hash_table::~hash_table,
29961 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29962 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29963 hash_table::clear_slot, hash_table::traverse_noresize,
29964 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29965 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29966 false.
29967 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29968 NO_INSERT instead of find_with_hash.
29969 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29970 hash_set::m_table): Add Lazy to template params of hash_table.
29971 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29972 * attribs.c (test_attribute_exclusions): Likewise.
29973 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29974 hash_set. Add tests for hash_set with Lazy = true.
29975
29976 2019-03-21 Richard Biener <rguenther@suse.de>
29977
29978 PR tree-optimization/89779
29979 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29980 checks with respect to released SSA names now having error_mark_node
29981 type.
29982 * fold-const.c (operand_equal_p): Likewise.
29983
29984 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29985
29986 PR target/89775
29987 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29988 available to ...
29989 (s390_optimize_register_info): Use global_not_special_regno_p to
29990 check for global regs.
29991
29992 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29993
29994 PR target/89752
29995 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29996 update this_alternative nor this_alternative_set.
29997
29998 2019-03-19 Jim Wilson <jimw@sifive.com>
29999
30000 PR target/89411
30001 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30002 align, size, offset. Use them to handle a BLKmode reference. Update
30003 comment.
30004 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30005
30006 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30007
30008 PR rtl-optimization/89768
30009 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30010 instead of GEN_INT.
30011 (unroll_loop_runtime_iterations): Likewise.
30012
30013 2019-03-19 Martin Sebor <msebor@redhat.com>
30014
30015 PR tree-optimization/89644
30016 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30017 rather than endptr as an indicator of nul-termination.
30018
30019 PR tree-optimization/89644
30020 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30021 arrays in determining sequence sizes in strncpy and stpncpy.
30022
30023 2019-03-19 Martin Liska <mliska@suse.cz>
30024
30025 PR middle-end/89737
30026 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30027 unlikely_edges if there's an edge that belongs to both these sets.
30028
30029 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30030
30031 PR target/89746
30032 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30033 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30034 go via a stack temporary.
30035
30036 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30037
30038 PR target/89378
30039 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30040 instead of gen_rtx_SUBREG.
30041 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30042
30043 2019-03-19 Richard Biener <rguenther@suse.de>
30044
30045 PR debug/88389
30046 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30047
30048 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30049
30050 PR lto/87809
30051 PR lto/89335
30052 * tree.c (free_lang_data_in_decl): Do not free context of C++
30053 destrutors.
30054
30055 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30056
30057 PR target/89506
30058 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30059 subs for the first alternative except when operands[3] is 1.
30060
30061 PR target/89752
30062 * gimplify.c (gimplify_asm_expr): For output argument with
30063 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30064 diagnose error.
30065
30066 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30067
30068 PR rtl-optimization/89753
30069 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30070 explicit unrolling factor even more robust.
30071
30072 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30073
30074 PR target/89726
30075 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30076 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30077 signed zeros, do another copysign after the compensation.
30078
30079 2019-03-18 Martin Sebor <msebor@redhat.com>
30080
30081 PR tree-optimization/89720
30082 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30083 more conservatively, the same as anti-range.
30084
30085 2019-03-18 Richard Biener <rguenther@suse.de>
30086
30087 PR middle-end/88945
30088 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30089 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30090 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30091 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30092
30093 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30094
30095 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30096 Extend queue to 1024 entries.
30097 Add "consumed" field.
30098 (gomp_print_output): Remove print_index parameter.
30099 Add final parameter.
30100 Change limit to unsigned.
30101 Use consumed field to implement circular buffer.
30102 Detect interrupted print in final pass.
30103 Flush output at the end.
30104 (run): Update gomp_print_output usage.
30105 (main): Initialize kernargs->output_data.consumed.
30106
30107 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30108
30109 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30110 calculation of the minimum number of scalar iterations for
30111 fully-predicated loops.
30112
30113 2019-03-18 Martin Jambor <mjambor@suse.cz>
30114
30115 PR tree-optimization/89546
30116 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30117 any propagation to its children took place.
30118
30119 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30120
30121 PR target/89627
30122 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30123 parameter, and make use of it.
30124 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30125
30126 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30127
30128 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30129 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30130 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30131 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30132 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30133 match what the ops is doing.
30134 (push_multi_fp_blink): Likewise.
30135 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30136 compiling for size and elf target.
30137 (arc_save_callee_enter): Adjust note to match what enter/leave
30138 operation does.
30139
30140 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30141
30142 * config/arc/arc.md (tst_movb): Fix constraint.
30143
30144 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30145
30146 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30147
30148 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30149
30150 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30151 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30152 reg_alloc_order references.
30153 (size_alloc_order): Define.
30154 (arc_adjust_reg_alloc_order): New function.
30155 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30156 order.
30157 (ADJUST_REG_ALLOC_ORDER): Define.
30158 (HONOR_REG_ALLOC_ORDER): Likewise.
30159
30160 2019-03-18 Richard Biener <rguenther@suse.de>
30161
30162 PR target/87561
30163 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30164 loads and stores a bit more.
30165
30166 2019-03-18 Richard Biener <rguenther@suse.de>
30167
30168 PR target/87561
30169 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30170 load pessimization to stores as well.
30171
30172 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30173
30174 PR middle-end/86979
30175 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30176 successor, use NULL as its av set.
30177
30178 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30179
30180 PR rtl-optimization/89721
30181 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30182
30183 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30184
30185 PR target/87532
30186 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30187 When handling vec_extract, use modular arithmetic to allow
30188 constant selectors greater than vector length.
30189 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30190 V1TImode vectors to have constant selector values greater than 0.
30191 Use modular arithmetic to compute vector index.
30192 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30193 index for in-memory vectors. Correct code generation for
30194 in-register vectors.
30195 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30196 compute index.
30197
30198 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30199
30200 PR c++/88534
30201 PR c++/88537
30202 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30203 VAR_DECL args.
30204
30205 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30206
30207 PR c++/89709
30208 * tree.c (inchash::add_expr): Strip any location wrappers.
30209 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30210 after hash verification.
30211
30212 PR debug/89704
30213 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30214 SIGN_EXTEND and ZERO_EXTEND.
30215
30216 2019-03-14 Jason Merrill <jason@redhat.com>
30217 Jakub Jelinek <jakub@redhat.com>
30218
30219 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30220 than if is_empty (*slot).
30221 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30222 existing elt and for elt removal.
30223 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30224 of already removed elt.
30225
30226 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30227
30228 PR target/89650
30229 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30230 REG_EH_REGION note.
30231
30232 2019-03-14 Martin Liska <mliska@suse.cz>
30233
30234 PR other/89712
30235 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30236
30237 2019-03-14 Richard Biener <rguenther@suse.de>
30238
30239 PR target/89711
30240 * config/i386/i386.c (make_resolver_func): Properly set
30241 DECL_CONTEXT on the RESULT_DECL.
30242 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30243
30244 2019-03-14 Richard Biener <rguenther@suse.de>
30245
30246 * gimple-pretty-print.c: Include cfgloop.h.
30247 (dump_gimple_phi): Adjust.
30248 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30249 (pp_cfg_jump): Adjust.
30250 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30251 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30252 (lower_phi_internal_fn): Remove.
30253 (verify_gimple_call): Remove IFN_PHI special-casing.
30254 (dump_function_to_file): Dump IL state.
30255 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30256 done to deal with PHI nodes being present in non-SSA state.
30257
30258 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30259
30260 PR ipa/89684
30261 * multiple_target.c (create_dispatcher_calls): Change
30262 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30263 In the node->iterate_referring loop, push *ref rather than ref, call
30264 ref->remove_reference () and always pass 0 to iterate_referring.
30265
30266 PR rtl-optimization/89679
30267 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30268 would contain a paradoxical SUBREG.
30269
30270 2019-03-14 Richard Biener <rguenther@suse.de>
30271
30272 PR tree-optimization/89710
30273 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30274 safe_dyn_cast.
30275
30276 2019-03-14 Martin Liska <mliska@suse.cz>
30277
30278 * coverage.c (coverage_begin_function): Stream also
30279 end_column.
30280 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30281 documentation about function declaration location.
30282 * gcov-dump.c (tag_function): Print whole range
30283 of function declaration.
30284 * gcov.c (struct function_info): Add end_column field.
30285 (function_info::function_info): Initialize it.
30286 (output_json_intermediate_file): Output {start,end}_column
30287 fields.
30288 (read_graph_file): Read end_column.
30289
30290 2019-03-14 Richard Biener <rguenther@suse.de>
30291
30292 PR middle-end/89698
30293 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30294 that the access types are similar.
30295
30296 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30297
30298 PR tree-optimization/89703
30299 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30300 aren't compatible also with builtin_decl_explicit. Check pure
30301 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30302 and BUILT_IN_STPNCPY{,_CHK}.
30303
30304 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30305
30306 PR target/89523
30307 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30308 addr32 prefix to VSIB address for X32.
30309 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30310 "%M2" to opcode.
30311 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30312 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30313 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30314 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30315 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30316 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30317 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30318 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30319 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30320 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30321 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30322 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30323 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30324 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30325 (*avx512f_scatterdi<mode>): Likewise.
30326
30327 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30328
30329 PR target/85860
30330 * lra-constraints.c (inherit_in_ebb): Update
30331 potential_reload_hard_regs along with live_hard_regs.
30332
30333 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30334
30335 PR debug/89498
30336 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30337 DWARF_OFFSET_SIZE.
30338 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30339
30340 2019-03-13 Martin Sebor <msebor@redhat.com>
30341
30342 PR tree-optimization/89662
30343 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30344 has a size.
30345
30346 2019-03-13 Richard Biener <rguenther@suse.de>
30347
30348 PR middle-end/89677
30349 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30350 throw FP expressions at tree-affine.
30351
30352 2019-03-14 Richard Biener <rguenther@suse.de>
30353
30354 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30355 dump negative integer constants using _Literal (type) -num.
30356
30357 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30358
30359 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30360 nonlocal_value member.
30361
30362 PR middle-end/88588
30363 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30364 (ipa_simd_modify_function_body): Handle PHIs.
30365
30366 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30367
30368 * config/s390/s390.c (s390_option_override_internal): Use more
30369 aggressive inlining parameters.
30370
30371 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30372
30373 * config/s390/3906.md: New file.
30374 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30375 (LONGRUNNING_THRESHOLD): Remove.
30376 (MAX_SCHED_MIX_SCORE): Decrease.
30377 (MAX_SCHED_MIX_DISTANCE): Decrease.
30378 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30379 (struct s390_sched_state): New struct to hold scheduling state.
30380 (S390_SCHED_STATE_NORMAL): Remove.
30381 (S390_SCHED_STATE_CRACKED): Remove.
30382 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30383 (s390_get_sched_attrmask): Use new attribute.
30384 (s390_get_unit_mask): Use new units.
30385 (s390_is_fpd): New function.
30386 (s390_is_fxd): New function.
30387 (s390_is_longrunning): New function.
30388 (s390_sched_score): Use new functions.
30389 (s390_sched_reorder): Likewise.
30390 (s390_sched_variable_issue): Rework and use new functions.
30391 (s390_sched_init): Use new functions.
30392 * config/s390/s390.h (s390_tune_attr): Add z14.
30393 * config/s390/s390.md: Add z14.
30394
30395 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30396
30397 * config/s390/2964.md: Update pipeline description.
30398 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30399 (LONGRUNNING_THRESHOLD): Remove.
30400 (LATENCY_FACTOR): Remove.
30401 (s390_get_unit_mask): Add unit.
30402 (s390_sched_score): Use fxd/fpd.
30403 (s390_sched_variable_issue): Use fxd/fpd.
30404
30405 2019-03-12 Martin Liska <mliska@suse.cz>
30406
30407 * config/i386/i386.c: Reword an error message.
30408
30409 2019-03-12 Martin Jambor <mjambor@suse.cz>
30410
30411 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30412 terminate with newline.
30413
30414 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30415
30416 PR target/52726
30417 * config/s390/s390.md (tabort): Use %wd instead of
30418 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30419 letters and periods.
30420 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30421 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30422 's with %< and %>.
30423
30424 PR middle-end/89663
30425 * builtins.c (expand_builtin_int_roundingfn,
30426 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30427 gcc_unreachable if validate_arglist fails.
30428
30429 2019-03-12 Richard Biener <rguenther@suse.de>
30430
30431 PR tree-optimization/89664
30432 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30433 free the occurance tree after the early out.
30434
30435 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30436
30437 PR middle-end/89655
30438 PR bootstrap/89656
30439 * vr-values.c (vr_values::update_value_range): If
30440 old_vr->varying_p (), don't update it, make new_vr also VARYING
30441 and return false.
30442
30443 2019-03-11 Martin Liska <mliska@suse.cz>
30444
30445 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30446 Fix double string quoting.
30447
30448 2019-03-11 Martin Liska <mliska@suse.cz>
30449
30450 * collect-utils.c (collect_wait): Wrap apostrophes
30451 in gcc internal format with %'.
30452 * collect2.c (main): Likewise.
30453 (scan_prog_file): Likewise.
30454 (scan_libraries): Likewise.
30455 * config/i386/i386.c (ix86_expand_call): Likewise.
30456 (ix86_handle_interrupt_attribute): Likewise.
30457 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30458 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30459 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30460 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30461 * symtab.c (symtab_node::verify_base): Likewise.
30462 * tree-cfg.c (verify_gimple_label): Likewise.
30463 * tree.c (verify_type_variant): Likewise.
30464
30465 2019-03-11 Martin Liska <mliska@suse.cz>
30466
30467 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30468 in a string format message and fix GNU coding style.
30469 (expand_builtin_set_thread_pointer): Likewise.
30470 * common/config/aarch64/aarch64-common.c
30471 (aarch64_rewrite_selected_cpu): Likewise.
30472 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30473 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30474 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30475 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30476 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30477 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30478 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30479 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30480 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30481 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30482 Likewise.
30483 * common/config/riscv/riscv-common.c
30484 (riscv_subset_list::parsing_subset_version): Likewise.
30485 (riscv_subset_list::parse_std_ext): Likewise.
30486 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30487 (riscv_subset_list::parse): Likewise.
30488 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30489 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30490 (aarch64_override_options_internal): Likewise.
30491 (aarch64_validate_mcpu): Likewise.
30492 (aarch64_validate_march): Likewise.
30493 (aarch64_validate_mtune): Likewise.
30494 (aarch64_override_options): Likewise.
30495 * config/alpha/alpha.c (alpha_option_override): Likewise.
30496 * config/arc/arc.c (arc_init): Likewise.
30497 (parse_mrgf_banked_regs_option): Likewise.
30498 (arc_override_options): Likewise.
30499 (arc_expand_builtin_aligned): Likewise.
30500 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30501 (arm_expand_builtin): Likewise.
30502 * config/arm/arm.c (arm_option_check_internal): Likewise.
30503 (arm_configure_build_target): Likewise.
30504 (arm_option_override): Likewise.
30505 (arm_options_perform_arch_sanity_checks): Likewise.
30506 (arm_handle_cmse_nonsecure_entry): Likewise.
30507 (arm_handle_cmse_nonsecure_call): Likewise.
30508 (arm_tls_referenced_p): Likewise.
30509 (thumb1_expand_prologue): Likewise.
30510 * config/avr/avr.c (avr_option_override): Likewise.
30511 * config/bfin/bfin.c (bfin_option_override): Likewise.
30512 * config/c6x/c6x.c (c6x_option_override): Likewise.
30513 * config/cr16/cr16.c (cr16_override_options): Likewise.
30514 * config/cris/cris.c (cris_option_override): Likewise.
30515 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30516 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30517 * config/darwin.c (darwin_override_options): Likewise.
30518 * config/frv/frv.c (frv_expand_builtin): Likewise.
30519 * config/h8300/h8300.c (h8300_option_override): Likewise.
30520 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30521 (ix86_option_override_internal): Likewise.
30522 (warn_once_call_ms2sysv_xlogues): Likewise.
30523 (ix86_expand_prologue): Likewise.
30524 (split_stack_prologue_scratch_regno): Likewise.
30525 (ix86_warn_parameter_passing_abi): Likewise.
30526 * config/ia64/ia64.c (fix_range): Likewise.
30527 * config/m68k/m68k.c (m68k_option_override): Likewise.
30528 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30529 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30530 (mips_set_compression_mode): Likewise.
30531 * config/mmix/mmix.c (mmix_option_override): Likewise.
30532 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30533 * config/msp430/msp430.c (msp430_option_override): Likewise.
30534 * config/nds32/nds32.c (nds32_option_override): Likewise.
30535 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30536 (nios2_option_override): Likewise.
30537 (nios2_expand_custom_builtin): Likewise.
30538 * config/nvptx/mkoffload.c (main): Likewise.
30539 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30540 * config/pa/pa.c (fix_range): Likewise.
30541 (pa_option_override): Likewise.
30542 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30543 (riscv_option_override): Likewise.
30544 * config/rl78/rl78.c (rl78_option_override): Likewise.
30545 * config/rs6000/aix61.h: Likewise.
30546 * config/rs6000/aix71.h: Likewise.
30547 * config/rs6000/aix72.h: Likewise.
30548 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30549 * config/rs6000/freebsd64.h: Likewise.
30550 * config/rs6000/linux64.h: Likewise.
30551 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30552 (rs6000_expand_zeroop_builtin): Likewise.
30553 (rs6000_expand_mtfsb_builtin): Likewise.
30554 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30555 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30556 (rs6000_invalid_builtin): Likewise.
30557 (rs6000_expand_split_stack_prologue): Likewise.
30558 * config/rs6000/rtems.h: Likewise.
30559 * config/rx/rx.c (valid_psw_flag): Likewise.
30560 (rx_expand_builtin): Likewise.
30561 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30562 * config/s390/s390.c (s390_expand_builtin): Likewise.
30563 (s390_function_profiler): Likewise.
30564 (s390_option_override_internal): Likewise.
30565 (s390_option_override): Likewise.
30566 * config/sh/sh.c (sh_option_override): Likewise.
30567 (sh_builtin_saveregs): Likewise.
30568 (sh_fix_range): Likewise.
30569 * config/sh/vxworks.h: Likewise.
30570 * config/sparc/sparc.c (sparc_option_override): Likewise.
30571 * config/spu/spu.c (spu_option_override): Likewise.
30572 (fix_range): Likewise.
30573 * config/visium/visium.c (visium_option_override): Likewise.
30574 (visium_handle_interrupt_attr): Likewise.
30575 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30576 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30577 (dbg_cnt_process_opt): Likewise.
30578 * dwarf2out.c (output_dwarf_version): Likewise.
30579 * except.c (expand_eh_return): Likewise.
30580 * gcc.c (defined): Likewise.
30581 (driver_handle_option): Likewise.
30582 (process_command): Likewise.
30583 (compare_files): Likewise.
30584 (driver::prepare_infiles): Likewise.
30585 (driver::do_spec_on_infiles): Likewise.
30586 (driver::maybe_run_linker): Likewise.
30587 * omp-offload.c (oacc_parse_default_dims): Likewise.
30588 * opts-global.c (handle_common_deferred_options): Likewise.
30589 * opts.c (parse_sanitizer_options): Likewise.
30590 (common_handle_option): Likewise.
30591 (enable_warning_as_error): Likewise.
30592 * passes.c (enable_disable_pass): Likewise.
30593 * plugin.c (parse_plugin_arg_opt): Likewise.
30594 (default_plugin_dir_name): Likewise.
30595 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30596 (default_pch_valid_p): Likewise.
30597 * toplev.c (init_asm_output): Likewise.
30598 (process_options): Likewise.
30599 (toplev::run_self_tests): Likewise.
30600 * tree-cfg.c (verify_gimple_call): Likewise.
30601 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30602 (tree_inlinable_function_p): Likewise.
30603 * var-tracking.c (vt_find_locations): Likewise.
30604
30605 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30606
30607 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30608 only on the else branch.
30609
30610 2019-03-11 Martin Liska <mliska@suse.cz>
30611
30612 * gcov.c (output_intermediate_json_line): Print function
30613 name of each line.
30614 (output_json_intermediate_file): Add new argument.
30615 * doc/gcov.texi: Document the change.
30616
30617 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30618
30619 PR rtl-optimization/89588
30620 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30621 explicit unrolling factor more robust.
30622
30623 2019-03-11 Richard Biener <rguenther@suse.de>
30624
30625 PR tree-optimization/89649
30626 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30627 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30628 on the prolog and epilog loops.
30629 (vect_loop_versioning): Return copy of loop.
30630 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30631 on the non-vectorized version of the loop.
30632
30633 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30634
30635 PR target/68924
30636 * config/i386/sse.md (*vec_extractv2di_0_sse):
30637 Add (=r,x) alternative and corresponding splitter.
30638
30639 2019-03-10 Martin Jambor <mjambor@suse.cz>
30640
30641 PR tree-optimization/85762
30642 PR tree-optimization/87008
30643 PR tree-optimization/85459
30644 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30645 it points to if there is a type changing MEM_REF. Adjust all callers.
30646 (build_accesses_from_assign): Disable total scalarization if
30647 contains_vce_or_bfcref_p returns true through the new parameter, for
30648 both rhs and lhs.
30649
30650 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30651
30652 PR c/88568
30653 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30654 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30655
30656 PR target/79645
30657 * common.opt (fdiagnostics-show-labels,
30658 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30659 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30660 gas-locview-support, ginline-points, ginternal-reset-location-views):
30661 Terminate description text with a dot.
30662 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30663 * config/mcore/mcore.opt (m210, m340): Likewise.
30664 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30665 mnops=): Start description text with a capital letter.
30666 * config/arc/arc.opt (msize-level=): Likewise.
30667 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30668 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30669 mnewlib): Likewise.
30670 * config/ft32/ft32.opt (msim): Likewise.
30671 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30672 (mnodiv, mnopm): Terminate description text with a dot.
30673 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30674 a colon.
30675 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30676 Likewise.
30677 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30678 text.
30679
30680 PR rtl-optimization/89634
30681 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30682 are modified in BB_END (e->src) instruction.
30683
30684 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30685
30686 PR target/79926
30687 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30688 messages more amenable to translation, and improve wording.
30689
30690 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30691
30692 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30693 ud- and du-chains between phases.
30694
30695 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30696
30697 PR debug/89631
30698 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30699 instead of POLY_INT_CST.
30700
30701 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30702
30703 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30704 requirement.
30705
30706 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30707
30708 PR target/68924
30709 PR target/78782
30710 PR target/87558
30711 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30712 (_mm_storeu_si64): Ditto.
30713
30714 2019-03-08 Martin Liska <mliska@suse.cz>
30715
30716 PR target/86952
30717 * config/i386/i386.c (ix86_option_override_internal): Disable
30718 jump tables when retpolines are used.
30719
30720 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30721
30722 PR go/63560
30723 * ipa-split.c (execute_split_functions): Do not split
30724 'noinline' or 'section' function.
30725
30726 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30727
30728 PR target/79846
30729 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30730 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30731 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30732
30733 PR ipa/80000
30734 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30735 from diagnostics. Formatting fixes.
30736
30737 PR target/85665
30738 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30739 warn_odr diagnostics.
30740
30741 PR other/80058
30742 * lra-constraints.c (process_alt_operands): Avoid one space before
30743 " at the end of line and another after " on another line in a string
30744 literal.
30745 * attribs.c (handle_dll_attribute): Likewise.
30746 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30747
30748 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30749 warning_at or inform messages in G_() if there is no ?:.
30750
30751 PR tree-optimization/89550
30752 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30753 returned true. Formatting fixes.
30754 (expand_builtin_strnlen): Formatting fixes.
30755 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30756 if warning_at returned true.
30757 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30758
30759 2019-03-08 Richard Biener <rguenther@suse.de>
30760
30761 PR middle-end/89578
30762 * cfgloop.h (struct loop): Add owned_clique field.
30763 * cfgloopmanip.c (copy_loop_info): Copy it.
30764 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30765 cliques.
30766 * tree-inline.c (copy_loops): Remap owned_clique.
30767 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30768 * lto-streamer-out.c (output_cfg): Likewise.
30769
30770 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30771
30772 PR target/80190
30773 * config/darwin.c: Include intl.h.
30774 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30775 composing the message out of two separate parts.
30776
30777 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30778
30779 PR target/80003
30780 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30781 doesn't start with a capital letter and doesn't end with a dot.
30782 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30783 with a capital letter.
30784 (ix86_mangle_function_version_assembler_name): Likewise.
30785 (ix86_generate_version_dispatcher_body): Likewise.
30786 (fold_builtin_cpu): Likewise.
30787 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30788 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30789 translators, wrap full type name in %qs.
30790
30791 PR translation/79999
30792 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30793 depend clause with source (or sink) modifier.
30794 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30795
30796 PR target/89602
30797 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30798 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30799 (avx512f_load<mode>_mask): New define_expand.
30800 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30801 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30802 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30803 __builtin_ia32_movess_mask): New builtins.
30804 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30805 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30806 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30807 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30808
30809 2019-03-07 Martin Jambor <mjambor@suse.cz>
30810
30811 PR lto/87525
30812 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30813 for extern inline functions.
30814
30815 2019-03-07 Martin Jambor <mjambor@suse.cz>
30816
30817 PR ipa/88235
30818 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30819 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30820 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30821 have multiple callees. At the end check if declarations match as
30822 opposed to cgraph_nodes.
30823
30824 2019-03-07 Martin Liska <mliska@suse.cz>
30825
30826 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30827 which is equivalent to searching for this in clones chain.
30828 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30829 names with a neighbour and special case first node in a chain.
30830
30831 2019-01-25 Jason Merrill <jason@redhat.com>
30832
30833 PR c++/80916 - spurious "static but not defined" warning.
30834 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30835 for an internal symbol with DECL_EXTERNAL.
30836
30837 2019-04-07 Richard Biener <rguenther@suse.de>
30838
30839 PR middle-end/89618
30840 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30841 * tree-inline.c (copy_loops): Simplify.
30842
30843 2019-03-07 Martin Liska <mliska@suse.cz>
30844
30845 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30846
30847 2019-03-07 Richard Biener <rguenther@suse.de>
30848
30849 PR tree-optimization/89595
30850 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30851 stmt iterator as reference, take boolean output parameter to
30852 indicate whether the stmt was removed and thus the iterator
30853 already advanced.
30854 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30855 stmts created by folding.
30856
30857 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30858
30859 PR c++/89585
30860 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30861 at toplevel.
30862
30863 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30864
30865 PR rtl-optimization/88845
30866 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30867 LRA.
30868 * lra.c (remove_scratches_1): New function.
30869 (remove_scratches): Use it.
30870 (lra_emit_move): Likewise.
30871
30872 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30873
30874 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30875 unaligned_access variable.
30876 * config/arc/arc.c (arc_override_options): Set unaligned access
30877 default on for HS CPUs.
30878 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30879
30880 2019-03-06 Martin Liska <mliska@suse.cz>
30881
30882 PR gcov-profile/89577
30883 * doc/gcov.texi: Prefer to use --coverage.
30884 * doc/sourcebuild.texi: Likewise.
30885
30886 2019-03-02 Jason Merrill <jason@redhat.com>
30887
30888 PR c++/86485 - -Wmaybe-unused with empty class ?:
30889 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30890
30891 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30892
30893 PR target/89587
30894 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30895 if_multiarch.
30896
30897 PR middle-end/89590
30898 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30899 exactly one argument.
30900
30901 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30902 Richard Sandiford <richard.sandiford@arm.com>
30903
30904 PR tree-optimization/89570
30905 * match.pd (vec_cond into cond_op simplification): Don't use
30906 get_conditional_internal_fn, use as_internal_fn (cond_op).
30907
30908 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30909
30910 PR target/89222
30911 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30912 to decide when to split off a non-zero offset from a symbol.
30913 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30914 in function symbols.
30915
30916 2019-03-05 Richard Biener <rguenther@suse.de>
30917
30918 PR tree-optimization/89594
30919 * tree-if-conv.c (pass_if_conversion::execute): Handle
30920 case where .LOOP_VECTORIZED_FUNCTION was removed.
30921
30922 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30923
30924 PR bootstrap/89560
30925 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30926 instead alloca it only when needed with the needed size.
30927
30928 PR tree-optimization/89570
30929 * match.pd (vec_cond into cond_op simplification): Guard with
30930 vectorized_internal_fn_supported_p test and #if GIMPLE.
30931
30932 PR tree-optimization/89566
30933 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30934 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30935 Punt if get_user_idx_format succeeds, but idx_format argument is
30936 not provided or doesn't have pointer type, or if idx_args is above
30937 number of provided arguments.
30938
30939 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30940
30941 PR tree-optimization/89437
30942 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30943
30944 2019-03-04 Richard Biener <rguenther@suse.de>
30945
30946 PR middle-end/89572
30947 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30948 safe_dyn_cast.
30949
30950 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30951
30952 PR tree-optimization/89487
30953 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30954 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30955 (distribute_loop): Don't do runtime alias check if there is non-
30956 addressable data reference.
30957 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30958 is a register variable.
30959
30960 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30961
30962 PR target/89506
30963 * config/arm/arm.md (cmpsi2_addneg): Use
30964 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30965 If operands[2] is 0 or INT_MIN, force use of subs.
30966 (*compare_scc splitter): Use gen_int_mode.
30967 (*negscc): Likewise.
30968 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30969
30970 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30971 Monk Chiang <sh.chiang04@gmail.com>
30972
30973 * common/config/riscv/riscv-common.c: Include sstream.
30974 (riscv_subset_list::to_string): New.
30975 (riscv_arch_str): Likewise.
30976 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30977 * config.in: Regen.
30978 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30979 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30980 (riscv_emit_attribute): New.
30981 (riscv_file_start): Emit attribute if needed.
30982 (riscv_option_override): Init riscv_emit_attribute_p.
30983 * config/riscv/riscv.opt (mriscv-attribute): New option.
30984 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30985 * configure: Regen.
30986 * doc/install.texi: Document --with-riscv-attribute.
30987 * doc/invoke.texi: Document -mriscv-attribute.
30988
30989 * common/config/riscv/riscv-common.c:
30990 Include config/riscv/riscv-protos.h.
30991 (INCLUDE_STRING): Defined.
30992 (RISCV_DONT_CARE_VERSION): Defined.
30993 (riscv_subset_t): Declare.
30994 (riscv_subset_t::riscv_subset_t): New.
30995 (riscv_subset_list): Declare.
30996 (riscv_subset_list::riscv_subset_list): New.
30997 (riscv_subset_list::~riscv_subset_list): Likewise.
30998 (riscv_subset_list::parsing_subset_version): Likewise.
30999 (riscv_subset_list::parse_std_ext): Likewise.
31000 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31001 (riscv_subset_list::add): Likewise.
31002 (riscv_subset_list::lookup): Likewise.
31003 (riscv_subset_list::xlen): Likewise.
31004 (riscv_subset_list::parse): Likewise.
31005 (riscv_supported_std_ext): Likewise.
31006 (current_subset_list): Likewise.
31007 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31008 parse.
31009
31010 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31011
31012 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31013 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31014 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31015
31016 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31017
31018 PR rtl-optimization/85899
31019 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31020 fallthru edges leading to the exit block.
31021
31022 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31023
31024 PR target/89517
31025 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31026 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31027
31028 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31029
31030 PR tree-optimization/89535
31031 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31032 for each operand. Calculate the fallback choice for mask operands
31033 and pass it to vect_get_vec_def_for_operand.
31034
31035 2019-03-01 Richard Biener <rguenther@suse.de>
31036
31037 PR middle-end/89541
31038 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31039 get virtual operands.
31040 (get_expr_operands): Handle CONST_DECL like other decls.
31041
31042 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31043
31044 PR middle-end/89503
31045 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31046 on DECL_P and EXPR_P.
31047
31048 2019-03-01 Richard Biener <rguenther@suse.de>
31049
31050 PR middle-end/89497
31051 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31052 argument, defaulted to zero.
31053 * passes.c (execute_function_todo): Pass down SSA update flags
31054 to cleanup_tree_cfg.
31055 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31056 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31057 form if requested.
31058 (cleanup_tree_cfg): Get and pass down SSA update flags.
31059
31060 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31061
31062 PR bootstrap/89539
31063 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31064 early_lto_debug argument.
31065
31066 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31067
31068 PR tree-optimization/89536
31069 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31070 only whether bit #0 of the value is 0 instead of the entire value.
31071
31072 2019-02-28 Marek Polacek <polacek@redhat.com>
31073
31074 PR c++/87068 - missing diagnostic with fallthrough statement.
31075 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31076 at the end of a seq, save its location to walk_stmt_info.
31077 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31078 a switch.
31079
31080 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31081
31082 PR lto/88585
31083 * tree.c (find_atomic_core_type): Move ahead in file.
31084 (check_base_type): Correctly compare alignments of atomic types.
31085
31086 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31087
31088 PR target/89455
31089 * config/i386/i386.c (get_builtin_code_for_version): Identify
31090 Westmere from PCLMUL, instead of AES.
31091
31092 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31093
31094 PR target/89434
31095 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31096 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31097 -UINTVAL (...).
31098
31099 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31100
31101 PR target/88530
31102 * config/aarch64/aarch64-option-extensions.def: Document it.
31103 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31104 if empty hwcaps.
31105
31106 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31107
31108 PR c/89520
31109 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31110 builtins if they don't have a single scalar floating point argument.
31111 Formatting fixes.
31112
31113 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31114
31115 PR rtl-optimization/89490
31116 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31117 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31118 block section is not mergeable.
31119
31120 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31121
31122 PR target/70341
31123 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31124 old define_insn to ...
31125 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31126 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31127 Rename old define_insn to ...
31128 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31129 (thumb2_casesi_internal_pic): New define_expand. Rename old
31130 define_insn to ...
31131 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31132 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31133 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31134
31135 2019-02-27 Richard Biener <rguenther@suse.de>
31136
31137 PR debug/88878
31138 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31139
31140 2019-02-27 Richard Biener <rguenther@suse.de>
31141
31142 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31143 building.
31144
31145 2019-02-27 Richard Biener <rguenther@suse.de>
31146
31147 PR debug/88878
31148 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31149 parameter, prefix section name with .gnu.debuglto_ if true.
31150 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31151 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31152
31153 2019-02-27 Richard Biener <rguenther@suse.de>
31154
31155 PR debug/89514
31156 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31157 rather than on use_debug_types, doing what output_die does.
31158 (value_format): Likewise.
31159
31160 2019-02-27 Martin Jambor <mjambor@suse.cz>
31161 Martin Sebor <msebor@redhat.com>
31162
31163 * doc/invoke.texi (Warning Options): Reword description of
31164 -Wno-absolute-value.
31165
31166 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31167
31168 PR tree-optimization/89280
31169 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31170 builtin_setjmp_setup_bb): New functions.
31171 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31172 When visiting __builtin_setjmp_setup block, queue in special
31173 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31174 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31175 from visited after the loop if they don't have any visited successor
31176 blocks.
31177
31178 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31179
31180 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31181 New function.
31182 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31183
31184 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31185
31186 PR c++/89507
31187 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31188 with types other than sizetype/ssizetype.
31189
31190 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31191
31192 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31193 (enum sparc_processor_type): ...this.
31194 (enum sparc_code_model_type): New enumeration type.
31195 (enum sparc_memory_model_type): Tweak comments.
31196 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31197 (mtune): Likewise.
31198 (mcmodel): Use sparc_code_model enumeration and variable.
31199 (sparc_code_model): New enumeration.
31200 (mdebug): Add Undocumented marker.
31201 * config/sparc/sparc.h (enum cmodel): Delete.
31202 (sparc_cmodel): Likewise.
31203 (TARGET_CM_MEDLOW): Adjust to above renaming.
31204 (TARGET_CM_MEDMID): Likewise.
31205 (TARGET_CM_MEDANY): Likewise.
31206 (TARGET_CM_EMBMEDANY): Likewise.
31207 * config/sparc/sparc.c (sparc_cmodel): Delete.
31208 (sparc_option_override): Remove string/value mapping support for the
31209 code model. Move code and memory model support to after the handling
31210 of target flags. Do private machine setup last.
31211 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31212 (sparc_legitimize_reload_address): Likewise.
31213 (sparc_output_mi_thunk): Likewise.
31214 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31215
31216 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31217
31218 PR tree-optimization/89500
31219 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31220 (handle_builtin_strlen): Remove noncst_bound variable. Always
31221 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31222 cst if the first cst bytes starting at x are known to be non-zero,
31223 even if the string is not zero terminated. Don't try to modify
31224 *si for strnlen. Update strlen_to_stridx only for strlen or if
31225 we can prove strnlen returns the same value as strlen would.
31226
31227 2019-02-26 Martin Liska <mliska@suse.cz>
31228
31229 * alloc-pool.h (struct pool_usage): Remove extra
31230 print_dash_line.
31231 * bitmap.h (struct bitmap_usage): Likewise.
31232 * ggc-common.c (struct ggc_usage): Likewise.
31233 * mem-stats.h (struct mem_usage): Likewise.
31234 (mem_alloc_description::dump): Print dash lines
31235 here and repeat header at the end of a table report.
31236 It's then more readable.
31237 * tree-phinodes.c (phinodes_print_statistics): Make
31238 horizontal alignment.
31239 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31240 * vec.c (struct vec_usage): Remove extra print_dash_line.
31241 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31242
31243 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31244
31245 * doc/extend.texi (__builtin_object_size):
31246 Use @pxref instead of @xref inside parenthesis.
31247 (__builtin_has_attribute): Add missing comma after @xref.
31248 (__builtin_object_size): Ditto.
31249 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31250
31251 2019-02-26 Jeff Law <law@redhat.com>
31252
31253 PR rtl-optimization/87761
31254 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31255 detect obviously dead insns and delete them.
31256
31257 2019-02-26 Richard Biener <rguenther@suse.de>
31258
31259 PR tree-optimization/89505
31260 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31261 to handle restrict pointed-to vars with multiple subvars
31262 correctly.
31263
31264 2019-02-26 Richard Biener <rguenther@suse.de>
31265
31266 PR tree-optimization/89489
31267 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31268
31269 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31270
31271 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31272 and move around comment.
31273 <BIT_AND_EXPR>: Likewise.
31274 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31275
31276 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31277
31278 PR target/89474
31279 * config/i386/i386.c (remove_partial_avx_dependency): Call
31280 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31281 after changing possibly many instructions to use that pseudo. Fix up
31282 insertion of v4sf_const0 setter at the start of bb.
31283
31284 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31285
31286 PR c/80409
31287 * doc/extend.texi (Variadic Pointer Args): New section.
31288
31289 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31290 Martin Sebor <msebor@gmail.com>
31291
31292 * common.opt (Wattribute-alias): Likewise.
31293 * doc/invoke.texi (Option Summary): List general form of
31294 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31295 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31296 Add cross-references.
31297 (-Wattribute-alias): Rewrite and correct default. Mention
31298 considered attributes (same as for -Wmissing-attributes).
31299
31300 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31301
31302 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31303 (_mm_cvtpd_ps): Likewise.
31304 (_mm_cvttpd_epi32): Likewise.
31305
31306 PR target/89338
31307 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31308 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31309
31310 PR target/89339
31311 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31312
31313 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31314
31315 PR target/88530
31316 * common/config/aarch64/aarch64-common.c
31317 (struct aarch64_option_extension): Add is_synthetic.
31318 (all_extensions): Use it.
31319 (TARGET_OPTION_INIT_STRUCT): Define hook.
31320 (struct gcc_targetm_common): Moved to end.
31321 (all_extensions_by_on): New.
31322 (opt_ext_cmp, typedef opt_ext): New.
31323 (aarch64_option_init_struct): New.
31324 (aarch64_contains_opt): New.
31325 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31326 * config/aarch64/aarch64-option-extensions.def
31327 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31328 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31329 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31330 Set is_synthetic to false.
31331 (crypto): Set is_synthetic to true.
31332 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31333 SYNTHETIC.
31334
31335 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31336
31337 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31338 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31339 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31340 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31341 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31342 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31343 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31344 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31345 Rename ...
31346 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31347 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31348 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31349 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31350 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31351 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31352 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31353 vfmlsl_laneq_high_f16): ... To this.
31354 * config/arm/neon.md: Update comments.
31355
31356 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31357
31358 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31359 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31360 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31361 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31362 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31363 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31364 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31365 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31366 Rename ...
31367 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31368 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31369 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31370 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31371 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31372 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31373 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31374 vfmlslq_laneq_high_f16): ... To this.
31375
31376 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31377
31378 PR rtl-optimization/86096
31379 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31380 comparing mw_order values.
31381
31382 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31383
31384 PR target/89434
31385 * config/arm/arm.md (*subsi3_carryin_const): Use
31386 arm_neg_immediate_operand predicate instead of
31387 arm_not_immediate_operand, "L" constraint instead of "K" and
31388 print it using %n2 instead of %B2.
31389 (*subsi3_carryin_const0): New define_insn.
31390 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31391 instead of arm_not_operand and "I" constraint instead of "K" and
31392 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31393 another match_operand and in the condition check that it is negation
31394 of operands[2].
31395 (*subsi3_carryin_compare_const0): New define_ins.
31396 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31397 *subsi3_carryin_const.
31398 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31399 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31400
31401 PR target/89438
31402 * config/arm.vfp.md (*negdf2_vfp): Use
31403 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31404 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31405
31406 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31407
31408 PR rtl-optimization/89445
31409 * simplify-rtx.c (simplify_ternary_operation): Don't use
31410 simplify_merge_mask on operands that may trap.
31411 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31412 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31413 second operand is CONST_VECTOR, check if any element could be zero.
31414 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31415 their operands can trap.
31416
31417 2019-02-23 Martin Sebor <msebor@redhat.com>
31418
31419 * gimple-ssa-sprintf.c (target_strtol): Rename...
31420 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31421 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31422 check for range error.
31423
31424 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31425
31426 PR driver/69471
31427 * opts-common.c (prune_options): Also prune joined switches
31428 with Negative and RejectNegative.
31429 * config/i386/i386.opt (march=): Add Negative(march=).
31430 (mtune=): Add Negative(mtune=).
31431 * doc/options.texi: Document Negative used together with Joined
31432 and RejectNegative.
31433
31434 2019-02-22 Martin Sebor <msebor@redhat.com>
31435
31436 * doc/extend.texi (Other Builtins): Add
31437 __builtin_is_constant_evaluated.
31438
31439 2019-02-22 Richard Biener <rguenther@suse.de>
31440
31441 PR tree-optimization/87609
31442 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31443
31444 2019-02-22 Jeff Law <law@redhat.com>
31445
31446 PR rtl-optimization/87761
31447 * config/mips/mips.md: Add new combiner pattern to recognize
31448 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31449
31450 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31451
31452 PR target/89324
31453 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31454 destination register in peepholes generating patterns for ADDS/SUBS.
31455 (add<mode>3_compare0,
31456 *addsi3_compare0_uxtw, add<mode>3_compareC,
31457 add<mode>3_compareV_imm, add<mode>3_compareV,
31458 *adds_<optab><ALLX:mode>_<GPI:mode>,
31459 *subs_<optab><ALLX:mode>_<GPI:mode>,
31460 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31461 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31462 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31463 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31464 sub<mode>3_compare1): Allow stack pointer for source register.
31465 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31466
31467 2019-02-22 Martin Sebor <msebor@redhat.com>
31468
31469 PR tree-optimization/88993
31470 PR tree-optimization/88853
31471 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31472 New helper.
31473 (sprintf_dom_walker::call_info::is_string_func): New helper.
31474 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31475 for formatted string functions.
31476 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31477
31478 2019-02-22 Martin Sebor <msebor@redhat.com>
31479
31480 PR c/89425
31481 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31482 unreachable subexpressions.
31483
31484 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31485 Hongtao Liu <hongtao.liu@intel.com>
31486 Sunil K Pandey <sunil.k.pandey@intel.com>
31487
31488 PR target/87007
31489 * config/i386/i386-passes.def: Add
31490 pass_remove_partial_avx_dependency.
31491 * config/i386/i386-protos.h
31492 (make_pass_remove_partial_avx_dependency): New.
31493 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31494 New function.
31495 (pass_data_remove_partial_avx_dependency): New.
31496 (pass_remove_partial_avx_dependency): Likewise.
31497 (make_pass_remove_partial_avx_dependency): Likewise.
31498 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31499 (*extendsfdf2): Add avx_partial_xmm_update.
31500 (truncdfsf2): Likewise.
31501 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31502 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31503
31504 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31505
31506 PR middle-end/85598
31507 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31508 analysis for pass.
31509
31510 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31511
31512 PR target/89444
31513 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31514 (PTA_SKYLAKE): Add PTA_AES.
31515 (PTA_GOLDMONT): Likewise.
31516
31517 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31518
31519 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31520 instruction if enabled.
31521 (aarch64_override_options): Remove reference to return address key.
31522
31523 2019-02-22 Richard Biener <rguenther@suse.de>
31524
31525 PR tree-optimization/89440
31526 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31527 not necessary assert.
31528
31529 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31530
31531 PR fortran/72741
31532 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31533 (oacc_replace_fn_attrib_attr): ... this new function.
31534 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31535 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31536
31537 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31538
31539 * config/arm/arm-cpus.in (ares): Rename to...
31540 (neoverse-n1): ... This. Add ares as alias.
31541 * config/arm/arm-tables.opt: Regenerate.
31542 * config/arm/arm-tune.md: Likewise.
31543 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31544
31545 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31546
31547 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31548 * config/aarch64/aarch64-tune.md: Regenerate.
31549 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31550
31551 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31552
31553 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31554 (neoversen1_tunings): ... This.
31555 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31556 (neoverse-n1): New CPU.
31557 * config/aarch64/aarch64-tune.md: Regenerate.
31558 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31559
31560 2019-02-22 Richard Biener <rguenther@suse.de>
31561
31562 PR middle-end/87609
31563 * cfghooks.h (dependence_hash): New typedef.
31564 (struct copy_bb_data): New type.
31565 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31566 (duplicate_block): Likewise.
31567 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31568 (copy_bbs): Create and pass down copy_bb_data.
31569 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31570 (rtl_duplicate_bb): Likewise.
31571 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31572 remap dependence info.
31573
31574 2019-02-22 Richard Biener <rguenther@suse.de>
31575
31576 PR tree-optimization/87609
31577 * tree-core.h (tree_base): Document special clique values.
31578 * tree-inline.c (remap_dependence_clique): Do not use the
31579 special clique value of one.
31580 (maybe_set_dependence_info): Use clique one.
31581 (clear_dependence_clique): New callback.
31582 (compute_dependence_clique): Clear clique one from all refs
31583 before assigning it (again).
31584
31585 2019-02-21 Martin Sebor <msebor@redhat.com>
31586
31587 * doc/extend.texi (__clear_cache): Correct signature.
31588
31589 2019-02-21 Ian Lance Taylor <iant@golang.org>
31590
31591 PR go/89170
31592 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31593 than output_constant_def.
31594 (add_constant_to_table): New static function.
31595 (output_constant_def): Call add_constant_to_table.
31596 (tree_output_constant_def): Likewise.
31597
31598 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31599
31600 PR c++/89285
31601 * builtins.c (fold_builtin_arith_overflow): If first two args are
31602 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31603 to ifn.
31604
31605 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31606
31607 PR target/87412
31608 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31609 error for -mindirect-branch/-mfunction-return with incompatible
31610 -fcf-protection.
31611
31612 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31613
31614 PR bootstrap/88714
31615 * constraints.md (q): Remove.
31616 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31617 instead of q.
31618
31619 2019-02-21 Martin Jambor <mjambor@suse.cz>
31620
31621 PR hsa/89302
31622 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31623 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31624 (omp_adjust_for_condition): ...here. Added necessary parameters.
31625 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31626 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31627 proper values to new parameters of omp_adjust_for_condition.
31628
31629 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31630
31631 PR middle-end/89412
31632 * expr.c (expand_assignment): If result is a MEM, use change_address
31633 instead of simplify_gen_subreg.
31634
31635 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31636 David Malcolm <dmalcolm@redhat.com>
31637
31638 PR middle-end/89091
31639 * fold-const.c (decode_field_reference): Return NULL_TREE if
31640 lang_hooks.types.type_for_size returns NULL. Check it before
31641 overwriting *exp_. Use return NULL_TREE instead of return 0.
31642
31643 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31644
31645 PR middle-end/88074
31646 PR middle-end/89415
31647 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31648 buggy mpc_norm.
31649
31650 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31651
31652 PR target/89397
31653 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31654 TARGET_SSE in addition to TARGET_SSE_MATH.
31655
31656 (ix86_excess_precision): Ditto.
31657 (ix86_float_exceptions_rounding_supported_p): Ditto.
31658 (use_rsqrt_p): Ditto.
31659 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31660
31661 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31662
31663 PR c/89410
31664 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31665 linenum_arith_t when determining if two adjacent line spans are
31666 close enough to merge.
31667 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31668 lines within each line_span.
31669
31670 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31671
31672 PR target/86487
31673 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31674 paradoxical SUBREGS.
31675
31676 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31677
31678 PR target/88100
31679 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31680 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31681 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31682 range checking it.
31683
31684 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31685
31686 * config/gcn/gcn.c (print_operand): Fix typo.
31687
31688 2019-02-19 Richard Biener <rguenther@suse.de>
31689
31690 PR middle-end/88074
31691 * toplev.c (do_compile): Initialize mpfr's exponent range
31692 based on available float modes.
31693
31694 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31695
31696 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31697 as long as the epilogue isn't completed.
31698
31699 2019-02-18 Martin Sebor <msebor@redhat.com>
31700
31701 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31702 __has_cpp_attribute, and __has_include.
31703
31704 2019-02-18 Martin Sebor <msebor@redhat.com>
31705
31706 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31707
31708 2019-02-18 Martin Sebor <msebor@redhat.com>
31709
31710 PR middle-end/89294
31711 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31712 expression.
31713 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31714
31715 2019-02-18 Richard Biener <rguenther@suse.de>
31716
31717 PR tree-optimization/89296
31718 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31719 of no-warning flag to cases that might emit the bogus warning.
31720
31721 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31722
31723 PR bootstrap/88714
31724 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31725 "q" constraint.
31726 * config/arm/vfp.md (*movdi_vfp): Likewise.
31727 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31728 "q" constraint for operands[0].
31729
31730 PR target/89369
31731 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31732 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31733 pattern in a temporary buffer.
31734 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31735 than 64-operands[2].
31736
31737 PR target/89361
31738 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31739 s390_indirect_branch_settings): Define unconditionally.
31740 (s390_set_current_function): Likewise, but guard the whole body except
31741 the s390_indirect_branch_settings call with
31742 #if S390_USE_TARGET_ATTRIBUTE.
31743 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31744
31745 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31746 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31747 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31748 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31749 HOST_WIDE_INT_1U instead of 1ULL.
31750 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31751 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31752 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31753 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31754 instead of 1UL.
31755 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31756 instead of 1ul.
31757
31758 2019-02-18 Martin Jambor <mjambor@suse.cz>
31759
31760 PR tree-optimization/89209
31761 * tree-sra.c (create_access_replacement): New optional parameter
31762 reg_tree. Use it as a type if non-NULL and access type is not of
31763 a register type.
31764 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31765 to create_access_replacement.
31766 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31767 Check lacc is non-NULL before attempting to re-create it on the RHS.
31768
31769 2019-02-18 Martin Liska <mliska@suse.cz>
31770
31771 PR ipa/89306
31772 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31773 by default.
31774 (symbol_table::free_edge): Recycle m_summary_id.
31775 * cgraph.h (get_summary_id): New.
31776 (symbol_table::release_symbol): Set m_summary_id to -1
31777 by default.
31778 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31779 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31780 function_summary to fast_function_summary.
31781 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31782 * ipa-pure-const.c (class funct_state_summary_t):
31783 Switch from function_summary to fast_function_summary.
31784 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31785 (class ipa_ref_opt_summary_t): Switch from function_summary
31786 to fast_function_summary.
31787 * symbol-summary.h (class function_summary_base): New class
31788 that is created from base of former function_summary.
31789 (function_summary_base::unregister_hooks): New.
31790 (class function_summary): Inherit from function_summary_base.
31791 (class call_summary_base): New class
31792 that is created from base of former call_summary.
31793 (class call_summary): Inherit from call_summary_base.
31794 (struct is_same): New.
31795 (class fast_function_summary): New summary class.
31796 (class fast_call_summary): New summary class.
31797 * vec.h (vec_safe_grow_cleared): New function.
31798
31799 2019-02-18 Martin Liska <mliska@suse.cz>
31800
31801 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31802 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31803 * doc/tm.texi: Document new target hook.
31804 * doc/tm.texi.in: Likewise.
31805 * target.def: Add new target macro.
31806 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31807 suffixes.
31808
31809 2019-02-17 Alan Modra <amodra@gmail.com>
31810
31811 PR target/89271
31812 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31813 output reg on add insn.
31814 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31815
31816 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31817
31818 PR target/89372
31819 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31820 (PMULHRSW): Likewise.
31821 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31822 TARGET_AVX2.
31823 (ssse3_pmulhrswv4hi3): New expander.
31824
31825 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31826
31827 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31828 MMX. Add isa attribute.
31829
31830 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31831
31832 PR rtl-optimization/66152
31833 * builtins.h (c_readstr): Declare.
31834 * builtins.c (c_readstr): Remove forward declaration. Add
31835 null_terminated_p argument, if false, read all bytes from the
31836 string instead of stopping after '\0'.
31837 * expr.c (string_cst_read_str): New function.
31838 (store_expr): Use string_cst_read_str instead of
31839 builtin_strncpy_read_str. Try to store by pieces the whole
31840 exp_len first, and only if that fails, split it up into
31841 store by pieces followed by clear_storage. Formatting fix.
31842
31843 * config/i386/i386.md (*movqi_internal): Remove static from
31844 buf variable. Use output_asm_insn (buf, operands); return "";
31845 instead of return buf;.
31846 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31847 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31848 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31849
31850 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31851
31852 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31853 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31854 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31855 (CC1_SPEC): Likewise.
31856 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31857
31858 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31859
31860 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31861 the base address on 64-bit strict-alignment platforms.
31862
31863 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31864
31865 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31866
31867 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31868
31869 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31870
31871 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31872
31873 PR rtl-optimization/88308
31874 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31875 on copied instruction.
31876
31877 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31878
31879 * final.c (insn_current_reference_address): Replace test on JUMP_P
31880 with test on jump_to_label_p.
31881 * config/visium/visium-passes.def: New file.
31882 * config/visium/t-visium (PASSES_EXTRA): Define.
31883 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31884 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31885 (TRAMPOLINE_ALIGNMENT): Define.
31886 * config/visium/visium.c (visium_option_override): Do not register
31887 the machine-specific reorg pass here.
31888 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31889 for the GR6.
31890 (output_branch): Adjust threshold for long branch instruction.
31891 * config/visium/visium.md (cpu): Move around.
31892 (length): Adjust for the GR6.
31893
31894 2019-02-15 Richard Biener <rguenther@suse.de>
31895 Jakub Jelinek <jakub@redhat.com>
31896
31897 PR tree-optimization/89278
31898 * tree-loop-distribution.c: Include tree-eh.h.
31899 (generate_memset_builtin, generate_memcpy_builtin): Call
31900 rewrite_to_non_trapping_overflow on builtin->size before passing it
31901 to force_gimple_operand_gsi.
31902
31903 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31904
31905 PR other/89342
31906 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31907 optimize_debug.
31908 * opth-gen.awk: Likewise.
31909
31910 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31911
31912 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31913 Enable MMX, SSE and SSE2 by default.
31914 * config/i386/i386.c (ix86_option_override_internal): Do not
31915 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31916
31917 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31918
31919 PR rtl-optimization/89354
31920 * combine.c (make_extraction): Punt if extraction_mode is narrower
31921 than len bits.
31922
31923 2019-02-14 Maya Rashish <coypu@sdf.org>
31924
31925 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31926 * config/netbsd-d.c: New file.
31927 * config/t-netbsd: Add netbsd-d.o
31928
31929 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31930
31931 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31932 affects_type_identity to true for aarch64_vector_pcs.
31933 (aarch64_comp_type_attributes): New function.
31934 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31935
31936 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31937
31938 PR target/88850
31939 * config/arm/iterators.md (ANY64): Add V4HF.
31940
31941 2019-02-14 Martin Liska <mliska@suse.cz>
31942
31943 PR rtl-optimization/89242
31944 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31945 process a transformation.
31946
31947 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31948
31949 PR tree-optimization/89314
31950 * fold-const.c (fold_binary_loc): Cast strlen argument to
31951 const char * before dereferencing it. Formatting fixes.
31952
31953 PR middle-end/89284
31954 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31955
31956 2019-02-13 Ian Lance Taylor <iant@golang.org>
31957
31958 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31959 and set current index for other optimizations.
31960
31961 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31962
31963 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31964 nonimmediate_operand as operand 2 predicate.
31965 (vec_set<VF2_512_256:mode>_0): Ditto.
31966 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31967 (*vec_concatv2si): Remove alternative 2.
31968 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31969 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31970 (vec_concatv2di): Split alternatives 4,5,6 to ...
31971 (*vec_concatv2di_0) ... new pattern.
31972
31973 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31974
31975 PR target/89190
31976 * config/arm/arm.c (ldm_stm_operation_p) Set
31977 addr_reg_in_reglist correctly for first register.
31978 (load_multiple_sequence): Remove dead base check.
31979 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31980
31981 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31982
31983 PR target/88847
31984 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31985 Expose as @aarch64_pred_mov.
31986 * config/aarch64/aarch64.c (aarch64_classify_address):
31987 Use expand_insn which legitimizes operands.
31988
31989 2019-02-13 Martin Liska <mliska@suse.cz>
31990
31991 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31992 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31993 and pointer_offset fields.
31994 (initialize_argument_information): Remove usage of dead
31995 fields.
31996 * cgraph.h (struct cgraph_thunk_info): Remove
31997 add_pointer_bounds_args.
31998 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31999 fields.
32000 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32001 fields.
32002 * config/i386/i386.c (ix86_function_arg_advance): Remove
32003 unrelated comment.
32004 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32005 (def_builtin): Remove usage of dead fields.
32006 (ix86_add_new_builtins): Likewise.
32007 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32008 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32009 (sem_function::init): Likewise.
32010 (sem_variable::merge): Likewise.
32011 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32012 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32013 * lto-cgraph.c (lto_output_node): Likewise.
32014 (lto_output_varpool_node): Likewise.
32015 (input_node): Likewise.
32016 (input_varpool_node): Likewise.
32017 * lto-streamer-out.c (lto_output): Likewise.
32018 * tree-inline.c (expand_call_inline): Remove usage of
32019 assign_stmts.
32020 * tree-inline.h (struct copy_body_data): Likewise.
32021 * varpool.c (varpool_node::dump): Likewise.
32022
32023 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32024
32025 PR middle-end/89303
32026 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32027 into pt->vars_contains_escaped_heap instead of setting
32028 pt->vars_contains_escaped_heap to it.
32029
32030 PR middle-end/89281
32031 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32032 INTVAL (size), compare it to GET_MODE_MASK instead of
32033 1 << GET_MODE_BITSIZE.
32034
32035 PR target/89290
32036 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32037 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32038 -mcmodel=large.
32039
32040 2019-02-13 Martin Liska <mliska@suse.cz>
32041
32042 PR lto/88858
32043 * cfgrtl.c (remove_barriers_from_footer): New function.
32044 (try_redirect_by_replacing_jump): Use it.
32045 (cfg_layout_redirect_edge_and_branch): Likewise.
32046
32047 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32048
32049 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32050 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32051 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32052 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32053 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32054 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32055 New BU_CRYPTO_2.
32056 * config/rs6000/rs6000.c (builtin_function_type)
32057 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32058 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32059 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32060 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32061 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32062
32063 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32064
32065 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32066 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32067
32068 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32069
32070 PR target/89229
32071 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32072 268678 and revision 268657.
32073 (*movti_internal): Likewise.
32074
32075 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32076
32077 PR target/89233
32078 * config/s390/s390.c (s390_decompose_address): Update comment.
32079 (s390_check_qrst_address): Reject invalid address forms after
32080 LRA.
32081
32082 2019-02-12 Martin Liska <mliska@suse.cz>
32083
32084 PR lto/88876
32085 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32086 we need default values of funct_state for a function that
32087 is not optimized.
32088
32089 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32090
32091 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32092 the object to pick the size of stores on strict-alignment platforms.
32093
32094 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32095 (*movdi_insn_sp32): Likewise.
32096 (*movdi_insn_sp64): Likewise.
32097
32098 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32099
32100 PR lto/88677
32101 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32102 types that needs constructiong.
32103 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32104
32105 2019-02-12 Richard Biener <rguenther@suse.de>
32106
32107 PR tree-optimization/89253
32108 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32109 duplicate the loop.
32110
32111 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32112
32113 PR lto/88147
32114 * input.c (selftest::test_line_offset_overflow): New selftest.
32115 (selftest::input_c_tests): Call it.
32116
32117 2019-02-11 Martin Sebor <msebor@redhat.com>
32118
32119 PR tree-optimization/88771
32120 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32121 when -Wstringop-overflow is set.
32122 (builtin_memref::builtin_memref): Adjust excessive upper bound
32123 only when lower bound is not excessive.
32124 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32125 -Wstringop-ovefflow.
32126 (maybe_diag_offset_bounds): Rename...
32127 (maybe_diag_access_bounds): ...to this.
32128 (check_bounds_or_overlap): Adjust for name change above.
32129
32130 2019-02-11 Martin Sebor <msebor@redhat.com>
32131
32132 PR c++/87996
32133 * builtins.c (max_object_size): Move from here...
32134 * builtins.h (max_object_size): ...and here...
32135 * tree.c (max_object_size): ...to here...
32136 * tree.h (max_object_size): ...and here.
32137
32138 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32139
32140 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32141 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32142 for correct semantics.
32143
32144 2019-02-11 Alan Modra <amodra@gmail.com>
32145
32146 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32147 -mlongcall and -mpltseq.
32148 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32149 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32150 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32151 * config/rs6000/sysv4.opt (mpltseq): New option.
32152 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32153 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32154 support is lacking. Don't allow -mpltseq with -mbss-plt.
32155 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32156 -mpltseq given for ELFv1.
32157 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32158 Only use UNSPEC_PLTSEQ for inline PLT calls.
32159 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32160 use UNSPEC_PLTSEQ for inline PLT calls.
32161 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32162 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32163 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32164 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32165 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32166 (pltseq_mtctr_<mode>): Likewise.
32167
32168 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32169
32170 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32171 Solaris ld.
32172 * configure: Regenerate.
32173
32174 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32175
32176 PR bootstrap/88714
32177 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32178 instead of r.
32179
32180 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32181
32182 * function.c (assign_parm_setup_block): Use the stored
32183 size, not the passed size, when allocating stack-space,
32184 also for a parameter with alignment larger than
32185 MAX_SUPPORTED_STACK_ALIGNMENT.
32186
32187 2019-02-11 Martin Liska <mliska@suse.cz>
32188
32189 PR ipa/89009
32190 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32191 * ipa-inline.c (inline_small_functions): Likewise.
32192 * ipa-pure-const.c (propagate_pure_const): Likewise.
32193 (propagate_nothrow): Likewise.
32194 * ipa-reference.c (propagate): Likewise.
32195 * ipa-utils.c (struct searchc_env): Remove unused field.
32196 (searchc): Always search across AVAIL_INTERPOSABLE.
32197 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32198 the only called IPA pure const can properly not propagate
32199 across interposable boundary.
32200 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32201
32202 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32203
32204 * config/nds32/nds32.md (call_internal, call_value_internal,
32205 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32206
32207 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32208
32209 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32210 typo.
32211
32212 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32213
32214 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32215 in comments
32216
32217 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32218
32219 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32220
32221 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32222
32223 PR tree-optimization/89268
32224 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32225 if preds is non-NULL.
32226
32227 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32228
32229 PR lto/89272
32230 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32231 polymorphic types.
32232
32233 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32234
32235 * config/nds32/nds32.md (trap): New pattern.
32236
32237 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32238
32239 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32240 dwarf span.
32241
32242 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32243
32244 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32245 to split POST_INC.
32246
32247 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32248
32249 * ipa-visibility.c (localize_node): Also do not localize
32250 LDPR_PREVAILING_DEF_IRONLY_EXP.
32251
32252 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32253
32254 PR lto/87957
32255 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32256 instead of type_with_linkage.
32257
32258 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32259
32260 PR ipa/88755
32261 * params.def (uninlined-function-insns, uninlined-function-time,
32262 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32263 bound so we don't get overflows.
32264
32265 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32266
32267 * config/rs6000/rs6000-string.c (expand_compare_loop,
32268 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32269 memcmp/strncmp.
32270
32271 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32272
32273 PR middle-end/89246
32274 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32275 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32276 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32277
32278 2019-02-09 Alan Modra <amodra@gmail.com>
32279
32280 PR target/88343
32281 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32282 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32283 setup.
32284
32285 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32286
32287 PR middle-end/88560
32288 * lra-constraints.c (process_alt_operands): Don't increase reject
32289 for memory when offset memory is required.
32290
32291 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32292
32293 * config/s390/vector.md: Implement vector copysign.
32294
32295 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32296
32297 * expr.c (expand_constructor): Correct indentations.
32298
32299 2019-02-08 Richard Biener <rguenther@suse.de>
32300
32301 PR tree-optimization/89247
32302 * tree-if-conv.c: Include tree-cfgcleanup.h.
32303 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32304 (tree_if_conversion): Pass through predicate vector.
32305 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32306 inline, see if any if-converted loops we refrece in
32307 LOOP_VECTORIZED calls vanished and fixup.
32308 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32309
32310 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32311
32312 * config/s390/constraints.md (jdd): New constraint.
32313
32314 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32315
32316 PR target/89229
32317 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32318 upper 16 vector registers without TARGET_AVX512VL.
32319 (*movti_internal): Likewise.
32320
32321 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32322
32323 PR rtl-optimization/89234
32324 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32325 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32326 (copy_reg_eh_region_note_backward): Likewise.
32327
32328 2019-02-08 Richard Biener <rguenther@suse.de>
32329
32330 PR middle-end/89223
32331 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32332 doesn't fit in HWI.
32333 (analyze_subscript_affine_affine): Handle failure from
32334 initialize_matrix_A.
32335
32336 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32337
32338 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32339 cfun everywhere.
32340
32341 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32342
32343 PR tree-optimization/86637
32344 PR tree-optimization/89235
32345 * tree-vect-loop.c (optimize_mask_stores): Add an
32346 auto_purge_vect_location sentinel to ensure that vect_location is
32347 purged on exit.
32348 * tree-vectorizer.c
32349 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32350 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32351 to ensure that vect_location is purged on exit.
32352 (pass_slp_vectorize::execute): Likewise, replacing the manual
32353 reset.
32354 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32355
32356 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32357
32358 * config/aarch64/iterators.md (max_opp): New code_attr.
32359 (USMAX): New code iterator.
32360 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32361 (aarch64_smax): Likewise.
32362 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32363 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32364 MINUS (MAX MIN).
32365
32366 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32367
32368 PR target/89229
32369 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32370 for TARGET_AVX512VL.
32371 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32372
32373 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32374
32375 * config/s390/s390-builtin-types.def: Add new types.
32376 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32377 (s390_vec_xlw4): Make the memory operand into a const pointer.
32378 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32379 float.
32380 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32381 a new vector type with the alignment of the scalar memory operand.
32382
32383 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32384 Jakub Jelinek <jakub@redhat.com>
32385
32386 PR bootstrap/88714
32387 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32388 arm_count_ldrdstrd_insns): New declarations.
32389 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32390 MINUS.
32391 (valid_operands_ldrd_strd): New function.
32392 (arm_count_ldrdstrd_insns): New function.
32393 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32394 sets instead of single DImode set and define new insns to match this.
32395
32396 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32397
32398 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32399 Make it a C initializer.
32400
32401 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32402
32403 PR/target 88850
32404 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32405
32406 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32407
32408 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32409 Use neon_dot<q> for type.
32410 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32411
32412 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32413
32414 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32415 Use neon_dot<q> for type.
32416 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32417 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32418
32419 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32420
32421 PR rtl-optimization/89225
32422 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32423 sizes check.
32424
32425 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32426
32427 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32428 after restoring registers saved to allocate the frame on Windows.
32429
32430 2019-02-06 Richard Biener <rguenther@suse.de>
32431
32432 PR tree-optimization/89182
32433 * graphite.h (cached_scalar_evolution_in_region): Declare.
32434 * graphite.c (struct seir_cache_key): New.
32435 (struct sese_scev_hash): Likewise.
32436 (seir_cache): New global.
32437 (cached_scalar_evolution_in_region): New function.
32438 (graphite_transform_loops): Allocate and release seir_cache.
32439 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32440 cached_scalar_evolution_in_region.
32441 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32442 Simplify.
32443 (scop_detection::graphite_can_represent_expr: Use
32444 cached_scalar_evolution_in_region.
32445 (scop_detection::stmt_simple_for_scop_p): Likewise.
32446 (find_params_in_bb): Likewise.
32447 (gather_bbs::before_dom_children): Likewise.
32448 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32449 (add_loop_constraints): Likewise.
32450
32451 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32452
32453 PR middle-end/89210
32454 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32455 operand to new_unary_operation only if both element types are integral
32456 and it isn't a widening conversion. Return NULL_TREE if
32457 new_unary_operation failed.
32458
32459 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32460
32461 PR target/88856
32462 * config/s390/s390.md: Remove load and test FP splitter.
32463
32464 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32465
32466 PR target/89112
32467 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32468 expand_compare_loop, expand_block_compare_gpr,
32469 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32470 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32471 #include "profile-count.h" and "predict.h" for types and functions
32472 needed to work with REG_BR_PROB notes.
32473
32474 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32475
32476 PR target/89112
32477 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32478 for the long branch case.
32479
32480 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32481
32482 PR target/89188
32483 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32484 can throw, non-call exceptions are enabled and we can't delete
32485 dead exceptions or alter cfg. Set must_clean if
32486 delete_insn_and_edges returns true, don't set it blindly for calls.
32487 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32488
32489 PR rtl-optimization/89195
32490 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32491 of the original MEM.
32492
32493 2019-02-05 Martin Liska <mliska@suse.cz>
32494
32495 PR gcov-profile/89000
32496 * gcov.c (function_summary): Remove argument.
32497 (file_summary): New function.
32498 (print_usage): Replace tabs with spaces.
32499 (generate_results): Use new function file_summary.
32500
32501 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32502
32503 PR target/89186
32504 * optabs.c (prepare_cmp_insn): Pass x and y to
32505 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32506
32507 2019-02-05 Richard Biener <rguenther@suse.de>
32508
32509 PR middle-end/89150
32510 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32511 (struct bitmap_element): Drop chain_prev so we properly recurse on
32512 the prev member, supporting tree views.
32513 (struct bitmap_head): GTY skip the obstack member.
32514
32515 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32516
32517 PR c/88698
32518 * doc/extend.texi (Vector Extensions): Add an example of using vector
32519 types together with x86 intrinsics.
32520
32521 2019-02-04 Alan Modra <amodra@gmail.com>
32522
32523 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32524 str[] size to 160, and comment.
32525
32526 2019-02-04 Alan Modra <amodra@gmail.com>
32527
32528 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32529 (rs6000_pltseq_template): Guard output of TLS markers with
32530 TARGET_TLS_MARKERS.
32531 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32532 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32533 to use inline PLT sequences.
32534 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32535 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32536 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32537
32538 2019-02-04 Martin Liska <mliska@suse.cz>
32539
32540 PR ipa/88985
32541 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32542 out when ipa_fn_summaries does not contain entry for callee.
32543
32544 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32545
32546 * config/sparc/sparc.h: Remove superfluous blank lines.
32547 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32548 (got_register_rtx): ...this.
32549 (sparc_got): Adjust to above renaming.
32550 (sparc_tls_got): Likewise.
32551 (sparc_delegitimize_address): Likewise.
32552 (sparc_output_mi_thunk): Likewise.
32553 (sparc_init_pic_reg): Likewise.
32554 (save_local_or_in_reg_p): Fix test on the GOT register.
32555 (USE_HIDDEN_LINKONCE): Move around.
32556 (get_pc_thunk_name): Likewise.
32557 (gen_load_pcrel_sym): Likewise.
32558 (load_got_register): Likewise.
32559
32560 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32561
32562 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32563 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32564
32565 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32566
32567 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32568 into consideration.
32569
32570 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32571
32572 * config.gcc (with_nds32_lib, glibc):
32573 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32574 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32575 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32576
32577 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32578
32579 PR target/89071
32580 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32581 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32582 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32583 (*rcpsf2_sse): Ditto.
32584 (*rsqrtsf2_sse): Ditto.
32585 (sse4_1_round<mode<2): Ditto.
32586
32587 2019-02-03 Richard Biener <rguenther@suse.de>
32588
32589 PR debug/87295
32590 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32591 orig.
32592
32593 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32594
32595 PR middle-end/87887
32596 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32597 Punt with warning on aggregate return or argument types. Ignore
32598 type/mode checking for uniform arguments.
32599
32600 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32601
32602 * combine.c (try_combine): Do not print "Can't combine" messages unless
32603 printing failed combination attempts.
32604
32605 2019-02-01 Martin Jambor <mjambor@suse.cz>
32606
32607 PR hsa/87863
32608 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32609 segment and global segment variables before making them static.
32610
32611 2019-02-01 Martin Jambor <mjambor@suse.cz>
32612
32613 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32614 missed optimization dump with dump_enabled_p.
32615
32616 2019-02-01 Richard Biener <rguenther@suse.de>
32617
32618 PR middle-end/88597
32619 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32620 the instantiate cache.
32621 (instantiate_scev_binary): Elide second operand procesing
32622 if equal to the first.
32623 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32624 (chrec_contains_undetermined): Likewise.
32625 (tree_contains_chrecs): Likewise.
32626
32627 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32628
32629 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32630
32631 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32632
32633 PR tree-optimization/89143
32634 * wide-int-range.h (wide_int_range_absu): Declare.
32635 * wide-int-range.cc (wide_int_range_absu): New function.
32636 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32637
32638 PR tree-optimization/88107
32639 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32640 instead of assertion that eh_region_outermost is non-NULL, if it
32641 is NULL, set *ALL to true and return NULL.
32642 (move_sese_region_to_fn): Adjust caller, if all is set, call
32643 duplicate_eh_regions with NULL region.
32644
32645 2019-02-01 Richard Biener <rguenth@suse.de>
32646
32647 PR rtl-optimization/88593
32648 * mode-switching.c (optimize_mode_switching): Free dominators before
32649 calling cleanup_cfg.
32650
32651 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32652
32653 PR tree-optimization/88932
32654 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32655
32656 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32657
32658 PR middle-end/89137
32659 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32660 bogus clang warning.
32661
32662 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32663
32664 PR target/89071
32665 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32666 alternative to avoid partial SSE register stall for TARGET_AVX.
32667 (truncdfsf2): Ditto.
32668 (sse4_1_round<mode>2): Ditto.
32669
32670 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32671
32672 PR tree-optimization/89008
32673 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32674 process anything of the form X * 0.
32675
32676 2019-01-31 Richard Biener <rguenther@suse.de>
32677
32678 PR tree-optimization/89135
32679 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32680 with abnormal preds.
32681
32682 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32683
32684 PR sanitizer/89124
32685 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32686 always_inline callees into no_sanitize_address callers.
32687
32688 2019-01-31 Richard Biener <rguenther@suse.de>
32689
32690 PR rtl-optimization/89115
32691 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32692
32693 2019-01-30 Martin Sebor <msebor@redhat.com>
32694
32695 PR other/89106
32696 * doc/extend.texi (cast to a union): Correct and expand.
32697
32698 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32699
32700 PR rtl-optimization/87246
32701 * lra-constraints.c (simplify_operand_subreg): Reload memory
32702 in subreg if the address became invalid.
32703
32704 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32705
32706 PR target/87064
32707 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32708 Disable for little-endian.
32709
32710 2019-01-30 Richard Biener <rguenther@suse.de>
32711
32712 PR rtl-optimization/89115
32713 * opts.c (default_options_optimization): Reduce
32714 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32715 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32716 to the default.
32717
32718 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32719
32720 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32721 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32722 type of vector element when vec_extract is implemented by direct
32723 move.
32724
32725 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32726
32727 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32728
32729 2019-01-30 Richard Biener <rguenther@suse.de>
32730
32731 PR tree-optimization/89111
32732 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32733 canonicalization to appropriately sized access types.
32734
32735 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32736
32737 PR c++/89105
32738 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32739 for arguments to functions that are TU-local and shouldn't be
32740 referenced by assembly.
32741
32742 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32743
32744 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32745 after '='.
32746
32747 2019-01-29 Martin Sebor <msebor@redhat.com>
32748
32749 PR c/88956
32750 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32751
32752 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32753
32754 PR c++/66676
32755 PR ipa/89104
32756 * omp-simd-clone.c (simd_clone_clauses_extract)
32757 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32758 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32759
32760 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32761
32762 * config.gcc: Force .init_array for ARC.
32763
32764 2019-01-29 Richard Biener <rguenther@suse.de>
32765
32766 PR debug/87295
32767 * dwarf2out.c (collect_skeleton_dies): New helper.
32768 (copy_decls_for_unworthy_types): Call it.
32769 (build_abbrev_table): Assert we do not try to replace
32770 DW_AT_signature refs with local refs.
32771
32772 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32773
32774 PR middle-end/89002
32775 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32776 for lastprivate/linear IV, push gimplify context around gimplify_assign
32777 and, if it needed any temporaries, pop it into a gimple bind around the
32778 sequence.
32779
32780 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32781
32782 * common.opt (-Wattribute-alias): Remove "no-" from name.
32783 Make -Wattribute-alias command line option and
32784 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32785
32786 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32787
32788 PR target/89073
32789 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32790 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32791 x86 ISA options.
32792 (bmi2): Add missing @opindex.
32793 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32794 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32795 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32796 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32797 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32798 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32799 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32800 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32801 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32802 xsavec, xsaveopt and xsaves options.
32803
32804 2019-01-28 Richard Biener <rguenther@suse.de>
32805
32806 PR debug/89076
32807 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32808 support removal.
32809
32810 2019-01-28 Richard Biener <rguenther@suse.de>
32811
32812 PR tree-optimization/88739
32813 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32814 BIT_FIELD_REFs only are applied to mode-precision operands
32815 when they are integral.
32816 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32817 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32818 BIT_FIELD_REFs of non-mode-precision integral operands.
32819
32820 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32821
32822 PR target/87214
32823 * config/i386/sse.md
32824 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32825 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32826 first constants in pairs are multiples of 2. Formatting fixes.
32827 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32828 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32829 first constants in each quadruple are multiples of 4. Formatting fixes.
32830
32831 2019-01-26 Martin Jambor <mjambor@suse.cz>
32832
32833 PR ipa/88933
32834 * tree-inline.c: Include tree-cfgcleanup.h.
32835 (delete_unreachable_blocks_update_callgraph): Move...
32836 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32837 ...here, make externally visible, make second argument bool, adjust
32838 all callers.
32839 * tree-cfgcleanup.c: Include cgraph.h.
32840 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32841 Declare.
32842 * ipa-prop.c: Include tree-cfgcleanup.h.
32843 (ipcp_transform_function): Call
32844 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32845
32846 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32847
32848 PR rtl-optimization/88846
32849 * ira.c (process_set_for_memref_referenced_p): New.
32850 (memref_referenced_p): Add new param. Use
32851 process_set_for_memref_referenced_p. Add new switch cases.
32852 (memref_used_between_p): Pass new arg to memref_referenced_p.
32853
32854 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32855
32856 PR target/88469
32857 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32858 argument ABI_BREAK. Set to true if the calculated alignment has
32859 changed in gcc-9. Check bit-fields for their base type alignment.
32860 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32861 (aarch64_function_arg_boundary): Likewise.
32862 (aarch64_gimplify_va_arg_expr): Likewise.
32863
32864 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32865
32866 PR middle-end/89037
32867 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32868 instead of accessing TREE_INT_CST_ELT directly.
32869
32870 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32871
32872 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32873 fenv_exceptions description.
32874
32875 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32876
32877 PR rtl-optimization/87763
32878 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32879 Allow SUBREG when matching CC_NZmode compare.
32880
32881 2019-01-25 Richard Biener <rguenther@suse.de>
32882
32883 PR tree-optimization/89049
32884 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32885 Look at the pattern stmt to determine if the stmt is vectorized.
32886
32887 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32888
32889 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32890 (pred_mov<mode>): Handle all-register forms using both a new
32891 alternative and a split.
32892
32893 2019-01-25 Richard Biener <rguenther@suse.de>
32894
32895 PR tree-optimization/86865
32896 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32897 Reject non-do-while loops.
32898
32899 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32900
32901 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32902 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32903 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32904 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32905 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32906 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32907 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32908 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32909 vlogical_operand, gpc_reg_operand, int_reg_operand,
32910 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32911 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32912 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32913 (save_world_operation, restore_world_operation, lmw_operation,
32914 stmw_operation): Use MEM_P and REG_P.
32915 (tie_operand): Use MEM_P.
32916 (vrsave_operation, crsave_operation): Use REG_P.
32917 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32918 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32919 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32920 (call_operand): Use HARD_REGISTER_P.
32921 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32922 Use CONST_INT_P.
32923 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32924 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32925 quad_aligned_load_p, replace_swapped_aligned_store,
32926 recombine_lvx_pattern, replace_swapped_aligned_load,
32927 recombine_stvx_pattern): Use MEM_P.
32928 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32929 Use MEM_P and SYMBOL_REF_P.
32930 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32931 (insn_is_swappable_p): Use REG_P and MEM_P.
32932 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32933 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32934 Use CONST_INT_P.
32935 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32936 Use CONST_DOUBLE_P.
32937 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32938 CONST_WIDE_INT_P.
32939 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32940 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32941 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32942 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32943 reg_or_subregno:
32944 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32945 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32946 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32947 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32948 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32949 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32950 rs6000_split_logical_di): Use CONST_INT_P.
32951 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32952 REG_P and SYMBOL_REF_P.
32953 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32954 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32955 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32956 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32957 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32958 (small_data_operand, print_operand_address): Use CONST_INT_P and
32959 SYMBOL_REF_P.
32960 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32961 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32962 Use HARD_REGISTER_NUM_P.
32963 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32964 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32965 SUBREG_P and SYMBOL_REF_P.
32966 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32967 and HARD_REGISTER_NUM_P.
32968 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32969 reg_or_subregno.
32970 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32971 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32972 MEM_P and REG_P.
32973 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32974 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32975 find_addr_reg): Use REG_P.
32976 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32977 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32978 (offsettable_ok_by_alignment, constant_pool_expr_p,
32979 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32980 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32981 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32982 rs6000_assemble_integer, create_TOC_reference,
32983 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32984 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32985 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32986 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32987 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32988 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32989 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32990 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32991 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32992 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32993 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32994 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32995 and cbranch<mode>4): Use CONST_INT_P.
32996 (multiple define_splits): Use REG_P and SUBREG_P.
32997 (define_expands call, call_value): Use MEM_P.
32998 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32999 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33000 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33001 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33002 and HARD_REGISTER_NUM_P.
33003 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33004
33005 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33006
33007 PR rtl-optimization/88948
33008 * rtl.h (prepare_copy_insn): New prototype.
33009 * gcse.c (prepare_copy_insn): New function, split out from
33010 process_insert_insn.
33011 (process_insert_insn): Use prepare_copy_insn.
33012 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33013 instead of gen_move_insn.
33014
33015 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33016
33017 PR debug/89006
33018 * config/i386/i386.c (ix86_pic_register_p): Return true for
33019 UNSPEC_SET_GOT too.
33020
33021 PR tree-optimization/88964
33022 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33023 punt if HONOR_SNANS (chrec).
33024
33025 PR middle-end/89015
33026 * tree-nested.c (convert_nonlocal_reference_stmt,
33027 convert_local_reference_stmt, convert_tramp_reference_stmt,
33028 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33029 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33030 or GIMPLE_OMP_TASK.
33031
33032 PR tree-optimization/89027
33033 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33034 for "omp simd array" variables.
33035
33036 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33037
33038 PR target/88469
33039 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33040 force the alignment of m_val.
33041
33042 2019-01-24 Richard Biener <rguenther@suse.de>
33043
33044 PR lto/87187
33045 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33046 When in "legacy" debug mode make sure to reset self-origins.
33047
33048 2019-01-24 Martin Liska <mliska@suse.cz>
33049
33050 PR gcov-profile/88994
33051 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33052 result will be always smaller or equal to the original.
33053 * gcov.c (mangle_name): Fix else branch where we should
33054 also copy to PTR and shift the pointer.
33055
33056 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33057
33058 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33059 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33060
33061 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33062
33063 * common/config/i386/i386-common.c
33064 (OPTION_MASK_ISA_ENQCMD_SET,
33065 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33066 (ix86_handle_option): Handle -menqcmd.
33067 * config.gcc (enqcmdintrin.h): New header file.
33068 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33069 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33070 -menqcmd.
33071 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33072 function type.
33073 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33074 __builtin_ia32_enqcmds): New builtins.
33075 * config/i386/i386-c.c (__ENQCMD__): New macro.
33076 * config/i386/i386-option.c (ix86_target_string): Add
33077 -menqcmd.
33078 (ix86_valid_target_attribute_inner_p): Likewise.
33079 * config/i386/i386-expand.c
33080 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33081 IX86_BUILTIN_ENQCMDS.
33082 * config/i386/i386.h (TARGET_ENQCMD): New.
33083 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33084 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33085 (movdir64b_<mode>): Parameterize to enable share expansion code
33086 with ENQCMD in function ix86_expand_builtin.
33087 * config/i386/i386.opt: Add -menqcmd.
33088 * config/i386/immintrin.h: Include enqcmdintrin.h.
33089 * config/i386/enqcmdintrin.h: New intrinsic file.
33090 * doc/invoke.texi: Add -menqcmd.
33091
33092 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33093 Steve Ellcey <sellcey@marvell.com>
33094
33095 PR target/85711
33096 * recog.c (address_operand): Return false on wrong mode for address.
33097 (constrain_operands): Check for mode with 'p' constraint.
33098
33099 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33100
33101 PR target/88998
33102 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33103 Disparage MMX alternative.
33104 (sse2_cvtpd2pi): Ditto.
33105 (sse2_cvttpd2pi): Ditto.
33106
33107 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33108
33109 PR driver/89014
33110 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33111 use-after-free of the result of
33112 aarch64_get_extension_string_for_isa_flags.
33113
33114 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33115
33116 PR c/44715
33117 * doc/extend.texi: Document break and continue behavior in
33118 statement expressions.
33119
33120 2019-01-23 Richard Biener <rguenther@suse.de>
33121
33122 PR tree-optimization/89008
33123 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33124 not leave another stray operand.
33125
33126 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33127
33128 * BASE-VER: Bump to 9.0.1.
33129
33130 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33131
33132 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33133 thunk that returns by reference, use the type of the return object
33134 of the thunk instead of that of the alias to build the dereference.
33135
33136 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33137
33138 * config/arc/atomic.md: Add operand to DMB instruction.
33139
33140 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33141
33142 PR tree-optimization/88964
33143 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33144 build_zero_cst instead of build_int_cst. Return false for loop
33145 invariants which honor signed zeros.
33146
33147 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33148
33149 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33150
33151 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33152
33153 PR target/88965
33154 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33155 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33156 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33157
33158 PR middle-end/88968
33159 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33160 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33161
33162 PR target/87064
33163 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33164 Disable for little endian.
33165
33166 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33167
33168 PR target/88469
33169 * config/arm/arm.c (arm_needs_double_word_align): Check
33170 DECL_BIT_FIELD_TYPE.
33171
33172 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33173 H.J. Lu <hongjiu.lu@intel.com>
33174
33175 PR target/88909
33176 * config/i386/i386-builtin.def: Add mask2 to all builtin
33177 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33178 SPECIAL_ARGS.
33179 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33180 (BDESC_FIRST): Likewise.
33181 (define_builtin): Add an argument for mask2. Updated to handle
33182 both ix86_isa_flags and ix86_isa_flags2.
33183 (define_builtin_const): Likewise.
33184 (define_builtin_pure): Likewise.
33185 (define_builtin2): Deleted.
33186 (define_builtin_const2): Likewise.
33187 (builtin_description): Add a member, mask2.
33188 (bdesc_*): Add mask2 to builtin initializations.
33189 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33190 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33191 support.
33192 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33193
33194 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33195
33196 PR target/88954
33197 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33198 noplt attribute.
33199
33200 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33201
33202 PR target/88469
33203 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33204 alignment is dominated by a bitfield with 64-bit aligned base type.
33205 (arm_function_arg): Emit a warning if the alignment has changed since
33206 earlier GCC releases.
33207 (arm_function_arg_boundary): Likewise.
33208 (arm_setup_incoming_varargs): Likewise.
33209
33210 2019-01-22 Richard Biener <rguenther@suse.de>
33211
33212 PR tree-optimization/88862
33213 * graphite-scop-detection.c
33214 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33215
33216 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33217
33218 * doc/extend.tex (AMD GCN Function Attributes): New section.
33219 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33220 * doc/invoke.texi (AMD GCN Options): New section.
33221 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33222
33223 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33224
33225 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33226 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33227
33228 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33229
33230 PR tree-optimization/88044
33231 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33232 is false in the first iteration, but !every_iteration, return false
33233 instead of true with niter->niter zero.
33234
33235 PR rtl-optimization/88904
33236 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33237 any nonequal registers before processing BB_END (b).
33238
33239 PR target/88905
33240 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33241 GET_MODE (op0).
33242 (expand_binop_directly, expand_doubleword_clz,
33243 expand_doubleword_popcount, expand_ctz, expand_ffs,
33244 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33245
33246 PR rtl-optimization/49429
33247 PR target/49454
33248 PR rtl-optimization/86334
33249 PR target/88906
33250 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33251 addressable from here...
33252 (emit_block_op_via_libcall): ... to here.
33253
33254 2019-01-22 Richard Biener <rguenther@suse.de>
33255
33256 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33257 auto_vec for cost vector to fix memleak.
33258 (vectorize_fold_left_reduction): Properly gather SLP defs.
33259 (vectorizable_comparison): Do not swap operands to properly
33260 gather SLP defs.
33261
33262 2019-01-22 Alan Modra <amodra@gmail.com>
33263
33264 PR target/88614
33265 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33266 stays a reg. Allow a const_int.
33267 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33268 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33269 (IS_NOMARK_TLSGETADDR): Define.
33270 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33271 (rs6000_output_tlsargs): New function.
33272 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33273 __tls_get_addr call takes an arg.
33274 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33275 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33276 delete split..
33277 (call_value_nonlocal_sysv): ..or here, delete split.
33278 (tls_gdld_nomark): Delete.
33279 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33280 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33281 (call_value_nonlocal_sysv): Likewise.
33282 (call_value_nonlocal_sysv_secure): Likewise.
33283 (call_value_nonlocal_aix): Likewise.
33284 (call_value_indirect_aix): Likewise.
33285 (call_value_indirect_elfv2): Likewise.
33286 (call_value_local32, call_value_local64): Disable for no-mark tls.
33287 (call_value_local_aix): Likewise.
33288
33289 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33290
33291 PR target/88938
33292 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33293 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33294
33295 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33296
33297 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33298 string contents as hash_map keys.
33299
33300 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33301
33302 PR c/88928
33303 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33304 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33305 instead of TYPE_ALIGN.
33306 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33307 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33308 pointer from TYPE_STUB_DECL.
33309
33310 2019-01-21 Richard Biener <rguenther@suse.de>
33311
33312 PR tree-optimization/88934
33313 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33314 at the possibly non-constant operand.
33315 (vect_get_constant_vectors): Adjust.
33316
33317 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33318
33319 PR target/71659
33320 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33321 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33322 instead of _X86INTRIN_H_INCLUDED.
33323 * onfig/i386/clwbintrin.h: Likewise.
33324 * config/i386/pkuintrin.h: Likewise.
33325 * config/i386/prfchwintrin.h: Likewise.
33326 * config/i386/rdseedintrin.h: Likewise.
33327 * config/i386/wbnoinvdintrin.h: Likewise.
33328 * config/i386/xsavecintrin.h: Likewise.
33329 * config/i386/xsavesintrin.h: Likewise.
33330 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33331 * config/i386/xsaveintrin.h: Likewise.
33332 * config/i386/xsaveoptintrin.h: Likewise.
33333 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33334 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33335 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33336 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33337 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33338 * config/i386/immintrin.h: Here.
33339
33340 2019-01-20 Martin Jambor <mjambor@suse.cz>
33341
33342 PR ipa/87615
33343 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33344 with aa_walk_budget.
33345 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33346 aa_walk_budget_p parameter.
33347 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33348 walk. Updated all callers.
33349 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33350 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33351 unmodified_parm.
33352 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33353 parameter info. Extract info from fbi. Pass fbi to recursive calls
33354 and to unmodified_parm.
33355 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33356 info, updated call to will_be_nonconstant_expr_predicate.
33357 (param_change_prob): New parameter fbi, limit AA walking.
33358 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33359 calls to various above functions.
33360 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33361 parameter. Use it to limit AA walking.
33362 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33363 fbi, limit AA walk.
33364 (detect_type_change): New parameter fbi, pass it on to
33365 detect_type_change_from_memory_writes.
33366 (detect_type_change_ssa): Likewise.
33367 (aa_overwalked): Removed.
33368 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33369 accordingly, adjust to the neew AA limiting scheme.
33370 (parm_ref_data_preserved_p): Likewise.
33371 (ipa_compute_jump_functions_for_edge): Adjust call to
33372 get_dynamic_type.
33373 (ipa_analyze_call_uses): Likewise.
33374 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33375 (ipa_analyze_node): Initialize aa_walk_budget.
33376 (ipcp_transform_function): Likewise.
33377 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33378 to get_dynamic_type.
33379
33380 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33381
33382 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33383 outside of #if CHECKING_P code.
33384
33385 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33386
33387 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33388 New function, split out from...
33389 (loop_versioning::analyze_stride): ...here.
33390 (loop_versioning::find_per_loop_multiplication): Use gassign.
33391 (loop_versioning::analyze_term_using_scevs): Return a success code.
33392 (loop_versioning::analyze_arbitrary_term): New function.
33393 (loop_versioning::analyze_address_fragment): Use
33394 analyze_arbitrary_term if all else fails.
33395
33396 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33397
33398 PR target/88892
33399 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33400 operands.
33401
33402 2019-01-18 Richard Biener <rguenther@suse.de>
33403
33404 PR tree-optimization/88903
33405 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33406 scalar stmts a SLP shift amount is composed of when detecting
33407 shifts by scalars.
33408
33409 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33410
33411 PR target/88799
33412 * config/arm/arm-cpus.in (mp): New feature.
33413 (sec): New feature.
33414 (fgroup ARMv7ve): Add mp and sec features.
33415 (arch armv7-a): Add options to allow mp and sec extensions.
33416 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33417 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33418 extenstions to the base architecture.
33419 (cpu cortex-a8): Add sec extension to the base architecture.
33420 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33421 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33422 variants down to the base v7-a varaint.
33423 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33424 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33425 of permitted extensions for -march=armv7-a and for
33426 -mcpu=generic-armv7-a.
33427
33428 2019-01-18 Martin Liska <mliska@suse.cz>
33429
33430 * params.def: Fix comment.
33431 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33432 name.
33433 (gimple_gen_ic_func_profiler): Likewise.
33434
33435 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33436
33437 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33438 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33439 and put in error checks for stack protector guard options.
33440 (aarch64_stack_protect_guard): New.
33441 (TARGET_STACK_PROTECT_GUARD): Define.
33442 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33443 (reg_stack_protect_address<mode>): New.
33444 (stack_protect_set): Adjust for SSP_GLOBAL.
33445 (stack_protect_test): Likewise.
33446 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33447 (-mstack-protector-guard): Likewise.
33448 (-mstack-protector-guard-offset): Likewise.
33449
33450 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33451
33452 PR tree-optimization/86214
33453 * tree-inline.h (struct copy_body_data): Add
33454 add_clobbers_to_eh_landing_pads member.
33455 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33456 (copy_edges_for_bb): Call it if EH edge destination is <
33457 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33458 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33459 if flag_stack_reuse != SR_NONE and clear it afterwards.
33460
33461 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33462
33463 PR target/85596
33464 * doc/install.texi (with-multilib-list): Document for aarch64.
33465
33466 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33467
33468 PR target/88734
33469 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33470 (("..."))) with ("...").
33471
33472 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33473
33474 * doc/extend.texi (Built-in Functions for Memory Model Aware
33475 Atomic Operations): Document atomic fetch and nand.
33476
33477 2019-01-18 Martin Liska <mliska@suse.cz>
33478 Richard Biener <rguenther@suse.de>
33479
33480 PR middle-end/88587
33481 * cgraph.h (create_version_clone_with_body): Add new argument
33482 with attributes.
33483 * cgraphclones.c (cgraph_node::create_version_clone): Add
33484 DECL_ATTRIBUTES to a newly created decl. And call
33485 valid_attribute_p so that proper cl_target_optimization_node
33486 is set for the newly created declaration.
33487 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33488 for declaration.
33489 (expand_target_clones): Do not call valid_attribute_p, it must
33490 be already done.
33491 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33492 vector types.
33493
33494 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33495
33496 PR target/88734
33497 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33498 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33499 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33500
33501 2019-01-17 Martin Sebor <msebor@redhat.com>
33502
33503 PR middle-end/88273
33504 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33505 Handle anti-ranges the same as no range at all.
33506
33507 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33508
33509 * config/aarch64/aarch64.c (cgraph.h): New include.
33510 (intl.h): New include.
33511 (supported_simd_type): New function.
33512 (currently_supported_simd_type): Ditto.
33513 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33514 (aarch64_simd_clone_adjust): Ditto.
33515 (aarch64_simd_clone_usable): Ditto.
33516 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33517 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33518 (TARGET_SIMD_CLONE_USABLE): Ditto.
33519 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33520 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33521 call.
33522
33523 2019-01-17 Martin Sebor <msebor@redhat.com>
33524
33525 PR tree-optimization/88800
33526 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33527 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33528 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33529 redundant argument. Add new argument and issue diagnostics under
33530 its control. Detect out-of-bounds access even with warnings
33531 disabled.
33532 (check_bounds_or_overlap): Change return type. Add argument.
33533 (wrestrict_dom_walker::check_call): Adjust.
33534 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33535 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33536 check_bounds_or_overlap's return value.
33537 (handle_builtin_stxncpy): Same.
33538 (handle_builtin_strcat): Same.
33539
33540 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33541 Kwok Cheung Yeung <kcy@codesourcery.com>
33542 Julian Brown <julian@codesourcery.com>
33543 Tom de Vries <tom@codesourcery.com>
33544
33545 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33546
33547 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33548
33549 * doc/sourcebuild.texi: Document dg-require-effective-target
33550 llvm_binutils and offload_gcn.
33551
33552 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33553 Kwok Cheung Yeung <kcy@codesourcery.com>
33554 Julian Brown <julian@codesourcery.com>
33555 Tom de Vries <tom@codesourcery.com>
33556
33557 * doc/sourcebuild.texi: Document dg-required-effective-target
33558 exceptions.
33559
33560 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33561 Kwok Cheung Yeung <kcy@codesourcery.com>
33562 Julian Brown <julian@codesourcery.com>
33563 Tom de Vries <tom@codesourcery.com>
33564 Jan Hubicka <hubicka@ucw.cz>
33565 Martin Jambor <mjambor@suse.cz>
33566
33567 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33568 * configure.ac: Check for dlopen.
33569 * configure: Regenerate.
33570
33571 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33572 Kwok Cheung Yeung <kcy@codesourcery.com>
33573 Julian Brown <julian@codesourcery.com>
33574 Tom de Vries <tom@codesourcery.com>
33575 Jan Hubicka <hubicka@ucw.cz>
33576 Martin Jambor <mjambor@suse.cz>
33577
33578 * common/config/gcn/gcn-common.c: New file.
33579 * config/gcn/driver-gcn.c: New file.
33580 * config/gcn/gcn-builtins.def: New file.
33581 * config/gcn/gcn-hsa.h: New file.
33582 * config/gcn/gcn-modes.def: New file.
33583 * config/gcn/gcn-opts.h: New file.
33584 * config/gcn/gcn-passes.def: New file.
33585 * config/gcn/gcn-protos.h: New file.
33586 * config/gcn/gcn-run.c: New file.
33587 * config/gcn/gcn-tree.c: New file.
33588 * config/gcn/gcn.c: New file.
33589 * config/gcn/gcn.h: New file.
33590 * config/gcn/gcn.opt: New file.
33591 * config/gcn/t-gcn-hsa: New file.
33592
33593 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33594 Kwok Cheung Yeung <kcy@codesourcery.com>
33595 Julian Brown <julian@codesourcery.com>
33596 Tom de Vries <tom@codesourcery.com>
33597 Jan Hubicka <hubicka@ucw.cz>
33598 Martin Jambor <mjambor@suse.cz>
33599
33600 * config/gcn/constraints.md: New file.
33601 * config/gcn/gcn-valu.md: New file.
33602 * config/gcn/gcn.md: New file.
33603 * config/gcn/predicates.md: New file.
33604
33605 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33606
33607 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33608 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33609 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33610 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33611
33612 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33613
33614 PR target/88851
33615 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33616 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33617 it and document registers.
33618
33619 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33620
33621 * config/aarch64/aarch64.c (ares_tunings): Define.
33622 * config/aarch64/aarch64-cores.def (ares): Use the above.
33623
33624 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33625
33626 PR target/88794
33627 Revert:
33628 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33629
33630 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33631 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33632 (_mm512_maskz_fixupimm_round_pd): Ditto.
33633 (_mm512_fixupimm_round_ps): Ditto.
33634 (_mm512_maskz_fixupimm_round_ps): Ditto.
33635 (_mm_fixupimm_round_sd): Ditto.
33636 (_mm_maskz_fixupimm_round_sd): Ditto.
33637 (_mm_fixupimm_round_ss): Ditto.
33638 (_mm_maskz_fixupimm_round_ss): Ditto.
33639 (_mm512_fixupimm_pd): Ditto.
33640 (_mm512_maskz_fixupimm_pd): Ditto.
33641 (_mm512_fixupimm_ps): Ditto.
33642 (_mm512_maskz_fixupimm_ps): Ditto.
33643 (_mm_fixupimm_sd): Ditto.
33644 (_mm_maskz_fixupimm_sd): Ditto.
33645 (_mm_fixupimm_ss): Ditto.
33646 (_mm_maskz_fixupimm_ss): Ditto.
33647 (_mm512_mask_fixupimm_round_pd): Update builtin.
33648 (_mm512_mask_fixupimm_round_ps): Ditto.
33649 (_mm_mask_fixupimm_round_sd): Ditto.
33650 (_mm_mask_fixupimm_round_ss): Ditto.
33651 (_mm512_mask_fixupimm_pd): Ditto.
33652 (_mm512_mask_fixupimm_ps): Ditto.
33653 (_mm_mask_fixupimm_sd): Ditto.
33654 (_mm_mask_fixupimm_ss): Ditto.
33655 * config/i386/avx512vlintrin.h:
33656 (_mm256_fixupimm_pd): Update parameters and builtin.
33657 (_mm256_maskz_fixupimm_pd): Ditto.
33658 (_mm256_fixupimm_ps): Ditto.
33659 (_mm256_maskz_fixupimm_ps): Ditto.
33660 (_mm_fixupimm_pd): Ditto.
33661 (_mm_maskz_fixupimm_pd): Ditto.
33662 (_mm_fixupimm_ps): Ditto.
33663 (_mm_maskz_fixupimm_ps): Ditto.
33664 (_mm256_mask_fixupimm_pd): Update builtin.
33665 (_mm256_mask_fixupimm_ps): Ditto.
33666 (_mm_mask_fixupimm_pd): Ditto.
33667 (_mm_mask_fixupimm_ps): Ditto.
33668 * config/i386/i386-builtin-types.def: Add new types and remove
33669 useless ones.
33670 * config/i386/i386-builtin.def: Update builtin definitions.
33671 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33672 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33673 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33674 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33675 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33676 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33677 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33678 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33679 * config/i386/subst.md:
33680 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33681 (round_saeonly_sd_mask_op4): Ditto.
33682 (round_saeonly_expand_operand5): Ditto.
33683 (round_saeonly_expand): Update.
33684
33685 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33686
33687 PR target/88794
33688 Revert:
33689 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33690
33691 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33692 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33693 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33694 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33695 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33696 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33697 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33698
33699 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33700
33701 PR target/88794
33702 Revert:
33703 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33704
33705 PR target/88489
33706 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33707 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33708 instead of UNSPEC_FIXUPIMM.
33709
33710 2019-01-17 Richard Biener <rguenther@suse.de>
33711
33712 PR lto/86736
33713 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33714 and friends for the LTO part of debug info.
33715
33716 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33717
33718 PR tree-optimization/86214
33719 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33720 if x == y.
33721
33722 PR rtl-optimization/88870
33723 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33724 throw if we can't alter the cfg or delete dead exceptions.
33725 (mark_insn): Don't call find_call_stack_args for such calls.
33726
33727 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33728
33729 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33730 prototypes for vec_st.
33731 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33732 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33733 mainly on signed/unsigned long long and double.
33734
33735 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33736
33737 PR target/88861
33738 * combine.c (delete_noop_moves): Convert to "bool" return,
33739 returning true if any edges are eliminated.
33740 (combine_instructions): Also return true if delete_noop_moves
33741 returns true.
33742
33743 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33744
33745 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33746 correct max nunits for endian swap.
33747 (aarch64_expand_fcmla_builtin): Correct subreg code.
33748 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33749 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33750 lane endianness.
33751
33752 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33753
33754 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33755 Handle split indirect COMPLEX_TYPE arguments.
33756
33757 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33758
33759 PR target/86891
33760 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33761 bit is set by add and compare.
33762 (CC_ADC): New CC_MODE.
33763 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33764 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33765 comparison. Add detection for CC_ADCmode.
33766 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33767 CC_ADCmode.
33768 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33769 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33770 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33771 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33772 to eliminate the need for zero-extending the operands.
33773 (add<mode>3_compareC_imm): Delete. Merge into ...
33774 (add<mode>3_compareC): ... this. Restructure the comparison to
33775 eliminate the need for zero-extending the operands.
33776 (add<mode>3_carryin): Use LTU for the overflow detection.
33777 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33778 Reexpress comparison for overflow.
33779 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33780 (add<mode>3_carryinC): Likewise.
33781 (add<mode>3_carryinV): Use LTU for carry between partials.
33782 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33783 handling of CC_Cmode and add CC_ADCmode.
33784 (aarch64_borrow_operation): Likewise.
33785
33786 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33787
33788 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33789 Remove patternmode.
33790 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33791 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33792 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33793 Remove endianness conversion.
33794
33795 2019-01-16 Martin Liska <mliska@suse.cz>
33796
33797 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33798 for GCC driver.
33799 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33800 a new argument.
33801 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33802 (path_prefix_reset): Move up in the source file.
33803 (find_fortran_preinclude_file): Make complex search for the
33804 fortran header files.
33805
33806 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33807
33808 * godump.c (go_output_typedef): When outputting a typedef, refer
33809 to the underlying type by its name and not its structure.
33810
33811 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33812
33813 PR c++/88795
33814 * tree.c (build_function_type): Assert that arg_types is not
33815 error_mark_node.
33816
33817 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33818
33819 PR inline-asm/52813
33820 * doc/extend.texi: Document that listing the stack pointer in the
33821 clobber list of an asm is a deprecated feature.
33822 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33823 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33824 warning instead of an error for clobbers of the stack pointer.
33825 Add a note explaining why.
33826
33827 2019-01-15 Richard Biener <rguenther@suse.de>
33828
33829 PR debug/88046
33830 * dwarf2out.c (gen_member_die): Do not generate inheritance
33831 DIEs late.
33832
33833 2019-01-15 Richard Biener <rguenther@suse.de>
33834
33835 PR tree-optimization/88855
33836 * tree-if-conv.c (combine_blocks): Collect
33837 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33838
33839 2019-01-15 Tom de Vries <tdevries@suse.de>
33840
33841 PR target/80547
33842 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33843 lhs == NULL_TREE for gang-level reduction.
33844
33845 2019-01-15 Richard Biener <rguenther@suse.de>
33846 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33847
33848 PR ipa/88788
33849 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33850 return true if SSA_NAME is already marked in visited bitmap.
33851 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33852
33853 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33854
33855 PR tree-optimization/88775
33856 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33857 equal == 0 equality pointer comparisons some more if compared in
33858 integral types and either one points to an automatic var and the
33859 other to a global, or we can prove at least one points to the middle
33860 or both point to start or both point to end.
33861
33862 2019-01-14 Andi Kleen <ak@linux.intel.com>
33863
33864 * Makefile.in: Lower autofdo sampling rate by 10x.
33865 * Makefile.tpl: Dito.
33866
33867 2019-01-14 Tom Honermann <tom@honermann.net>
33868
33869 * defaults.h: Define CHAR8_TYPE.
33870
33871 2019-01-14 Martin Sebor <msebor@redhat.com>
33872
33873 PR target/88638
33874 * doc/extend.texi (Darwin Format Checks): Clarify.
33875
33876 2019-01-14 Richard Biener <rguenther@suse.de>
33877
33878 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33879 whether we are in (simplify ...) or (match ...) context.
33880
33881 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33882
33883 PR rtl-optimization/88796
33884 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33885 * cfgexpand.c (stack_protect_prologue): Initialize
33886 crtl->stack_protect_guard_decl.
33887 * function.c (stack_protect_epilogue): Use it instead of calling
33888 targetm.stack_protect_guard again.
33889 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33890 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33891 crtl->stack_protect_guard_decl.
33892 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33893 on the returned MEM_EXPR.
33894
33895 2019-01-12 Tom de Vries <tdevries@suse.de>
33896
33897 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33898 vector length using -fopenacc-dim.
33899
33900 2019-01-12 Tom de Vries <tdevries@suse.de>
33901
33902 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33903 lengths into account.
33904
33905 2019-01-12 Svante Signell <svante.signell@gmail.com>
33906
33907 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33908 (TARGET_CAN_SPLIT_STACK): Define.
33909 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33910
33911 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33912
33913 * params.def (inline-unit-growth): Set to 40.
33914
33915 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33916
33917 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33918
33919 2019-01-12 Tom de Vries <tdevries@suse.de>
33920
33921 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33922 region calling vector-partitionable routine, set default_vector_length
33923 to WARP_SIZE.
33924
33925 2019-01-12 Tom de Vries <tdevries@suse.de>
33926
33927 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33928 variable default_vector_length.
33929
33930 2019-01-12 Tom de Vries <tdevries@suse.de>
33931
33932 PR middle-end/88703
33933 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33934 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33935 dimensions limits.
33936
33937 2019-01-12 Tom de Vries <tdevries@suse.de>
33938
33939 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33940 (nvptx_goacc_validate_dims): Add used parameter.
33941 * doc/tm.texi: Regenerate.
33942 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33943 argument to call to targetm.goacc.validate_dims.
33944 (default_goacc_validate_dims): Add used
33945 parameter.
33946 * target.def (validate_dims): Add used parameter in DEFHOOK.
33947 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33948
33949 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33950
33951 PR middle-end/85956
33952 PR lto/88733
33953 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33954 field.
33955 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33956 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33957 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33958 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33959
33960 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33961
33962 PR rtl-optimization/87305
33963 * lra-assigns.c
33964 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33965 for little endian pseudos used as paradoxical subreg.
33966
33967 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33968
33969 PR tree-optimization/88693
33970 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33971 for STRING_CSTs that don't contain any NUL characters in the first
33972 TREE_STRING_LENGTH bytes.
33973
33974 2019-01-11 Alan Modra <amodra@gmail.com>
33975
33976 PR 88777
33977 PR 88614
33978 * genattrtab.c (min_fn): Don't translate values.
33979 (min_attr_value): Return INT_MAX when the value can't be calculated.
33980 Return minimum among any values that can be calculated.
33981 (max_attr_value): Adjust.
33982
33983 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33984
33985 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33986
33987 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33988
33989 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33990 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33991 (aarch64_return_call_with_max_clobbers): New function.
33992 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33993 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33994 argument.
33995 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33996 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33997 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33998 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33999 * cselib.c (cselib_process_insn): Add argument to
34000 targetm.hard_regno_call_part_clobbered call.
34001 * ira-conflicts.c (ira_build_conflicts): Ditto.
34002 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34003 * lra-constraints.c (inherit_reload_reg): Ditto.
34004 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34005 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34006 argument. Call targetm.return_call_with_max_clobbers.
34007 Add argument to targetm.hard_regno_call_part_clobbered call.
34008 (calls_have_same_clobbers_p): New function.
34009 (process_bb_lives): Add call_insn and last_call_insn variables.
34010 Pass call_insn to check_pseudos_live_through_calls.
34011 Modify if stmt to check targetm.return_call_with_max_clobbers.
34012 Update setting of flush variable.
34013 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34014 to false.
34015 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34016 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34017 targetm.hard_regno_call_part_clobbered call.
34018 * reginfo.c (choose_hard_reg_mode): Ditto.
34019 * regrename.c (check_new_reg_p): Ditto.
34020 * reload.c (find_equiv_reg): Ditto.
34021 * reload1.c (emit_reload_insns): Ditto.
34022 * sched-deps.c (deps_analyze_insn): Ditto.
34023 * sel-sched.c (init_regs_for_mode): Ditto.
34024 (mark_unavailable_hard_regs): Ditto.
34025 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34026 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34027 (return_call_with_max_clobbers): New target function.
34028 * doc/tm.texi: Regenerate.
34029 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34030 * hooks.c (hook_bool_uint_mode_false): Change to
34031 hook_bool_insn_uint_mode_false.
34032 * hooks.h (hook_bool_uint_mode_false): Ditto.
34033
34034 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34035
34036 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34037 (aarch64_remove_extra_call_preserved_regs): New function.
34038 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34039 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34040 * doc/tm.texi: Regenerate.
34041 * final.c (get_call_reg_set_usage): Call new hook.
34042 * target.def (remove_extra_call_preserved_regs): New hook.
34043 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34044 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34045
34046 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34047
34048 PR bootstrap/88714
34049 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34050 inside of pass_combine_1 dump rather than pass_profile_1.
34051
34052 2019-01-11 Tom de Vries <tdevries@suse.de>
34053
34054 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34055 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34056 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34057 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34058 num_workers 16.
34059
34060 2019-01-11 Tom de Vries <tdevries@suse.de>
34061
34062 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34063
34064 2019-01-11 Jan Beulich <jbeulich@suse.com>
34065
34066 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34067 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34068 sse2_cvtsi2sd): Add {l}.
34069 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34070 syntax.
34071
34072 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34073
34074 PR target/88785
34075 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34076 define_expand.
34077 (*float<floatunssuffix>v2div2sf2): New define_insn.
34078 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34079 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34080 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34081 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34082 match_operands with "const0_operand" "C".
34083
34084 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34085
34086 * config/aarch64/aarch64-builtins.c
34087 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34088 (aarch64_init_simd_builtins): ...Here
34089
34090 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34091
34092 PR rtl-optimization/87305
34093 * lra-assigns.c
34094 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34095 allocation for big endian pseudos used as paradoxical subregs and
34096 spill them if it is wrong.
34097 * lra-constraints.c (lra_constraints): Add a comment.
34098
34099 2019-01-10 Richard Biener <rguenther@suse.de>
34100
34101 PR tree-optimization/88792
34102 * tree-ssa-pre.c (get_representative_for): Do not return a
34103 value-number here.
34104
34105 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34106
34107 PR middle-end/84877
34108 PR bootstrap/88450
34109 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34110 (assign_parm_setup_block): Do the argument slot realignment here
34111 instead.
34112
34113 2019-01-10 Stefan Agner <stefan@agner.ch>
34114
34115 PR target/88648
34116 * config/arm/arm.c (arm_option_override_internal): Force
34117 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34118
34119 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34120
34121 PR c/88568
34122 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34123 DECL_EXTERNAL.
34124
34125 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34126
34127 * config/arm/arm-builtins.c
34128 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34129 (MAC_LANE_PAIR_QUALIFIERS): New.
34130 (arm_expand_builtin_args): Use it.
34131 (arm_expand_builtin_1): Likewise.
34132 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34133 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34134 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34135 * config/arm/arm_neon.h:
34136 (vcadd_rot90_f16): New.
34137 (vcaddq_rot90_f16): New.
34138 (vcadd_rot270_f16): New.
34139 (vcaddq_rot270_f16): New.
34140 (vcmla_f16): New.
34141 (vcmlaq_f16): New.
34142 (vcmla_lane_f16): New.
34143 (vcmla_laneq_f16): New.
34144 (vcmlaq_lane_f16): New.
34145 (vcmlaq_laneq_f16): New.
34146 (vcmla_rot90_f16): New.
34147 (vcmlaq_rot90_f16): New.
34148 (vcmla_rot90_lane_f16): New.
34149 (vcmla_rot90_laneq_f16): New.
34150 (vcmlaq_rot90_lane_f16): New.
34151 (vcmlaq_rot90_laneq_f16): New.
34152 (vcmla_rot180_f16): New.
34153 (vcmlaq_rot180_f16): New.
34154 (vcmla_rot180_lane_f16): New.
34155 (vcmla_rot180_laneq_f16): New.
34156 (vcmlaq_rot180_lane_f16): New.
34157 (vcmlaq_rot180_laneq_f16): New.
34158 (vcmla_rot270_f16): New.
34159 (vcmlaq_rot270_f16): New.
34160 (vcmla_rot270_lane_f16): New.
34161 (vcmla_rot270_laneq_f16): New.
34162 (vcmlaq_rot270_lane_f16): New.
34163 (vcmlaq_rot270_laneq_f16): New.
34164 (vcadd_rot90_f32): New.
34165 (vcaddq_rot90_f32): New.
34166 (vcadd_rot270_f32): New.
34167 (vcaddq_rot270_f32): New.
34168 (vcmla_f32): New.
34169 (vcmlaq_f32): New.
34170 (vcmla_lane_f32): New.
34171 (vcmla_laneq_f32): New.
34172 (vcmlaq_lane_f32): New.
34173 (vcmlaq_laneq_f32): New.
34174 (vcmla_rot90_f32): New.
34175 (vcmlaq_rot90_f32): New.
34176 (vcmla_rot90_lane_f32): New.
34177 (vcmla_rot90_laneq_f32): New.
34178 (vcmlaq_rot90_lane_f32): New.
34179 (vcmlaq_rot90_laneq_f32): New.
34180 (vcmla_rot180_f32): New.
34181 (vcmlaq_rot180_f32): New.
34182 (vcmla_rot180_lane_f32): New.
34183 (vcmla_rot180_laneq_f32): New.
34184 (vcmlaq_rot180_lane_f32): New.
34185 (vcmlaq_rot180_laneq_f32): New.
34186 (vcmla_rot270_f32): New.
34187 (vcmlaq_rot270_f32): New.
34188 (vcmla_rot270_lane_f32): New.
34189 (vcmla_rot270_laneq_f32): New.
34190 (vcmlaq_rot270_lane_f32): New.
34191 (vcmlaq_rot270_laneq_f32): New.
34192 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34193 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34194 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34195 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34196 vcmlaq_lane270): New.
34197 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34198 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34199 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34200 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34201 (arm_option_reconfigure_globals): Use them.
34202 * config/arm/iterators.md (VDF, VQ_HSF): New.
34203 (VCADD, VCMLA): New.
34204 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34205 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34206 New.
34207 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34208 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34209
34210 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34211
34212 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34213 Add qualifier_lane_pair_index.
34214 (emit-rtl.h): Include.
34215 (TYPES_QUADOP_LANE_PAIR): New.
34216 (aarch64_simd_expand_args): Use it.
34217 (aarch64_simd_expand_builtin): Likewise.
34218 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34219 New.
34220 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34221 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34222 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34223 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34224 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34225 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34226 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34227 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34228 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34229 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34230 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34231 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34232 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34233 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34234 Add __ARM_FEATURE_COMPLEX.
34235 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34236 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34237 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34238 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34239 fcmlaq_lane270): New.
34240 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34241 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34242 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34243 * config/aarch64/arm_neon.h:
34244 (vcadd_rot90_f16): New.
34245 (vcaddq_rot90_f16): New.
34246 (vcadd_rot270_f16): New.
34247 (vcaddq_rot270_f16): New.
34248 (vcmla_f16): New.
34249 (vcmlaq_f16): New.
34250 (vcmla_lane_f16): New.
34251 (vcmla_laneq_f16): New.
34252 (vcmlaq_lane_f16): New.
34253 (vcmlaq_rot90_lane_f16): New.
34254 (vcmla_rot90_laneq_f16): New.
34255 (vcmla_rot90_lane_f16): New.
34256 (vcmlaq_rot90_f16): New.
34257 (vcmla_rot90_f16): New.
34258 (vcmlaq_laneq_f16): New.
34259 (vcmla_rot180_laneq_f16): New.
34260 (vcmla_rot180_lane_f16): New.
34261 (vcmlaq_rot180_f16): New.
34262 (vcmla_rot180_f16): New.
34263 (vcmlaq_rot90_laneq_f16): New.
34264 (vcmlaq_rot270_laneq_f16): New.
34265 (vcmlaq_rot270_lane_f16): New.
34266 (vcmla_rot270_laneq_f16): New.
34267 (vcmlaq_rot270_f16): New.
34268 (vcmla_rot270_f16): New.
34269 (vcmlaq_rot180_laneq_f16): New.
34270 (vcmlaq_rot180_lane_f16): New.
34271 (vcmla_rot270_lane_f16): New.
34272 (vcadd_rot90_f32): New.
34273 (vcaddq_rot90_f32): New.
34274 (vcaddq_rot90_f64): New.
34275 (vcadd_rot270_f32): New.
34276 (vcaddq_rot270_f32): New.
34277 (vcaddq_rot270_f64): New.
34278 (vcmla_f32): New.
34279 (vcmlaq_f32): New.
34280 (vcmlaq_f64): New.
34281 (vcmla_lane_f32): New.
34282 (vcmla_laneq_f32): New.
34283 (vcmlaq_lane_f32): New.
34284 (vcmlaq_laneq_f32): New.
34285 (vcmla_rot90_f32): New.
34286 (vcmlaq_rot90_f32): New.
34287 (vcmlaq_rot90_f64): New.
34288 (vcmla_rot90_lane_f32): New.
34289 (vcmla_rot90_laneq_f32): New.
34290 (vcmlaq_rot90_lane_f32): New.
34291 (vcmlaq_rot90_laneq_f32): New.
34292 (vcmla_rot180_f32): New.
34293 (vcmlaq_rot180_f32): New.
34294 (vcmlaq_rot180_f64): New.
34295 (vcmla_rot180_lane_f32): New.
34296 (vcmla_rot180_laneq_f32): New.
34297 (vcmlaq_rot180_lane_f32): New.
34298 (vcmlaq_rot180_laneq_f32): New.
34299 (vcmla_rot270_f32): New.
34300 (vcmlaq_rot270_f32): New.
34301 (vcmlaq_rot270_f64): New.
34302 (vcmla_rot270_lane_f32): New.
34303 (vcmla_rot270_laneq_f32): New.
34304 (vcmlaq_rot270_lane_f32): New.
34305 (vcmlaq_rot270_laneq_f32): New.
34306 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34307 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34308 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34309 (FCADD, FCMLA): New.
34310 (rot): New.
34311 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34312
34313 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34314
34315 PR other/16615
34316
34317 * config/pa/pa.c: Change "can not" to "cannot".
34318 * gimple-ssa-evrp-analyze.c: Likewise.
34319 * ipa-icf.c: Likewise.
34320 * ipa-polymorphic-call.c: Likewise.
34321 * ipa-pure-const.c: Likewise.
34322 * lra-constraints.c: Likewise.
34323 * lra-remat.c: Likewise.
34324 * reload1.c: Likewise.
34325 * reorg.c: Likewise.
34326 * tree-ssa-uninit.c: Likewise.
34327
34328 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34329
34330 PR other/16615
34331
34332 * Makefile.in: Mechanically replace "can not" with "cannot".
34333 * alias.c: Likewise.
34334 * builtins.c: Likewise.
34335 * calls.c: Likewise.
34336 * cgraph.c: Likewise.
34337 * cgraph.h: Likewise.
34338 * cgraphclones.c: Likewise.
34339 * cgraphunit.c: Likewise.
34340 * combine-stack-adj.c: Likewise.
34341 * combine.c: Likewise.
34342 * common/config/i386/i386-common.c: Likewise.
34343 * config/aarch64/aarch64.c: Likewise.
34344 * config/alpha/sync.md: Likewise.
34345 * config/arc/arc.c: Likewise.
34346 * config/arc/predicates.md: Likewise.
34347 * config/arm/arm-c.c: Likewise.
34348 * config/arm/arm.c: Likewise.
34349 * config/arm/arm.h: Likewise.
34350 * config/arm/arm.md: Likewise.
34351 * config/arm/cortex-r4f.md: Likewise.
34352 * config/csky/csky.c: Likewise.
34353 * config/csky/csky.h: Likewise.
34354 * config/darwin-f.c: Likewise.
34355 * config/epiphany/epiphany.md: Likewise.
34356 * config/i386/i386.c: Likewise.
34357 * config/i386/sol2.h: Likewise.
34358 * config/m68k/m68k.c: Likewise.
34359 * config/mcore/mcore.h: Likewise.
34360 * config/microblaze/microblaze.md: Likewise.
34361 * config/mips/20kc.md: Likewise.
34362 * config/mips/sb1.md: Likewise.
34363 * config/nds32/nds32.c: Likewise.
34364 * config/nds32/predicates.md: Likewise.
34365 * config/pa/pa.c: Likewise.
34366 * config/rs6000/e300c2c3.md: Likewise.
34367 * config/rs6000/rs6000.c: Likewise.
34368 * config/s390/s390.h: Likewise.
34369 * config/sh/sh.c: Likewise.
34370 * config/sh/sh.md: Likewise.
34371 * config/spu/vmx2spu.h: Likewise.
34372 * cprop.c: Likewise.
34373 * dbxout.c: Likewise.
34374 * df-scan.c: Likewise.
34375 * doc/cfg.texi: Likewise.
34376 * doc/extend.texi: Likewise.
34377 * doc/fragments.texi: Likewise.
34378 * doc/gty.texi: Likewise.
34379 * doc/invoke.texi: Likewise.
34380 * doc/lto.texi: Likewise.
34381 * doc/md.texi: Likewise.
34382 * doc/objc.texi: Likewise.
34383 * doc/rtl.texi: Likewise.
34384 * doc/tm.texi: Likewise.
34385 * dse.c: Likewise.
34386 * emit-rtl.c: Likewise.
34387 * emit-rtl.h: Likewise.
34388 * except.c: Likewise.
34389 * expmed.c: Likewise.
34390 * expr.c: Likewise.
34391 * fold-const.c: Likewise.
34392 * genautomata.c: Likewise.
34393 * gimple-fold.c: Likewise.
34394 * hard-reg-set.h: Likewise.
34395 * ifcvt.c: Likewise.
34396 * ipa-comdats.c: Likewise.
34397 * ipa-cp.c: Likewise.
34398 * ipa-devirt.c: Likewise.
34399 * ipa-fnsummary.c: Likewise.
34400 * ipa-icf.c: Likewise.
34401 * ipa-inline-transform.c: Likewise.
34402 * ipa-inline.c: Likewise.
34403 * ipa-polymorphic-call.c: Likewise.
34404 * ipa-profile.c: Likewise.
34405 * ipa-prop.c: Likewise.
34406 * ipa-pure-const.c: Likewise.
34407 * ipa-reference.c: Likewise.
34408 * ipa-split.c: Likewise.
34409 * ipa-visibility.c: Likewise.
34410 * ipa.c: Likewise.
34411 * ira-build.c: Likewise.
34412 * ira-color.c: Likewise.
34413 * ira-conflicts.c: Likewise.
34414 * ira-costs.c: Likewise.
34415 * ira-int.h: Likewise.
34416 * ira-lives.c: Likewise.
34417 * ira.c: Likewise.
34418 * ira.h: Likewise.
34419 * loop-invariant.c: Likewise.
34420 * loop-unroll.c: Likewise.
34421 * lower-subreg.c: Likewise.
34422 * lra-assigns.c: Likewise.
34423 * lra-constraints.c: Likewise.
34424 * lra-eliminations.c: Likewise.
34425 * lra-lives.c: Likewise.
34426 * lra-remat.c: Likewise.
34427 * lra-spills.c: Likewise.
34428 * lra.c: Likewise.
34429 * lto-cgraph.c: Likewise.
34430 * lto-streamer-out.c: Likewise.
34431 * postreload-gcse.c: Likewise.
34432 * predict.c: Likewise.
34433 * profile-count.h: Likewise.
34434 * profile.c: Likewise.
34435 * recog.c: Likewise.
34436 * ree.c: Likewise.
34437 * reload.c: Likewise.
34438 * reload1.c: Likewise.
34439 * reorg.c: Likewise.
34440 * resource.c: Likewise.
34441 * rtl.def: Likewise.
34442 * rtl.h: Likewise.
34443 * rtlanal.c: Likewise.
34444 * sched-deps.c: Likewise.
34445 * sched-ebb.c: Likewise.
34446 * sched-rgn.c: Likewise.
34447 * sel-sched-ir.c: Likewise.
34448 * sel-sched.c: Likewise.
34449 * shrink-wrap.c: Likewise.
34450 * simplify-rtx.c: Likewise.
34451 * symtab.c: Likewise.
34452 * target.def: Likewise.
34453 * toplev.c: Likewise.
34454 * tree-call-cdce.c: Likewise.
34455 * tree-cfg.c: Likewise.
34456 * tree-complex.c: Likewise.
34457 * tree-core.h: Likewise.
34458 * tree-eh.c: Likewise.
34459 * tree-inline.c: Likewise.
34460 * tree-loop-distribution.c: Likewise.
34461 * tree-nrv.c: Likewise.
34462 * tree-profile.c: Likewise.
34463 * tree-sra.c: Likewise.
34464 * tree-ssa-alias.c: Likewise.
34465 * tree-ssa-dce.c: Likewise.
34466 * tree-ssa-dom.c: Likewise.
34467 * tree-ssa-forwprop.c: Likewise.
34468 * tree-ssa-loop-im.c: Likewise.
34469 * tree-ssa-loop-ivcanon.c: Likewise.
34470 * tree-ssa-loop-ivopts.c: Likewise.
34471 * tree-ssa-loop-niter.c: Likewise.
34472 * tree-ssa-phionlycprop.c: Likewise.
34473 * tree-ssa-phiopt.c: Likewise.
34474 * tree-ssa-propagate.c: Likewise.
34475 * tree-ssa-threadedge.c: Likewise.
34476 * tree-ssa-threadupdate.c: Likewise.
34477 * tree-ssa-uninit.c: Likewise.
34478 * tree-ssanames.c: Likewise.
34479 * tree-streamer-out.c: Likewise.
34480 * tree.c: Likewise.
34481 * tree.h: Likewise.
34482 * vr-values.c: Likewise.
34483
34484 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34485
34486 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34487 (ix86_split_xorsign): Ditto.
34488 * config/i386/i386.c (ix86_expand_xorsign): New function.
34489 (ix86_split_xorsign): Ditto.
34490 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34491 (xorsign<mode>3): New expander.
34492 (xorsign<mode>3_1): New insn_and_split pattern.
34493 * config/i386/sse.md (xorsign<mode>3): New expander.
34494
34495 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34496
34497 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34498 (*tablejump_sp64): Likewise.
34499 (*tablejump<P:mode>): ...this.
34500 (*call_address_sp32): Merge into...
34501 (*call_address_sp64): Likewise.
34502 (*call_address<P:mode>): ...this.
34503 (*call_symbolic_sp32): Merge into...
34504 (*call_symbolic_sp64): Likewise.
34505 (*call_symbolic<P:mode>): ...this.
34506 (call_value): Remove constraint and add predicate.
34507 (*call_value_address_sp32): Merge into...
34508 (*call_value_address_sp64): Likewise.
34509 (*call_value_address<P:mode>): ...this.
34510 (*call_value_symbolic_sp32): Merge into...
34511 (*call_value_symbolic_sp64): Likewise.
34512 (*call_value_symbolic<P:mode>): ...this.
34513 (*sibcall_symbolic_sp32): Merge into...
34514 (*sibcall_symbolic_sp64): Likewise.
34515 (*sibcall_symbolic<P:mode>): ...this.
34516 (sibcall_value): Remove constraint and add predicate.
34517 (*sibcall_value_symbolic_sp32): Merge into...
34518 (*sibcall_value_symbolic_sp64): Likewise.
34519 (*sibcall_value_symbolic<P:mode>): ...this.
34520 (window_save): Minor tweak.
34521 (*branch_sp32): Merge into...
34522 (*branch_sp64): Likewise.
34523 (*branch<P:mode>): ...this.
34524
34525 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34526 James Clarke <jrtc27@jrtc27.com>
34527
34528 PR target/84010
34529 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34530 consistently in TLS address generation and adjust code to the renaming
34531 of patterns. Mark calls to __tls_get_addr as const.
34532 * config/sparc/sparc.md (tgd_hi22): Turn into...
34533 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34534 (tgd_lo10): Turn into...
34535 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34536 (tgd_add32): Merge into...
34537 (tgd_add64): Likewise.
34538 (tgd_add<P:mode>): ...this and use Pmode throughout.
34539 (tldm_hi22): Turn into...
34540 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34541 (tldm_lo10): Turn into...
34542 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34543 (tldm_add32): Merge into...
34544 (tldm_add64): Likewise.
34545 (tldm_add<P:mode>): ...this and use Pmode throughout.
34546 (tldm_call32): Merge into...
34547 (tldm_call64): Likewise.
34548 (tldm_call<P:mode>): ...this and use Pmode throughout.
34549 (tldo_hix22): Turn into...
34550 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34551 (tldo_lox10): Turn into...
34552 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34553 (tldo_add32): Merge into...
34554 (tldo_add64): Likewise.
34555 (tldo_add<P:mode>): ...this and use Pmode throughout.
34556 (tie_hi22): Turn into...
34557 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34558 (tie_lo10): Turn into...
34559 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34560 (tie_ld64): Use DImode throughout.
34561 (tie_add32): Merge into...
34562 (tie_add64): Likewise.
34563 (tie_add<P:mode>): ...this and use Pmode throughout.
34564 (tle_hix22_sp32): Merge into...
34565 (tle_hix22_sp64): Likewise.
34566 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34567 (tle_lox22_sp32): Merge into...
34568 (tle_lox22_sp64): Likewise.
34569 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34570 (*tldo_ldub_sp32): Merge into...
34571 (*tldo_ldub_sp64): Likewise.
34572 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34573 (*tldo_ldub1_sp32): Merge into...
34574 (*tldo_ldub1_sp64): Likewise.
34575 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34576 (*tldo_ldub2_sp32): Merge into...
34577 (*tldo_ldub2_sp64): Likewise.
34578 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34579 (*tldo_ldsb1_sp32): Merge into...
34580 (*tldo_ldsb1_sp64): Likewise.
34581 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34582 (*tldo_ldsb2_sp32): Merge into...
34583 (*tldo_ldsb2_sp64): Likewise.
34584 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34585 (*tldo_ldub3_sp64): Use DImode throughout.
34586 (*tldo_ldsb3_sp64): Likewise.
34587 (*tldo_lduh_sp32): Merge into...
34588 (*tldo_lduh_sp64): Likewise.
34589 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34590 (*tldo_lduh1_sp32): Merge into...
34591 (*tldo_lduh1_sp64): Likewise.
34592 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34593 (*tldo_ldsh1_sp32): Merge into...
34594 (*tldo_ldsh1_sp64): Likewise.
34595 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34596 (*tldo_lduh2_sp64): Use DImode throughout.
34597 (*tldo_ldsh2_sp64): Likewise.
34598 (*tldo_lduw_sp32): Merge into...
34599 (*tldo_lduw_sp64): Likewise.
34600 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34601 (*tldo_lduw1_sp64): Use DImode throughout.
34602 (*tldo_ldsw1_sp64): Likewise.
34603 (*tldo_ldx_sp64): Likewise.
34604 (*tldo_stb_sp32): Merge into...
34605 (*tldo_stb_sp64): Likewise.
34606 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34607 (*tldo_sth_sp32): Merge into...
34608 (*tldo_sth_sp64): Likewise.
34609 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34610 (*tldo_stw_sp32): Merge into...
34611 (*tldo_stw_sp64): Likewise.
34612 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34613 (*tldo_stx_sp64): Use DImode throughout.
34614
34615 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34616
34617 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34618 check configure option to set BTI and Return Address Signing.
34619 * configure.ac: Add --enable-standard-branch-protection and
34620 --disable-standard-branch-protection.
34621 * configure: Regenerated.
34622 * doc/install.texi: Document the same.
34623
34624 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34625 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34626
34627 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34628 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34629 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34630 if bti is enabled.
34631 * config/aarch64/aarch64-bti-insert.c: New file.
34632 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34633 pass.
34634 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34635 new bti pass.
34636 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34637 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34638 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34639 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34640
34641 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34642
34643 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34644 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34645 Disable bti for -mbranch-protection=none.
34646 (aarch64_handle_standard_branch_protection): Enable bti for
34647 -mbranch-protection=standard.
34648 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34649 -mbranch-protection.
34650 (aarch64_bti_enabled): Check if bti is enabled.
34651 * config/aarch64/aarch64.opt: Declare target variable.
34652 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34653
34654 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34655
34656 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34657 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34658 (aarch64_expand_epilogue): Likewise.
34659 (aarch64_output_mi_thunk): Likewise.
34660 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34661 TAILCALL_ADDR_REGS to x16 and x17.
34662 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34663
34664 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34665
34666 * config/aarch64/aarch64-option-extensions.def: Define
34667 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34668 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34669 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34670 (AARCH64_FL_PREDRES): New.
34671 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34672 AARCH64_FL_PREDRES by default.
34673 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34674
34675 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34676
34677 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34678 ARMv8.5-A.
34679 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34680 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34681 * doc/invoke.texi: Document ARMv8.5-A.
34682
34683 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34684
34685 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34686 (xorsign<mode>3): Likewise.
34687
34688 2019-01-09 Jelinek <jakub@redhat.com>
34689
34690 PR middle-end/88758
34691 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34692 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34693
34694 PR rtl-optimization/88331
34695 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34696 not currently_expanding_to_rtl.
34697
34698 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34699
34700 * doc/invoke.texi (-Os): Remove trailing spaces.
34701 (-finline-functions): Remove reference to -O2.
34702
34703 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34704
34705 PR rtl-optimization/79593
34706 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34707
34708 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34709 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34710
34711 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34712
34713 PR bootstrap/88721
34714 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34715 to -1 on entry.
34716
34717 PR debug/88723
34718 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34719 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34720
34721 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34722
34723 PR target/88717
34724 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34725 ix86_avx_u128_mode_entry.
34726
34727 2019-01-08 Martin Liska <mliska@suse.cz>
34728
34729 PR tree-optimization/88753
34730 * tree-switch-conversion.c (switch_conversion::build_one_array):
34731 Come up with local variable constructor. Convert first to
34732 type of constructor values.
34733
34734 2019-01-08 Richard Biener <rguenther@suse.de>
34735
34736 PR tree-optimization/86554
34737 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34738 rpo_avail): Move earlier.
34739 (visit_nary_op): When value-numbering to expressions
34740 with different overflow behavior make sure there's an
34741 available expression on the path.
34742
34743 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34744
34745 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34746 aarch64_parse_branch_protection,
34747 struct aarch64_branch_protect_type,
34748 aarch64_handle_no_branch_protection,
34749 aarch64_handle_standard_branch_protection,
34750 aarch64_validate_mbranch_protection,
34751 aarch64_handle_pac_ret_protection,
34752 aarch64_handle_attr_branch_protection,
34753 accepted_branch_protection_string,
34754 aarch64_pac_ret_subtypes,
34755 aarch64_branch_protect_types,
34756 aarch64_handle_pac_ret_leaf): Define.
34757 (aarch64_override_options_after_change_1, aarch64_override_options):
34758 Add check for accepted_branch_protection_string.
34759 (aarch64_option_save): Save accepted_branch_protection_string.
34760 (aarch64_option_restore): Save accepted_branch_protection_string.
34761 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34762 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34763 msign-return-address.
34764 * doc/invoke.texi: Add mbranch-protection.
34765
34766 2019-01-08 Alan Modra <amodra@gmail.com>
34767
34768 PR target/88614
34769 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34770 Delete "unknownp" parameter. Adjust callers. Handle
34771 CONST_INT, PLUS, MINUS, and MULT.
34772 (attr_value_aligned): Renamed from or_attr_value.
34773 (min_attr_value): Return INT_MIN for unhandled rtl case..
34774 (min_fn): ..and translate to INT_MAX here.
34775 (write_length_unit_log): Modify to cope without "unknown".
34776 (write_attr_value): Handle IF_THEN_ELSE.
34777
34778 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34779
34780 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34781 optimization for masked stores.
34782
34783 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34784
34785 PR middle-end/88567
34786 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34787 output vector directly to duplicate_and_interleave instead of
34788 going through a temporary. Postpone insertion of ctor_seq to
34789 the end of the loop.
34790
34791 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34792
34793 PR target/86891
34794 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34795 unsigned_p. Handle signed and unsigned overflow correction as
34796 required.
34797 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34798 prototype.
34799 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34800 for operand 2.
34801 (add<mode>3_compareV_imm): Make this callable for expanding.
34802 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34803 aarch64_plus_operand for operand 2.
34804 (subv<GPI:mode>_insn): New insn pattern.
34805 (subv<GPI:mode>_imm): Likewise.
34806 (negv<GPI:mode>3): New expand pattern.
34807 (negv<GPI:mode>_insn): New insn pattern.
34808 (negv<GPI:mode>_cmp_only): Likewise.
34809 (cmpv<GPI:mode>_insn): Likewise.
34810 (subvti4): Use register_operand for operand 1. Update call to
34811 aarch64_expand_subvti.
34812 (usubvti4): Likewise.
34813 (negvti3): New expand pattern.
34814 (negdi_carryout): New insn pattern.
34815 (negvdi_carryinV): New insn pattern.
34816 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34817 version the named version.
34818 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34819 operands.
34820 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34821 patterns.
34822 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34823 patterns.
34824 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34825 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34826 (sub<mode>3_carryinCV): Delete.
34827 (sub<GPI:mode>3_carryinV): New expand pattern.
34828 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34829
34830 2019-01-07 Richard Biener <rguenther@suse.de>
34831
34832 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34833 of tree_operand_hash.
34834
34835 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34836
34837 PR tree-optimization/88598
34838 * tree.h (single_nonzero_element): Declare.
34839 * tree.c (single_nonzero_element): New function.
34840 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34841 if I is the only nonzero element of CST.
34842
34843 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34844
34845 PR tree-optimization/88598
34846 * tree.h (initializer_each_zero_or_onep): Declare.
34847 * tree.c (initializer_each_zero_or_onep): New function.
34848 (signed_or_unsigned_type_for): Handle float types too.
34849 (unsigned_type_for, signed_type_for): Update comments accordingly.
34850 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34851 x & { 0 or -1, 0 or -1, ... }.
34852
34853 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34854
34855 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34856 with x86_64-pc-linux-gnu.
34857
34858 2019-01-07 Tom de Vries <tdevries@suse.de>
34859
34860 PR target/85486
34861 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34862 function.
34863 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34864 routines.
34865
34866 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34867
34868 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34869 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34870 TARGET_AVX512F as condition.
34871
34872 PR debug/88723
34873 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34874 const_not_ok_for_debug_p target hook.
34875 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34876 on UNSPEC and subexpressions thereof if all subexpressions of the
34877 UNSPEC are CONSTANT_P.
34878
34879 PR tree-optimization/88676
34880 * tree-ssa-phiopt.c (two_value_replacement): New function.
34881 (tree_ssa_phiopt_worker): Call it.
34882
34883 PR sanitizer/88619
34884 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34885 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34886
34887 PR c++/85052
34888 * tree-vect-generic.c: Include insn-config.h and recog.h.
34889 (expand_vector_piecewise): Add defaulted ret_type argument,
34890 if non-NULL, use that in preference to type for the result type.
34891 (expand_vector_parallel): Formatting fix.
34892 (do_vec_conversion, do_vec_narrowing_conversion,
34893 expand_vector_conversion): New functions.
34894 (expand_vector_operations_1): Call expand_vector_conversion
34895 for VEC_CONVERT ifn calls.
34896 * internal-fn.def (VEC_CONVERT): New internal function.
34897 * internal-fn.c (expand_VEC_CONVERT): New function.
34898 * fold-const-call.c (fold_const_vec_convert): New function.
34899 (fold_const_call): Use it for CFN_VEC_CONVERT.
34900 * doc/extend.texi (__builtin_convertvector): Document.
34901
34902 2019-01-07 Tom de Vries <tdevries@suse.de>
34903
34904 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34905 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34906 vector_red_partition, vector_red_sym): New global variables.
34907 (nvptx_option_override): Initialize vector_red_sym.
34908 (nvptx_declare_function_name): Restore red_partition register.
34909 (nvptx_file_end): Emit code to declare the vector reduction variables.
34910 (nvptx_output_red_partition): New function.
34911 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34912 large vector reductions.
34913 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34914 (nvptx_init_builtins): Add VECTOR_ADDR.
34915 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34916 Handle nvptx_expand_shared_addr.
34917 (nvptx_get_shared_red_addr): Add vector argument and handle large
34918 vectors.
34919 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34920 large vectors.
34921 (nvptx_goacc_reduction_init): Likewise.
34922 (nvptx_goacc_reduction_fini): Likewise.
34923 (nvptx_goacc_reduction_teardown): Likewise.
34924 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34925 init,fini,teardown}.
34926 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34927 (nvptx_set_current_function): Init vector_red_partition.
34928 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34929 (nvptx_red_partition): New insn.
34930 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34931
34932 2019-01-07 Tom de Vries <tdevries@suse.de>
34933
34934 PR target/85381
34935 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34936 empty loops.
34937
34938 2019-01-07 Tom de Vries <tdevries@suse.de>
34939
34940 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34941 (nvptx_option_override): Init oacc_bcast_partition.
34942 (nvptx_init_oacc_workers): New function.
34943 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34944 (nvptx_needs_shared_bcast): New function.
34945 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34946 to propagate state.
34947 (nvptx_shared_propagate): Initialize vector bcast partition and
34948 synchronization state.
34949 (nvptx_single): Generalize to enable vectors to use shared-memory
34950 to propagate state.
34951 (nvptx_process_pars): Likewise.
34952 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34953 * config/nvptx/nvptx.h (struct machine_function): Add
34954 bcast_partition and sync_bar members.
34955
34956 2019-01-07 Tom de Vries <tdevries@suse.de>
34957
34958 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34959 (nvptx_apply_dim_limits): New function.
34960 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34961 PTX_WARP_SIZE.
34962
34963 2019-01-07 Tom de Vries <tdevries@suse.de>
34964
34965 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34966 as late as possible.
34967
34968 2019-01-07 Tom de Vries <tdevries@suse.de>
34969
34970 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34971 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34972 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34973 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34974 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34975
34976 2019-01-07 Tom de Vries <tdevries@suse.de>
34977
34978 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34979
34980 2019-01-07 Tom de Vries <tdevries@suse.de>
34981
34982 * omp-offload.c (oacc_get_min_dim): New function.
34983 * omp-offload.h (oacc_get_min_dim): Declare.
34984
34985 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34986
34987 PR target/88521
34988 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34989 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34990
34991 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34992
34993 PR tree-opt/86020
34994 Revert:
34995 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34996
34997 * ipa-inline.c (edge_badness): Use inlined_time instead of
34998 inline_summaries->get.
34999
35000 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35001
35002 * opts.c (enable_fdo_optimizations): Enable
35003 version-loops-for-strides, loop-interchange, unrol-and-jam
35004 and tree-loop-distribution.
35005 * invoke.texi: Document newly enabled options.
35006
35007 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35008
35009 * doc/invoke.texi (max-inline-insns-small): New parameters.
35010 * ipa-inline.c (want_early_inline_function_p): simplify.
35011 (want_inline_small_function_p): Fix pasto from previous patch;
35012 use max-inline-insns-small bound.
35013 * params.def (max-inline-insns-small): New param.
35014 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35015 variables correctly.
35016
35017 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35018
35019 * doc/invoke.texi: Document max-inline-insns-size,
35020 uninlined-function-insns, uninlined-function-time,
35021 uninlined-thunk-insns and uninlined-thunk-time.
35022 * params.def: Add max-inline-insns-size,
35023 uninlined-function-insns, uninlined-function-time,
35024 uninlined-thunk-insns and uninlined-thunk-time.
35025 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35026 new parameters.
35027 * ipa-inline.c (can_inline_edge_by_limits_p,
35028 want_inline_small_function_p): Use new parameters.
35029
35030 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35031
35032 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35033
35034 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35035
35036 PR middle-end/82564
35037 PR target/88620
35038 * expr.c (expand_assignment): For calls returning VLA structures
35039 if to_rtx is not a MEM, force it into a stack temporary.
35040
35041 PR debug/88635
35042 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35043 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35044 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35045 subexpressions of both operands.
35046 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35047 subrtxes are CONSTANT_P.
35048 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35049 2018-11-09 changes.
35050
35051 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35052
35053 * params.def (hot-bb-count-ws-permille): Set to 990.
35054
35055 2019-01-04 Martin Sebor <msebor@redhat.com>
35056
35057 PR c/88546
35058 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35059 leaf.
35060
35061 2019-01-04 Martin Sebor <msebor@redhat.com>
35062
35063 PR c/88363
35064 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35065
35066 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35067
35068 * gdbinit.in: Turn off pagination for the skip commands, restore
35069 it to previous state afterwards.
35070
35071 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35072
35073 PR target/88594
35074 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35075 of GET_MODE (opN) as modes of the libcall arguments.
35076
35077 2019-01-04 Jan Beulich <jbeulich@suse.com>
35078
35079 * config/i386/sse.md
35080 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35081 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35082 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35083 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35084 avx512f_vmcmp<mode>3<round_saeonly_name>,
35085 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35086 avx512f_maskcmp<mode>3,
35087 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35088 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35089 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35090 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35091 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35092 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35093 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35094 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35095 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35096 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35097 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35098 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35099 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35100 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35101 avx512cd_maskb_vec_dup<mode>,
35102 avx512cd_maskw_vec_dup<mode>,
35103 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35104 avx512dq_vmfpclass<mode>,
35105 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35106 instead of =Yk.
35107
35108 2019-01-03 Martin Sebor <msebor@redhat.com>
35109
35110 PR tree-optimization/88659
35111 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35112
35113 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35114
35115 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35116 unaligned vsx and avoid lxvd2x/stxvd2x.
35117 (gen_lvx_v4si_move): New function.
35118
35119 2019-01-03 Tom de Vries <tdevries@suse.de>
35120
35121 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35122 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35123 function.
35124 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35125
35126 2019-01-03 Tom de Vries <tdevries@suse.de>
35127
35128 * config/nvptx/nvptx.c (struct offload_attrs): New.
35129 (populate_offload_attrs): New function. Factor mask extraction out of
35130 nvptx_reorg. Add extraction of dimensions.
35131 (nvptx_reorg): Use populate_offload_attrs.
35132
35133 2019-01-03 Tom de Vries <tdevries@suse.de>
35134
35135 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35136 cases for oacc_min_dims_p and routine_p. Add asserts for
35137 oacc_default_dims_p and offload_region_p.
35138
35139 2019-01-03 Tom de Vries <tdevries@suse.de>
35140
35141 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35142 factored out of ...
35143 (nvptx_goacc_validate_dims): ... here.
35144
35145 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35146
35147 PR tree-optimization/85574
35148 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35149 structure.
35150 (struct ssa_equip_hash_traits): Declare.
35151 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35152
35153 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35154
35155 PR debug/88644
35156 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35157 change it to qualified_type.
35158
35159 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35160
35161 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35162 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35163
35164 2019-01-02 Martin Sebor <msebor@redhat.com>
35165 Jeff Law <law@redhat.com>
35166
35167 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35168 (get_range_strlen_tree): Update appropriately.
35169 (get_range_strlen)
35170 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35171
35172 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35173 rather than set_range_info.
35174 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35175 maybe_set_strlen_range. Handle potentially boundary crossing
35176 cases more conservatively.
35177 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35178 Call set_strlen_range.
35179 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35180
35181 PR middle-end/88663
35182 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35183 need the flexp argument.
35184 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35185 from calls to get_range_strlen. Update comments. Just update
35186 VAL for an unterminated const char array and let the reset of the
35187 code handle it normally. No longer try to set *flexp. Adjust
35188 return value.
35189 (get_range_strlen): Update for the new get_range_strlen API.
35190 (get_maxval_strlen): Similarly.
35191 (gimple_fold_builtin_strlen): Handle update meaning of return value
35192 from get_range_strlen.
35193 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35194 get_range_strlen API.
35195
35196 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35197
35198 PR lto/88130
35199 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35200 false at WPA time when body was removed.
35201
35202 2019-01-02 Martin Liska <mliska@suse.cz>
35203
35204 PR tree-optimization/88650
35205 * predict.c (set_even_probabilities): Calculate probability
35206 remainer only when really used.
35207
35208 2019-01-02 Richard Biener <rguenther@suse.de>
35209
35210 PR middle-end/88651
35211 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35212 widest_ints when mangling max_stmt_execution results.
35213
35214 2019-01-02 Richard Biener <rguenther@suse.de>
35215
35216 PR tree-optimization/88621
35217 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35218 bitfields when canoncalizing.
35219
35220 2019-01-02 Richard Biener <rguenther@suse.de>
35221
35222 PR target/87545
35223 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35224 cost of cheap SSE instruction.
35225
35226 2019-01-02 Richard Biener <rguenther@suse.de>
35227
35228 PR ipa/85574
35229 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35230 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35231 function.
35232 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35233 set after UIDs before splitting them.
35234
35235 2019-01-01 Martin Sebor <msebor@redhat.com>
35236 Jeff Law <law@redhat.com>
35237
35238 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35239 length is optimistic. If it is, then arrange to compute the
35240 conservative length as well.
35241
35242 * gimple-fold.h (get_range_strlen): Update prototype.
35243 * builtins.c (check_access): Update call to get_range_strlen to use
35244 c_strlen_data pointer. Change various variable accesses to instead
35245 pull data from the c_strlen_data structure.
35246 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35247 * calls.c (maybe_warn_nonstring_arg): Likewise.
35248 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35249 minimum length if maximum lengh is unknown.
35250 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35251 that used c_strlen, it's no longer needed. Restructure slightly.
35252 (format_string): Set unlikely range appropriately.
35253 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35254 formatting issues.
35255 (get_range_strlen): Accept c_strlen_data pointer for external
35256 call sites as well. Pass through to call to internal get_range_strlen.
35257 Adjust minlen, maxlen and maxbound as needed.
35258 (get_maxval_strlen): Update comments.
35259 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35260 to use c_strlen_data pointer. Change variable accesses to instead
35261 use c_strlen_data data members.
35262
35263 * gimple-fold.c (get_range_strlen): Update prototype.
35264 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35265 local variables. Use pdata to return information to caller.
35266 Update calls to get_range_strlen. Update pdata->maxbound.
35267 (get_range_strlen -- static version): Similarly.
35268 (get_range_strlen -- extern version): Update for internal
35269 get_range_strlen API change. Convert to external data format.
35270 (get_maxval_strlen): Similarly.
35271
35272 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35273
35274 * coverage.c (get_coverage_counts): Use current_function_decl.
35275 * profile.c (read_thunk_profile): New function.
35276 (branch_prob): Add THUNK parameter.
35277 * tree-profile.c (tree_profiling): Handle thunks.
35278 * value-prof.c (init_node_map): Handle thunks.
35279 * value-prof.h (branch_prob): Upate prototype.
35280 (read_thunk_profile): Declare.
35281
35282 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35283
35284 Update copyright years.
35285
35286 * gcc.c (process_command): Update copyright notice dates.
35287 * gcov-dump.c (print_version): Ditto.
35288 * gcov.c (print_version): Ditto.
35289 * gcov-tool.c (print_version): Ditto.
35290 * gengtype.c (create_file): Ditto.
35291 * doc/cpp.texi: Bump @copying's copyright year.
35292 * doc/cppinternals.texi: Ditto.
35293 * doc/gcc.texi: Ditto.
35294 * doc/gccint.texi: Ditto.
35295 * doc/gcov.texi: Ditto.
35296 * doc/install.texi: Ditto.
35297 * doc/invoke.texi: Ditto.
35298 \f
35299 Copyright (C) 2019 Free Software Foundation, Inc.
35300
35301 Copying and distribution of this file, with or without modification,
35302 are permitted in any medium without royalty provided the copyright
35303 notice and this notice are preserved.