re PR target/92791 (ICE in extract_insn, at recog.c:2311 since r278645)
[gcc.git] / gcc / ChangeLog
1 2019-12-05 Jakub Jelinek <jakub@redhat.com>
2
3 PR target/92791
4 * config/i386/i386.md (movstrict<mode>): Move test for
5 TARGET_PARTIAL_REG_STALL and not optimizing for size from
6 expander's condition to the body - FAIL; in that case.
7
8 2019-12-03 Martin Sebor <msebor@redhat.com>
9
10 PR middle-end/91582
11 * builtins.c (gimple_call_alloc_size): New function.
12 (compute_objsize): Add argument. Call gimple_call_alloc_size.
13 Handle variable offsets and indices.
14 * builtins.h (gimple_call_alloc_size): Declare.
15 (compute_objsize): Add argument.
16 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
17 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
18
19 2019-12-04 Julian Brown <julian@codesourcery.com>
20
21 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
22
23 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
24
25 PR bootstrap/92661
26 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
27 rs6000.h.
28 (altivec_overloaded_builtins): Move to rs6000-call.c.
29 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
30 rs6000-c.c.
31 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
32 (altivec_overloaded_builtins): Moved from rs6000-c.c.
33 (rs6000_common_init_builtins): Do no define builtins that overload
34 builtins that have been disabled.
35
36 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
37
38 * config/arm/arm.c (arm_option_override_internal):
39 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
40
41 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
42
43 * config/aarch64/aarch64.c
44 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
45 (thunderx_tunings): Likewise.
46 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
47 (thunderx2t99_tunings): Likewise.
48 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
49 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
50
51 2019-12-04 Richard Biener <rguenther@suse.de>
52
53 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
54 empty CTOR and memset partial-def registering. Take advantage
55 of fancy offset analysis in memset handling.
56
57 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
58
59 * fold-const.c (native_encode_vector_part): Handle
60 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
61 (native_decode_vector_tree): Delete, moving the bulk of the code to...
62 (native_interpret_vector_part): ...this new function. Use a pointer
63 and length instead of a vec<> and start index.
64 (native_interpret_vector): Use native_interpret_vector_part.
65 (fold_view_convert_vector_encoding): Likewise.
66
67 2019-12-04 Richard Biener <rguenther@suse.de>
68
69 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
70 non-constant defs in the most trivial way.
71 (vn_reference_lookup_3): Also push down SSA partial defs.
72
73 2019-12-04 Martin Liska <mliska@suse.cz>
74
75 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
76 Initialize count of newly created BB.
77
78 2019-12-04 Jakub Jelinek <jakub@redhat.com>
79
80 PR tree-optimization/92734
81 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
82 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
83
84 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
85
86 PR target/92760
87 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
88 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
89
90 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
91
92 * ipa-fnsummary.c: Include tree-into-ssa.h.
93 (compute_fn_summary): Call update_ssa.
94
95 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
96
97 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
98 is set only for symbol in comdat group.
99 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
100
101 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
102
103 * cgraph.c: Include tree-into-ssa.h
104 (cgraph_node::get_body): Call update_ssa.
105 * cgraphunit.c (cgraph_node::expand): Likewise.
106 * lto-streamer-in.c (input_function): Do not call update_ssa.
107
108 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
109
110 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
111 an array element size if array_element_size is already an invariant.
112 Similarly don't gimplify and install a field offset if
113 component_ref_field_offset is already an invariant.
114
115 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
116
117 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
118 with POLY_INT_CST size is made to a fixed-size object, force the
119 object to live in memory.
120
121 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
122
123 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
124 for the data mode.
125
126 2019-12-03 Richard Biener <rguenther@suse.de>
127
128 PR tree-optimization/92758
129 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
130 operation on uniform vectors.
131
132 2019-12-03 Richard Biener <rguenther@suse.de>
133
134 PR tree-optimization/92645
135 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
136 from or to a properly aligned register variable.
137
138 2019-12-03 Matthias Klose <doko@ubuntu.com>
139
140 * Makefile.in (SOURCES): Add doc/lto-dump.1.
141 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
142 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
143
144 2019-12-03 Richard Biener <rguenther@suse.de>
145
146 PR tree-optimization/92751
147 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
148 when a clobber ends up in the partial-def vector.
149 (vn_reference_lookup_3): Let clobbers be handled by the
150 assignment from CTOR handling.
151
152 2019-12-03 Jakub Jelinek <jakub@redhat.com>
153
154 PR tree-optimization/92734
155 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
156 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
157 inner subtraction.
158
159 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
160 Jakub Jelinek <jakub@redhat.com>
161
162 PR target/92744
163 * config/i386/i386.md (peephole2 for *swap<mode>): Use
164 general_reg_operand predicates instead of register_operand.
165
166 2019-12-03 Richard Biener <rguenther@suse.de>
167
168 PR tree-optimization/92645
169 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
170 a full def of a vector via a BIT_INSERT_EXPR.
171
172 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
173
174 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
175 static.
176 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
177 decl.
178
179 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
180
181 PR middle-end/92741
182 * fold-const.c (fold_convertible_p): Check vector types more
183 thoroughly.
184
185 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
186
187 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
188 (aarch64_expand_mov_immediate): Use it when attempting to measure
189 the length of an SVE vector.
190 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
191 SVE is enabled.
192
193 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
194
195 * config/aarch64/aarch64-sve-builtins.h
196 (gimple_folder::force_vector): Declare.
197 * config/aarch64/aarch64-sve-builtins.cc
198 (gimple_folder::force_vector): New function.
199 * config/aarch64/aarch64-sve-builtins-base.cc
200 (svcmp_impl::fold): Likewise.
201 (svdup_impl::fold): Handle svdup_z too.
202
203 2019-12-02 Martin Liska <mliska@suse.cz>
204
205 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
206 function.
207 (debug_tree_odr_name): New.
208 * ipa-utils.h (get_odr_name_for_type): New.
209
210 2019-12-02 Richard Biener <rguenther@suse.de>
211
212 PR tree-optimization/92742
213 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
214 touch the def-type but verify it is consistent with the
215 original stmts.
216
217 2019-12-02 Jakub Jelinek <jakub@redhat.com>
218
219 PR tree-optimization/92712
220 * match.pd ((A * B) +- A -> (B +- 1) * A,
221 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
222 even when we don't know anything about range of A, but do know
223 something about range of B and the simplification won't introduce
224 new UB.
225
226 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
227
228 PR ipa/92133
229 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
230 (ipa-cp-min-recursive-probability): Likewise.
231 * params.opt (ipa-cp-max-recursive-depth): New.
232 (ipa-cp-min-recursive-probability): Likewise.
233 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
234 val_p and unlimited.
235 (self_recursively_generated_p): New function.
236 (get_val_across_arith_op): Likewise.
237 (propagate_vals_across_arith_jfunc): Add constant propagation for
238 self-recursive function.
239 (incorporate_penalties): Do not penalize pure self-recursive function.
240 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
241 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
242 (get_info_about_necessary_edges): Relax hotness check for edge to
243 self-recursive function.
244 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
245
246 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
247
248 PR target/92499
249
250 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
251 objects of flexible types to be small if they have internal linkage
252 or are declared extern.
253 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
254 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
255 instead of the size of the object initializer.
256 * tree.c (flexible_array_type_p): Move from C front end, and
257 generalize to handle fields in non-C structures.
258 * tree.h (flexible_array_type_p): Declare.
259
260 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
261
262 * profile-count.h (profile_count::operator<): Use IPA value for
263 comparsion.
264 (profile_count::operator>): Likewise.
265 (profile_count::operator<=): Likewise.
266 (profile_count::operator>=): Likewise.
267 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
268
269 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
270
271 * ipa-inline.c (compute_max_insns): Return int64_t.
272 (inline_small_functions): Simplify.
273
274 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
275
276 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
277 scaling happen.
278
279 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
280
281 * cgraph.h (symtab_node): Add symver flag.
282 * cgraphunit.c (process_symver_attribute): New.
283 (process_common_attributes): Use process_symver_attribute.
284 * lto-cgraph.c (lto_output_node): Stream symver.
285 (lto_output_varpool_node): Stream symver.
286 (input_overwrite_node): Stream symver.
287 (input_varpool_node): Stream symver.
288 * output.h (do_assemble_symver): Decalre.
289 * symtab.c (symtab_node::dump_base): Dump symver.
290 (symtab_node::verify_base): Verify symver.
291 (symtab_node::resolve_alias): Handle symver.
292 * varasm.c (do_assemble_symver): New function.
293 * varpool.c (varpool_node::assemble_aliases): Use it.
294 * doc/extend.texi: (symver attribute): Document.
295 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
296
297 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
298
299 * target.h (type_context_kind): New enum.
300 (verify_type_context): Declare.
301 * target.def (verify_type_context): New target hook.
302 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
303 * doc/tm.texi: Regenerate.
304 * tree.c (verify_type_context): New function.
305 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
306 Declare.
307 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
308 New function.
309 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
310 (TARGET_VERIFY_TYPE_CONTEXT): Define.
311
312 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
313
314 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
315 * cgraph.h (cgraph_node): Add unit_id and
316 merged_extern_inline.
317 (symbol_table): Add max_unit.
318 (symbol_table::symbol_table): Initialize it.
319 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
320 merged_comdat, merged_extern_inline.
321 (cgraph_node::create_clone): Likewise.
322 (cgraph_node::create_version_clone): Likewise.
323 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
324 calls.
325 * ipa-fnsummary.h (cross_module_call_p): New inline function.
326 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
327 * ipa-inline.c (inline_small_functions): Likewise.
328 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
329 copy merged_comdat and merged_extern_inline.
330 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
331 merged_extern_inline and unit_id.
332 (input_overwrite_node): Stream in these.
333 (input_cgraph_1): Set unit_base.
334 * lto-streamer.h (lto_file_decl_data): Add unit_base.
335 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
336
337 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
338
339 * gcc.c (process_command): Only warn about an ineffective `-x'
340 option if any input files have actually been supplied.
341
342 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
343
344 * doc/install.texi (Options specification): Remove the list of
345 target library subdirectories supporting
346 `--enable-version-specific-runtime-libs'. Document defaults for
347 the option.
348
349 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
350
351 PR rtl-optimization/92283
352 * lra.c (lra): Update reg notes after inheritance sub-pass and
353 before constraint sub-pass.
354
355 2019-11-29 Richard Biener <rguenther@suse.de>
356
357 PR tree-optimization/91003
358 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
359 operand number, avoid handling the non-condition operands of
360 COND_EXPRs as comparisons.
361 (vect_get_constant_vectors): Pass down the operand number.
362 (vect_get_slp_defs): Likewise.
363
364 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
365
366 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
367 generic_expr_could_trap_p to check if the condition of COND_EXPR or
368 VEC_COND_EXPR can trap.
369
370 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
371
372 PR tree-optimization/92677
373 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
374 to zero when dissolving a group of strided accesses.
375
376 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
377
378 PR tree-optimization/92596
379 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
380 operations.
381 (vectorizable_operation): Likewise, instead of relying on
382 vect_get_mask_type_for_stmt to do this.
383 (vect_get_vector_types_for_stmt): Always return a vector type
384 immediately, rather than deferring the choice for boolean results.
385 Use a vector mask type instead of a normal vector if
386 vect_use_mask_type_p.
387 (vect_get_mask_type_for_stmt): Delete.
388 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
389 mask_producers argument and special boolean_type_node handling.
390 (vect_determine_vf_for_stmt): Remove mask_producers argument and
391 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
392 (vect_determine_vectorization_factor): Update call accordingly.
393 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
394 boolean_type_node handling.
395 (vect_slp_analyze_node_operations_1): Likewise.
396
397 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
398
399 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
400 (vect_use_mask_type_p): New function.
401 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
402 mask precision to the pattern statement.
403 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
404 and use it to initialize the new stmt's mask precision.
405 (search_type_for_mask_1): Delete.
406 (search_type_for_mask): Replace with...
407 (integer_type_for_mask): ...this new function. Use the information
408 cached in the stmt_vec_info.
409 (vect_recog_bool_pattern): Update accordingly.
410 (build_mask_conversion): Pass the scalar type associated with the
411 mask type to append_pattern_def_seq.
412 (vect_recog_mask_conversion_pattern): Likewise. Call
413 integer_type_for_mask instead of search_type_for_mask.
414 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
415 of search_type_for_mask.
416 (possible_vector_mask_operation_p): New function.
417 (vect_determine_mask_precision): Likewise.
418 (vect_determine_stmt_precisions): Call it.
419
420 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
421
422 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
423 the slp_tree parameter with a group size parameter.
424 (vect_get_mask_type_for_stmt): Likewise.
425 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
426 (vect_get_mask_type_for_stmt): Likewise.
427 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
428 call accordingly.
429
430 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
431
432 * tree-vect-stmts.c (vectorizable_operation): Punt early
433 on codes that are handled elsewhere.
434
435 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
436
437 * doc/sourcebuild.texi (vect_bool_cmp): Document.
438 * tree-vect-patterns.c (search_type_for_mask_1): If neither
439 operand to a boolean comparison is a natural vector mask,
440 handle both operands like normal integers instead.
441
442 2019-11-29 Richard Biener <rguenther@suse.de>
443
444 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
445 out early for too large objects.
446
447 2019-11-29 Martin Jambor <mjambor@suse.cz>
448
449 PR ipa/92476
450 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
451 the summary only if the summary exists.
452 (find_more_scalar_values_for_callers_subset): Check node_dead in
453 the summary only if the summary exists.
454 (ipcp_store_bits_results): Ignore nodes without lattices.
455 (ipcp_store_vr_results): Likewise.
456 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
457 header files required by them.
458 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
459
460 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
461
462 PR tree-optimization/92710
463 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
464 vector mask arguments.
465
466 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
467
468 * profile-count.c (profile_count::to_cgraph_frequency,
469 profile_count::to_sreal_scale): Check for compaibility of counts.
470 * profile-count.h (compatible_p): Make public; add checking for
471 global0 versus global types.
472 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
473
474 2019-11-29 Richard Biener <rguenther@suse.de>
475
476 PR tree-optimization/92715
477 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
478 out for uniform vectors and source vectors with less elements
479 than the destination.
480
481 2019-11-29 Martin Liska <mliska@suse.cz>
482
483 PR lto/91574
484 * ipa-devirt.c (types_same_for_odr): Check for existence
485 of TYPE_NAMEs first.
486
487 2019-11-29 Richard Biener <rguenther@suse.de>
488
489 PR tree-optimization/92704
490 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
491 in loops performing only loads.
492
493 2019-11-29 Julian Brown <julian@codesourcery.com>
494
495 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
496 BT_DFLOAT128_PTR) Remove.
497 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
498 TI_DFLOAT128_PTR_TYPE): Remove.
499 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
500 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
501 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
502 dfloat128_ptr_type_node): Remove macros.
503
504 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
505
506 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
507 formatting.
508 (*movdi_internal64): Ditto.
509
510 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
511
512 PR target/92602
513 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
514 indexed_or_indirect_operand to be memory_operand.
515 (bswap<mode>2_store for HSI): Ditto.
516 (bswapdi2_load): Ditto.
517 (bswapdi2_store): Ditto.
518
519 2019-11-28 Martin Liska <mliska@suse.cz>
520
521 PR debug/46558
522 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
523 headers for translation.
524
525 2019-11-28 Martin Liska <mliska@suse.cz>
526
527 PR lto/92609
528 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
529 consistently.
530
531 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
532
533 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
534 checks.
535
536 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
537
538 * profile-count.c (profile_count::combine_with_ipa_count): Return
539 uninitialized count if called on ininitialized count.
540
541 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
542
543 * ipa-inline-transform.c (inline_transform): Scale profile before
544 redirecting.
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 Jan Hubicka <hubicka@ucw.cz>
554
555 * profile-count.h (profile_count::max): Work on profiles of different
556 type.
557 (profile_count::apply_scale): Be sure that ret is not local or global0
558 type if num is global.
559
560 2019-11-28 Martin Jambor <mjambor@suse.cz>
561
562 PR ipa/92697
563 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
564 ifunc_resolvers.
565 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
566 Removed trailig whitespace.
567
568 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
569
570 * profile-count.h (profile_count::combine_with_ipa_count_within):
571 Declare.
572 * profile-count.c (profile_count::combine_with_ipa_count_within):
573 New.
574 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
575 it.
576
577 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
578
579 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
580 of counters are done same way.
581
582 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
583
584 * ipa-cp.c (update_profiling_info): Fix scaling.
585
586 2019-11-28 Richard Biener <rguenther@suse.de>
587
588 PR tree-optimization/92645
589 * tree-inline.c (remap_gimple_stmt): When the return value
590 is not wanted, elide GIMPLE_RETURN.
591
592 2019-11-28 Richard Biener <rguenther@suse.de>
593
594 PR tree-optimization/92645
595 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
596 conversions inside a mode class. Remove restriction on
597 preserving the element size.
598 (simplify_vector_constructor): Deal with the above and for
599 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
600 and VEC_PACK_TRUNC_EXPR.
601
602 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
603
604 Must use push insn to pass varargs arguments of DFmode because
605 otherwise the middle-end generates wrong code.
606
607 PR target/92055
608 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
609
610 2019-11-28 Jakub Jelinek <jakub@redhat.com>
611
612 PR tree-optimization/92691
613 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
614 in function comment.
615 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
616 calls, return !handle_printf_call rather than always returning true.
617 (check_and_optimize_stmt): Describe return value meaning in function
618 comment. Formatting fix.
619
620 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
621
622 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
623 combination of globa0 and global counters..
624
625 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
626
627 PR target/92566
628 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
629 by VECTOR_UNIT_NONE_P instead.
630
631 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
632
633 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
634 Refine VF to VF_AVX512VL.
635
636 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
637
638 * config/rs6000/rs6000.md (movsi_internal): Reformat.
639 (movdi_internal64): Reformat.
640
641 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
642
643 PR bootstrap/92661
644 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
645 builtin if we don't have an actual type.
646 (builtin_function_type): If the builtin function uses a DFP type
647 and decimal float has been disabled, then return NULL_TREE.
648
649 2019-11-27 Jakub Jelinek <jakub@redhat.com>
650
651 PR rtl-optimization/92510
652 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
653 of comparison into a comparison with different mode if both imode and
654 omode are scalar integral modes.
655
656 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
657
658 PR rtl-optimization/90007
659 * recog.c (constrain_operands): Permit hard registers too for
660 memory when LRA is used.
661
662 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
663
664 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
665 between Coldfire and regular m68k.
666 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
667
668 2019-11-27 Richard Biener <rguenther@suse.de>
669
670 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
671 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
672 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
673 * optabs-tree.c (supportable_convert_operation): Do not call
674 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
675 * optabs-tree.h (supportable_convert_operation): Adjust.
676 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
677 * doc/tm.texi: Regenerate.
678 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
679 * tree-vect-generic.c (expand_vector_conversion): Likewise.
680 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
681 unused decl parameter and adjust.
682 (vect_create_vectorized_promotion_stmts): Likewise.
683 (vectorizable_conversion): Adjust.
684
685 2019-11-27 Richard Biener <rguenther@suse.de>
686
687 PR tree-optimization/92690
688 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
689 converting elements not originally converted.
690
691 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
692
693 PR middle-end/92463
694 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
695 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
696 mpfr_rnd_t instead of mp_rnd_t.
697 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
698 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
699 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
700 Use mpfr_exp_t instead of mp_exp_t.
701 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
702 MPFR_RNDx instead of GMP_RNDx.
703 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
704 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
705 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
706 of mp_rnd_t and remove MPFR_RNDx poisoning.
707 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
708
709 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
710
711 PR tree-optimization/91790
712 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
713 DR for vect_setup_realignment when first_stmt_info is different
714 from first_stmt_info_for_drptr.
715
716 2019-11-27 Richard Biener <rguenther@suse.de>
717
718 PR tree-optimization/92645
719 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
720 CTORs with just a subset of the original vectors.
721
722 2019-11-27 Richard Biener <rguenther@suse.de>
723
724 PR middle-end/92674
725 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
726 edges and instead record blocks in bitmap.
727 (gimple_expand_calls_inline): Adjust.
728 (fold_marked_statements): Delay EH cleanup until all folding is
729 done.
730 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
731 inlining finished.
732
733 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
734
735 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
736 LRA is enabled.
737 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
738 disabled.
739
740 2019-11-27 Jakub Jelinek <jakub@redhat.com>
741
742 PR debug/92664
743 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
744
745 2019-11-26 Martin Sebor <msebor@redhat.com>
746
747 PR tree-optimization/92683
748 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
749 inadvertently removed in a previous change. Rename local variable
750 for clarity.
751
752 2019-11-26 Richard Biener <rguenther@suse.de>
753
754 PR middle-end/92669
755 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
756 NULL pre_order.
757
758 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
759
760 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
761
762 2019-11-26 Jakub Jelinek <jakub@redhat.com>
763
764 PR tree-optimization/92644
765 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
766 next to INTEGER_CST checks.
767
768 2019-11-26 Richard Biener <rguenther@suse.de>
769
770 PR tree-optimization/92645
771 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
772 do not build the operation from scalars if the operand is.
773
774 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
775
776 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
777 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
778 definitions.
779
780 2019-11-25 Martin Liska <mliska@suse.cz>
781
782 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
783 up used dump message.
784
785 2019-11-25 Martin Liska <mliska@suse.cz>
786
787 PR bootstrap/92653
788 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
789 too strict checking assert.
790
791 2019-11-25 Joseph Myers <joseph@codesourcery.com>
792
793 PR c/91985
794 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
795 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
796 error_mark_node if corresponding global tree node is NULL.
797 * tree.c (build_common_tree_nodes): Do not initialize
798 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
799 decimal floating-point not supported.
800
801 2019-11-25 Joseph Myers <joseph@codesourcery.com>
802
803 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
804 types.
805
806 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
807
808 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
809 Replace code for non-CONST_INT constants with gcc_unreachable.
810 * config/m68k/m68k.md (cbranchdi): Don't generate individual
811 compare and test.
812 (CMPMODE): New mode_iterator.
813 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
814 cbranch<mode>4.
815 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
816 cstore<mode>4.
817 (cmp<mode>_68881): Remove 'F' constraint from first comparison
818 operand.
819 (bit test insns patterns): Use nonimmediate_operand, not
820 register_operand, for source operands that allow memory in
821 their constraints.
822 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
823 Use register_operand, not nonimmediate_operand, for the
824 destinations.
825 (DBCC): New mode_iterator.
826 (dbcc peepholes): Use it to reduce duplication.
827 (trap): Use const_true_rtx, not const1_rtx.
828 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
829 from m68k_subword_comparison_operand and changed to handle
830 SImode.
831
832 PR target/91851
833 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
834 declaration.
835 (m68k_init_cc): New declaration.
836 (m68k_output_compare_di, m68k_output_compare_si)
837 (m68k_output_compare_hi, m68k_output_compare_qi)
838 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
839 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
840 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
841 m68k_output_branch_float, m68k_output_branch_float_rev):
842 Likewise.
843 (valid_dbcc_comparison_p_2, flags_in_68881)
844 (output_btst): Remove declaration.
845 * config/m68k/m68k.c (INCLDUE_STRING): Define.
846 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
847 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
848 (flags_compare_op0, flags_compare_op1, flags_operand1,
849 flags_operand2, flags_valid): New static variables.
850 (m68k_find_flags_value, m68k_init_cc): New functions.
851 (handle_flags_for_move, m68k_asm_final_postscan_insn,
852 remember_compare_flags): New static functions.
853 (output_dbcc_and_branch): New argument CODE. Use it, and add
854 PLUS and MINUS to the possible codes. All callers changed.
855 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
856 and INSN arguments, add CODE arg. Return the comparison code
857 to use. All callers changed. Use CODE instead of
858 next_insn_tests_no_inequality, and replace cc_status management
859 with changing the return code.
860 (m68k_rtx_costs): Instead of testing for COMPARE, test for
861 RTX_COMPARE or RTX_COMM_COMPARE.
862 (output_move_simode, output_move_qimode): Call
863 handle_flags_for_move.
864 (notice_update_cc): Delete function.
865 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
866 m68k_output_compare_hi, m68k_output_compare_qi,
867 m68k_output_compare_fp, m68k_output_branch_integer,
868 m68k_output_branch_integer_rev, m68k_output_scc,
869 m68k_output_branch_float, m68k_output_branch_float_rev,
870 m68k_output_scc_float): New functions.
871 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
872 once at the start, and set flags_valid and flags_operand1 if the
873 flags are usable.
874 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
875 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
876 definitions.
877 (CC_STATUS_INIT): Define.
878 * config/m68k/m68k.md (flags_valid): New define_attr.
879 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
880 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
881 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
882 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
883 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
884 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
885 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
886 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
887 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
888 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
889 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
890 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
891 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
892 ctrapqi4, conditional_trap): Delete patterns.
893 (cbranchdi4_insn): New pattern.
894 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
895 test high part only. When testing EQ or NE, generate beq0_di
896 and bne0_di patterns directly.
897 (cstoredi4): When testing LT or GE, test high part only.
898 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
899 patterns.
900 (scc0_constraints, cmp1_constraints, cmp2_constraints,
901 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
902 cmp2_cf_predicate): New define_mode_attrs.
903 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
904 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
905 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
906 New patterns.
907 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
908 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
909 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
910 New patterns.
911 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
912 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
913 Likewise.
914 (BTST): New define_mode_iterator.
915 (btst_predicate, btst_constraint, btst_range): New
916 define_mode_attrs.
917 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
918 patterns.
919 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
920 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
921 patterns): Set attr "flags_valid".
922 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
923 management. Set attr "flags_valid".
924 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
925 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
926 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
927 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
928 manual CC_STATUS management.
929 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
930 unnamed strict_lowpart subhi and subqi patterns): Set attr
931 "flags_valid".
932 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
933 Remove code to operate on address regs and assert the case
934 does not occur.
935 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
936 manual CC_STATUS_INIT.
937 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
938 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
939 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
940 one_cmplqi2, unnamed strict_lowpart patterns
941 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
942 one_cmplhi and one_cmplqi): Set attr "flags_valid".
943 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
944 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
945 CC_STATUS_INIT.
946 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
947 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
948 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
949 unnamed strict_low_part patterns for HI and
950 QI versions): Set attr "flags_valid".
951 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
952 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
953 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
954 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
955 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
956 (various unnamed peepholes): Adjust compare/branch sequences
957 for new cbranch patterns.
958 (dbcc peepholes): Likewise, and output the comparison here
959 as well.
960 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
961 (fp_src_operand): Allow constant zero.
962 (address_reg_operand): New predicate.
963
964 * rtl.h (inequality_comparisons_p): Remove declaration.
965 * recog.h (next_insn_tests_no_inequality): Likewise.
966 * rtlanal.c (inequality_comparisons_p): Delete function.
967 * recog.c (next_insn_tests_no_inequality): Likewise.
968
969 2019-11-25 Richard Biener <rguenther@suse.de>
970
971 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
972 (vect_detect_hybrid_slp): Swap lane and instance iteration,
973 properly re-building the visited hash-map for each lane.
974
975 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
976
977 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
978 gcn_md_reorg): Remove unused variables.
979 (gcn_emutls_var_init): Add missing (but unreachable) return
980 to silence warning.
981 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
982 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
983 an uninitialized variable.
984
985 2019-11-25 Martin Jambor <mjambor@suse.cz>
986
987 PR ipa/92109
988 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
989 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
990 (cgraph_materialize_clone): Move removel from clone tree to the
991 the new method and use it instead.
992 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
993 bodies of clones, also remove it from the clone tree.
994
995 2019-11-25 Martin Jambor <mjambor@suse.cz>
996
997 PR ipa/91956
998 * ipa-sra.c (process_isra_node_results): Put the new node to the
999 same comdat group as the original node.
1000
1001 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1002
1003 Build double32 / long-double32 multilibs if needed.
1004
1005 PR target/92055
1006 * config/avr/t-avr:
1007 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1008 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1009 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1010 tm_defines and pass to genmultilib.awk.
1011 * config/avr/genmultilib.awk: Use these variables to add double32
1012 and / or long-double32 multilib(s) as needed.
1013 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1014
1015 2019-11-25 Richard Biener <rguenther@suse.de>
1016
1017 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1018 loop body, defaulted to NULL.
1019 (single_likely_exit): Add exit vector argument
1020 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1021 (number_of_iterations_exit): Likewise.
1022 (number_of_iterations_exit_assumptions): Likewise.
1023 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1024 if not NULL.
1025 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1026 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1027 Compute exit vector around call to single_likely_exit.
1028 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1029 loop body to loop_only_exit_p.
1030 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1031 caller.
1032 (number_of_iterations_exit_assumptions): Get loop body from caller
1033 if not NULL.
1034 (number_of_iterations_exit): Pass through new loop body arg.
1035 (infer_loop_bounds_from_undefined): Get loop body from caller.
1036 (estimate_numbers_of_iterations): Compute loop body once.
1037
1038 2019-11-25 Richard Biener <rguenther@suse.de>
1039
1040 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1041 auto_bb_flag instead of an sbitmap for visited handling.
1042
1043 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1044
1045 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1046 iterator.
1047 (vector_fp_comparison_complex): Likewise.
1048 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1049 define_and_split.
1050 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1051 Likewise.
1052 (vector_lt<mode> for VEC_F): Refactor with
1053 vector_fp_comparison_simple.
1054 (vector_le<mode> for VEC_F): Likewise.
1055 (vector_unge<mode> for VEC_F): Likewise.
1056 (vector_unle<mode> for VEC_F): Likewise.
1057 (vector_ne<mode> for VEC_F): Likewise.
1058 (vector_ungt<mode> for VEC_F): Likewise.
1059 (vector_unlt<mode> for VEC_F): Likewise.
1060 (vector_ltgt<mode> for VEC_F): Refactor with
1061 vector_fp_comparison_complex.
1062 (vector_ordered<mode> for VEC_F): Likewise.
1063 (vector_uneq<mode> for VEC_F): Likewise.
1064 (vector_unordered<mode> for VEC_F): Likewise.
1065
1066 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1067
1068 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1069 COMPARE, representing an overflow detection.
1070
1071 * combine.c (combine_instructions): Record costs for jumps.
1072
1073 * combine.c (can_combine_p): Allow autoinc in jumps.
1074
1075 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1076
1077 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1078 * doc/invoke.texi (max-inline-insns-single-O2,
1079 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1080 early-inlining-insns-O2): Remove documentation.
1081 * ipa-fnsummary.c (analyze_function_body,
1082 compute_fn_summary): Use opt_for_fn when accessing parameters.
1083 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1084 inline_insns_auto, can_inline_edge_by_limits_p,
1085 want_early_inline_function_p, big_speedup_p,
1086 want_inline_small_function_p, want_inline_self_recursive_call_p,
1087 recursive_inlining, compute_max_insns, inline_small_functions):
1088 Likewise.
1089 * opts.c (default_options): Add -O3 defaults for
1090 OPT__param_early_inlining_insns_,
1091 OPT__param_inline_heuristics_hint_percent_,
1092 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1093 * params.opt (-param=early-inlining-insns-O2=,
1094 -param=inline-heuristics-hint-percent-O2=,
1095 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1096 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1097 -param=inline-min-speedup=, -param=inline-unit-growth=,
1098 -param=large-function-growth=, -param=large-stack-frame=,
1099 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1100 -param=max-inline-insns-recursive=,
1101 -param=max-inline-insns-recursive-auto=,
1102 -param=max-inline-insns-single=,
1103 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1104 -param=max-inline-recursive-depth=,
1105 -param=max-inline-recursive-depth-auto=,
1106 -param=min-inline-recursive-probability=,
1107 -param=partial-inlining-entry-probability=,
1108 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1109 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1110 Optimization.
1111
1112 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1113
1114 * ipa-fnsummary.c: Fix comment typos.
1115 * ipa-ref.h: Likewise.
1116 * ipa-predicate.h: Likewise.
1117 * ipa-split.c: Likewise.
1118 * ipa-inline-analysis.c: Likewise.
1119 * ipa-predicate.c: Likewise.
1120 * ipa-devirt.c: Likewise.
1121 * ipa-icf.h: Likewise.
1122 * profile-count.c: Likewise.
1123 * ipa-icf.c: Likewise.
1124 (sem_function::equals_wpa): Fix typos in dump messages.
1125 * ipa-icf-gimple.h: Fix comment typos.
1126 * ipa-inline-transform.c: Likewise.
1127 * ipa-polymorphic-call.c: Likewise.
1128 * ipa-fnsummary.h: Likewise.
1129 * ipa-inline.c: Likewise.
1130 (dump_inline_stats): Fix typo in debug dump message.
1131 * profile-count.h: Fix comment typos.
1132
1133 PR target/92615
1134 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1135 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1136 register_operand, force x into register before storing it into dest.
1137 Formatting fix.
1138
1139 PR middle-end/83859
1140 * doc/extend.texi (attribute access): Fix a typo.
1141
1142 PR rtl-optimization/92610
1143 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1144 cse_cfg_altered is set, even when tem is 0.
1145 (rest_of_handle_cse_after_global_opts): Likewise.
1146
1147 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1148
1149 PR c++/92458
1150 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1151 tree_hash): Move to ...
1152 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1153 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1154 types.
1155 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1156
1157 PR tree-optimization/92618
1158 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1159 containing the auto_vec and a tree.
1160 (undistribute_bitref_for_vector): Handle the case when element type
1161 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1162 fixes.
1163
1164 2019-11-22 Martin Sebor <msebor@redhat.com>
1165
1166 PR middle-end/83859
1167 * attribs.h (struct attr_access): New.
1168 * attribs.c (decl_attributes): Add an informational note.
1169 * builtins.c (check_access): Make extern. Consistently set no-warning
1170 after issuing a warning. Handle calls through function pointers. Set
1171 no-warning.
1172 * builtins.h (check_access): Declare.
1173 * calls.c (rdwr_access_hash): New type.
1174 (rdwr_map): Same.
1175 (init_attr_rdwr_indices): New function.
1176 (maybe_warn_rdwr_sizes): Same.
1177 (initialize_argument_information): Call init_attr_rdwr_indices.
1178 Call maybe_warn_rdwr_sizes.
1179 (get_size_range): Avoid null argument.
1180 * doc/extend.texi (attribute access): Document new attribute.
1181
1182 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1183
1184 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1185 (ACC_LDS_SIZE): Define.
1186 (OTHER_LDS_SIZE): Define.
1187 (LDS_SIZE): Redefine using above.
1188 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1189
1190 2019-11-22 Martin Sebor <msebor@redhat.com>
1191
1192 PR middle-end/88226
1193 * builtins.c (check_nul_terminated_array): New function.
1194 (fold_builtin_0): Remove declaration.
1195 (fold_builtin_1): Same.
1196 (fold_builtin_2): Same.
1197 (fold_builtin_3): Same.
1198 (fold_builtin_strpbrk): Add argument.
1199 (fold_builtin_strspn): Same.
1200 (fold_builtin_strcspn): Same.
1201 (expand_builtin_strcat): Call it. Remove unused argument.
1202 (expand_builtin_stpncpy): Same.
1203 (expand_builtin_strncat): Same.
1204 (expand_builtin_strncpy): Same. Adjust indentation.
1205 (expand_builtin_strcmp): Same.
1206 (expand_builtin_strncmp): Same.
1207 (expand_builtin_fork_or_exec): Same.
1208 (expand_builtin): Handle more built-ins.
1209 (fold_builtin_2): Add argument.
1210 (fold_builtin_n): Make static. Add argument.
1211 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1212 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1213 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1214 (fold_call_stmt): Pass new argument to fold_builtin_n.
1215 * builtins.h: Correct a comment.
1216 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1217 check_nul_terminated_array.
1218 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1219 check_nul_terminated_array.
1220 (handle_builtin_strchr): Same.
1221 (handle_builtin_string_cmp): Same.
1222
1223 2019-11-22 Martin Sebor <msebor@redhat.com>
1224
1225 PR tree-optimization/92501
1226 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1227 handle unterminated arrays. Rename local variables for clarity.
1228
1229 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1230
1231 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1232 granulated_sgprs according to architecture.
1233
1234 2019-11-22 Jan Hubicka <jh@suse.cz>
1235
1236 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1237 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1238 (memory_block_pool::reduce_free_list): ... this one.
1239 (memory_block_pool::trim): New static function.
1240 * memory-block.h (memory_block_pool::freelist_size): New constant
1241 (memory_block_pool::clear_free_list): Rename to ...
1242 (memory_block_pool::reduce_free_list): ... this one.
1243 (memory_block_pool::trim): Declare.
1244
1245 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1246
1247 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1248 vect_cost_for_stmt.
1249 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1250 here rather than...
1251 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1252
1253 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1254
1255 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1256 (bic_cmp0_noout): New pattern.
1257 (bic_cmp0): Likewise.
1258 (neg_scc_insn): Remove pattern.
1259 (not_scc_insn): Likewise.
1260
1261 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1262
1263 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1264
1265 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1266
1267 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1268 pedwarn instead of warning_at for fallthrough not preceding a case
1269 or default label.
1270
1271 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1272
1273 PR tree-optimization/92608
1274 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1275 of dyn_cast.
1276
1277 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1278
1279 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1280 New predicate.
1281 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1282 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1283 special for FP comparisons that need a cror instruction eventually.
1284 (rs6000_emit_fp_cror): New function.
1285 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1286 instruction, for normal FP modes, with HONOR_NANS.
1287 (rs6000_emit_cbranch): Reformat.
1288 * config/rs6000/rs6000.md (fp_rev): New iterator.
1289 (fp_two): New iterator.
1290 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1291 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1292 *cbranch_2insn: New define_insn_and_split.
1293
1294 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1295
1296 PR tree-optimization/92526
1297 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1298 versioning for alignment if the accesses do not have a consistent
1299 mask, rather than asserting that the masks are consistent.
1300
1301 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1302
1303 PR tree-optimization/92595
1304 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1305 check.
1306 (vectorizable_store, vectorizable_load): Likewise.
1307
1308 2019-11-21 Jan Hubicka <jh@suse.cz>
1309
1310 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1311 (resolve_noninline_speculation, inline_small_functions): Avoid
1312 redundant updates.
1313
1314 2019-11-21 Richard Biener <rguenther@suse.de>
1315
1316 * lra.c (lra_insn_recog_data_pool): New.
1317 (free_insn_recog_data): Adjust.
1318 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1319 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1320
1321 2019-11-21 Richard Biener <rguenther@suse.de>
1322
1323 PR tree-optimization/92596
1324 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1325
1326 2019-11-21 Jan Hubicka <jh@suse.cz>
1327
1328 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1329 ready for some vectors to not be allocated.
1330 (evaluate_properties_for_edge): Document better; make
1331 known_vals and known_aggs caller allocated; avoid determining
1332 values of parameters which are not used.
1333 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1334 known_aggs.
1335 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1336 (do_estimate_edge_size): Likewise.
1337 (do_estimate_edge_hints): Likewise.
1338 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1339 values are not known.
1340 (ipa_release_agg_values): Add option to not release vector itself.
1341 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1342
1343 2019-11-21 Richard Biener <rguenther@suse.de>
1344
1345 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1346 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1347 (loop_iterator::loop_iterator): Adjust.
1348 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1349 (compute_dominance_frontiers): ... this. Hoist invariant
1350 get_immediate_dominator call.
1351 (compute_idf): Use a work-set instead of a work-list for more
1352 optimal iteration order and duplicate avoidance.
1353 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1354 the vector all the time, instead pre-allocate the vector only
1355 once.
1356 (delete_update_ssa): Simplify.
1357 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1358
1359 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1360
1361 PR tree-optimization/91355
1362 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1363 for early_bb scaled count with best_bb count comparison.
1364
1365 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1366 preffer -> prefer.
1367 * ipa-inline.c (edge_badness): Likewise.
1368 * lto-streamer.h (class lto_location_cache): Likewise.
1369 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1370 gratutious -> gratuitous.
1371
1372 2019-11-21 Richard Biener <rguenther@suse.de>
1373
1374 Revert
1375 2019-09-17 Richard Biener <rguenther@suse.de>
1376
1377 PR tree-optimization/91790
1378 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1379 use the correct DR for setting up realignment.
1380
1381 2019-11-21 Richard Biener <rguenther@suse.de>
1382
1383 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1384 (equiv_class_obstack): New.
1385 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1386 (perform_var_substitution): Initialize equiv_class_obstack.
1387 (free_var_substitution_info): Free equiv_class_obstack.
1388
1389 2019-11-20 Jan Hubicka <jh@suse.cz>
1390
1391 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1392 edge growth when callee function is very large.
1393 * ipa-inline.h (estimate_min_edge_growth): New.
1394
1395 2019-11-20 Jan Hubicka <jh@suse.cz>
1396
1397 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1398 negative time in calls summary; correct roundoff errors
1399 leading to negative times.
1400 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1401 if present.
1402 (ipa_update_overall_fn_summary): Add RESET parameter.
1403 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1404 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1405
1406 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1407
1408 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1409 def types for two-operation SLP.
1410
1411 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1412
1413 PR testsuite/92366
1414 * doc/sourcebuild.texi (vect_char_add): Document.
1415
1416 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1417
1418 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1419 * function.c (record_final_call): Record even calls that might
1420 have been in the cgraph.
1421 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1422 callees.
1423
1424 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1425
1426 * configure.ac: Use https for gcc.gnu.org
1427 * configure: Regenerated.
1428 * doc/install.texi: Use https for gcc.gnu.org.
1429 * doc/sourcebuild.texi: Likewise.
1430
1431 2019-11-20 Julian Brown <julian@codesourcery.com>
1432
1433 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1434
1435 2019-11-20 Jan Hubicka <jh@suse.cz>
1436
1437 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1438 parameter and update call_size_time_table.
1439 (ipa_fn_summary::max_size_time_table_size): New constant.
1440 (estimate_calls_size_and_time_1): Break out from ...
1441 (estimate_calls_size_and_time): ... here; implement summary production.
1442 (summarize_calls_size_and_time): New function.
1443 (ipa_call_context::estimate_size_and_time): Bypass
1444 estimate_calls_size_and_time for leaf functions.
1445 (ipa_update_overall_fn_summary): Likewise.
1446 * ipa-fnsummary.h (call_size_time_table): New.
1447 (ipa_fn_summary::account_size_time): Update prototype.
1448
1449 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1450
1451 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1452
1453 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1454
1455 PR85678
1456 * common.opt (fcommon): Change init to 1.
1457 * doc/invoke.texi (-fcommon): Update documentation.
1458
1459 2019-11-20 Jan Hubicka <jh@suse.cz>
1460
1461 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1462 to ordinary array.
1463
1464 2019-11-20 Jan Hubicka <jh@suse.cz>
1465
1466 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1467 Add allocator parameter.
1468 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1469 (fibonacci_heap<K,V>::m_allocator): New.
1470 (fibonacci_heap<K,V>::m_own_allocator): New.
1471 (fibonacci_heap<K,V>::insert): Use allocator.
1472 (fibonacci_heap<K,V>::extract_min): Likewise.
1473 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1474 allocator.
1475 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1476 on stack.
1477 * fibonacci_heap.c: Include alloc-pool
1478 (test_empty_heap): Initialize allocator.
1479 (test_union): Likewise.
1480 * bb-reorder.c: Include alloc-pool.h.
1481 * tracer.c: Inlclude alloc-pool.h.
1482
1483 2019-11-20 Jan Hubicka <jh@suse.cz>
1484
1485 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1486 Preallocate for 32 entries.
1487 (DFS::worklist): Likewise.
1488 (DFS::DFS): Do not initialize sccstack and worklist.
1489 (DFS::~DFS): Do not release sccstack.
1490
1491 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1492
1493 PR target/92573
1494 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1495 Handle UNORDERED if !HONOR_NANS.
1496
1497 2019-11-20 Jan Hubicka <jh@suse.cz>
1498
1499 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1500 (edge_badness): ... here.
1501 (inline_small_functions): Use monotonicity of badness calculation
1502 to avoid redundant updates.
1503
1504 2019-11-20 Richard Biener <rguenther@suse.de>
1505
1506 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1507 constructors we are actually analyzing.
1508 (vect_slp_check_for_constructors): Do not vectorize uniform
1509 constuctors, do not dump here.
1510
1511 2019-11-20 Richard Biener <rguenther@suse.de>
1512
1513 PR tree-optimization/92537
1514 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1515 vectorization validity check...
1516 (vect_slp_analyze_operations): ... here.
1517
1518 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1519
1520 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1521 (make_pass_arc_predicate_delay_insns): Likewise.
1522 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1523 method, remove clone.
1524 (class pass_arc_predicate_delay_insns): Likewise.
1525 (arc_init): Remove registering of ARC specific passes.
1526 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1527 * config/arc/arc-passes.def: New file.
1528
1529 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1530
1531 PR middle-end/90840
1532 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1533 and has a mode that doesn't have corresponding integral type.
1534
1535 PR target/90867
1536 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1537 clear opts->x_ix86_isa_flags{,2} here...
1538 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1539 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1540
1541 PR c/90898
1542 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1543 assertion.
1544 (insert_clobbers_for_var): Fix a typo in function comment.
1545
1546 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1547 Jakub Jelinek <jakub@redhat.com>
1548
1549 PR middle-end/91195
1550 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1551 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1552 load.
1553
1554 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1555
1556 Make 0-series device specs work with older versions of avr-gcc.
1557
1558 PR target/92545
1559 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1560 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1561 <*link_pm_base_address>: Don't write spec.
1562 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1563
1564 2019-11-20 Richard Biener <rguenther@suse.de>
1565
1566 PR c/92088
1567 * builtins.c (compute_objsize): Deal with VLAs.
1568
1569 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1570
1571 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1572 from common code.
1573 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1574 call new function.
1575 (power9_sched_reorder2): Call new function.
1576 (rs6000_sched_reorder2): Likewise.
1577
1578 2019-11-18 Jan Hubicka <jh@suse.cz>
1579
1580 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1581 (estimate_calls_size_and_time): Update.
1582
1583 2019-11-18 Jan Hubicka <jh@suse.cz>
1584
1585 * ipa-inline.c (inlining_speedup): New function.
1586 (edge_badness): Use it.
1587
1588 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1589 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1590
1591 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1592 Mark as not having "likely" version.
1593 * config/mips/mips.md (insn_count): The simd_div instruction with
1594 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1595 (can_delay): Exclude simd_branch.
1596 (defile_delay *): Add simd_branch instructions.
1597 They have one regular delay slot.
1598
1599 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1600
1601 Revert:
1602 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1603
1604 * cse.c (cse_insn): Delete no-op register moves too.
1605 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1606 Take a second comparison to control the value for NE.
1607 (mask_to_comparison): Handle unsigned comparisons.
1608 (simplify_logical_relational_operation): Likewise. Update call
1609 to comparison_to_mask. Handle AND if !HONOR_NANs.
1610 (simplify_binary_operation_1): Call the above for AND too.
1611
1612 2019-11-19 Martin Liska <mliska@suse.cz>
1613
1614 * toplev.c (general_init): Move the call...
1615 (toplev::main): ... here as we need init_options_struct
1616 being called.
1617
1618 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1619
1620 PR target/79262
1621 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1622 vec_to_scalar_cost.
1623
1624 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1625
1626 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1627 (armv7-a): Likewise.
1628 (armv7ve): Likewise.
1629
1630 2019-11-19 Richard Biener <rguenther@suse.de>
1631
1632 PR tree-optimization/92581
1633 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1634 condition reduction chains gather all conditions involved
1635 for computing the index reduction vector.
1636
1637 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1638
1639 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1640 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1641 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1642 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1643 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1644 (aarch64_init_memtag_builtins): New.
1645 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1646 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1647 (aarch64_expand_builtin_memtag): New.
1648 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1649 (AARCH64_BUILTIN_SUBCODE): New macro.
1650 (aarch64_resolve_overloaded_memtag): New.
1651 (aarch64_resolve_overloaded_builtin_general): New. Call
1652 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1653 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1654 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1655 (aarch64_resolve_overloaded_builtin): Call
1656 aarch64_resolve_overloaded_builtin_general.
1657 * config/aarch64/aarch64-protos.h
1658 (aarch64_resolve_overloaded_builtin_general): New declaration.
1659 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1660 (TARGET_MEMTAG): Likewise.
1661 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1662 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1663 (irg, gmi, subp, addg, ldg, stg): New instructions.
1664 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1665 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1666 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1667 (__arm_mte_get_tag): Likewise.
1668 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1669 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1670 * config/arm/types.md (memtag): New.
1671 * doc/invoke.texi (-memtag): Update description.
1672
1673 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1674
1675 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1676 to define __GCC_ASM_FLAG_OUTPUTS__.
1677 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1678 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1679 depending on TARGET_THUMB1.
1680 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1681
1682 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1683
1684 PR target/92549
1685 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1686
1687 PR middle-end/91450
1688 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1689 operand is negative and one non-negative, compare the non-negative
1690 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1691 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1692 and s2 == 0, unless one of them is known to be negative. Remove
1693 tem2 variable, use tem where tem2 has been used before.
1694
1695 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1696
1697 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1698
1699 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1700
1701 PR tree-optimization/92557
1702 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1703 vmode rather than asserting it always is.
1704
1705 2019-11-19 Richard Biener <rguenther@suse.de>
1706
1707 PR tree-optimization/92554
1708 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1709 for the actual condition stmt and deal with sign-changes.
1710
1711 2019-11-19 Richard Biener <rguenther@suse.de>
1712
1713 PR tree-optimization/92555
1714 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1715 for non-SLP stmts.
1716
1717 2019-11-19 Martin Liska <mliska@suse.cz>
1718
1719 PR bootstrap/92540
1720 * config/riscv/riscv.c (riscv_address_insns): Initialize
1721 addr in order to remove boostrap -Wmaybe-uninitialized
1722 error.
1723
1724 2019-11-18 Martin Sebor <msebor@redhat.com>
1725
1726 PR tree-optimization/92493
1727 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1728 assignment.
1729
1730 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1731
1732 * cfgloop.c (get_loop_body_in_custom_order): New.
1733 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1734 * tree-loop-distribution.c (class loop_distribution): New.
1735 (bb_top_order_cmp): Remove.
1736 (bb_top_order_cmp_r): New.
1737 (create_rdg_vertices): Move into class loop_distribution.
1738 (stmts_from_loop): Same as above.
1739 (update_for_merge): Same as above.
1740 (partition_merge_into): Same as above.
1741 (get_data_dependence): Same as above.
1742 (data_dep_in_cycle_p): Same as above.
1743 (update_type_for_merge): Same as above.
1744 (build_rdg_partition_for-vertex): Same as above.
1745 (classify_builtin_ldst): Same as above.
1746 (classify_partition): Same as above.
1747 (share_memory_accesses): Same as above.
1748 (rdg_build_partitions): Same as above.
1749 (pg_add_dependence_edges): Same as above.
1750 (build_partition_graph): Same as above.
1751 (merge_dep_scc_partitions): Same as above.
1752 (break_alias_scc_partitions): Same as above.
1753 (finalize_partitions): Same as above.
1754 (distribute_loop): Same as above.
1755 (bb_top_order_init): New method
1756 (bb_top_order_destroy): New method.
1757 (get_bb_top_order_index_size): New method.
1758 (get_bb_top_order_index_index): New method.
1759 (get_bb_top_order_index_index): New method.
1760 (loop_distribution::execute): New method.
1761 (pass_loop_distribution::execute): Instantiate loop_distribution.
1762
1763 2019-11-18 Jan Hubicka <jh@suse.cz>
1764
1765 PR ipa/92508
1766 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1767 caches.
1768 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1769
1770 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1771
1772 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1773 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1774 * doc/md.texi: Document them.
1775 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1776 internal functions.
1777 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1778 * internal-fn.c (check_ptrs_direct): New macro.
1779 (expand_check_ptrs_optab_fn): Likewise.
1780 (direct_check_ptrs_optab_supported_p): Likewise.
1781 (internal_check_ptrs_fn_supported_p): New fuction.
1782 * tree-data-ref.c: Include internal-fn.h.
1783 (create_ifn_alias_checks): New function.
1784 (create_intersect_range_checks): Use it.
1785 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1786 (optab, cmp_op): Handle it.
1787 (raw_war, unspec): New int attributes.
1788 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1789 constants.
1790 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1791 New predicate.
1792 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1793 expander.
1794 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1795 pattern.
1796
1797 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1798
1799 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1800 empty constructors.
1801
1802 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1803
1804 * cse.c (cse_insn): Delete no-op register moves too.
1805 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1806 Take a second comparison to control the value for NE.
1807 (mask_to_comparison): Handle unsigned comparisons.
1808 (simplify_logical_relational_operation): Likewise. Update call
1809 to comparison_to_mask. Handle AND if !HONOR_NANs.
1810 (simplify_binary_operation_1): Call the above for AND too.
1811
1812 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1813
1814 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1815 splitting the main code out into...
1816 (native_encode_vector_part): ...this new function.
1817 (native_decode_vector_tree): New function.
1818 (fold_view_convert_vector_encoding): Likewise.
1819 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1820 to VECTOR_TYPEs.
1821
1822 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1823
1824 * tree-data-ref.c (create_intersect_range_checks_index): If the
1825 alias pair describes simple WAW and WAR dependencies, just check
1826 whether the first B access overlaps later A accesses.
1827 (create_waw_or_war_checks): New function that performs the same
1828 optimization on addresses.
1829 (create_intersect_range_checks): Call it.
1830
1831 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1832
1833 * lra-constraints.c (valid_address_p): Take the operand and a
1834 constraint as argument. If the operand is a MEM and the constraint
1835 is a memory constraint, check whether the eliminated form of the
1836 MEM already satisfies the constraint.
1837 (process_address_1): Update calls accordingly.
1838
1839 2019-11-18 Tom Tromey <tromey@adacore.com>
1840
1841 * doc/tm.texi: Rebuild.
1842 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1843 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1844
1845 2019-11-18 Richard Biener <rguenther@suse.de>
1846
1847 PR tree-optimization/92516
1848 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1849 argument, hoist bst_map creation/destruction to ...
1850 (vect_analyze_slp): ... here, forming a true graph with
1851 SLP instances being the entries.
1852 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1853 (vect_detect_hybrid_slp): Use one visited set for all
1854 graph entries.
1855 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1856 to hash-sets of slp_tree.
1857 (vect_slp_analyze_operations): Likewise.
1858 (vect_bb_slp_scalar_cost): Remove wrapper.
1859 (vect_bb_vectorization_profitable_p): Use one visited set for
1860 all graph entries.
1861 (vect_schedule_slp_instance): Elide bst_map use.
1862 (vect_schedule_slp): Likewise.
1863
1864 2019-11-18 Richard Biener <rguenther@suse.de>
1865
1866 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1867 was vectorized with just external refs fail.
1868
1869 2019-11-18 Martin Liska <mliska@suse.cz>
1870
1871 PR ipa/92525
1872 * ipa-icf.c (sem_function::init): Unset m_checker
1873 at the end of the function.
1874
1875 2019-11-18 Richard Biener <rguenther@suse.de>
1876
1877 PR tree-optimization/92558
1878 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1879 reducting the width of a reduction vector def update new_phis.
1880
1881 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1882
1883 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1884 and s390*-*-linux-musl* targets.
1885 * configure: Regenerate.
1886
1887 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1888
1889 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1890 (MUSL_DYNAMIC_LINKER64): Define.
1891
1892 2019-11-18 Martin Liska <mliska@suse.cz>
1893
1894 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1895 message for an unknown counter.
1896 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1897 (dbg_cnt_process_opt): Remove unreachable code.
1898
1899 2019-11-18 Martin Liska <mliska@suse.cz>
1900
1901 PR ipa/92529
1902 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1903 Compare LHS types of NOP_EXPR.
1904
1905 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1906
1907 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1908 "initial_pass_name" argument -- by running "*clean_state" pass.
1909 Also free the "initial_pass_name" when done.
1910
1911 2019-11-18 Richard Biener <rguenther@suse.de>
1912
1913 PR rtl-optimization/92462
1914 * alias.c (find_base_term): Restrict the look through ANDs.
1915 (find_base_value): Likewise.
1916
1917 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1918
1919 Add support for AVR devices from the 0-series.
1920
1921 PR target/92545
1922 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1923 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1924 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1925 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1926 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1927 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1928 for spec definitions.
1929 * doc/avr-mmcu.texi: Regenerate.
1930
1931 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1932
1933 PR target/92448
1934 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1935 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1936 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1937 (ix86_reassociation_width): Ditto.
1938 * config/i386/i386-options.c (ix86_option_override_internal):
1939 Replace TARGET_AVX128_OPTIAML with
1940 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1941 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1942 (TARGET_AVX128_OPTIMAL): Deleted.
1943 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1944 DEF_TUNE.
1945
1946 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1947
1948 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1949 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1950 just SI.
1951 (cceq_rev_compare): Rename to...
1952 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1953 just SI.
1954 (define_split for <bd>tf_<mode>): Add SImode first argument to
1955 gen_cceq_ior_compare.
1956
1957 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1958
1959 * common/config/powerpcspe: Delete.
1960
1961 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1962
1963 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1964 output in UNSPEC_WRFFR.
1965
1966 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1967
1968 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1969 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1970
1971 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1972
1973 * tree-data-ref.c (create_intersect_range_checks_index)
1974 (create_intersect_range_checks): Print dump messages.
1975
1976 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1977
1978 * tree-data-ref.c (dump_alias_pair): New function.
1979 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1980
1981 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1982
1983 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1984 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1985 merging data references with different steps.
1986 (create_intersect_range_checks_index): Take a
1987 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1988 Bail out if DR_ALIAS_MIXED_STEPS is set.
1989 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1990 instead of two dr_with_seg_lens. Update call to
1991 create_intersect_range_checks_index.
1992 (create_runtime_alias_checks): Update call accordingly.
1993
1994 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1995
1996 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1997 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1998 (dr_with_seg_len_pair_t::sequencing): New enum.
1999 (dr_with_seg_len_pair_t::flags): New member variable.
2000 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2001 parameter and initialize the flags member variable.
2002 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2003 call accordingly.
2004 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2005 Ensure the two data references in an alias pair are in statement
2006 order, if there is a defined order.
2007 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2008 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2009 swapped the references in a dr_with_seg_len_pair_t. OR together
2010 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2011 try to restore the original dr_with_seg_len order, updating the
2012 flags if that fails.
2013
2014 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2015
2016 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2017 swapping the dr_as based on init values until we've decided
2018 whether to merge them.
2019
2020 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2021
2022 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2023 two accesses in each dr_with_seg_len_pair_t before trying to
2024 combine separate dr_with_seg_len_pair_ts.
2025 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2026 that here.
2027 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2028
2029 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2030
2031 * config/aarch64/aarch64-sve.md
2032 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2033 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2034 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2035 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2036 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2037 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2038 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2039 pattern.
2040 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2041 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2042 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2043 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2044
2045 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2046
2047 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2048 (SVE_4HSI): New mode iterators.
2049 (ANY_EXTEND2): New code iterator.
2050 * config/aarch64/aarch64-sve.md
2051 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2052 Extend to...
2053 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2054 ...this, handling extension to partial modes as well as full modes.
2055 Describe the extension as a predicated rather than unpredicated
2056 extension.
2057 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2058 Likewise extend to...
2059 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2060 ...this, making the same adjustments.
2061 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2062 Likewise extend to...
2063 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2064 ...this, making the same adjustments.
2065 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2066 Likewise extend to...
2067 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2068 ...this, making the same adjustments.
2069 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2070 New pattern.
2071 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2072 extension predicate.
2073 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2074 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2075 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2076 Describe the extension as a predicated rather than unpredicated
2077 extension.
2078 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2079 Likewise. Canonicalize to a constant extension predicate.
2080 * config/aarch64/aarch64-sve-builtins-base.cc
2081 (svld1_gather_extend_impl::expand): Add an extra predicate for
2082 the extension.
2083 (svldff1_gather_extend_impl::expand): Likewise.
2084
2085 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2086
2087 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2088 iterators.
2089 * config/aarch64/aarch64-sve.md
2090 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2091 (gather_load<SVE_24:mode><v_int_container>): ...this.
2092 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2093 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2094 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2095 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2096 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2097 New pattern.
2098 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2099 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2100 Allow the nominal extension predicate to be different from the
2101 load predicate.
2102 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2103 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2104
2105 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2106
2107 * config/aarch64/aarch64-sve.md
2108 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2109 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2110 function.
2111 (aarch64_sve_adjust_stmt_cost): Call it.
2112
2113 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2114
2115 * config/aarch64/aarch64-sve.md
2116 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2117 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2118 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2119 Combine into...
2120 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2121 ...this new pattern, handling extension to partial modes as well
2122 as full modes. Describe the extension as a predicated rather than
2123 unpredicated extension.
2124 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2125 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2126 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2127 Combine into...
2128 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2129 ...this new pattern, handling extension to partial modes as well
2130 as full modes. Describe the extension as a predicated rather than
2131 unpredicated extension.
2132 * config/aarch64/aarch64-sve-builtins.cc
2133 (function_expander::use_contiguous_load_insn): Add an extra
2134 predicate for extending loads.
2135 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2136 (aarch64_sve_adjust_stmt_cost): Likewise.
2137 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2138 the cost of SVE vector stmts.
2139
2140 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2141
2142 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2143 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2144 * config/aarch64/aarch64-sve.md
2145 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2146 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2147 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2148 comment. Avoid new narrower_mask ambiguity.
2149 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2150 (*cond_uxt<mode>_2): Update comment.
2151 (*cond_uxt<mode>_any): Likewise.
2152
2153 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2154
2155 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2156 float modes.
2157 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2158 function.
2159 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2160 new vector float modes.
2161 (aarch64_sve_container_bits): New function.
2162 (aarch64_sve_pred_mode): Likewise.
2163 (aarch64_get_mask_mode): Use it.
2164 (aarch64_sve_element_int_mode): Handle structure modes and partial
2165 modes.
2166 (aarch64_sve_container_int_mode): New function.
2167 (aarch64_vectorize_related_mode): Return SVE modes when given
2168 SVE modes. Handle partial modes, taking the preferred number
2169 of units from the size of the given mode.
2170 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2171 in registers.
2172 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2173 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2174 (aarch64_split_sve_subreg_move): Use the mode form of
2175 aarch64_sve_pred_mode.
2176 (aarch64_secondary_reload): Handle partial modes in the same way
2177 as full big-endian vectors.
2178 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2179 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2180 merging with the Advanced SIMD modes. If two modes have the
2181 same size, try the Advanced SIMD mode first.
2182 (aarch64_simd_valid_immediate): Use the container rather than
2183 the element mode for INDEX constants.
2184 (aarch64_simd_vector_alignment): Make the alignment of partial
2185 SVE vector modes the same as their minimum size.
2186 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2187 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2188 (mov<SVE_ALL:mode>): ...this.
2189 (movmisalign<SVE_FULL:mode>): Extend to...
2190 (movmisalign<SVE_ALL:mode>): ...this.
2191 (*aarch64_sve_mov<mode>_le): Rename to...
2192 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2193 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2194 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2195 partial modes regardless of endianness.
2196 (aarch64_sve_reload_be): Rename to...
2197 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2198 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2199 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2200 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2201 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2202 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2203 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2204 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2205 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2206 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2207 (maskload<SVE_FULL:mode><vpred>): Extend to...
2208 (maskload<SVE_ALL:mode><vpred>): ...this.
2209 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2210 (maskstore<SVE_ALL:mode><vpred>): ...this.
2211 (vec_duplicate<SVE_FULL:mode>): Extend to...
2212 (vec_duplicate<SVE_ALL:mode>): ...this.
2213 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2214 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2215 (sve_ld1r<SVE_FULL:mode>): Extend to...
2216 (sve_ld1r<SVE_ALL:mode>): ...this.
2217 (vec_series<SVE_FULL_I:mode>): Extend to...
2218 (vec_series<SVE_I:mode>): ...this.
2219 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2220 (*vec_series<SVE_I:mode>_plus): ...this.
2221 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2222 new VPRED ambiguity.
2223 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2224 (add<SVE_FULL_I:mode>3): Extend to...
2225 (add<SVE_I:mode>3): ...this.
2226 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2227 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2228 (VPRED, vpred): Likewise.
2229 (Vctype): New iterator.
2230 (vw): Remove SVE modes.
2231
2232 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2233
2234 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2235 (SVE_PARTIAL_I): ...this.
2236 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2237
2238 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2239
2240 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2241 (SVE_FULL): ...this.
2242 (SVE_I): Rename to...
2243 (SVE_FULL_I): ...this.
2244 (SVE_F): Rename to...
2245 (SVE_FULL_F): ...this.
2246 (SVE_BHSI): Rename to...
2247 (SVE_FULL_BHSI): ...this.
2248 (SVE_HSD): Rename to...
2249 (SVE_FULL_HSD): ...this.
2250 (SVE_HSDI): Rename to...
2251 (SVE_FULL_HSDI): ...this.
2252 (SVE_HSF): Rename to...
2253 (SVE_FULL_HSF): ...this.
2254 (SVE_SD): Rename to...
2255 (SVE_FULL_SD): ...this.
2256 (SVE_SDI): Rename to...
2257 (SVE_FULL_SDI): ...this.
2258 (SVE_SDF): Rename to...
2259 (SVE_FULL_SDF): ...this.
2260 (SVE_S): Rename to...
2261 (SVE_FULL_S): ...this.
2262 (SVE_D): Rename to...
2263 (SVE_FULL_D): ...this.
2264 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2265 * config/aarch64/aarch64-sve2.md: Likewise.
2266
2267 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2268
2269 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2270 New option.
2271 * doc/invoke.texi: Document it.
2272 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2273 By default, return VECT_COMPARE_COSTS for SVE.
2274
2275 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2276
2277 * target.h (VECT_COMPARE_COSTS): New constant.
2278 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2279 * doc/tm.texi: Regenerate.
2280 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2281 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2282 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2283 Likewise.
2284 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2285 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2286 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2287 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2288 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2289 (_loop_vec_info::vec_inside_cost): New member variables.
2290 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2291 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2292 (vect_analyze_loop): When autovectorize_vector_modes returns
2293 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2294 vector mode and picking the one with the lowest cost.
2295 (vect_estimate_min_profitable_iters): Record the computed costs
2296 in the loop_vec_info.
2297
2298 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2299
2300 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2301 element type rather than an element mode.
2302 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2303 Use get_vectype_for_scalar_type to query the natural types
2304 for a given element type rather than basing everything on
2305 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2306 query to MAX_FIXED_MODE_SIZE.
2307 (duplicate_and_interleave): Update call accordingly.
2308 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2309
2310 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2311
2312 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2313 optional maximum nunits.
2314 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2315 takes an slp_tree.
2316 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2317 (vect_get_mask_type_for_stmt): Likewise.
2318 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2319 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2320 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2321 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2322 to get an assumed vector type for data references.
2323 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2324 (vect_update_all_shared_vectypes): Likewise.
2325 (vect_build_slp_tree_1): Pass the group size to
2326 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2327 for BB vectorization.
2328 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2329 before building the vectof from scalars.
2330 (vect_analyze_slp_instance): Pass the group size to
2331 get_vectype_for_scalar_type.
2332 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2333 types for BB vectorization here; just handle the case in which
2334 we deferred the choice for booleans.
2335 (vect_get_constant_vectors): Pass the slp_tree to
2336 get_vectype_for_scalar_type.
2337 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2338 (vectorizable_call): Likewise.
2339 (vectorizable_simd_clone_call): Likewise.
2340 (vectorizable_conversion): Likewise.
2341 (vectorizable_shift): Likewise.
2342 (vectorizable_operation): Likewise.
2343 (vectorizable_comparison): Likewise.
2344 (vect_is_simple_cond): Take the slp_tree as argument and
2345 pass it to get_vectype_for_scalar_type.
2346 (vectorizable_condition): Update call accordingly.
2347 (get_vectype_for_scalar_type): Take a group_size argument.
2348 For BB vectorization, limit the the vector to that number
2349 of elements. Also define an overload that takes an slp_tree.
2350 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2351 pass it to get_vectype_for_scalar_type.
2352 (vect_get_vector_types_for_stmt): Add a group_size argument
2353 and pass it to get_vectype_for_scalar_type. Don't use the
2354 cached vector type for BB vectorization if a group size is given.
2355 Handle data references in that case.
2356 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2357 pass it to get_mask_type_for_scalar_type.
2358
2359 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2360
2361 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2362 parameter.
2363 (estimate_edge_time): Use it.
2364 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2365 ret_nonspec_time parameter.
2366
2367 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2368
2369 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2370
2371 2019-11-15 Nick Clifton <nickc@redhat.com>
2372 Szabolcs Nagy <szabolcs.nagy@arm.com>
2373
2374 PR target/65649
2375 * config/microblaze/microblaze.c (print_operand): Print value as long.
2376
2377 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2378
2379 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2380 accidental commit.
2381
2382 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2383
2384 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2385 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2386
2387 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2388
2389 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2390 (gcn_conditional_register_usage): Use constants in place of hard-coded
2391 values.
2392 (gcn_hsa_declare_function_name): Set lower bound for number of
2393 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2394 MAX_NORMAL_VGPR_COUNT.
2395
2396 2019-11-15 Martin Jambor <mjambor@suse.cz>
2397
2398 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2399 declaration.
2400
2401 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2402
2403 * config/gcn/gcn.c (default_requested_args): New.
2404 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2405 set with default_requested_args.
2406 (gcn_conditional_register_usage): Limit register usage of non-kernel
2407 functions. Reassign fixed registers if a non-standard set of args is
2408 requested.
2409 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2410
2411 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2412
2413 PR ipa/92528
2414 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2415 aggregate jump function when inlined-to caller has no edge summary.
2416
2417 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2418
2419 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2420
2421 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2422
2423 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2424 prologue use of v0.
2425 (print_operand_address): Use v1 for zero vector offset.
2426
2427 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2428
2429 PR tree-optimization/92515
2430 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2431 types when converting a vector/scalar shift into a vector/vector one,
2432 using tree_nop_conversion_p instead of useless_type_conversion_p.
2433 Move the conversion code to the transform block.
2434
2435 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2436
2437 * read-rtl-function.c
2438 (function_reader::add_fixup_source_location): Take additional
2439 parameter of a column.
2440 (function_reader::maybe_read_location): Optionally parse column
2441 information and pass to add_fixup_source_location.
2442
2443 2019-11-15 Richard Biener <rguenther@suse.de>
2444
2445 PR tree-optimization/92512
2446 * tree-vect-loop.c (check_reduction_path): Fix operand index
2447 computability check. Add check for second use in COND_EXPRs.
2448
2449 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2450
2451 PR target/92515
2452 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2453 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2454
2455 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2456
2457 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2458 register class for VCC_LO and VCC_HI.
2459 (gcn_spill_class): Use SGPR_REGS to spill registers in
2460 VCC_CONDITIONAL_REG.
2461
2462 2019-11-15 Richard Biener <rguenther@suse.de>
2463
2464 PR tree-optimization/92324
2465 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2466 singedness of SLP reduction epilouge operations. Also reduce
2467 the vector width for SLP reductions before doing elementwise
2468 operations if possible.
2469
2470 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2471
2472 * passes.c (skip_pass): Set epilogue_completed if skipping the
2473 pro_and_epilogue pass.
2474
2475 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2476
2477 * passes.c (should_skip_pass_p): Always run "dfinish".
2478
2479 2019-11-15 Richard Biener <rguenther@suse.de>
2480
2481 * ipa-inline.c (inline_small_functions): Move assignment
2482 to next before call destroying edge.
2483
2484 2019-11-15 Richard Biener <rguenther@suse.de>
2485
2486 PR tree-optimization/92039
2487 PR tree-optimization/91975
2488 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2489 previous change, treat invariants consistently as non-constant.
2490 (tree_estimate_loop_size): Ternary ops with just the first op
2491 constant are not optimized away.
2492
2493 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2494
2495 * gimplify.c (gimplify_call_expr): Don't call
2496 omp_resolve_declare_variant after gimplification.
2497 * omp-general.c (omp_context_selector_matches): For isa that might
2498 match in some other function, defer if in declare simd function.
2499 (omp_context_compute_score): Don't look for " score" in construct
2500 trait set. Set *score to -1 if it can't ever match.
2501 (omp_resolve_declare_variant): If any variants need to be deferred,
2502 don't punt immediately, but compute scores of all variants and if
2503 ther eis a score winner that doesn't need to be deferred, return that.
2504
2505 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2506
2507 * ipa-comdats.c: Fix comments typo.
2508 * ipa-profile.c: Fix comments typo.
2509 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2510 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2511 (gimple_gen_ic_func_profiler): Likewise.
2512 (pass_ipa_tree_profile::gate): Fix comments typo.
2513
2514 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2515
2516 * ipa-inline.c (inline_small_functions): Update iterator of next.
2517
2518 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2519
2520 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2521 register is suitable for the mode.
2522
2523 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2524
2525 * range-op.h (range_operator::fold_range): Return a bool.
2526 * range-op.cc (range_operator::wi_fold): Assert supported type.
2527 (range_operator::fold_range): Assert supported type and return true.
2528 (operator_equal::fold_range): Return true.
2529 (operator_not_equal::fold_range): Same.
2530 (operator_lt::fold_range): Same.
2531 (operator_le::fold_range): Same.
2532 (operator_gt::fold_range): Same.
2533 (operator_ge::fold_range): Same.
2534 (operator_plus::op1_range): Adjust call to fold_range.
2535 (operator_plus::op2_range): Same.
2536 (operator_minus::op1_range): Same.
2537 (operator_minus::op2_range): Same.
2538 (operator_exact_divide::op1_range): Same.
2539 (operator_lshift::fold_range): Return true and adjust fold_range call.
2540 (operator_rshift::fold_range): Same.
2541 (operator_cast::fold_range): Return true.
2542 (operator_logical_and::fold_range): Same.
2543 (operator_logical_or::fold_range): Same.
2544 (operator_logical_not::fold_range): Same.
2545 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2546 (operator_bitwise_not::op1_range): Same.
2547 (operator_cst::fold_range): Return true.
2548 (operator_identity::fold_range): Return true.
2549 (operator_negate::fold_range): Return true and adjust fold_range call.
2550 (operator_addr_expr::fold_range): Return true.
2551 (operator_addr_expr::op1_range): Adjust call to fold_range.
2552 (range_cast): Same.
2553 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2554 (range_fold_unary_symbolics_p): Same.
2555
2556 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2557
2558 PR tree-optimization/92506
2559 * range-op.cc (range_operator::fold_range): Start with range undefined.
2560 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2561 overflow is varying.
2562
2563 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2564
2565 * range-op.cc (*operator*::*range): Remove calls to
2566 range_intersect, range_invert, and range_union in favor of calling
2567 the in-place API methods.
2568 (range_tests): Same.
2569 * range.cc (range_intersect): Remove.
2570 (range_union): Remove.
2571 (range_invert): Remove.
2572 * range.h (range_intersect): Remove.
2573 (range_union): Remove.
2574 (range_intersect): Remove.
2575
2576 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2577
2578 PR rtl-optimization/92430
2579 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2580 (pass_jump_after_combine::execute): Perform jump threading
2581 unconditionally.
2582
2583 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2584 Doug Rupp <rupp@adacore.com>
2585 Olivier Hainque <hainque@adacore.com>
2586
2587 * config.gcc: Collapse the arm-vxworks entries into
2588 a single arm-wrs-vxworks7* one, bpabi based. Update
2589 the default cpu from arm8 to armv7-a
2590 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2591 we always use ARM_UNWIND_INFO.
2592 (DWARF2_UNWIND_INFO): Remove redefinition.
2593 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2594 (VXWORKS_PERSONALITY): Define, to "llvm".
2595 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2596
2597 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2598
2599 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2600 _VX_CPU instead of CPU and handle arm_arch8.
2601
2602 2019-11-14 Doug Rupp <rupp@adacore.com>
2603 Olivier Hainque <hainque@adacore.com>
2604 Jerome Lambourg <lambourg@adacore.com>
2605
2606 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2607 * config/aarch64/aarch64-vxworks.h: New file.
2608 * config/aarch64/t-aarch64-vxworks: New file.
2609
2610 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2611 Olivier Hainque <hainque@adacore.com>
2612
2613 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2614 definition, pointless with a VxWorks specific version
2615 of crtstuff.
2616 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2617 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2618 New local macros, controlling the addition of vxworks specific
2619 crtstuff objects depending on the EH mechanism and kind of
2620 module being linked.
2621 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2622
2623 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2624 Jerome Lambourg <lambourg@adacore.com>
2625 Olivier Hainque <hainque@adacore.com>
2626
2627 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2628 common macro definitions, conveying VXWORKS7 or 64bit general
2629 variations. Add a block to set gcc_cv_initfini_array
2630 unconditionally to "yes" for VxWorks7.
2631 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2632 by default. Update some comments.
2633 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2634 default, to be added the end of VXWORKS_LIBS_RTP.
2635 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2636 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2637 redefine.
2638 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2639 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2640 to account for the now available TLS abilities.
2641 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2642 (VXWORKS_HAVE_TLS): Likewise.
2643
2644 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2645
2646 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2647 (vect_slp_convert_to_external): Likewise.
2648 (vect_slp_analyze_node_operations): If analysis fails, try building
2649 the node from scalars instead.
2650
2651 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2652
2653 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2654 between vector types.
2655 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2656 non-widening and non-narrowing path to handle standard
2657 conversion codes, if the target supports them.
2658 * expr.c (convert_move): Try using the extend and truncate optabs
2659 for vectors.
2660 * optabs-tree.c (supportable_convert_operation): Likewise.
2661 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2662 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2663 (trunc<mode><Vnarrowq>2): New patterns.
2664
2665 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2666
2667 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2668 require vectype and nunits_vectype to have the same size;
2669 instead assert that nunits_vectype has at least as many
2670 elements as vectype. Don't compute a separate nunits_vectype
2671 if the scalar type is obviously the same as vectype's.
2672 Tweak dump messages.
2673
2674 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2675
2676 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2677 function.
2678 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2679 (TARGET_VECTORIZE_RELATED_MODE): Define.
2680
2681 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2682
2683 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2684 (vec_info::used_vector_mode): New member variable.
2685 (vect_chooses_same_modes_p): Declare.
2686 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2687 chosen vector mode in vec_info::used_vector_mode.
2688 (vect_chooses_same_modes_p): New function.
2689 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2690 the same vector statements multiple times.
2691 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2692
2693 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2694
2695 * machmode.h (opt_machine_mode::operator==): New function.
2696 (opt_machine_mode::operator!=): Likewise.
2697 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2698 (get_related_vectype_for_scalar_type): Delete.
2699 (get_vectype_for_scalar_type_and_size): Declare.
2700 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2701 whether analysis passed or failed, and with what vector modes.
2702 Use related_vector_mode to check whether trying a particular
2703 vector mode would be redundant with the autodetected mode,
2704 and print a dump message if we decide to skip it.
2705 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2706 (vect_create_epilog_for_reduction): Use
2707 get_related_vectype_for_scalar_type instead of
2708 get_vectype_for_scalar_type_and_size.
2709 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2710 with...
2711 (get_related_vectype_for_scalar_type): ...this new function.
2712 Take a starting/"prevailing" vector mode rather than a vector size.
2713 Take an optional nunits argument, with the same meaning as for
2714 related_vector_mode. Use related_vector_mode when not
2715 auto-detecting a mode, falling back to mode_for_vector if no
2716 target mode exists.
2717 (get_vectype_for_scalar_type): Update accordingly.
2718 (get_same_sized_vectype): Likewise.
2719 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2720
2721 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2722
2723 * tree-vect-stmts.c (vectorizable_call): Require the types
2724 to have the same size.
2725
2726 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2727
2728 * tree-vect-stmts.c (vectorizable_call): If an operand is
2729 constant or external, use get_vectype_for_scalar_type
2730 rather than get_same_sized_vectype to get its vector type.
2731 (vectorizable_conversion, vectorizable_shift): Likewise.
2732 (vectorizable_operation): Likewise.
2733
2734 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2735
2736 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2737 (vec_info::vector_mode): ...this new field.
2738 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2739 (vect_analyze_loop, vect_transform_loop): Likewise.
2740 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2741 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2742 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2743 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2744 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2745
2746 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2747
2748 * target.h (vector_sizes, auto_vector_sizes): Delete.
2749 (vector_modes, auto_vector_modes): New typedefs.
2750 * target.def (autovectorize_vector_sizes): Replace with...
2751 (autovectorize_vector_modes): ...this new hook.
2752 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2753 Replace with...
2754 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2755 * doc/tm.texi: Regenerate.
2756 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2757 (default_autovectorize_vector_modes): New function.
2758 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2759 (default_autovectorize_vector_modes): New function.
2760 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2761 of autovectorize_vector_sizes. Use the number of units in the mode
2762 to calculate the maximum VF.
2763 * omp-low.c (omp_clause_aligned_alignment): Use
2764 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2765 Use a loop based on related_mode to iterate through all supported
2766 vector modes for a given scalar mode.
2767 * optabs-query.c (can_vec_mask_load_store_p): Use
2768 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2769 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2770 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2771 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2772 Replace with...
2773 (aarch64_autovectorize_vector_modes): ...this new function.
2774 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2775 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2776 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2777 (arc_autovectorize_vector_modes): ...this new function.
2778 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2779 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2780 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2781 (arm_autovectorize_vector_modes): ...this new function.
2782 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2783 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2784 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2785 (ix86_autovectorize_vector_modes): ...this new function.
2786 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2787 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2788 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2789 (mips_autovectorize_vector_modes): ...this new function.
2790 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2791 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2792
2793 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2794
2795 * tree-vect-stmts.c (vectorizable_shift): Check the number
2796 of vector elements as well as the type mode when deciding
2797 whether an op1_vectype is compatible. Reuse the result of
2798 this check when generating vector statements.
2799
2800 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2801
2802 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2803 targetm.vectorize.preferred_simd_mode returns an integer mode,
2804 use mode_for_vector to decide what the vector type's mode
2805 should actually be. Use build_vector_type_for_mode instead
2806 of build_vector_type.
2807
2808 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2809
2810 * target.def (get_mask_mode): Take a vector mode itself as argument,
2811 instead of properties about the vector mode.
2812 * doc/tm.texi: Regenerate.
2813 * targhooks.h (default_get_mask_mode): Update to reflect new
2814 get_mode_mask interface.
2815 * targhooks.c (default_get_mask_mode): Likewise. Use
2816 related_int_vector_mode.
2817 * optabs-query.c (can_vec_mask_load_store_p): Update call
2818 to get_mask_mode.
2819 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2820 first that the original mode really is a vector.
2821 * tree.c (build_truth_vector_type_for): Likewise.
2822 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2823 get_mode_mask interface.
2824 (aarch64_expand_sve_vcond): Update call accordingly.
2825 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2826 get_mode_mask interface.
2827 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2828
2829 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2830
2831 * tree.h (build_truth_vector_type): Delete.
2832 (build_same_sized_truth_vector_type): Likewise.
2833 * tree.c (build_truth_vector_type): Rename to...
2834 (build_truth_vector_type_for): ...this. Make static and take
2835 a vector type as argument.
2836 (truth_type_for): Update accordingly.
2837 (build_same_sized_truth_vector_type): Delete.
2838 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2839 instead of build_same_sized_truth_vector_type.
2840 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2841 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2842 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2843 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2844 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2845 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2846 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2847 (vectorizable_store, vectorizable_condition): Likewise.
2848 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2849 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2850 build_truth_vector_type.
2851 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2852 Use truth_type_for instead of build_same_sized_truth_vector_type.
2853 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2854
2855 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2856
2857 * tree.h (build_truth_vector_type_for_mode): Declare.
2858 * tree.c (build_truth_vector_type_for_mode): New function,
2859 split out from...
2860 (build_truth_vector_type): ...here.
2861 (build_opaque_vector_type): Fix head comment.
2862 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2863 vec_info parameter.
2864 (vect_halve_mask_nunits): Replace vec_info parameter with the
2865 mode of the new vector.
2866 (vect_double_mask_nunits): Likewise.
2867 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2868 (vect_double_mask_nunits): Likewise.
2869 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2870 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2871 to vect_halve_mask_nunits, getting the required mode from the unpack
2872 patterns.
2873 (vect_set_loop_condition_masked): Update call accordingly.
2874 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2875 parameter and update call to vect_double_mask_nunits.
2876 (vectorizable_conversion): Update call accordingly.
2877 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2878 (vectorizable_call): Update call accordingly.
2879 (supportable_widening_operation): Update call to
2880 vect_halve_mask_nunits.
2881 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2882 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2883
2884 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2885
2886 * machmode.h (mode_for_int_vector): Delete.
2887 (related_int_vector_mode): Declare.
2888 * stor-layout.c (mode_for_int_vector): Delete.
2889 (related_int_vector_mode): New function.
2890 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2891 instead of mode_for_int_vector.
2892 (expand_vec_perm_const): Likewise.
2893 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2894 (aarch64_evpc_sve_tbl): Likewise.
2895 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2896 (s390_expand_vcond): Likewise.
2897
2898 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2899
2900 * target.def (related_mode): New hook.
2901 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2902 * doc/tm.texi: Regenerate.
2903 * targhooks.h (default_vectorize_related_mode): Declare.
2904 * targhooks.c (default_vectorize_related_mode): New function.
2905 * machmode.h (related_vector_mode): Declare.
2906 * stor-layout.c (related_vector_mode): New function.
2907 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2908 * optabs-query.c (qimode_for_vec_perm): Likewise.
2909 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2910 (vectorizable_store, vectorizable_load): Likewise
2911
2912 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2913
2914 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2915 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2916 * config/arm/arm-c.c (arm_cpu_builtins): Define
2917 __GCC_ASM_FLAG_OUTPUTS__.
2918 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2919 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2920 Define __GCC_ASM_FLAG_OUTPUTS__.
2921 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2922 * doc/extend.texi (FlagOutputOperands): Add documentation
2923 for ARM and AArch64.
2924
2925 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2926 * config/arm/predicates.md (nz_comparison_operator): Rename
2927 from noov_comparison_operator.
2928 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2929 (arm_gen_dicompare_reg): Likewise.
2930 (maybe_get_arm_condition_code): Likewise.
2931 (thumb1_final_prescan_insn): Likewise.
2932 (arm_emit_coreregs_64bit_shift): Likewise.
2933 * config/arm/arm.md (addsi3_compare0): Likewise.
2934 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2935 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2936 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2937 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2938 (*mulsi3addsi_compare0_scratch): Likewise.
2939 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2940 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2941 (*zeroextractsi_compare0_scratch): Likewise.
2942 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2943 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2944 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2945 (andsi_not_shiftsi_si_scc): Likewise.
2946 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2947 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2948 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2949 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2950 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2951 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2952 (return_addr_mask, *check_arch2): Likewise.
2953 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2954 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2955 (compare_scc splitters): Likewise.
2956 (movcond_addsi): Likewise.
2957 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2958 (*thumb2_addsi3_compare0_scratch): Likewise.
2959 (*thumb2_mulsi_short_compare0): Likewise.
2960 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2961 (compare peephole2s): Likewise.
2962 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2963 nz_comparison_operator names.
2964 (cbranchsi4_insn): Likewise.
2965
2966 * config/arm/constraints.md (c): Use cc_register predicate.
2967
2968 * config/aarch64/constraints.md (c): New constraint.
2969
2970 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2971
2972 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2973 ipa_merge_fn_summary_after_inlining): Micro optimize.
2974
2975 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2976
2977 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2978
2979 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2980
2981 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2982 (ipa_value_range_from_jfunc): New function.
2983 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2984 known_value_ranges parameter; use it to evalulate conditions.
2985 (evaluate_properties_for_edge): Compute known value ranges.
2986 (ipa_fn_summary_t::duplicate): Update use of
2987 evaluate_conditions_for_known_args.
2988 (estimate_ipcp_clone_size_and_time): Likewise.
2989 (ipa_merge_fn_summary_after_inlining): Likewise.
2990 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2991
2992 2019-11-14 Martin Liska <mliska@suse.cz>
2993
2994 * ipa-inline.c (want_inline_small_function_p): Use
2995 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2996 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2997
2998 2019-11-14 Martin Liska <mliska@suse.cz>
2999
3000 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3001 of a callee to get value of the param.
3002 * ipa-inline.c (inline_insns_auto): Use proper
3003 opt_for_fn.
3004 * opts.c (maybe_default_option): Do not overwrite param
3005 value if optimization level does not match. Note that
3006 params usually have default value set via Init() keyword.
3007 * params.opt: Remove -param=max-inline-insns-auto-O2.
3008 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3009 * doc/invoke.texi: Remove documentation of
3010 max-inline-insns-auto-O2.
3011
3012 2019-11-14 Martin Liska <mliska@suse.cz>
3013
3014 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3015 Do not initialize m_other_count.
3016 (switch_conversion::collect): Do not count m_default_count and
3017 m_other_count as we use frequencies for edges.
3018 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3019
3020 2019-11-14 Martin Liska <mliska@suse.cz>
3021
3022 PR other/92329
3023 * doc/invoke.texi: Document -fallocation-dce.
3024
3025 2019-11-14 Martin Liska <mliska@suse.cz>
3026
3027 PR target/92389
3028 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3029 PTA_ICELAKE_CLIENT which is later interited by
3030 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3031
3032 2019-11-14 Martin Liska <mliska@suse.cz>
3033
3034 * ipa-icf.c (sem_item_optimizer::execute): Save
3035 loaded_symbols.
3036 (sem_item_optimizer::parse_nonsingleton_classes):
3037 Return number of loaded symbols.
3038 (sem_item_optimizer::merge_classes): Print
3039 statistics about totally needed symbols.
3040 * ipa-icf.h (parse_nonsingleton_classes): Change return
3041 type.
3042 (merge_classes): Add one argument.
3043
3044 2019-11-14 Martin Liska <mliska@suse.cz>
3045
3046 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3047 func_checker::hash_operand by handling of FIELD_DECLs.
3048
3049 2019-11-14 Martin Liska <mliska@suse.cz>
3050
3051 * ipa-icf-gimple.h (func_checker::func_checker): Add
3052 default constructor.
3053 * ipa-icf.c (sem_function::init): Make operand_equal_p
3054 and hash_operand public.
3055 (sem_item::add_expr): Remove.
3056 (sem_item::add_type): Remove.
3057 (sem_function::hash_stmt): Use m_checker for hashing
3058 of GIMPLE statements.
3059 (sem_function::parse): Init with checker.
3060 (sem_variable::parse): Pass NULL as checker.
3061 (sem_item_optimizer::parse_funcs_and_vars):
3062 Pass checker to ::parse function.
3063 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3064 (sem_variable::parse): New function.
3065 (sem_variable::get_hash): Only return computed hash value.
3066 (sem_variable::init): Initialize hash of a variable.
3067 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3068 to couple of functions as a new argument.
3069
3070 2019-11-14 Martin Liska <mliska@suse.cz>
3071
3072 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3073 bail out reason.
3074 (func_checker::compare_gimple_assign): Likewise.
3075
3076 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3077
3078 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3079 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3080 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3081
3082 * omp-general.c (omp_context_name_list_prop): New function.
3083 (omp_context_selector_matches): Use it. Return 0 if it returns
3084 NULL.
3085 (omp_context_selector_props_compare): Allow equivalency of an
3086 identifier and a string literal containing no embedded zeros.
3087
3088 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3089
3090 * range-op.cc (RANGE3): Remove.
3091 (range_tests): Remove all selftest that check for multi-ranges.
3092 Put tests in namespace selftest.
3093 * selftest.h: Move range_tests into namespace selftest.
3094 * value-range.h (class value_range): Unfriend range_tests.
3095
3096 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3097
3098 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3099 normalize_symbolics and normalize_addresses working in place.
3100 (range_fold_unary_symbolics_p): Same.
3101 (range_fold_unary_symbolics_p): Same.
3102 * value-range.cc (num_pairs): Same.
3103 (lower_bound): Same.
3104 (upper_bound): Same.
3105 (contains_p): Same.
3106 (normalize_addresses): Same.
3107 (normalize_symbolics): Same.
3108 * value-range.h (normalize_symbolics): Same.
3109 (normalize_addresses): Same.
3110
3111 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3112
3113 PR ipa/91682
3114 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3115 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3116 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3117 (ipa_agg_jump_function): Remove member function equal_to.
3118 (ipa_agg_jump_function_p): Remove typedef.
3119 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3120 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3121 information for aggregate jump function.
3122 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3123 record last definition statement.
3124 (load_from_unmodified_param_or_agg): New function.
3125 (ipa_known_agg_contents_list): Add new field type and value, remove
3126 field constant.
3127 (build_agg_jump_func_from_list): Rename parameter const_count to
3128 value_count, build aggregate jump function from ipa_load_agg_data.
3129 (analyze_agg_content_value): New function.
3130 (extract_mem_content): Analyze memory store assignment to prepare
3131 information for aggregate jump function generation.
3132 (determine_known_aggregate_parts): Add new parameter fbi, remove
3133 parameter aa_walk_budeget_p.
3134 (update_jump_functions_after_inlining): Update aggregate jump function.
3135 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3136 (try_make_edge_direct_simple_call): Add new parameter new_root.
3137 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3138 new_root_info.
3139 (update_indirect_edges_after_inlining): Pass new argument to
3140 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3141 (ipa_write_jump_function): Write aggregate jump function to file.
3142 (ipa_read_jump_function): Read aggregate jump function from file.
3143 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3144 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3145 (ipa_agg_value_from_node): Likewise.
3146 (ipa_agg_value_set_from_jfunc): Likewise.
3147 (propagate_vals_across_arith_jfunc): Likewise.
3148 (propagate_aggregate_lattice): Likewise.
3149 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3150 (propagate_vals_across_pass_through): Call
3151 propagate_vals_across_arith_jfunc.
3152 (get_clone_agg_value): Move forward.
3153 (propagate_aggs_across_jump_function): Handle value propagation for
3154 aggregate jump function.
3155 (agg_jmp_p_vec_for_t_vec): Remove.
3156 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3157 with vec<ipa_agg_value>.
3158 (copy_plats_to_inter, intersect_with_plats): Likewise.
3159 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3160 (intersect_aggregate_with_edge): Likewise.
3161 (find_aggregate_values_for_callers_subset): Likewise.
3162 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3163 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3164 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3165 (gather_context_independent_values): Likewise.
3166 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3167 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3168 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3169 (evaluate_properties_for_edge): Likewise.
3170 (estimate_edge_devirt_benefit): Likewise.
3171 (estimate_edge_size_and_time): Likewise.
3172 (estimate_calls_size_and_time): Likewise.
3173 (ipa_call_context::ipa_call_context): Likewise.
3174 (estimate_ipcp_clone_size_and_time): Likewise.
3175 * ipa-fnsummary.h (ipa_call_context): Replace
3176 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3177 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3178 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3179 (do_estimate_edge_size): Likewise.
3180 (do_estimate_edge_hints): Likewise.
3181
3182 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3183
3184 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3185 binary operations.
3186
3187 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3188
3189 * ipa-profile.c (check_argument_count): Check properly that e_info
3190 is non-NULL; do not check descriptors.
3191
3192 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3193
3194 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3195 check for ipa profiles.
3196
3197 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3198
3199 PR c++/92421
3200 * ipa-prop.c (update_indirect_edges_after_inlining):
3201 Mark parameter as used.
3202 * ipa-inline.c (recursive_inlining): Reset node cache
3203 after inlining.
3204 (inline_small_functions): Remove checking ifdef.
3205 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3206 cache consistency.
3207
3208 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3209
3210 PR ipa/92498
3211 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3212 is NULL.
3213 (ipa_profile): Fix reversed test.
3214
3215 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3216
3217 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3218 (propagate_constants_topo): Fix typo.
3219
3220 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3221
3222 * Makefile.in (OBJS): Add value-range.o.
3223 (GTFILES): Add value-range.h.
3224 * gengtype.c (open_base_files): Add value-range.h to list of
3225 header files.
3226 * tree-vrp.c: Move the following value_range related functions:
3227 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3228 constant_p, set_undefined, set_varying, may_contain_p,
3229 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3230 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3231 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3232 value_inside_range, ranges_from_anti_range, union_ranges,
3233 intersect_ranges, intersect_helper, union_helper, union_,
3234 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3235 upper_bound, contains_p, invert, intersect...
3236 * value-range.cc: ...to here.
3237 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3238 associated inline methods from here...
3239 * value-range.h: ...to here.
3240
3241 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3242
3243 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3244 instead of asserting its value.
3245
3246 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3247
3248 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3249 constructors and set methods so value_range_kind is the last
3250 argument and defaults to VR_RANGE.
3251 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3252 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3253 * ipa-prop.c (ipa_get_value_range): Same.
3254 (ipa_compute_jump_functions_for_edge): Same.
3255 * range-op.cc (value_range_from_overflowed_bounds): Same.
3256 (operator_cast::op1_range): Same.
3257 (range_tests): Same.
3258 * range.cc (range_nonzero): Same.
3259 * tree-ssanames.c (get_range_info): Same.
3260 * tree-vrp.c (value_range_equiv::set): Same.
3261 (value_range::value_range): Same.
3262 (value_range_equiv::value_range_equiv): Same.
3263 (value_range_equiv::update): Same.
3264 (value_range_equiv::deep_copy): Same.
3265 (value_range_equiv::move): Same.
3266 (value_range_equiv::set_undefined): Same.
3267 (value_range::set): Same.
3268 (value_range::set_nonzero): Same.
3269 (ranges_from_anti_range): Same.
3270 (extract_range_from_plus_minus_expr): Same.
3271 (value_range::intersect_helper): Same.
3272 (value_range_equiv::intersect): Same.
3273 (value_range::union_helper): Same.
3274 (value_range_equiv::union_): Same.
3275 (value_range::normalize_symbolics): Same.
3276 (value_range::invert): Same.
3277 (determine_value_range_1): Same.
3278 * tree-vrp.h (class value_range): Same.
3279 (class value_range_equiv): Same.
3280 * vr-values.c (set_value_range_to_nonnegative): Same.
3281 (set_value_range_to_truthvalue): Same.
3282 (vr_values::update_value_range): Same.
3283 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3284 (vr_values::extract_range_from_binary_expr): Same.
3285 (vr_values::extract_range_from_comparison): Same.
3286 (vr_values::extract_range_basic): Same.
3287 (vr_values::adjust_range_with_scev): Same.
3288 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3289 (vr_values::extract_range_from_phi_node): Same.
3290
3291 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3292
3293 * tree-dump.c (dequeue_and_dump): Print first tree operand
3294 for VIEW_CONVERT_EXPR.
3295
3296 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3297
3298 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3299 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3300 * real.c (get_max_float): Add norm_max argument.
3301 * real.h (get_max_float): Update prototype.
3302 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3303 get_max_float.
3304
3305 2019-11-13 Martin Liska <mliska@suse.cz>
3306
3307 * dbgcnt.c (test_sorted_dbg_counters): New.
3308 (dbgcnt_c_tests): Likewise.
3309 * selftest-run-tests.c (selftest::run_tests): Likewise.
3310 * selftest.h (dbgcnt_c_tests): Likewise.
3311
3312 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3313 Martin Jambor <mjambor@suse.cz>
3314
3315 PR ipa/92454
3316 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3317 (identify_dead_nodes): Likewise.
3318
3319 2019-11-13 Martin Liska <mliska@suse.cz>
3320
3321 * ipa-icf.c (sem_function::equals_private): Do not overuse
3322 push/pop_cfun functions.
3323
3324 2019-11-13 Martin Liska <mliska@suse.cz>
3325
3326 * common.opt: Document change of -fdbg-cnt option.
3327 * dbgcnt.c (DEBUG_COUNTER): Remove.
3328 (dbg_cnt_is_enabled): Remove.
3329 (dbg_cnt): Work with new intervals.
3330 (dbg_cnt_set_limit_by_index): Set to new
3331 list of intervals.
3332 (dbg_cnt_set_limit_by_name): Likewise.
3333 (dbg_cnt_process_single_pair): Process new format.
3334 (dbg_cnt_process_opt): Likewise.
3335 (dbg_cnt_list_all_counters): Likewise.
3336 * doc/invoke.texi: Document change of -fdbg-cnt option.
3337 (cmp_tuples): New.
3338
3339 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3340
3341 * ipa-inline.c (ipa_inline): Check that function is defined before
3342 flattening.
3343
3344 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3345 Julian Brown <julian@codesourcery.com>
3346
3347 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3348 flag_worker_partitioning is not set.
3349 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3350 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3351
3352 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3353
3354 * config/gcn/gcn-run.c (heap_region): New global variable.
3355 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3356 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3357 (get_kernarg_region): Move contents to ....
3358 (get_memory_region): .... here.
3359 (get_heap_region): New function.
3360 (init_device): Initialize the heap_region.
3361 (device_malloc): Add region parameter.
3362 (struct kernargs): Move heap ....
3363 (heap): ... to global scope.
3364 (main): Allocate heap separate to kernargs.
3365
3366 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3367
3368 * ipa-prop.c (ipa_print_node_jump_functions,
3369 ipa_print_node_params): Print info about missing summaries.
3370
3371 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3372
3373 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3374 the cost of generating loop masks.
3375
3376 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3377
3378 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3379 New function.
3380 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3381 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3382 (vect_transform_loop): Likewise.
3383 (vect_analyze_loop_costing): Don't take the cost of versioning
3384 into account for the static profitability threshold if it turns
3385 out that no versioning is needed.
3386
3387 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3388
3389 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3390 and target_option_default_node to get -fprofile-generate ctors working
3391 right with LTO.
3392
3393 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3394
3395 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3396 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3397 (vectorizable_assignment): Don't add a cost for nop conversions.
3398 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3399 Likewise.
3400 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3401
3402 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3403
3404 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3405 number of ncopies as an additional argument.
3406 (vectorizable_conversion): Update call accordingly. Use "modifier"
3407 to check whether a conversion is between vectors with the same
3408 numbers of units.
3409
3410 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3411
3412 * config/aarch64/aarch64-sve-builtins-functions.h
3413 (unary_count::expand): Use aarch64_sve_int_mode instead of
3414 mode_for_int_vector.
3415
3416 2019-11-13 Martin Liska <mliska@suse.cz>
3417
3418 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3419
3420 2019-11-13 Martin Liska <mliska@suse.cz>
3421
3422 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3423 Remove call to finalize_options_struct.
3424
3425 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3426
3427 PR target/92055
3428 * config/avr/t-avr (avr-mcus): Do not depend on
3429 $(srcdir)/config/avr/t-multilib.
3430
3431 2019-11-13 Richard Biener <rguenther@suse.de>
3432
3433 PR tree-optimization/92473
3434 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3435 direct optab reduction in the correct type.
3436
3437 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3438
3439 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3440 hexadecimal literal.
3441
3442 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3443
3444 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3445 UNORDERED if !HONOR_NANS (DFmode).
3446 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3447 if !HONOR_NANS (<MODE>mode).
3448
3449 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3450
3451 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3452 (ipcp_verify_propagated_values): Likewise.
3453 (propagate_constants_across_call): Likewise.
3454 (propagate_constants_topo): Likewise.
3455 (ipcp_propagate_stage): Likewise.
3456
3457 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3458
3459 PR ipa/92471
3460 * ipa-profile.c (check_argument_count): Break out from ...;
3461 watch for missing summaries.
3462 (ipa_profile): Here.
3463
3464 2019-11-12 Martin Sebor <msebor@redhat.com>
3465
3466 PR tree-optimization/92412
3467 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3468 extern variables.
3469
3470 2019-11-12 Martin Sebor <msebor@redhat.com>
3471
3472 PR middle-end/83688
3473 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3474 (directive::argno): New member.
3475 (format_result::aliases, format_result::alias_count): New data members.
3476 (format_result::append_alias): New member function.
3477 (fmtresult::dst_offset): New data member.
3478 (pass_sprintf_length::call_info::dst_origin): New data member.
3479 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3480 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3481 (get_origin_and_offset): Same.
3482 (format_string): Call it.
3483 (format_directive): Call append_alias and set directive argument
3484 number.
3485 (maybe_warn_overlap): New function.
3486 (pass_sprintf_length::compute_format_length): Call it.
3487 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3488 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3489
3490 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3491
3492 PR rtl-optimization/92430
3493 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3494 dominance info at the beginning.
3495
3496 2019-11-12 Richard Biener <rguenther@suse.de>
3497
3498 PR tree-optimization/92460
3499 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3500 expression before gimplifying.
3501
3502 2019-11-12 Richard Biener <rguenther@suse.de>
3503
3504 PR tree-optimization/92461
3505 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3506 stmt after propagation.
3507
3508 2019-11-12 Martin Liska <mliska@suse.cz>
3509
3510 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3511 Use SET_OPTION_IF_UNSET.
3512 (ix86_option_override_internal): Likewise.
3513 * opts.c (default_options_optimization): Likewise.
3514 (finish_options): Likewise.
3515 (enable_fdo_optimizations): Likewise.
3516 (common_handle_option): Likewise.
3517
3518 2019-11-12 Martin Liska <mliska@suse.cz>
3519
3520 * common/common-target.def: Remove option_validate_param and
3521 option_default_params.
3522 * common/common-targhooks.c (default_option_validate_param):
3523 Remove.
3524 * common/common-targhooks.h (default_option_validate_param):
3525 Remove.
3526 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3527 Remove usage of this.
3528 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3529 (aarch64_option_validate_param): Likewise.
3530 (aarch64_option_default_params): Likewise
3531 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3532 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3533 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3534 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3535 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3536 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3537 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3538 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3539 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3540 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3541 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3542 guard_size here.
3543 * doc/tm.texi: Remove option_default_params and option_validate_param.
3544 * doc/tm.texi.in: Likewise.
3545
3546 2019-11-12 Martin Liska <mliska@suse.cz>
3547
3548 * common/common-target.def:
3549 Do not mention set_default_param_value
3550 and set_param_value.
3551 * doc/tm.texi: Likewise.
3552
3553 2019-11-12 Martin Liska <mliska@suse.cz>
3554
3555 * common.opt: Remove param_values.
3556 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3557 Remove finalize_options_struct.
3558 * gcc.c (driver::decode_argv): Do not call global_init_params
3559 and finish_params.
3560 (driver::finalize): Do not call params_c_finalize
3561 and finalize_options_struct.
3562 * opt-suggestions.c (option_proposer::get_completions): Remove
3563 special casing of params.
3564 (option_proposer::find_param_completions): Remove.
3565 (test_completion_partial_match): Update expected output.
3566 * opt-suggestions.h: Remove find_param_completions.
3567 * opts-common.c (add_misspelling_candidates): Add
3568 --param with a space.
3569 * opts.c (handle_param): Remove.
3570 (init_options_struct):. Remove init_options_struct and
3571 similar calls.
3572 (finalize_options_struct): Remove.
3573 (common_handle_option): Use SET_OPTION_IF_UNSET.
3574 * opts.h (finalize_options_struct): Remove.
3575 * toplev.c (general_init): Do not call global_init_params.
3576 (toplev::finalize): Do not call params_c_finalize and
3577 finalize_options_struct.
3578
3579 2019-11-12 Martin Liska <mliska@suse.cz>
3580
3581 * Makefile.in: Remove PARAMS_H and params.list
3582 and params.options.
3583 * params-enum.h: Remove.
3584 * params-list.h: Remove.
3585 * params-options.h: Remove.
3586 * params.c: Remove.
3587 * params.def: Remove.
3588 * params.h: Remove.
3589 * asan.c: Do not include params.h.
3590 * auto-profile.c: Likewise.
3591 * bb-reorder.c: Likewise.
3592 * builtins.c: Likewise.
3593 * cfgcleanup.c: Likewise.
3594 * cfgexpand.c: Likewise.
3595 * cfgloopanal.c: Likewise.
3596 * cgraph.c: Likewise.
3597 * combine.c: Likewise.
3598 * common/config/aarch64/aarch64-common.c: Likewise.
3599 * common/config/gcn/gcn-common.c: Likewise.
3600 * common/config/ia64/ia64-common.c: Likewise.
3601 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3602 * common/config/rs6000/rs6000-common.c: Likewise.
3603 * common/config/sh/sh-common.c: Likewise.
3604 * config/aarch64/aarch64.c: Likewise.
3605 * config/alpha/alpha.c: Likewise.
3606 * config/arm/arm.c: Likewise.
3607 * config/avr/avr.c: Likewise.
3608 * config/csky/csky.c: Likewise.
3609 * config/i386/i386-builtins.c: Likewise.
3610 * config/i386/i386-expand.c: Likewise.
3611 * config/i386/i386-features.c: Likewise.
3612 * config/i386/i386-options.c: Likewise.
3613 * config/i386/i386.c: Likewise.
3614 * config/ia64/ia64.c: Likewise.
3615 * config/rs6000/rs6000-logue.c: Likewise.
3616 * config/rs6000/rs6000.c: Likewise.
3617 * config/s390/s390.c: Likewise.
3618 * config/sparc/sparc.c: Likewise.
3619 * config/visium/visium.c: Likewise.
3620 * coverage.c: Likewise.
3621 * cprop.c: Likewise.
3622 * cse.c: Likewise.
3623 * cselib.c: Likewise.
3624 * dse.c: Likewise.
3625 * emit-rtl.c: Likewise.
3626 * explow.c: Likewise.
3627 * final.c: Likewise.
3628 * fold-const.c: Likewise.
3629 * gcc.c: Likewise.
3630 * gcse.c: Likewise.
3631 * ggc-common.c: Likewise.
3632 * ggc-page.c: Likewise.
3633 * gimple-loop-interchange.cc: Likewise.
3634 * gimple-loop-jam.c: Likewise.
3635 * gimple-loop-versioning.cc: Likewise.
3636 * gimple-ssa-split-paths.c: Likewise.
3637 * gimple-ssa-sprintf.c: Likewise.
3638 * gimple-ssa-store-merging.c: Likewise.
3639 * gimple-ssa-strength-reduction.c: Likewise.
3640 * gimple-ssa-warn-alloca.c: Likewise.
3641 * gimple-ssa-warn-restrict.c: Likewise.
3642 * graphite-isl-ast-to-gimple.c: Likewise.
3643 * graphite-optimize-isl.c: Likewise.
3644 * graphite-scop-detection.c: Likewise.
3645 * graphite-sese-to-poly.c: Likewise.
3646 * graphite.c: Likewise.
3647 * haifa-sched.c: Likewise.
3648 * hsa-gen.c: Likewise.
3649 * ifcvt.c: Likewise.
3650 * ipa-cp.c: Likewise.
3651 * ipa-fnsummary.c: Likewise.
3652 * ipa-inline-analysis.c: Likewise.
3653 * ipa-inline.c: Likewise.
3654 * ipa-polymorphic-call.c: Likewise.
3655 * ipa-profile.c: Likewise.
3656 * ipa-prop.c: Likewise.
3657 * ipa-split.c: Likewise.
3658 * ipa-sra.c: Likewise.
3659 * ira-build.c: Likewise.
3660 * ira-conflicts.c: Likewise.
3661 * loop-doloop.c: Likewise.
3662 * loop-invariant.c: Likewise.
3663 * loop-unroll.c: Likewise.
3664 * lra-assigns.c: Likewise.
3665 * lra-constraints.c: Likewise.
3666 * modulo-sched.c: Likewise.
3667 * opt-suggestions.c: Likewise.
3668 * opts.c: Likewise.
3669 * postreload-gcse.c: Likewise.
3670 * predict.c: Likewise.
3671 * reload.c: Likewise.
3672 * reorg.c: Likewise.
3673 * resource.c: Likewise.
3674 * sanopt.c: Likewise.
3675 * sched-deps.c: Likewise.
3676 * sched-ebb.c: Likewise.
3677 * sched-rgn.c: Likewise.
3678 * sel-sched-ir.c: Likewise.
3679 * sel-sched.c: Likewise.
3680 * shrink-wrap.c: Likewise.
3681 * stmt.c: Likewise.
3682 * targhooks.c: Likewise.
3683 * toplev.c: Likewise.
3684 * tracer.c: Likewise.
3685 * trans-mem.c: Likewise.
3686 * tree-chrec.c: Likewise.
3687 * tree-data-ref.c: Likewise.
3688 * tree-if-conv.c: Likewise.
3689 * tree-inline.c: Likewise.
3690 * tree-loop-distribution.c: Likewise.
3691 * tree-parloops.c: Likewise.
3692 * tree-predcom.c: Likewise.
3693 * tree-profile.c: Likewise.
3694 * tree-scalar-evolution.c: Likewise.
3695 * tree-sra.c: Likewise.
3696 * tree-ssa-ccp.c: Likewise.
3697 * tree-ssa-dom.c: Likewise.
3698 * tree-ssa-dse.c: Likewise.
3699 * tree-ssa-ifcombine.c: Likewise.
3700 * tree-ssa-loop-ch.c: Likewise.
3701 * tree-ssa-loop-im.c: Likewise.
3702 * tree-ssa-loop-ivcanon.c: Likewise.
3703 * tree-ssa-loop-ivopts.c: Likewise.
3704 * tree-ssa-loop-manip.c: Likewise.
3705 * tree-ssa-loop-niter.c: Likewise.
3706 * tree-ssa-loop-prefetch.c: Likewise.
3707 * tree-ssa-loop-unswitch.c: Likewise.
3708 * tree-ssa-math-opts.c: Likewise.
3709 * tree-ssa-phiopt.c: Likewise.
3710 * tree-ssa-pre.c: Likewise.
3711 * tree-ssa-reassoc.c: Likewise.
3712 * tree-ssa-sccvn.c: Likewise.
3713 * tree-ssa-scopedtables.c: Likewise.
3714 * tree-ssa-sink.c: Likewise.
3715 * tree-ssa-strlen.c: Likewise.
3716 * tree-ssa-structalias.c: Likewise.
3717 * tree-ssa-tail-merge.c: Likewise.
3718 * tree-ssa-threadbackward.c: Likewise.
3719 * tree-ssa-threadedge.c: Likewise.
3720 * tree-ssa-uninit.c: Likewise.
3721 * tree-switch-conversion.c: Likewise.
3722 * tree-vect-data-refs.c: Likewise.
3723 * tree-vect-loop.c: Likewise.
3724 * tree-vect-slp.c: Likewise.
3725 * tree-vrp.c: Likewise.
3726 * tree.c: Likewise.
3727 * value-prof.c: Likewise.
3728 * var-tracking.c: Likewise.
3729
3730 2019-11-12 Martin Liska <mliska@suse.cz>
3731
3732 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3733 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3734 macro.
3735 (asan_sanitize_allocas_p): Likewise.
3736 (asan_emit_stack_protection): Likewise.
3737 (asan_protect_global): Likewise.
3738 (instrument_derefs): Likewise.
3739 (instrument_builtin_call): Likewise.
3740 (asan_expand_mark_ifn): Likewise.
3741 * auto-profile.c (auto_profile): Likewise.
3742 * bb-reorder.c (copy_bb_p): Likewise.
3743 (duplicate_computed_gotos): Likewise.
3744 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3745 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3746 (try_crossjump_bb): Likewise.
3747 * cfgexpand.c (defer_stack_allocation): Likewise.
3748 (stack_protect_classify_type): Likewise.
3749 (pass_expand::execute): Likewise.
3750 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3751 (estimate_reg_pressure_cost): Likewise.
3752 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3753 * combine.c (combine_instructions): Likewise.
3754 (record_value_for_reg): Likewise.
3755 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3756 (aarch64_option_default_params): Likewise.
3757 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3758 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3759 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3760 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3761 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3762 (aarch64_allocate_and_probe_stack_space): Likewise.
3763 (aarch64_expand_epilogue): Likewise.
3764 (aarch64_override_options_internal): Likewise.
3765 * config/alpha/alpha.c (alpha_option_override): Likewise.
3766 * config/arm/arm.c (arm_option_override): Likewise.
3767 (arm_valid_target_attribute_p): Likewise.
3768 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3769 * config/i386/i386.c (get_probe_interval): Likewise.
3770 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3771 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3772 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3773 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3774 (get_stack_clash_protection_guard_size): Likewise.
3775 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3776 * config/s390/s390.c (allocate_stack_space): Likewise.
3777 (s390_emit_prologue): Likewise.
3778 (s390_option_override_internal): Likewise.
3779 * config/sparc/sparc.c (sparc_option_override): Likewise.
3780 * config/visium/visium.c (visium_option_override): Likewise.
3781 * coverage.c (get_coverage_counts): Likewise.
3782 (coverage_compute_profile_id): Likewise.
3783 (coverage_begin_function): Likewise.
3784 (coverage_end_function): Likewise.
3785 * cse.c (cse_find_path): Likewise.
3786 (cse_extended_basic_block): Likewise.
3787 (cse_main): Likewise.
3788 * cselib.c (cselib_invalidate_mem): Likewise.
3789 * dse.c (dse_step1): Likewise.
3790 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3791 (get_max_insn_count): Likewise.
3792 (make_debug_insn_raw): Likewise.
3793 (init_emit): Likewise.
3794 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3795 * final.c (compute_alignments): Likewise.
3796 * fold-const.c (fold_range_test): Likewise.
3797 (fold_truth_andor): Likewise.
3798 (tree_single_nonnegative_warnv_p): Likewise.
3799 (integer_valued_real_single_p): Likewise.
3800 * gcse.c (want_to_gcse_p): Likewise.
3801 (prune_insertions_deletions): Likewise.
3802 (hoist_code): Likewise.
3803 (gcse_or_cprop_is_too_expensive): Likewise.
3804 * ggc-common.c: Likewise.
3805 * ggc-page.c (ggc_collect): Likewise.
3806 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3807 (MAX_DATAREFS): Likewise.
3808 (OUTER_STRIDE_RATIO): Likewise.
3809 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3810 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3811 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3812 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3813 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3814 (imm_store_chain_info::output_merged_store): Likewise.
3815 (pass_store_merging::process_store): Likewise.
3816 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3817 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3818 (scop_to_isl_ast): Likewise.
3819 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3820 (optimize_isl): Likewise.
3821 * graphite-scop-detection.c (build_scops): Likewise.
3822 * haifa-sched.c (set_modulo_params): Likewise.
3823 (rank_for_schedule): Likewise.
3824 (model_add_to_worklist): Likewise.
3825 (model_promote_insn): Likewise.
3826 (model_choose_insn): Likewise.
3827 (queue_to_ready): Likewise.
3828 (autopref_multipass_dfa_lookahead_guard): Likewise.
3829 (schedule_block): Likewise.
3830 (sched_init): Likewise.
3831 * hsa-gen.c (init_prologue): Likewise.
3832 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3833 (cond_move_process_if_block): Likewise.
3834 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3835 (merge_agg_lats_step): Likewise.
3836 (devirtualization_time_bonus): Likewise.
3837 (hint_time_bonus): Likewise.
3838 (incorporate_penalties): Likewise.
3839 (good_cloning_opportunity_p): Likewise.
3840 (ipcp_propagate_stage): Likewise.
3841 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3842 (set_switch_stmt_execution_predicate): Likewise.
3843 (analyze_function_body): Likewise.
3844 (compute_fn_summary): Likewise.
3845 * ipa-inline-analysis.c (estimate_growth): Likewise.
3846 * ipa-inline.c (caller_growth_limits): Likewise.
3847 (inline_insns_single): Likewise.
3848 (inline_insns_auto): Likewise.
3849 (can_inline_edge_by_limits_p): Likewise.
3850 (want_early_inline_function_p): Likewise.
3851 (big_speedup_p): Likewise.
3852 (want_inline_small_function_p): Likewise.
3853 (want_inline_self_recursive_call_p): Likewise.
3854 (edge_badness): Likewise.
3855 (recursive_inlining): Likewise.
3856 (compute_max_insns): Likewise.
3857 (early_inliner): Likewise.
3858 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3859 * ipa-profile.c (ipa_profile): Likewise.
3860 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3861 (ipa_analyze_node): Likewise.
3862 (ipcp_transform_function): Likewise.
3863 * ipa-split.c (consider_split): Likewise.
3864 * ipa-sra.c (allocate_access): Likewise.
3865 (process_scan_results): Likewise.
3866 (ipa_sra_summarize_function): Likewise.
3867 (pull_accesses_from_callee): Likewise.
3868 * ira-build.c (loop_compare_func): Likewise.
3869 (mark_loops_for_removal): Likewise.
3870 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3871 * loop-doloop.c (doloop_optimize): Likewise.
3872 * loop-invariant.c (gain_for_invariant): Likewise.
3873 (move_loop_invariants): Likewise.
3874 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3875 (decide_unroll_runtime_iterations): Likewise.
3876 (decide_unroll_stupid): Likewise.
3877 (expand_var_during_unrolling): Likewise.
3878 * lra-assigns.c (spill_for): Likewise.
3879 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3880 * modulo-sched.c (sms_schedule): Likewise.
3881 (DFA_HISTORY): Likewise.
3882 * opts.c (default_options_optimization): Likewise.
3883 (finish_options): Likewise.
3884 (common_handle_option): Likewise.
3885 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3886 (if): Likewise.
3887 * predict.c (get_hot_bb_threshold): Likewise.
3888 (maybe_hot_count_p): Likewise.
3889 (probably_never_executed): Likewise.
3890 (predictable_edge_p): Likewise.
3891 (predict_loops): Likewise.
3892 (expr_expected_value_1): Likewise.
3893 (tree_predict_by_opcode): Likewise.
3894 (handle_missing_profiles): Likewise.
3895 * reload.c (find_equiv_reg): Likewise.
3896 * reorg.c (redundant_insn): Likewise.
3897 * resource.c (mark_target_live_regs): Likewise.
3898 (incr_ticks_for_insn): Likewise.
3899 * sanopt.c (pass_sanopt::execute): Likewise.
3900 * sched-deps.c (sched_analyze_1): Likewise.
3901 (sched_analyze_2): Likewise.
3902 (sched_analyze_insn): Likewise.
3903 (deps_analyze_insn): Likewise.
3904 * sched-ebb.c (schedule_ebbs): Likewise.
3905 * sched-rgn.c (find_single_block_region): Likewise.
3906 (too_large): Likewise.
3907 (haifa_find_rgns): Likewise.
3908 (extend_rgns): Likewise.
3909 (new_ready): Likewise.
3910 (schedule_region): Likewise.
3911 (sched_rgn_init): Likewise.
3912 * sel-sched-ir.c (make_region_from_loop): Likewise.
3913 * sel-sched-ir.h (MAX_WS): Likewise.
3914 * sel-sched.c (process_pipelined_exprs): Likewise.
3915 (sel_setup_region_sched_flags): Likewise.
3916 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3917 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3918 * toplev.c (print_version): Likewise.
3919 (process_options): Likewise.
3920 * tracer.c (tail_duplicate): Likewise.
3921 * trans-mem.c (tm_log_add): Likewise.
3922 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3923 * tree-data-ref.c (split_constant_offset): Likewise.
3924 (compute_all_dependences): Likewise.
3925 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3926 * tree-inline.c (remap_gimple_stmt): Likewise.
3927 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3928 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3929 (create_parallel_loop): Likewise.
3930 * tree-predcom.c (determine_unroll_factor): Likewise.
3931 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3932 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3933 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3934 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3935 (dse_optimize_redundant_stores): Likewise.
3936 (dse_classify_store): Likewise.
3937 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3938 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3939 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3940 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3941 (try_peel_loop): Likewise.
3942 (tree_unroll_loops_completely): Likewise.
3943 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3944 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3945 (MAX_CONSIDERED_GROUPS): Likewise.
3946 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3947 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3948 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3949 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3950 (L1_CACHE_SIZE_BYTES): Likewise.
3951 (L2_CACHE_SIZE_BYTES): Likewise.
3952 (should_issue_prefetch_p): Likewise.
3953 (schedule_prefetches): Likewise.
3954 (determine_unroll_factor): Likewise.
3955 (volume_of_references): Likewise.
3956 (add_subscript_strides): Likewise.
3957 (self_reuse_distance): Likewise.
3958 (mem_ref_count_reasonable_p): Likewise.
3959 (insn_to_prefetch_ratio_too_small_p): Likewise.
3960 (loop_prefetch_arrays): Likewise.
3961 (tree_ssa_prefetch_arrays): Likewise.
3962 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3963 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3964 (convert_mult_to_fma): Likewise.
3965 (math_opts_dom_walker::after_dom_children): Likewise.
3966 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3967 (hoist_adjacent_loads): Likewise.
3968 (gate_hoist_loads): Likewise.
3969 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3970 (compute_partial_antic_aux): Likewise.
3971 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3972 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3973 (vn_reference_lookup): Likewise.
3974 (do_rpo_vn): Likewise.
3975 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3976 * tree-ssa-sink.c (select_best_block): Likewise.
3977 * tree-ssa-strlen.c (new_stridx): Likewise.
3978 (new_addr_stridx): Likewise.
3979 (get_range_strlen_dynamic): Likewise.
3980 (class ssa_name_limit_t): Likewise.
3981 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3982 (create_variable_info_for_1): Likewise.
3983 (init_alias_vars): Likewise.
3984 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3985 (tail_merge_optimize): Likewise.
3986 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3987 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3988 (thread_jumps::find_jump_threads_backwards): Likewise.
3989 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3990 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3991 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3992 (jump_table_cluster::can_be_handled): Likewise.
3993 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3994 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3995 (param_switch_conversion_branch_ratio): Likewise.
3996 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3997 (vect_enhance_data_refs_alignment): Likewise.
3998 (vect_prune_runtime_alias_test_list): Likewise.
3999 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4000 (vect_get_datarefs_in_loop): Likewise.
4001 (vect_analyze_loop): Likewise.
4002 * tree-vect-slp.c (vect_slp_bb): Likewise.
4003 * tree-vectorizer.h: Likewise.
4004 * tree-vrp.c (find_switch_asserts): Likewise.
4005 (vrp_prop::check_mem_ref): Likewise.
4006 * tree.c (wide_int_to_tree_1): Likewise.
4007 (cache_integer_cst): Likewise.
4008 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4009 (reverse_op): Likewise.
4010 (vt_find_locations): Likewise.
4011
4012 2019-11-12 Martin Liska <mliska@suse.cz>
4013
4014 * Makefile.in: Include params.opt.
4015 * flag-types.h (enum parloops_schedule_type): Add
4016 parloops_schedule_type used in params.opt.
4017 * params.opt: New file.
4018
4019 2019-11-12 Martin Liska <mliska@suse.cz>
4020
4021 * common.opt: Remove --param and --param= options.
4022 * opt-functions.awk: Mark CL_PARAMS for options
4023 that have Param keyword.
4024 * opts-common.c (decode_cmdline_options_to_array):
4025 Replace --param key=value with --param=key=value.
4026 * opts.c (print_filtered_help): Remove special
4027 printing of params.
4028 (print_specific_help): Update title for params.
4029 (common_handle_option): Do not handle OPT__param.
4030 opts.h (SET_OPTION_IF_UNSET): New macro.
4031 * doc/options.texi: Document Param keyword.
4032
4033 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4034 Frederik Harwath <frederik@codesourcery.com>
4035 Thomas Schwinge <thomas@codesourcery.com>
4036
4037 gcc/
4038 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4039 enumeration constant.
4040 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4041 (is_gimple_omp_offloaded): Likewise.
4042 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4043 constant. Adjust the value of ORT_NONE accordingly.
4044 (is_gimple_stmt): Handle OACC_SERIAL.
4045 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4046 (gomp_needs_data_present): Likewise.
4047 (gimplify_adjust_omp_clauses): Likewise.
4048 (gimplify_omp_workshare): Handle OACC_SERIAL.
4049 (gimplify_expr): Likewise.
4050 * omp-expand.c (expand_omp_target):
4051 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4052 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4053 * omp-low.c (is_oacc_parallel): Rename function to...
4054 (is_oacc_parallel_or_serial): ... this.
4055 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4056 (scan_sharing_clauses): Adjust accordingly.
4057 (scan_omp_for): Likewise.
4058 (lower_oacc_head_mark): Likewise.
4059 (convert_from_firstprivate_int): Likewise.
4060 (lower_omp_target): Likewise.
4061 (check_omp_nesting_restrictions): Handle
4062 GF_OMP_TARGET_KIND_OACC_SERIAL.
4063 (lower_oacc_reductions): Likewise.
4064 (lower_omp_target): Likewise.
4065 * tree.def (OACC_SERIAL): New tree code.
4066 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4067
4068 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4069
4070 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4071
4072 PR target/92449
4073 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4074 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4075
4076 PR tree-optimization/92452
4077 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4078 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4079 MINUS_EXPR on it.
4080
4081 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4082
4083 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4084 safelen with 0.
4085
4086 2019-11-12 Alan Modra <amodra@gmail.com>
4087
4088 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4089 element of unspec vec.
4090 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4091 PC-relative TLS.
4092 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4093 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4094 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4095 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4096
4097 2019-11-12 Alan Modra <amodra@gmail.com>
4098
4099 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4100 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4101 (IS_NOMARK_TLSGETADDR): Likewise.
4102 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4103 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4104 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4105 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4106 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4107 (rs6000_indirect_call_template_1): Likewise.
4108 (rs6000_pltseq_template): Likewise.
4109 (rs6000_opt_vars): Remove "tls-markers" entry.
4110 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4111 with TARGET_ELF.
4112 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4113 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4114 (pltseq_plt_pcrel<mode>): Likewise.
4115 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4116 (call_value_local64): Likewise.
4117 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4118 output and length attribute sub-expression.
4119 (call_value_nonlocal_sysv<mode>),
4120 (call_value_nonlocal_sysv_secure<mode>),
4121 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4122 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4123 (call_value_indirect_pcrel<mode>): Likewise.
4124 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4125 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4126 * configure: Regenerate.
4127 * config.in: Regenerate.
4128
4129 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4130
4131 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4132 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4133 address being a prefixed load/store.
4134 (stack_protect_testdi): Deal with either address being a prefixed
4135 load.
4136
4137 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4138
4139 PR bootstrap/92433
4140 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4141 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4142 std::swap.
4143
4144 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4145
4146 PR tree-optimization/92420
4147 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4148 up file.
4149 (get_group_load_store_type): Use it for reversed SLP accesses.
4150
4151 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4152
4153 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4154 summary.
4155 (ipcp_transformation_t::duplicate): Break out from ...
4156 (ipa_node_params_t::duplicate): ... here; add copying of agg
4157 replacements.
4158 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4159 (ipcp_transformation_t): Add duplicate.
4160
4161 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4162
4163 PR fortran/91828
4164 * doc/install.texi: Document that the minimum MPFR version is
4165 3.1.0.
4166
4167 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4168
4169 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4170 use new register constraint letters.
4171
4172 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4173
4174 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4175 as well, if interesting recover the symbol and re-legitimize the
4176 pic address.
4177
4178 2019-11-11 Martin Liska <mliska@suse.cz>
4179
4180 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4181 alphabetically.
4182
4183 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4184
4185 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4186 account when checking if there are enough iterations to vectorize
4187 epilogue.
4188
4189 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4190 Kwok Cheung Yeung <kcy@codesourcery.com>
4191
4192 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4193 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4194 (LANG_HOOKS_DECLS): Rename also here.
4195 * langhooks.h (lang_hooks_for_decls): Rename
4196 omp_is_optional_argument to omp_check_optional_argument; take
4197 additional bool argument.
4198 * omp-general.h (omp_check_optional_argument): Likewise.
4199 * omp-general.h (omp_check_optional_argument): Likewise.
4200 * omp-low.c (lower_omp_target): Update calls; handle absent
4201 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4202
4203 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4204
4205 PR target/87833
4206 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4207 -fPIC and -shared the last to create offload image.
4208
4209 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4210
4211 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4212 of 'offset'.
4213
4214 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4215 (config.status): Use/depend on it.
4216 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4217 * configure: Regenerate.
4218
4219 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4220
4221 PR tree-optimization/88760
4222 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4223 * gcc/common/config/rs6000/rs6000-common.c
4224 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4225 Turn on -funroll-loops and -munroll-only-small-loops.
4226 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4227 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4228 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4229 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4230 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4231 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4232
4233 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4234
4235 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4236 Make scalar_load, vector_load, unaligned_load and
4237 vector_gather_load cost more to conform hardware latency and
4238 insn cost settings.
4239
4240 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4241
4242 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4243 (MACHO_SYMBOL_LINKER_VIS_P): New.
4244
4245 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4246
4247 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4248 registers in eliminable_regset.
4249
4250 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4251
4252 * ipa-inline.c (compute_uninlined_call_time,
4253 compute_inlined_call_time): Take edge frequency as
4254 parameter rather than computing it by itself.
4255 (big_speedup_p, edge_badness): Manually CSE sreal
4256 frequency calculations.
4257
4258 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4259
4260 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4261 case where profiles are same.
4262
4263 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4264
4265 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4266
4267 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4268
4269 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4270 args summaries of inlined edge unless it holds info about
4271 described reference.
4272
4273 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4274
4275 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4276 (*movcc_internal1): Rename to...
4277 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4278
4279 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4280
4281 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4282 (cgraph_node::create_virtual_clone): Copy it.
4283 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4284 summaries.
4285 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4286 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4287 is disabled.
4288 (propagate_constants_across_call): If callee is not analyzed, give up.
4289 (propagate_constants_topo): Lower to bottom latties of all callees of
4290 functions with ipa-cp disabled.
4291 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4292 (cgraph_edge_brings_value_p): Check for availability first.
4293 (create_specialized_node): Set ipcp_clone.
4294 (ipcp_store_bits_results): Check that info is present.
4295 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4296 thunks.
4297 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4298 conservative when callee summary is missing.
4299 (remap_edge_summaries): Lookup call summary only when needed.
4300 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4301 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4302 Use get_create.
4303 (ipa_analyze_node): Use get_create.
4304 (propagate_controlled_uses): Do not propagate when function is not
4305 analyzed.
4306 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4307 (ipa_read_node_info): Use get_create.
4308 * ipa-prop.h (IPA_NODE_REF): Use get.
4309 (IPA_NODE_REF_GET_CREATE): New.
4310
4311 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4312
4313 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4314 on function symbol.
4315
4316 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4317
4318 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4319 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4320 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4321 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4322
4323 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4324
4325 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4326 capping the growth cumulated.
4327 (offline_size): Break out from ...
4328 (estimate_growth): ... here.
4329 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4330 parameters.
4331 (growth_likely_positive): Turn to ...
4332 (growth_positive_p): Re-implement.
4333 * ipa-inline.h (growth_likely_positive): Remove.
4334 (growth_positive_p): Declare.
4335 * ipa-inline.c (want_inline_small_function_p): Use
4336 growth_positive_p.
4337 (want_inline_function_to_all_callers_p): Likewise.
4338
4339 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4340
4341 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4342 calculation of min_size.
4343 (ipa_update_overall_fn_summary): Likewise.
4344
4345 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4346
4347 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4348 estimate_edge_devirt_benefit when not computing hints;
4349 do not compute time when not asked for.
4350 (estimate_calls_size_and_time): Pass NULL hints and time when
4351 these are not computed; do not evaluate hint predicates when these are
4352 not computed.
4353 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4354 frequency.
4355
4356 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4357
4358 PR tree-optimization/92401
4359 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4360 if res_op->code is an expression with code length 1.
4361 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4362 if res_op->code is an expression with code length 2.
4363 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4364 if res_op->code is an expression with code length 3.
4365
4366 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4367
4368 * config/darwin.c (machopic_mcount_stub_name): Validate the
4369 symbol stub name when it is created.
4370 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4371 stub validation.
4372
4373 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4374
4375 * symtab.c: Fix comment typos.
4376 * cgraphunit.c: Likewise.
4377 * cgraph.h: Likewise.
4378 * cgraphclones.c: Likewise.
4379 * cgraph.c: Likewise.
4380 * varpool.c: Likewise.
4381 * tree-ssa-strlen.c: Likewise.
4382 * ipa-sra.c: Likewise.
4383 (scan_expr_access, check_all_callers_for_issues): Fix typo
4384 in a dump message.
4385
4386 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4387
4388 * config/darwin-protos.h: Add include quard.
4389
4390 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4391
4392 * range-op.h (range_operator::fold_range): Return result in a
4393 reference parameter instead of by value.
4394 (range_operator::wi_fold): Same.
4395 * range-op.cc (range_operator::wi_fold): Return result in a reference
4396 parameter instead of by value.
4397 (range_operator::fold_range): Same.
4398 (value_range_from_overflowed_bounds): Same.
4399 (value_range_with_overflow): Same
4400 (create_possibly_reversed_range): Same.
4401 (operator_equal::fold_range): Same.
4402 (operator_not_equal::fold_range): Same.
4403 (operator_lt::fold_range): Same.
4404 (operator_le::fold_range): Same.
4405 (operator_gt::fold_range): Same.
4406 (operator_ge::fold_range): Same.
4407 (operator_plus::wi_fold): Same.
4408 (operator_plus::op1_range): Change call to fold_range.
4409 (operator_plus::op2_range): Change call to fold_range.
4410 (operator_minus::wi_fold): Return result via reference parameter.
4411 (operator_minus::op1_range): Change call to fold_range.
4412 (operator_minus::op2_range): Change call to fold_range.
4413 (operator_min::wi_fold): Return result via reference parameter.
4414 (operator_max::wi_fold): Same.
4415 (cross_product_operator::wi_cross_product): Same.
4416 (operator_mult::wi_fold): Same.
4417 (operator_div::wi_fold): Same.
4418 (operator_div op_floor_div): Fix whitespace.
4419 (operator_exact_divide::op1_range): Change call to fold_range.
4420 (operator_lshift::fold_range): Return result via reference parameter.
4421 (operator_lshift::wi_fold): Same.
4422 (operator_rshift::fold_range): Same.
4423 (operator_rshift::wi_fold): Same.
4424 (operator_cast::fold_range): Same.
4425 (operator_cast::op1_range): Change calls to fold_range.
4426 (operator_logical_and::fold_range): Return result via reference.
4427 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4428 (operator_bitwise_and::wi_fold): Return result via reference.
4429 (operator_logical_or::fold_range): Same.
4430 (operator_bitwise_or::wi_fold): Same.
4431 (operator_bitwise_xor::wi_fold): Same.
4432 (operator_trunc_mod::wi_fold): Same.
4433 (operator_logical_not::fold_range): Same.
4434 (operator_bitwise_not::fold_range): Same.
4435 (operator_bitwise_not::op1_range): Change call to fold_range.
4436 (operator_cst::fold_range): Return result via reference.
4437 (operator_identity::fold_range): Same.
4438 (operator_abs::wi_fold): Same.
4439 (operator_absu::wi_fold): Same.
4440 (operator_negate::fold_range): Same.
4441 (operator_negate::op1_range): Change call to fold_range.
4442 (operator_addr_expr::fold_range): Return result via reference.
4443 (operator_addr_expr::op1_range): Change call to fold_range.
4444 (operator_pointer_plus::wi_fold): Return result via reference.
4445 (operator_pointer_min_max::wi_fold): Same.
4446 (operator_pointer_and::wi_fold): Same.
4447 (operator_pointer_or::wi_fold): Same.
4448 (range_op_handler): Change call to fold_range.
4449 (range_cast): Same.
4450 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4451 fold_range.
4452 (range_fold_unary_symbolics_p): Same.
4453 (range_fold_binary_expr): Same.
4454 (range_fold_unary_expr): Same.
4455
4456 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4457
4458 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4459 vector type as an argument rather than reading it from the
4460 stmt_vec_info.
4461 (vect_create_epilog_for_reduction): Update accordingly.
4462 (vectorizable_reduction): Likewise.
4463 (vect_transform_cycle_phi): Likewise.
4464
4465 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4466
4467 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4468 the comparison codes that make sense for the mode used, and only the
4469 codes that can be done with a single branch instruction.
4470
4471 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4472
4473 PR tree-optimization/92351
4474 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4475 peeling the main loop for alignment, make sure to set the misalignment
4476 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4477
4478 2019-11-08 Richard Biener <rguenther@suse.de>
4479
4480 * dbgcnt.def (ivopts_loop): Add.
4481 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4482 ivopts_loop before optimizing a loop.
4483
4484 2019-11-08 Richard Biener <rguenther@suse.de>
4485
4486 PR ipa/92409
4487 * tree-inline.c (declare_return_variable): Properly handle
4488 type mismatches for the return slot.
4489
4490 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4491
4492 PR target/92095
4493 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4494 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4495 change.
4496 (got_helper_needed): New static variable.
4497 (output_load_pcrel_sym): New function.
4498 (get_pc_thunk_name): Remove after inlining...
4499 (load_got_register): ...here. Rework the initialization of the GOT
4500 register and of the GOT helper.
4501 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4502 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4503 helper must be emitted. Use output_asm_insn instead of fprintf.
4504 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4505 if optimization is enabled.
4506 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4507 by calling output_load_pcrel_sym.
4508
4509 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4510
4511 * tree-sra.c (create_access): Delay disqualifying the base
4512 for poly_int values until we know we have a base.
4513
4514 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4515
4516 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4517 for loops with SIMDUID set. Enable epilogue vectorization for loops
4518 with SIMDLEN set after finding a main loop with a VF that matches it.
4519
4520 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4521
4522 PR target/92038
4523 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4524 value only, return non-NULL if there is a single non-clobber
4525 constituent store even if there are constituent clobbers and return
4526 one of clobber constituent stores if all constituent stores are
4527 clobbers.
4528 (split_group): Handle clobbers.
4529 (imm_store_chain_info::output_merged_store): When computing
4530 bzero_first, look after all clobbers at the start. Don't count
4531 clobber stmts in orig_num_stmts, except if the first orig store is
4532 a clobber covering the whole area and split_stores cover the whole
4533 area, consider equal number of stmts ok. Punt if split_stores
4534 contains only ->orig stores and their number plus number of original
4535 clobbers is equal to original number of stmts. For ->orig, look past
4536 clobbers in the constituent stores.
4537 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4538 stmts.
4539 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4540 rhs.
4541 (store_valid_for_store_merging_p): Allow clobber stmts.
4542 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4543
4544 PR c++/92384
4545 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4546 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4547 slot.
4548 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4549 force creation of a unique data.stack_parm slot.
4550
4551 2019-11-08 Richard Biener <rguenther@suse.de>
4552
4553 * genmatch.c (expr::gen_transform): Use the resimplify
4554 member function instead of hard-coding the gimple_resimplifyN variant.
4555 (dt_simplify::gen_1): Likewise.
4556
4557 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4558
4559 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4560 POLY_INT_CST.
4561
4562 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4563
4564 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4565 instead of INTEGER_CST.
4566
4567 2019-11-08 Richard Biener <rguenther@suse.de>
4568
4569 PR tree-optimization/92324
4570 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4571 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4572 sign-conversions as necessary.
4573 (vectorizable_reduction): Reject conversions in the chain
4574 that are not sign-conversions, base analysis on a non-converting
4575 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4576 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4577 for debug stmts.
4578 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4579 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4580
4581 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4582
4583 PR target/92055
4584 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4585 Fix a missing '-' when displaying these options in the
4586 help screen.
4587
4588 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4589
4590 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4591
4592 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4593
4594 * config/aarch64/aarch64-builtins.c
4595 (aarch64_builtin_vectorized_function): Remove bswap handling.
4596
4597 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4598
4599 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4600 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4601 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4602 Treat the vector types as indivisible.
4603
4604 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4605
4606 * optabs.def (gather_load_optab, mask_gather_load_optab)
4607 (scatter_store_optab, mask_scatter_store_optab): Turn into
4608 conversion optabs, with the offset mode given explicitly.
4609 * doc/md.texi: Update accordingly.
4610 * config/aarch64/aarch64-sve-builtins-base.cc
4611 (svld1_gather_impl::expand): Likewise.
4612 (svst1_scatter_impl::expand): Likewise.
4613 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4614 (expand_scatter_store_optab_fn): Likewise.
4615 (direct_gather_load_optab_supported_p): Likewise.
4616 (direct_scatter_store_optab_supported_p): Likewise.
4617 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4618 to be argument 4.
4619 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4620 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4621 argument with the offset vector type. Require the two vector
4622 types to have the same number of elements but allow their element
4623 sizes to be different. Treat the optabs as conversion optabs.
4624 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4625 prototype accordingly.
4626 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4627 (supports_vec_convert_optab_p): ...this new function.
4628 (supports_vec_gather_load_p): Update accordingly.
4629 (supports_vec_scatter_store_p): Likewise.
4630 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4631 Replace the offset sign and bits parameters with a scalar type tree.
4632 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4633 Pass back the offset vector type instead of the scalar element type.
4634 Allow the offset to be wider than the memory elements. Search for
4635 an offset type that the target supports, stopping once we've
4636 reached the maximum of the element size and pointer size.
4637 Update call to internal_gather_scatter_fn_supported_p.
4638 (vect_check_gather_scatter): Update calls accordingly.
4639 When testing a new scale before knowing the final offset type,
4640 check whether the scale is supported for any signed or unsigned
4641 offset type. Check whether the target supports the source and
4642 target types of a conversion before deciding whether to look
4643 through the conversion. Record the chosen offset_vectype.
4644 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4645 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4646 directly from the gs_info's offset_vectype instead. Pass a zero
4647 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4648 * tree-vect-stmts.c (check_load_store_masking): Update call to
4649 internal_gather_scatter_fn_supported_p, passing the offset vector
4650 type recorded in the gs_info.
4651 (vect_truncate_gather_scatter_offset): Update call to
4652 vect_check_gather_scatter, leaving it to search for a valid
4653 offset vector type.
4654 (vect_use_strided_gather_scatters_p): Convert the offset to the
4655 element type of the gs_info's offset_vectype.
4656 (vect_get_gather_scatter_ops): Get the offset vector type directly
4657 from the gs_info.
4658 (vect_get_strided_load_store_ops): Likewise.
4659 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4660 and IFN_MASK_GATHER_LOAD.
4661 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4662 (gather_load<mode><v_int_equiv>): ...this.
4663 (mask_gather_load<mode>): Rename to...
4664 (mask_gather_load<mode><v_int_equiv>): ...this.
4665 (scatter_store<mode>): Rename to...
4666 (scatter_store<mode><v_int_equiv>): ...this.
4667 (mask_scatter_store<mode>): Rename to...
4668 (mask_scatter_store<mode><v_int_equiv>): ...this.
4669
4670 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4671
4672 PR target/92132
4673 * config/rs6000/predicates.md
4674 (signed_or_equality_comparison_operator): New predicate.
4675 (unsigned_or_equality_comparison_operator): Likewise.
4676 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4677 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4678 * config/rs6000/vector.md
4679 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4680 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4681 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4682 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4683 vector modes and same-size integer vector modes.
4684 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4685 (vector_lt<mode> for VEC_F): New expand.
4686 (vector_le<mode> for VEC_F): Likewise.
4687 (vector_ne<mode> for VEC_F): Likewise.
4688 (vector_unge<mode> for VEC_F): Likewise.
4689 (vector_ungt<mode> for VEC_F): Likewise.
4690 (vector_unle<mode> for VEC_F): Likewise.
4691 (vector_unlt<mode> for VEC_F): Likewise.
4692 (vector_uneq<mode>): Expose name.
4693 (vector_ltgt<mode>): Likewise.
4694 (vector_unordered<mode>): Likewise.
4695 (vector_ordered<mode>): Likewise.
4696
4697 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4698
4699 PR target/92295
4700 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4701 Enhance ix86_expand_vector_init_concat.
4702
4703 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4704
4705 * doc/invoke.texi (-Wold-style-definition): Document () not being
4706 considered an old-style definition for C2x.
4707
4708 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4709
4710 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4711 Enhance comment.
4712 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4713 insn patterns using ldcw instruction.
4714 (memory_barrier): Remove insn pattern using sync instruction.
4715 * config/pa/pa.opt (coherent-ldcw): New option.
4716 (ordered): New option.
4717
4718 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4719
4720 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4721 valid conditions.
4722
4723 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4724
4725 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4726 typo - mistmatch -> mismatch.
4727 * ipa-profile.c (ipa_profile): Likewise.
4728 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4729 - mistmatch -> mismatch.
4730
4731 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4732
4733 * simplify-rtx.c (comparison_to_mask): New function.
4734 (mask_to_comparison): New function.
4735 (simplify_logical_relational_operation): New function.
4736 (simplify_binary_operation_1): Call
4737 simplify_logical_relational_operation.
4738
4739 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4740
4741 PR other/92090
4742 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4743 modes for integer constants.
4744
4745 2019-11-07 Jan Hubicka <jh@suse.cz>
4746
4747 PR ipa/92406
4748 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4749 summary.
4750
4751 2019-11-07 Jan Hubicka <jh@suse.cz>
4752
4753 * optc-save-gen.awk: Generate cl_target_option_free
4754 and cl_optimization_option_free.
4755 * opth-en.awk: Declare cl_target_option_free
4756 and cl_optimization_option_free.
4757 * tree.c (free_node): Use it.
4758
4759 2019-11-06 Jan Hubicka <jh@suse.cz>
4760
4761 * lto-streamer-in.c: Include alloc-pool.h.
4762 (freeing_string_slot_hasher): Remove.
4763 (string_slot_allocator): New object allocator.
4764 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4765 (file_name_obstack): New obstack.
4766 (canon_file_name): Allocate in obstack and allocator.
4767 (lto_reader_init): Initialize obstack and allocator.
4768 (lto_free_file_name_hash): New function.
4769 * lto-streamer.h (lto_free_file_name_hash): New.
4770
4771 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4772
4773 PR tree-optimization/89134
4774 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4775 * params.def: Add min-loop-cond-split-prob.
4776 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4777 outside checks on loop into the function.
4778 (split_info): New class.
4779 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4780 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4781 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4782 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4783 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4784 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4785 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4786 (split_loop_on_cond): Likewise.
4787 (tree_ssa_split_loops): Add loop split on conditional statement.
4788
4789 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4790
4791 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4792 pattern.
4793
4794 2019-11-07 Richard Biener <rguenther@suse.de>
4795
4796 PR tree-optimization/92405
4797 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4798 restrict lane-reducing ops to single stmt chains.
4799
4800 2019-11-07 Martin Jambor <mjambor@suse.cz>
4801
4802 PR lto/70929
4803 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4804 * cgraph.h (gimple_check_call_matching_types): Remove
4805 * cgraph.c (gimple_check_call_args): Likewise.
4806 (gimple_check_call_matching_types): Likewise.
4807 (symbol_table::create_edge): Do not call
4808 gimple_check_call_matching_types.
4809 (cgraph_edge::make_direct): Likewise.
4810 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4811 * value-prof.h (check_ic_target): Remove.
4812 * value-prof.c (check_ic_target): Remove.
4813 (gimple_ic_transform): Do nat call check_ic_target.
4814 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4815 (afdo_indirect_call): Likewise.
4816 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4817 gimple_check_call_matching_types.
4818 * ipa-inline.c (early_inliner): Likewise.
4819
4820 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4821
4822 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4823 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4824 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4825 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4826 * config/arm/iterators.md (USSAT16): New int_iterator.
4827 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4828 (sup): Likewise.
4829 * config/arm/predicates.md (ssat16_imm): New predicate.
4830 (usat16_imm): Likewise.
4831 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4832
4833 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4834
4835 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4836 New define_insns.
4837 (arm_<simd32_op>): New define_expands.
4838 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4839 __smuad, __smuadx): Define.
4840 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4841 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4842 (SIMD32_BINOP_Q): Likewise.
4843 (simd32_op): Handle the above.
4844 * config/arm/unspecs.md: Define unspecs for the above.
4845
4846 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4847
4848 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4849 * config/arm/arm.md (APSRGE_REGNUM): Define.
4850 (arm_<simd32_op>): New define_insn.
4851 (arm_sel): Likewise.
4852 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4853 (CALL_USED_REGISTERS): Likewise.
4854 (REG_ALLOC_ORDER): Likewise.
4855 (FIRST_PSEUDO_REGISTER): Update value.
4856 (ARM_GE_BITS_READ): Define.
4857 * config/arm/arm.c (arm_conditional_register_usage): Clear
4858 APSRGE_REGNUM from operand_reg_set.
4859 (arm_ge_bits_access): Define.
4860 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4861 ARM_BUIILTIN_sel.
4862 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4863 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4864 FAIL if ARM_GE_BITS_READ.
4865 (*arm_add<mode>3): New define_insn.
4866 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4867 (*arm_sub<mode>3): New define_insn.
4868 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4869 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4870 __usub16): Define.
4871 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4872 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4873 (simd32_op): Handle the above.
4874 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4875 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4876 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4877 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4878
4879 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4880
4881 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4882 (arm_smlabb): New define_expand.
4883 (*maddhisi4tb): Rename to...
4884 (maddhisi4tb): ... This.
4885 (*maddhisi4tt): Rename to...
4886 (maddhisi4tt): ... This.
4887 (arm_smlatb_setq): New define_insn.
4888 (arm_smlatb): New define_expand.
4889 (arm_smlatt_setq): New define_insn.
4890 (arm_smlatt): New define_expand.
4891 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4892 (arm_<smlaw_op>): New define_expand.
4893 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4894 __smlawb, __smlawt): Define.
4895 * config/arm_acle_builtins.def: Define builtins for the above.
4896 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4897 (slaw_op): New int_attribute.
4898 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4899
4900 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4901
4902 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4903 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4904 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4905 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4906 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4907 (ss_op): New code_attr.
4908
4909 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4910
4911 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4912 * config/arm/arm.md (APSRQ_REGNUM): Define.
4913 (add_setq): New define_subst.
4914 (add_clobber_q_name): New define_subst_attr.
4915 (add_clobber_q_pred): Likewise.
4916 (maddhisi4): Change to define_expand. Split into mult and add if
4917 ARM_Q_BIT_READ.
4918 (arm_maddhisi4): New define_insn.
4919 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4920 (*maddhisi4tt): Likewise.
4921 (arm_ssat): New define_expand.
4922 (arm_usat): Likewise.
4923 (arm_get_apsr): New define_insn.
4924 (arm_set_apsr): Likewise.
4925 (arm_saturation_occurred): New define_expand.
4926 (arm_set_saturation): Likewise.
4927 (*satsi_<SAT:code>): Rename to...
4928 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4929 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4930 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4931 (CALL_USED_REGISTERS): Mark apsrq.
4932 (FIRST_PSEUDO_REGISTER): Update value.
4933 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4934 (machine_function): Add q_bit_access.
4935 (ARM_Q_BIT_READ): Define.
4936 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4937 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4938 operand_reg_set.
4939 (arm_q_bit_access): Define.
4940 * config/arm/arm-builtins.c: Include stringpool.h.
4941 (arm_sat_binop_imm_qualifiers,
4942 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4943 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4944 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4945 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4946 SET_SAT_QUALIFIERS): Likewise.
4947 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4948 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4949 Handle 0 argument expander.
4950 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4951 (arm_check_builtin_call): Define.
4952 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4953 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4954 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4955 (arm_q_bit_access): Likewise.
4956 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4957 __saturation_occurred, __set_saturation_occurred): Define.
4958 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4959 saturation_occurred, set_saturation_occurred.
4960 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4961 (UNSPEC_APSR_READ): Likewise.
4962 (VUNSPEC_APSR_WRITE): Likewise.
4963 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4964 (*arm_ssadd<mode>3): New define_insn.
4965 (sssub<mode>3): Convert to define_expand.
4966 (*arm_sssub<mode>3): New define_insn.
4967 (ssmulsa3): Convert to define_expand.
4968 (*arm_ssmulsa3): New define_insn.
4969 (usmulusa3): Convert to define_expand.
4970 (*arm_usmulusa3): New define_insn.
4971 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4972 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4973 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4974
4975 2019-11-07 Martin Liska <mliska@suse.cz>
4976
4977 PR c++/92354
4978 * cgraph.c (delete_function_version): Clear global
4979 variable version_info_node if equal to deleted
4980 function.
4981
4982 2019-11-07 Martin Liska <mliska@suse.cz>
4983
4984 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4985 of CONSTRUCTOR_NO_CLEARING.
4986 (operand_compare::hash_operand): Likewise.
4987
4988 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4989
4990 Support 64-bit double and 64-bit long double configurations.
4991
4992 PR target/92055
4993 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4994 --with-long-double=.
4995 * config/avr/t-multilib: Remove.
4996 * config/avr/t-avr: Output of genmultilib.awk is now fully
4997 dynamically generated and no more part of the repo.
4998 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4999 Pass them down to...
5000 * config/avr/genmultilib.awk: ...here and handle them.
5001 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5002 (-mlong-double=, avr_long_double). New option and var.
5003 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5004 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5005 Set default as requested by --with-double=
5006 (TARGET_HANDLE_OPTION): Define to this...
5007 (avr_handle_option): ...new hook worker.
5008 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5009 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5010 (avr_double_lib): New proto for spec function.
5011 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5012 (DRIVER_SELF_SPECS): Call %:double-lib.
5013 * config/avr/avr.c (avr_option_override): Assert
5014 sizeof(long double) >= sizeof(double) for the target.
5015 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5016 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5017 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5018 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5019 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5020 New built-in define depending on --with-double=, --with-long-double=.
5021 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5022 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5023 * doc/install.texi (Cross-Compiler-Specific Options)
5024 <--with-double=, --with-long-double=>: Doc.
5025
5026 2019-11-07 Richard Biener <rguenther@suse.de>
5027
5028 * dbgcnt.def (gimple_unroll): New.
5029 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5030 gimple_unroll debug counter before applying transform.
5031 (try_peel_loop): Likewise.
5032
5033 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5034
5035 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5036 frame pointer in multiple registers.
5037 (ira_setup_eliminable_regset): Setup eliminable_regset,
5038 ira_no_alloc_regs and regs_ever_live for frame pointer in
5039 multiple registers.
5040
5041 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5042
5043 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5044 V2DI modes.
5045
5046 2019-11-06 Jan Hubicka <jh@suse.cz>
5047
5048 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5049 allocations.
5050 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5051 Do not silently ignore summary corruptions.
5052
5053 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5054
5055 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5056 the epilogue if there are peeled iterations for it to handle.
5057
5058 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5059
5060 * config/arc/arc.c (arc_split_ior): Add asserts.
5061 (arc_split_mov_const): Likewise.
5062 (arc_check_ior_const): Do not match known short immediate values.
5063 * config/arc/arc.md (movsi): Don't split predicated instructions
5064 (iorsi): Likewise.
5065
5066 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5067
5068 * config/arc/arc.opt (mea): Update help string.
5069 * doc/invoke.texi(ARC): Update mea option info.
5070
5071 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5072
5073 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5074 (zero_extendqisi2_ac): Likewise.
5075 (zero_extendhisi2_i): Likewise.
5076 (extendqihi2_i): Likewise.
5077 (extendqisi2_ac): Likewise.
5078 (extendhisi2_i): Likewise.
5079
5080 2019-11-06 Richard Biener <rguenther@suse.de>
5081
5082 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5083 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5084 Simplify single_defuse_cycle condition.
5085
5086 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5087
5088 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5089 epilogue loop, make sure that the VF is small enough or that
5090 the epilogue loop can be fully-masked.
5091
5092 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5093
5094 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5095 loop when we've finished, rather than returning directly from
5096 the loop. Use a local variable to track whether we're still
5097 searching for the preferred simdlen. Make vect_epilogues
5098 record whether the next iteration should try to treat the
5099 loop as an epilogue.
5100
5101 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5102
5103 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5104 __arc_hard_float__, __ARC_HARD_FLOAT__,
5105 __arc_soft_float__, __ARC_SOFT_FLOAT__
5106
5107 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5108
5109 PR tree-optimization/92317
5110 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5111 update phi's with constant phi arguments.
5112
5113 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5114 Alexandre Oliva <oliva@adacore.com>
5115
5116 * common.opt (-fcallgraph-info[=]): New option.
5117 * doc/invoke.texi (Developer options): Document it.
5118 * opts.c (common_handle_option): Handle it.
5119 * builtins.c (expand_builtin_alloca): Record allocation if
5120 -fcallgraph-info=da.
5121 * calls.c (expand_call): If -fcallgraph-info, record the call.
5122 (emit_library_call_value_1): Likewise.
5123 * flag-types.h (enum callgraph_info_type): New type.
5124 * explow.c: Include stringpool.h.
5125 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5126 * function.c (allocate_stack_usage_info): New.
5127 (allocate_struct_function): Call it for -fcallgraph-info.
5128 (prepare_function_start): Call it otherwise.
5129 (record_final_call, record_dynamic_alloc): New.
5130 * function.h (struct callinfo_callee): New.
5131 (CALLEE_FROM_CGRAPH_P): New.
5132 (struct callinfo_dalloc): New.
5133 (struct stack_usage): Add callees and dallocs.
5134 (record_final_call, record_dynamic_alloc): Declare.
5135 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5136 object if -fcallgraph-info=da.
5137 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5138 * print-tree.h (print_decl_identifier): Declare.
5139 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5140 * print-tree.c: Include print-tree.h.
5141 (print_decl_identifier): New function.
5142 * toplev.c: Include print-tree.h.
5143 (callgraph_info_file): New global variable.
5144 (callgraph_info_external_printed): Likewise.
5145 (output_stack_usage): Rename to...
5146 (output_stack_usage_1): ... this. Make it static, add cf
5147 parameter. If -fcallgraph-info=su, print stack usage to cf.
5148 If -fstack-usage, use print_decl_identifier for
5149 pretty-printing.
5150 (INDIRECT_CALL_NAME): New.
5151 (dump_final_node_vcg_start): New.
5152 (dump_final_callee_vcg, dump_final_node_vcg): New.
5153 (output_stack_usage): New.
5154 (lang_dependent_init): Open and start file if
5155 -fcallgraph-info. Allocated callgraph_info_external_printed.
5156 (finalize): If callgraph_info_file is not null, finish it,
5157 close it, and release callgraph_info_external_printed.
5158
5159 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5160 Frederik Harwath <frederik@codesourcery.com>
5161 Thomas Schwinge <thomas@codesourcery.com>
5162
5163 * omp-low.c (struct omp_context): New fields
5164 local_reduction_clauses, outer_reduction_clauses.
5165 (new_omp_context): Initialize these.
5166 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5167 (scan_omp_for): Check reduction clauses for incorrect nesting.
5168
5169 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5170
5171 PR inline-asm/92352
5172 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5173 operands with non-memory constraints.
5174
5175 2019-11-05 Martin Sebor <msebor@redhat.com>
5176
5177 PR tree-optimization/92373
5178 * tree.c (component_ref_size): Only consider initializers of objects
5179 of matching struct types.
5180 Return null for instances of interior zero-length arrays.
5181
5182 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5183
5184 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5185
5186 2019-11-05 Jason Merrill <jason@redhat.com>
5187
5188 PR tree-optimization/91825
5189 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5190
5191 2019-11-05 Jim Wilson <jimw@sifive.com>
5192
5193 PR middle-end/92263
5194 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5195 optimize_insn_for_speed_p is true.
5196
5197 2019-11-05 Martin Sebor <msebor@redhat.com>
5198
5199 PR middle-end/92333
5200 PR middle-end/82608
5201 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5202 size.
5203 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5204 name and location for a temporary variable.
5205
5206 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5207
5208 * tree-vrp.c (value_range::value_range): Fix whitespace.
5209 (defined_ranges_p): Same.
5210 (range_fold_binary_symbolics_p): Same.
5211 (value_range::intersect_helper): Same.
5212 (value_range::union_helper): Same.
5213 * tree-vrp.h (range_fold_binary_expr): Same.
5214
5215 2019-11-04 Martin Sebor <msebor@redhat.com>
5216
5217 PR middle-end/92341
5218 PR middle-end/82612
5219 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5220 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5221 of message printed in a warning for empty arrays.
5222 (vrp_prop::check_mem_ref): Also handle function parameters and
5223 empty arrays.
5224
5225 2019-11-05 Richard Biener <rguenther@suse.de>
5226
5227 PR tree-optimization/92371
5228 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5229 on the original stmt of live stmts in the chain.
5230 (vectorizable_live_operation): Look at the original stmt when
5231 checking STMT_VINFO_REDUC_DEF.
5232
5233 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5234
5235 * gimple-fold.c, gimple-loop-versioning.cc,
5236 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5237 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5238 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5239 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5240 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5241 value_range_equiv, and value_range_base to value_range.
5242
5243 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5244
5245 * expr.c (build_personality_function): Fix generated type to
5246 match actual personality functions.
5247
5248 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5249
5250 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5251 enough bytes for the NULL character.
5252
5253 2019-11-05 Richard Biener <rguenther@suse.de>
5254
5255 PR tree-optimization/92280
5256 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5257 had a single use do not create a new CTOR.
5258 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5259 BIT_FIELD_REF of a CTOR via GENERIC.
5260
5261 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5262
5263 * config/s390/s390.c (s390_vector_alignment): Check if the value
5264 fits into uhwi before using it.
5265
5266 2019-11-05 Martin Liska <mliska@suse.cz>
5267
5268 * symbol-summary.h: Use ggc_delete.
5269
5270 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5271
5272 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5273 Change vec_perm field to 10.
5274
5275 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5276
5277 * doc/install.texi: Further fix syntax for html generation.
5278
5279 2019-11-05 Martin Liska <mliska@suse.cz>
5280
5281 * symbol-summary.h: Rename allocator to m_allocator and
5282 add comment.
5283
5284 2019-11-05 Richard Biener <rguenther@suse.de>
5285
5286 PR tree-optimization/92324
5287 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5288 all signed or unsigned operations.
5289
5290 2019-11-05 Jan Hubicka <jh@suse.cz>
5291
5292 * hsa-brig.c: Include alloc-pool.h
5293 * hsa-dump.c: Likewise.
5294 * hsa-gen.c: Likewise.
5295 * hse-regalloc.c: Likewise.
5296 * ipa-hsa.c: Likewise.
5297 * ipa-predicate.c: Likewise.
5298 * ipa-reference.c: Likewise.
5299 * ipa-sra.c: Likewise.
5300 * omp-expand.c: Likewise.
5301 * omp-general.c: Likewise.
5302 * omp-low.c: Likewise.
5303 * sumbol-summary.h (function_summary_base): Add allocator.
5304 (function_summary<T *>::function_summary): Update construction.
5305 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5306 (call_summary_base): Add allcator.
5307 (call_summary<T *>::call_summary): Update construction.
5308 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5309
5310 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5311
5312 PR tree-optimization/91945
5313 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5314 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5315 Formatting fix.
5316
5317 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5318
5319 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5320 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5321 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5322 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5323 (vrp_set_zero_nonzero_bits): Move to...
5324 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5325 (vr_values::simplify_bit_ops_using_ranges): Rename
5326 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5327
5328 2019-11-05 Martin Liska <mliska@suse.cz>
5329
5330 PR c++/92339
5331 * fold-const.c (operand_compare::hash_operand): Remove
5332 FIELD_DECL handling.
5333
5334 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5335
5336 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5337 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5338 static.
5339
5340 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5341
5342 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5343 properly handle symbolics.
5344 (range_compatible_p): Remove.
5345
5346 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5347
5348 * common.opt (-fabi-version): Document =14.
5349 * doc/invoke.texi (C++ Dialect Options): Likewise.
5350
5351 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5352
5353 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5354
5355 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5356
5357 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5358 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5359 gcn_omp_device_kind_arch_isa.
5360 * config/gcn/t-omp-device: New file.
5361 * configure.ac: Support gcn for omp_device_property.
5362 * configure: Regenerate.
5363
5364 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5365
5366 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5367 (vrp_val_max): Same.
5368 (vrp_val_is_min): Same.
5369 (vrp_val_is_max): Same.
5370 (value_range_base::nonzero_p): Remove last argument to
5371 vrp_val_is_max.
5372 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5373 (vrp_val_max): Same.
5374 (vrp_val_is_min): Same.
5375 (vrp_val_is_max): Same.
5376 (value_range_base::set_varying): Remove last argument to vrp_val*.
5377 (value_range_base::dump): Same.
5378 (value_range_base::set): Same.
5379 (value_range_base::normalize_symbolics): Same.
5380 (value_range_base::num_pairs): Same.
5381 (value_range_base::lower_bound): Same.
5382 (value_range_base::upper_bound): Same.
5383 (ranges_from_anti_range): Remove handle_pointers argument.
5384 (value_range_base::singleton_p): Remove last argument to
5385 ranges_from_anti_range.
5386
5387 2019-11-04 Jan Hubicka <jh@suse.cz>
5388
5389 * ipa-reference.c (init_function_info): Initialize
5390 info->global.statics_read.
5391
5392 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5393
5394 * tree-vrp.c (value_range_base::invert): Use constructors to build
5395 range.
5396
5397 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5398
5399 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5400 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5401
5402 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5403
5404 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5405 VR_UNDEFINED.
5406
5407 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5408
5409 * tree-vrp.c (dump_assert_info): New.
5410 (dump_asserts_info): New.
5411
5412 2019-11-04 Jan Hubicka <jh@suse.cz>
5413
5414 * ipa-inline-transform.c: Include ipa-utils.h
5415 (inline_call): Set thunk_expansion flag.
5416 * ipa-utils.h (thunk_expansion): Declare.
5417 * ipa-devirt.c (thunk_expansion): New global var.
5418 (devirt_node_removal_hook): Do not invalidate cache while
5419 doing thunk expansion.
5420
5421 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5422
5423 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5424
5425 2019-11-04 Martin Sebor <msebor@redhat.com>
5426
5427 PR tree-optimization/92349
5428 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5429 memebers have constant sizes.
5430
5431 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5432
5433 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5434 parameter.
5435 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5436 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5437 vect_analyze_loop.
5438
5439 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5440
5441 * expr.c (store_constructor): Modify to handle single element vectors.
5442 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5443 constructors.
5444 (vect_slp_check_for_constructors): New function.
5445 (vect_slp_analyze_bb_1): Call new function to check for vector
5446 constructors.
5447 (vectorize_slp_instance_root_stmt): New function.
5448 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5449 constructors.
5450 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5451
5452 2019-11-04 Richard Biener <rguenther@suse.de>
5453
5454 PR tree-optimization/92345
5455 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5456 we produced a reduction chain.
5457 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5458 LOOP_VINFO_REDUCTIONS.
5459
5460 2019-11-04 Jan Hubicka <jh@suse.cz>
5461
5462 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5463 duplicate summaries.
5464 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5465 first.
5466 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5467 access call summaries.
5468 (dump_ipa_call_summary): Be ready for missing edge summaries.
5469 (analyze_function_body): Use get instead of get_create to access
5470 edge summary.
5471 (estimate_calls_size_and_time): Do not access summaries of
5472 inlined edges; sanity check they are missing.
5473 (ipa_call_context::estimate_size_and_time): Use get instead
5474 of get_create to access node summary.
5475 (inline_update_callee_summaries): Do not update depth of
5476 inlined edge.
5477 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5478 growth caches.
5479 (ipa_merge_fn_summary_after_inlining): Use get instead
5480 of get_create.
5481 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5482 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5483 fast summary.
5484 (initialize_growth_caches): Update.
5485 (do_estimate_edge_time): Remove redundant copy of context.
5486 (ipa_remove_from_growth_caches): New function.
5487 * ipa-inline.c (flatten_function): Update overall summary
5488 only when optimizing.
5489 (inline_to_all_callers): Update overall summary of function
5490 inlined to.
5491 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5492 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5493 to false.
5494
5495 2019-11-04 Richard Biener <rguenther@suse.de>
5496
5497 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5498 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5499
5500 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5501
5502 * ggc-common.c: Include system.h before malloc.h.
5503
5504 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5505
5506 * configure.ac: Pass --enable-obsolete=* and
5507 --enable-option-checking=* down to build configure, and fail
5508 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5509 * configure: Rebuild.
5510 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5511 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5512
5513 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5514
5515 * config.in: Regenerate.
5516 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5517 -mtiny-printf is used without GCC being configured with
5518 --enable-newlib-nano-formatted-io.
5519 * config/msp430/msp430.h (LINK_SPEC): Pass
5520 "--wrap puts --wrap printf" when -mtiny-printf is used.
5521 * config/msp430/msp430.opt: Document -mtiny-printf.
5522 * configure: Regenerate.
5523 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5524 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5525 --enable-newlib-nano-formatted-io is passed.
5526 * doc/invoke.texi: Document -mtiny-printf.
5527
5528 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5529
5530 * configure: Regenerate.
5531
5532 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5533
5534 * config/msp430/driver-msp430.c
5535 (msp430_get_linker_devices_include_path): New spec function.
5536 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5537 (extract_devices_dir_from_exec_prefix): New function.
5538 (extract_devices_dir_from_collect_gcc): New function.
5539 (msp430_check_env_var_for_devices): New function.
5540 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5541 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5542 devices.csv was not found using other methods.
5543 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5544 New prototype.
5545 (msp430_dirname): Likewise.
5546 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5547 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5548 msp430_get_linker_devices_include_path.
5549 (TARGET_EXTRA_PRE_INCLUDES): Define.
5550 * doc/invoke.texi: Document new ways of searching for support files.
5551
5552 2019-11-04 Richard Biener <rguenther@suse.de>
5553
5554 PR tree-optimization/92301
5555 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5556 as required by epilogue generation
5557
5558 2019-11-04 Martin Liska <mliska@suse.cz>
5559
5560 PR ipa/92304
5561 * fold-const.c (operand_compare::hash_operand): Fix field
5562 hashing of CONSTRUCTOR.
5563
5564 2019-11-04 Martin Liska <mliska@suse.cz>
5565
5566 * ggc.h (ggc_delete): New function.
5567 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5568 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5569 (ipa_free_all_node_params): Likewise.
5570 * ipa-sra.c (ipa_sra_analysis): Likewise.
5571
5572 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5573
5574 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5575 set_switch_stmt_execution_predicate, compute_bb_predicates,
5576 will_be_nonconstant_expr_predicate,
5577 phi_result_unknown_predicate,
5578 analyze_function_body): Pass arround params summary.
5579 (ipa_call_context::duplicate_from): New comment;
5580 only duplicate useful values.
5581 (ipa_call_context::equal_to): Only compare useful values.
5582 (remap_edge_summaries): Pass params_summary.
5583 (remap_hint_predicate): Likewise.
5584 (ipa_merge_fn_summary_after_inlining): Likewise.
5585 (inline_read_section): Initialize params summary used flags.
5586 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5587 around param_summary.
5588 (add_condition): Initialized used params summary flags.
5589 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5590 (inline_param_summary::useless_p): New predicate.
5591 (remap_after_inlining, add_condition): Update prototype
5592 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5593 move_cost.
5594 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5595 summaries.
5596 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5597 (ipa_analyze_virtual_call_uses): Likewise.
5598 (update_indirect_edges_after_inlining): Update param summaries.
5599 (ipa_print_node_params): Print used flags.
5600 (ipa_read_indirect_edge_info): Update param summareis.
5601 * ipa-prop.h (ipa_param_descriptor): Add
5602 used_by_ipa_predicates, used_by_indirect_call
5603 and used_by_polymorphic_call.
5604 (ipa_set_param_used_by_ipa_predicates,
5605 ipa_set_param_used_by_indirect_call,
5606 ipa_set_param_used_by_polymorphic_call,
5607 ipa_is_param_used_by_ipa_predicates,
5608 ipa_is_param_used_by_indirect_call,
5609 ipa_is_param_used_by_polymorphic_call): New inline functions.
5610
5611 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5612
5613 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5614 member function.
5615 (ipa_call_context::release): Add ALL parameter.
5616 (ipa_call_context::equal_to): New member function.
5617 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5618 duplicate_form, release, equal_to and exists_p member functoins.
5619 * ipa-inline-analysis.c (node_context_cache_entry): New
5620 class.
5621 (node_context_summary): Likewise.
5622 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5623 node_context_clear): New static vars.
5624 (initialize_growth_caches): New function.
5625 (free_growth_caches): Also delete node_context_cache; output stats.
5626 (do_estimate_edge_time): Cache contexts.
5627 (reset_node_cache): New function.
5628 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5629 (inline_small_functions): Initialize growth caches.
5630 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5631 Declare.
5632 * ipa-predicate.h (inline_param_summary::equal_to): New.
5633 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5634 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5635 (ipa_agg_jump_function): Implement equal_to member function.
5636
5637 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5638
5639 * ipa-fnsummary.c (inline_read_section): Set vector size
5640 ahead of time.
5641
5642 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5643
5644 * ipa-fnsummary.c (ipa_call_context): New constructor.
5645 (estimate_node_size_and_time): Turn to ...
5646 (ipa_call_context::estimate_size_and_time): ... this one.
5647 (ipa_call_context::release): New.
5648 * ipa-fnsummary.h (ipa_call_context): New class.
5649 (estimate_node_size_and_time): Remove.
5650 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5651 do_estimate_edge_hints): Update.
5652
5653 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5654
5655 * config.in: Regenerate.
5656 * configure: Regenerate.
5657 * configure.ac: Check for mallinfo.
5658 * ggc-common.c: Include malloc.h if available;
5659 include options.h
5660 (report_heap_memory_use): New functoin.
5661 * ggc-page.c (ggc_grow): Do not print "start".
5662 * ggc.h (report_heap_memory_use): Declare.
5663 * pases.c (execute_one_pass): Report memory after IPA passes.
5664 (ipa_read_summaries_1): Likewise.
5665 (ipa_read_optimization_summaries_1): Likewise.
5666
5667 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5668
5669 * gimplify.h (omp_construct_selector_matches): Change return
5670 type to int, add a new SCORES argument.
5671 * gimplify.c (omp_construct_selector_matches): Likewise. If
5672 SCORES is non-NULL, compute scores of each construct.
5673 * omp-general.h (omp_get_context_selector): Declare.
5674 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5675 Adjust omp_construct_selector_matches callers.
5676 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5677 (omp_context_compute_score): New function.
5678 (omp_resolve_declare_variant): Compute scores and decide based on
5679 that.
5680
5681 PR bootstrap/92314
5682 * configure.ac: Don't look for omp-device-properties files from
5683 installed offloading compilers. Instead add tmake_file snippets
5684 for configured offloading targets and use files they generate.
5685 * Makefile.in (install): Don't depend on
5686 install-omp-device-properties.
5687 (install-omp-device-properties): Remove goal.
5688 * config/i386/t-omp-device: New file.
5689 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5690 * config/nvptx/t-omp-device: New file.
5691 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5692 * configure: Regenerated.
5693
5694 * omp-general.h (omp_context_selector_set_compare): Declare.
5695 * omp-general.c (omp_construct_simd_compare,
5696 omp_context_selector_props_compare, omp_context_selector_set_compare,
5697 omp_context_selector_compare): New functions.
5698 (omp_resolve_declare_variant): Prune variants that are strict subset
5699 of another variant.
5700
5701 2019-11-01 Martin Sebor <msebor@redhat.com>
5702
5703 PR middle-end/91679
5704 PR middle-end/91647
5705 PR middle-end/91463
5706 PR middle-end/92312
5707 * doc/invoke.texi (-Wzero-length-bounds): Document.
5708 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5709 instead of a hand-rolled loop to avoid PR 92323.
5710 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5711 with initializers.
5712 (vrp_prop::check_mem_ref): Handle declared struct objects.
5713 * tree.c (last_field): New function.
5714 (array_at_struct_end_p): Handle MEM_REF.
5715 (get_initializer_for): New helper.
5716 (component_ref_size): Add argument. Rename locals. Call
5717 get_initializer_for instead of fold_ctor_reference. Correct handling
5718 of flexible array members.
5719 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5720
5721 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5722
5723 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5724 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5725 UNSPEC_VSX_CVSPUXDS): Remove.
5726 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5727 (vsx_xvcvspdp_be): ... this. New. And...
5728 (vsx_xvcvspdp_le): ... this. New.
5729 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5730 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5731 (vsx_xvcv<su>xwdp_le): ... this. New.
5732 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5733 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5734 (vsx_xvcvsp<su>xds_le): ... this. New.
5735
5736 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5737
5738 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5739 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5740 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5741 UNSPEC_VSX_XVCVSPSXWS): Remove.
5742 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5743 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5744
5745 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5746
5747 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5748 (UNSPEC_VSX_XVCDPSP): Remove.
5749 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5750 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5751
5752 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5753
5754 * hooks.c (hook_tree_tree_bool_null): New.
5755 * hooks.h (hook_tree_tree_bool_null): Declare.
5756 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5757 (LANG_HOOKS_DECLS): Add it.
5758 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5759 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5760 (lower_omp_target): Handle Fortran array with descriptor in
5761 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5762
5763 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5764
5765 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5766 Assert that the type we store in abi_vector_types is its own
5767 main variant.
5768 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5769
5770 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5771
5772 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5773 from a CONST_INT address when TARGET_THUMB2.
5774
5775 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5776
5777 * config/arm/arm.md (add_not_cin): New insn.
5778 (add_not_shift_cin): Likewise.
5779
5780 2019-10-31 Martin Liska <mliska@suse.cz>
5781
5782 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5783 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5784 and compare_memory_operand.
5785
5786 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5787
5788 * configure.ac: Compute and substitute omp_device_properties and
5789 omp_device_property_deps.
5790 * Makefile.in (generated_files): Add omp-device-properties.h.
5791 (omp-general.o): Depend on omp-device-properties.h.
5792 (omp_device_properties): New make variable.
5793 (omp-device-properties.h, s-omp-device-properties-h,
5794 install-omp-device-properties): New goals.
5795 (install): Depend on install-omp-device-properties for accelerators.
5796 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5797 * target.h (enum omp_device_kind_arch_isa): New enum.
5798 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5799 documentation.
5800 * omp-general.c: Include omp-device-properties.h.
5801 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5802 colon instead of comma.
5803 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5804 functions.
5805 (omp_context_selector_matches): Implement device set arch/isa
5806 selectors, improve device set kind selector handling.
5807 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5808 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5809 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5810 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5811 ix86_omp_device_kind_arch_isa.
5812 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5813 definition from ix86_target_string to file scope.
5814 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5815 to file scope.
5816 (ix86_omp_device_kind_arch_isa): New function.
5817 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5818 isa_opts definitions to file scope.
5819 * config/i386/t-intelmic (omp-device-properties): New goal.
5820 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5821 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5822 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5823 nvptx_omp_device_kind_arch_isa.
5824 * configure: Regenerate.
5825 * doc/tm.texi: Regenerate.
5826
5827 PR middle-end/92231
5828 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5829 DECL_BUILT_IN in comment. Remove redundant ()s around return
5830 argument.
5831 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5832 before calling fndecl_built_in_p.
5833 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5834 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5835 fndecl_built_in_p on it.
5836
5837 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5838
5839 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5840
5841 2019-10-31 Martin Liska <mliska@suse.cz>
5842
5843 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5844 of cgraph_local_info and use local_info_node instead.
5845 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5846 (bfin_function_ok_for_sibcall): Likewise.
5847 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5848 (must_reload_pic_reg_p): Likewise.
5849
5850 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5851
5852 PR c++/90947
5853 * tree.h (type_initializer_zero_p): Remove.
5854 * tree.c (type_initializer_zero_p): Remove.
5855
5856 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5857
5858 * doc/invoke.texi (-Wshadow, -Wshadow=global
5859 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5860
5861 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5862
5863 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5864 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5865 and 'target exit data'.
5866
5867 2019-10-30 Martin Jambor <mjambor@suse.cz>
5868
5869 ipa/92278
5870 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5871 availability comparison.
5872
5873 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5874
5875 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5876 calls to __mspabi_mpy* functions.
5877 * config/msp430/msp430.md (mulhisi3): New define_expand.
5878 (umulhisi3): New define_expand.
5879 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5880 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5881
5882 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5883
5884 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5885 (msp430_check_plus_not_high_mem): New.
5886 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5887 might be in low memory.
5888 Indicate that a 16-bit absolute address is in lower memory.
5889
5890 2019-10-30 Martin Jambor <mjambor@suse.cz>
5891
5892 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5893 ultimate_alias_target.
5894
5895 2019-10-30 Richard Biener <rguenther@suse.de>
5896
5897 PR tree-optimization/92275
5898 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5899 Copy all loop-closed PHIs.
5900
5901 2019-10-30 Martin Liska <mliska@suse.cz>
5902
5903 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5904 const_tree as function argument.
5905 (func_checker::compare_decl): Likewise.
5906 (func_checker::operand_equal_p): Likewise.
5907 (func_checker::compare_variable_decl): Likewise.
5908 (func_checker::parse_labels): Likewise.
5909 * ipa-icf-gimple.h: Likewise.
5910
5911 2019-10-30 Martin Liska <mliska@suse.cz>
5912
5913 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5914 Do not compare alias sets. It's handled by operand_equal_p.
5915
5916 2019-10-30 Martin Liska <mliska@suse.cz>
5917
5918 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5919 initialize m_compare_polymorphic.
5920 (func_checker::compare_decl): Do not compare polymorphic types.
5921 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5922 * ipa-icf.c (sem_function::equals_private): Do not call
5923 compare_polymorphic_p.
5924
5925 2019-10-30 Martin Liska <mliska@suse.cz>
5926
5927 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5928 compare_operand.
5929 (func_checker::compare_memory_operand): Remove.
5930 (func_checker::compare_cst_or_decl): Remove.
5931 (func_checker::operand_equal_valueize): Do not handle
5932 FIELD_DECL.
5933 (func_checker::compare_gimple_call): Call compare_operand.
5934 (func_checker::compare_gimple_assign): Likewise.
5935 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5936 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5937 * ipa-icf.h (icf_handled_component_p): Remove.
5938
5939 2019-10-30 Martin Liska <mliska@suse.cz>
5940
5941 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5942 (func_checker::compare_cst_or_decl): Remove handling
5943 of FIELD_DECL.
5944 (func_checker::compare_operand): Transform to ...
5945 (func_checker::operand_equal_p): ... this.
5946 * ipa-icf-gimple.h (class func_checker): Add
5947 operand_equal_p and hash_operand.
5948 * ipa-icf.c (sem_function::equals_private): Fix
5949 pushing and popping of cfun.
5950
5951 2019-10-30 Martin Liska <mliska@suse.cz>
5952
5953 * fold-const.c (operand_equal_p): Move to ...
5954 (operand_compare::operand_equal_p): ... here.
5955 (operand_compare::verify_hash_value): New.
5956 (add_expr): Move to ...
5957 (operand_compare::hash_operand): ... here.
5958 * fold-const.h (operand_equal_p): Move to the class.
5959 (class operand_compare): New.
5960 * tree.c (add_expr): Remove.
5961
5962 2019-10-30 Martin Liska <mliska@suse.cz>
5963
5964 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5965 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5966
5967 2019-10-30 Martin Liska <mliska@suse.cz>
5968
5969 PR lto/91393
5970 PR lto/88220
5971 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5972 from a first_clone in order to get proper LTO section
5973 in LTO stream.
5974 (cgraph_node::get_untransformed_body):
5975 Use lto_get_section_data where symtab_node::order
5976 must be provided.
5977 * cgraphclones.c (cgraph_node::find_replacement):
5978 Update also symbol order.
5979 * ipa-fnsummary.c (ipa_fn_summary_read):
5980 Use new function lto_get_summary_section_data.
5981 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5982 * ipa-icf.c (sem_item_optimizer::read_summary):
5983 Likewise.
5984 * ipa-prop.c (ipa_prop_read_jump_functions):
5985 Likewise.
5986 (ipcp_read_transformation_summaries): Likewise.
5987 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5988 * lto-cgraph.c (input_node): Add also order_base.
5989 (input_varpool_node): Likewise.
5990 (input_cgraph_1): Assign the order_base.
5991 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5992 * lto-opts.c (lto_write_options): Pass new argument.
5993 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5994 (lto_get_summary_section_data): New.
5995 (lto_get_raw_section_data): Add order argument.
5996 (lto_create_simple_input_block): Likewise.
5997 * lto-section-out.c (lto_destroy_simple_output_block):
5998 Likewise.
5999 * lto-streamer-in.c (lto_input_toplevel_asms):
6000 Use lto_get_summary_section_data.
6001 (lto_input_mode_table): Likewise.
6002 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6003 (lto_output_toplevel_asms): Pass new argument.
6004 (copy_function_or_variable): Likewise.
6005 (produce_lto_section):Likewise.
6006 (produce_symtab): Likewise.
6007 (lto_write_mode_table): Likewise.
6008 (produce_asm_for_decls): Likewise.
6009 * lto-streamer.c (lto_get_section_name): Concat symbol name
6010 and symbol order.
6011 * lto-streamer.h (lto_get_section_data): Add order argument.
6012 (lto_get_summary_section_data): New.
6013 (lto_get_raw_section_data): Add order argument.
6014 (lto_get_section_name): Likewise.
6015 * varpool.c (varpool_node::get_constructor): Pass order argument.
6016
6017 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6018
6019 PR tree-optimization/92262
6020 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6021 ubase or cbase here.
6022 (remove_unused_ivs): Unshare comp before using it.
6023
6024 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6025
6026 * ipa-prop.c (update_jump_functions_after_inlining):
6027 Watch for missing summaries.
6028
6029 2019-10-30 Richard Biener <rguenther@suse.de>
6030
6031 PR tree-optimization/65930
6032 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6033 chains also allow a leading and trailing conversion.
6034 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6035 intermediate reduction chains.
6036 (vect_analyze_slp_instance): Likewise. Build a SLP
6037 node for a trailing conversion manually.
6038
6039 2019-10-30 Martin Liska <mliska@suse.cz>
6040
6041 * cgraph.c (cgraph_node::local_info): Transform to ...
6042 (cgraph_node::local_info_node): ... this.
6043 (cgraph_node::dump): Remove cgraph_local_info and
6044 put its fields directly into cgraph_node.
6045 (cgraph_node::get_availability): Likewise.
6046 (cgraph_node::make_local): Likewise.
6047 (cgraph_node::verify_node): Likewise.
6048 * cgraph.h (struct GTY): Likewise.
6049 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6050 (duplicate_thunk_for_node): Likewise.
6051 (cgraph_node::create_clone): Likewise.
6052 (cgraph_node::create_virtual_clone): Likewise.
6053 (cgraph_node::create_version_clone): Likewise.
6054 * cgraphunit.c (cgraph_node::reset): Likewise.
6055 (cgraph_node::finalize_function): Likewise.
6056 (cgraph_node::add_new_function): Likewise.
6057 (analyze_functions): Likewise.
6058 * combine.c (setup_incoming_promotions): Likewise.
6059 * config/i386/i386.c (ix86_function_regparm): Likewise.
6060 (ix86_function_sseregparm): Likewise.
6061 (init_cumulative_args): Likewise.
6062 * ipa-cp.c (determine_versionability): Likewise.
6063 (count_callers): Likewise.
6064 (set_single_call_flag): Likewise.
6065 (initialize_node_lattices): Likewise.
6066 (estimate_local_effects): Likewise.
6067 (create_specialized_node): Likewise.
6068 (identify_dead_nodes): Likewise.
6069 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6070 (ipa_fn_summary_generate): Likewise.
6071 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6072 (process_hsa_functions): Likewise.
6073 * ipa-icf.c (set_local): Likewise.
6074 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6075 * ipa-inline.c (speculation_useful_p): Likewise.
6076 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6077 (ipa_profile): Likewise.
6078 * ipa-split.c (split_function): Likewise.
6079 (execute_split_functions): Likewise.
6080 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6081 (ipa_sra_ipa_function_checks): Likewise.
6082 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6083 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6084 * lto-cgraph.c (lto_output_node): Likewise.
6085 (input_overwrite_node): Likewise.
6086 * multiple_target.c (expand_target_clones): Likewise.
6087 * omp-simd-clone.c (simd_clone_create): Likewise.
6088 * trans-mem.c (expand_call_tm): Likewise.
6089 (ipa_tm_mayenterirr_function): Likewise.
6090 (ipa_tm_diagnose_tm_safe): Likewise.
6091 (ipa_tm_diagnose_transaction): Likewise.
6092 (ipa_tm_create_version): Likewise.
6093 (ipa_tm_transform_calls_redirect): Likewise.
6094 (ipa_tm_execute): Likewise.
6095 * tree-inline.c (expand_call_inline): Likewise.
6096
6097 2019-10-29 Martin Liska <mliska@suse.cz>
6098
6099 * symbol-summary.h (function_summary): Pass memory location
6100 to underlaying hash_map (or vec).
6101 (V>::fast_function_summary): Likewise.
6102
6103 2019-10-29 Martin Liska <mliska@suse.cz>
6104
6105 * ggc.h (ggc_alloc_no_dtor): New function.
6106 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6107 destructor and ggc_free.
6108 (ipa_free_size_summary): Call delete instead
6109 of release.
6110 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6111 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6112 (ipa_free_all_edge_args): Call destructor and ggc_free.
6113 (ipa_free_all_node_params): Likewise.
6114 (ipcp_free_transformation_sum): Likewise.
6115 * ipa-prop.h (ipa_check_create_node_params):
6116 Call new ggc_alloc_no_dtor.
6117 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6118 (ipa_sra_analysis): Call destructor and ggc_free.
6119 Replace release with delete operator.
6120 * symbol-summary.h (release): Remove ..
6121 (V>::~fast_function_summary): and move logic here.
6122 Likewise for other classes.
6123
6124 2019-10-29 Richard Biener <rguenther@suse.de>
6125
6126 PR tree-optimization/92260
6127 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6128 lane-reducing ops.
6129
6130 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6131
6132 PR tree-optimization/88915
6133 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6134 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6135 and make the valueize function pointer also take a void pointer.
6136 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6137 around vn_valueize, to call it without a context.
6138 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6139 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6140 (~_loop_vec_info): Release epilogue_vinfos.
6141 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6142 number of iterations of epilogue.
6143 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6144 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6145 versioning threshold needed for main loop.
6146 (vect_analyze_loop): Likewise.
6147 (find_in_mapping): New helper function.
6148 (update_epilogue_loop_vinfo): New function.
6149 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6150 on main loop and call update_epilogue_loop_vinfo to update it.
6151 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6152 stmts on loop preheader edge.
6153 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6154 we decided to vectorize epilogues. Update epilogues NITERS and
6155 construct ADVANCE to update epilogues data references where needed.
6156 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6157 (vect_do_peeling, vect_update_inits_of_drs,
6158 determine_peel_for_niter, vect_analyze_loop): Add or update
6159 declarations.
6160 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6161 created loop_vec_info's for epilogues when available. Otherwise analyse
6162 epilogue separately.
6163
6164 2019-10-29 Richard Biener <rguenther@suse.de>
6165
6166 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6167 example.
6168
6169 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6170
6171 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6172 index for the COND_EXPR from stmt_info rather than reduc_info.
6173
6174 2019-10-29 Richard Biener <rguenther@suse.de>
6175
6176 PR tree-optimization/65930
6177 * tree-vect-loop.c (check_reduction_path): Relax single-use
6178 check allowing out-of-loop uses.
6179 (vect_is_simple_reduction): SLP reduction chains cannot have
6180 intermediate stmts used outside of the loop.
6181 (vect_create_epilog_for_reduction): The adjustment might need
6182 to be converted.
6183 (vectorizable_reduction): Annotate live stmts of the reduction
6184 chain with STMT_VINFO_REDUC_DEF.
6185 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6186
6187 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6188
6189 * calls.c (pass_by_reference): Leave the target to decide whether
6190 POLY_INT_CST-sized arguments should be passed by value or reference,
6191 rather than forcing them to be passed by reference.
6192 (must_pass_in_stack_var_size): Likewise.
6193 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6194 V31_REGNUM to P15_REGNUM.
6195 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6196 Take an extra "silent_p" parameter, defaulting to false.
6197 (aarch64_sve::svbool_type_p): Declare.
6198 (aarch64_sve::nvectors_if_data_type): Likewise.
6199 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6200 (aarch64_frame::reg_offset): Turn into poly_int64s.
6201 (aarch64_frame::save_regs_size): Likewise.
6202 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6203 (aarch64_frame::sve_callee_adjust): Likewise.
6204 (aarch64_frame::spare_reg_reg): Likewise.
6205 (ARM_PCS_SVE): New arm_pcs value.
6206 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6207 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6208 (CUMULATIVE_ARGS::silent_p): Likewise.
6209 (BITS_PER_SVE_PRED): New macro.
6210 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6211 function. Reject aarch64_vector_pcs attributes on SVE functions.
6212 (aarch64_attribute_table): Use the above handler.
6213 (aarch64_sve_abi): New function.
6214 (aarch64_sve_argument_p): Likewise.
6215 (aarch64_returns_value_in_sve_regs_p): Likewise.
6216 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6217 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6218 descriptor for them.
6219 (aarch64_simd_decl_p): Delete.
6220 (aarch64_emit_cfi_for_reg_p): New function.
6221 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6222 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6223 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6224 as partly clobbered for the SVE PCS.
6225 (aarch64_function_ok_for_sibcall): Check whether the two functions
6226 use the same ABI, rather than checking specifically for whether
6227 they're aarch64_vector_pcs functions.
6228 (aarch64_pass_by_reference): Raise an error for attempts to pass
6229 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6230 if there are not enough free registers left, or if the argument is
6231 variadic.
6232 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6233 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6234 tuples in memory.
6235 (aarch64_layout_arg): Take a function_arg_info rather than
6236 individual properties. Handle SVE predicates, vectors and tuples.
6237 Raise an error if they are passed to unprototyped functions.
6238 (aarch64_function_arg): If the silent_p flag is set, suppress the
6239 usual error about using float registers without TARGET_FLOAT.
6240 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6241 it in the cumulative_args structure. Initialize aapcs_nprn and
6242 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6243 error about using float registers without TARGET_FLOAT.
6244 If the silent_p flag is not set, also raise an error about
6245 using SVE functions when SVE is disabled.
6246 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6247 and call it for SVE functions too. Update aapcs_nprn similarly
6248 to the other register counts.
6249 (aarch64_layout_frame): If a big-endian function needs to save
6250 and restore Z8-Z15, search for a spare predicate that it can use.
6251 Store SVE predicates at the bottom of the register save area,
6252 followed by SVE vectors, then followed by the normal slots.
6253 Keep pointing the hard frame pointer at the base of the normal slots,
6254 above the SVE vectors. Update the various frame creation and
6255 tear-down strategies for the new layout, initializing the new
6256 sve_callee_adjust field. Add an additional layout for frames
6257 whose saved registers are all SVE registers.
6258 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6259 (aarch64_return_address_signing_enabled): Likewise.
6260 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6261 aarch64_reg_save_mode.
6262 (aarch64_adjust_sve_callee_save_base): New function.
6263 (aarch64_add_cfa_expression): Move earlier in file. Take the
6264 saved register as an rtx rather than a register number and use
6265 its mode for the MEM slot.
6266 (aarch64_save_callee_saves): Remove the mode argument and instead
6267 use aarch64_reg_save_mode to get the mode of each save slot.
6268 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6269 offsets. Allow GP offsets to be saved at a VL-based offset from
6270 the stack, handling this case using the frame pointer if available
6271 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6272 big-endian SVE functions; use normal moves for other SVE saves.
6273 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6274 returns true. Add explicit CFA notes when not storing via the
6275 stack pointer. Do not try to pair SVE saves.
6276 (aarch64_restore_callee_saves): Cope with poly_int64 register
6277 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6278 use normal moves for other SVE restores. Only add CFA restore notes
6279 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6280 SVE restores.
6281 (aarch64_get_separate_components): Always keep the first SVE save
6282 in the prologue if we need to use it as a stack probe. Don't allow
6283 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6284 Likewise the spare predicate register that they need. Update the
6285 offset calculation to account for the SVE save area. Use the
6286 appropriate range check for SVE LDR and STR instructions.
6287 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6288 (aarch64_process_components): Likewise. Update the offset
6289 calculation to account for the SVE save area. Only mark the
6290 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6291 Do not try to pair SVE saves.
6292 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6293 reg_offsets. When handling the final allocation, expect the
6294 first SVE register save to be part of the initial allocation
6295 and for it to act as a probe at SP. Account for the SVE callee
6296 save area in the dump information.
6297 (aarch64_expand_prologue): Update the frame diagram. Fold the
6298 SVE callee allocation into the initial allocation if stack clash
6299 protection is enabled. Use new variables to track the offset
6300 of the frame chain (and hard frame pointer) from the current
6301 stack pointer, and likewise the offset of the bottom of the
6302 register save area. Update calls to aarch64_save_callee_saves
6303 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6304 saving the FP&SIMD registers. Save the predicate registers.
6305 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6306 into account when setting the stack pointer from the frame pointer,
6307 and when deciding whether we can inherit the initial adjustment
6308 amount from the prologue. Restore the predicate registers after
6309 the vector registers, then apply sve_callee_adjust, then restore
6310 the general registers.
6311 (aarch64_secondary_reload): Don't use secondary SVE reloads
6312 for VNx16BImode.
6313 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6314 (aarch64_short_vector_p): Return false for SVE types.
6315 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6316 at the start of the function. Return false for SVE types.
6317 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6318 functions too.
6319 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6320 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6321 to big-endian targets for bytewise moves.
6322 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6323
6324 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6325 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6326 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6327
6328 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6329 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6330 aarch64-sve-builtins-base.o to extra_objs. Add
6331 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6332 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6333 (aarch64-sve-builtins-shapes.o): Likewise.
6334 (aarch64-sve-builtins-base.o): New rules.
6335 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6336 (aarch64_resolve_overloaded_builtin): Likewise.
6337 (aarch64_check_builtin_call): Likewise.
6338 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6339 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6340 pragma.
6341 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6342 (aarch64_svprfop): New enum.
6343 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6344 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6345 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6346 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6347 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6348 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6349 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6350 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6351 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6352 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6353 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6354 (aarch64_sve::mangle_builtin_type): Likewise.
6355 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6356 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6357 (aarch64_sve::expand_builtin): Likewise.
6358 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6359 (aarch64_sve_int_mode): Likewise.
6360 (aarch64_ptrue_all_mode): New function.
6361 (aarch64_convert_sve_data_to_pred): Make public.
6362 (svprfop_token): New function.
6363 (aarch64_output_sve_prefetch): Likewise.
6364 (aarch64_fold_sve_cnt_pat): Likewise.
6365 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6366 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6367 instead of gen_while_ult.
6368 (aarch64_replace_reg_mode): Make public.
6369 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6370 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6371 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6372 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6373 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6374 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6375 (aarch64_sve_ptrue_svpattern_p): Likewise.
6376 (aarch64_sve_pred_valid_immediate): Check
6377 aarch64_sve_ptrue_svpattern_p.
6378 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6379 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6380 functions.
6381 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6382 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6383 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6384 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6385 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6386 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6387 New unspecs.
6388 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6389 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6390 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6391 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6392 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6393 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6394 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6395 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6396 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6397 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6398 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6399 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6400 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6401 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6402 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6403 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6404 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6405 (Vesize): Handle partial vector modes.
6406 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6407 mode attributes.
6408 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6409 iterators.
6410 (s, paired_extend, inc_dec): New code attributes.
6411 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6412 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6413 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6414 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6415 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6416 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6417 UNSPEC_COND_FMULX.
6418 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6419 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6420 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6421 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6422 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6423 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6424 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6425 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6426 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6427 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6428 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6429 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6430 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6431 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6432 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6433 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6434 UNSPEC_COND_FSCALE.
6435 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6436 (binqops_op, binqops_op_rev, last_op): New int attributes.
6437 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6438 (fn, ab): New int attributes.
6439 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6440 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6441 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6442 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6443 UNSPEC_RBIT.
6444 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6445 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6446 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6447 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6448 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6449 UNSPEC_COND_FMULX.
6450 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6451 (brk_reg_con, brk_reg_opno): New int attributes.
6452 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6453 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6454 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6455 UNSPEC_COND_FMIN.
6456 (max_elem_bits): New int attribute.
6457 (min_elem_bits): Handle UNSPEC_RBIT.
6458 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6459 TRUNCATE as well as SUBREG.
6460 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6461 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6462 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6463 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6464 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6465 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6466 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6467 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6468 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6469 (aarch64_gather_scale_operand_h): New predicates.
6470 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6471 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6472 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6473 (*aarch64_sve_reinterpret<mode>): Allow any source register
6474 instead of requiring an exact match.
6475 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6476 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6477 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6478 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6479 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6480 (aarch64_update_ffrt): New patterns.
6481 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6482 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6483 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6484 (@aarch64_ld<fn>f1<mode>): New patterns.
6485 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6486 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6487 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6488 (@aarch64_ldnt1<mode>): New patterns.
6489 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6490 the scalar part of the address.
6491 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6492 scalar part of the addresse and add an alternative for handling
6493 nonzero offsets.
6494 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6495 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6496 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6497 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6498 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6499 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6500 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6501 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6502 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6503 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6504 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6505 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6506 (@aarch64_sve_prefetch<mode>): New patterns.
6507 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6508 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6509 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6510 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6511 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6512 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6513 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6514 (@aarch64_stnt1<mode>): New patterns.
6515 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6516 the scalar part of the address.
6517 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6518 the scalar part of the addresse and add an alternative for handling
6519 nonzero offsets.
6520 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6521 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6522 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6523 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6524 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6525 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6526 New patterns.
6527 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6528 (extract_last_<mode>): Generalize to...
6529 (@extract_<LAST:last_op>_<mode>): ...this.
6530 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6531 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6532 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6533 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6534 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6535 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6536 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6537 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6538 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6539 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6540 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6541 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6542 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6543 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6544 (*aarch64_adr_uxtw_unspec): Likewise.
6545 (*aarch64_adr_uxtw): Rename to...
6546 (*aarch64_adr_uxtw_and): ...this.
6547 (@aarch64_adr<mode>_shift): New expander.
6548 (*aarch64_adr_shift_sxtw): New pattern.
6549 (aarch64_<su>abd<mode>_3): Rename to...
6550 (@aarch64_pred_<su>abd<mode>): ...this.
6551 (<su>abd<mode>_3): Update accordingly.
6552 (@aarch64_cond_<su>abd<mode>): New expander.
6553 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6554 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6555 (*<su>mul<mode>3_highpart): Rename to...
6556 (@aarch64_pred_<optab><mode>): ...this.
6557 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6558 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6559 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6560 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6561 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6562 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6563 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6564 (*v<ASHIFT:optab><mode>3): Rename to...
6565 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6566 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6567 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6568 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6569 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6570 (@cond_asrd<mode>): New expander.
6571 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6572 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6573 (*sdiv_pow2<mode>3): Delete.
6574 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6575 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6576 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6577 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6578 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6579 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6580 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6581 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6582 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6583 (*add<SVE_F:mode>3): Rename to...
6584 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6585 for SVE_STRICT_GP.
6586 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6587 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6588 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6589 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6590 (*sub<SVE_F:mode>3): Rename to...
6591 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6592 for SVE_STRICT_GP.
6593 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6594 (*fabd<SVE_F:mode>3): Rename to...
6595 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6596 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6597 (*mul<SVE_F:mode>3): Rename to...
6598 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6599 for SVE_STRICT_GP.
6600 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6601 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6602 to...
6603 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6604 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6605 (*<nlogical><PRED_ALL:mode>3): Rename to...
6606 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6607 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6608 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6609 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6610 (aarch64_pred_<logical_nn><mode>_z): ...this.
6611 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6612 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6613 (*fma<SVE_I:mode>4): Rename to...
6614 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6615 (*fnma<SVE_I:mode>4): Rename to...
6616 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6617 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6618 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6619 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6620 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6621 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6622 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6623 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6624 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6625 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6626 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6627 (@aarch64_sve_tmad<mode>): Likewise.
6628 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6629 (*aarch64_sel_dup<mode>): Rename to...
6630 (@aarch64_sel_dup<mode>): ...this.
6631 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6632 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6633 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6634 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6635 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6636 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6637 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6638 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6639 (*fcm<cmp_op><mode>): Rename to...
6640 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6641 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6642 (*fcmuo<mode>): Rename to...
6643 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6644 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6645 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6646 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6647 (fold_extract_last_<mode>): Generalize to...
6648 (@fold_extract_<last_op>_<mode>): ...this.
6649 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6650 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6651 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6652 DImode result explicit.
6653 (reduc_plus_scal_<mode>): Update accordingly.
6654 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6655 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6656 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6657 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6658 (*aarch64_sve_tbl<mode>): Rename to...
6659 (@aarch64_sve_tbl<mode>): ...this.
6660 (@aarch64_sve_compact<mode>): New pattern.
6661 (*aarch64_sve_dup_lane<mode>): Rename to...
6662 (@aarch64_sve_dup_lane<mode>): ...this.
6663 (@aarch64_sve_dupq_lane<mode>): New pattern.
6664 (@aarch64_sve_splice<mode>): Likewise.
6665 (aarch64_sve_<perm_insn><mode>): Rename to...
6666 (@aarch64_sve_<perm_insn><mode>): ...this.
6667 (*aarch64_sve_ext<mode>): Rename to...
6668 (@aarch64_sve_ext<mode>): ...this.
6669 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6670 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6671 to...
6672 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6673 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6674 Rename to...
6675 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6676 ...this.
6677 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6678 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6679 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6680 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6681 to...
6682 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6683 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6684 a "@" marker.
6685 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6686 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6687 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6688 pattern.
6689 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6690 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6691 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6692 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6693 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6694 "@" marker.
6695 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6696 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6697 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6698 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6699 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6700 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6701 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6702 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6703 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6704 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6705 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6706 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6707 (aarch64_sve_cnt_pat): Likewise.
6708 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6709 (*aarch64_sve_incsi_pat): Likewise.
6710 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6711 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6712 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6713 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6714 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6715 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6716 (*aarch64_sve_decsi_pat): Likewise.
6717 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6718 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6719 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6720 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6721 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6722 (@aarch64_pred_cntp<mode>): Likewise.
6723 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6724 New expander.
6725 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6726 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6727 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6728 New expander.
6729 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6730 New pattern.
6731 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6732 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6733 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6734 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6735 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6736 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6737 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6738 New expander.
6739 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6740 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6741 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6742 New expander.
6743 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6744 New pattern.
6745 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6746 expander.
6747 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6748 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6749 expander.
6750 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6751 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6752 expander.
6753 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6754 * config/aarch64/arm_sve.h: New file.
6755 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6756 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6757 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6758 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6759 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6760 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6761 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6762 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6763 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6764
6765 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6766
6767 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6768 New pattern.
6769 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6770 SVE modes.
6771
6772 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6773
6774 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6775 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6776 FFRT_REGNUM + 1.
6777 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6778 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6779 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6780 (aarch64_hard_regno_nregs): Handle the new register classes.
6781 (aarch64_hard_regno_mode_ok): Likewise.
6782 (aarch64_regno_regclass): Likewise.
6783 (aarch64_class_max_nregs): Likewise.
6784 (aarch64_register_move_cost): Likewise.
6785 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6786 as general register_operands.
6787
6788 2019-10-29 Martin Liska <mliska@suse.cz>
6789
6790 * ggc-common.c: One can't subtract unsigned types
6791 in compare function.
6792
6793 2019-10-29 Martin Liska <mliska@suse.cz>
6794
6795 * cgraphunit.c (symbol_table::compile): Pass
6796 title as dump_memory_report argument.
6797 * toplev.c (dump_memory_report): New argument.
6798 (finalize): Pass new argument.
6799 * toplev.h (dump_memory_report): Add argument.
6800
6801 2019-10-29 Martin Liska <mliska@suse.cz>
6802
6803 * ggc-common.c: Move Leak to the first column.
6804
6805 2019-10-29 Martin Liska <mliska@suse.cz>
6806
6807 * cgraphunit.c (symbol_table::compile): Remove argument
6808 for dump_memory_report.
6809 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6810 (compare_final): Remove in order to make report
6811 better readable.
6812 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6813 * mem-stats.h (mem_alloc_description::get_list):
6814 Do not pass cmp.
6815 (mem_alloc_description::dump): Likewise here.
6816 * toplev.c (dump_memory_report): Remove final
6817 argument.
6818 (finalize): Likewise.
6819 * toplev.h (dump_memory_report): Remove argument.
6820
6821 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6822
6823 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6824 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6825 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6826 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6827 accept "const".
6828
6829 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6830
6831 * coretypes.h (string_int_pair): New typedef.
6832 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6833 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6834 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6835
6836 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6837
6838 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6839 (simulate_builtin_function_decl): Declare.
6840 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6841 (LANG_HOOKS_INITIALIZER): Include it.
6842 * langhooks.c (add_builtin_function_common): Rename to...
6843 (build_builtin_function): ...this. Add a location parameter and use
6844 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6845 the decl instead.
6846 (add_builtin_function): Update accordingly, passing the returned
6847 decl to the lang hook.
6848 (add_builtin_function_ext_scope): Likewise
6849 (simulate_builtin_function_decl): New function.
6850
6851 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6852
6853 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6854 example, use actual names of supported offload targets.
6855
6856 PR target/92258
6857 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6858
6859 2019-10-28 Martin Sebor <msebor@redhat.com>
6860
6861 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6862 (handle_store): Pass argument to get_addr_stridx.
6863
6864 2019-10-28 Martin Sebor <msebor@redhat.com>
6865
6866 PR tree-optimization/92226
6867 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6868 the offset is in the open range outlined by SI's length.
6869
6870 2019-10-28 Martin Sebor <msebor@redhat.com>
6871
6872 PR c/66970
6873 * doc/cpp.texi (__has_builtin): Document.
6874 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6875
6876 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6877
6878 PR target/82981
6879 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6880 doubleword and low doubleword result of multiplication on
6881 MIPS64R6.
6882
6883 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6884 pure qualifier to the built-in.
6885 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6886 built-ins.
6887 (struct mips_builtin_description): Add is_pure flag.
6888 (mips_init_builtins): Mark built-in as pure if the flag in the
6889 corresponding mips_builtin_description struct is set.
6890
6891 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6892 alternative which covers the floating-point input value. Also
6893 forbid the split of insert.d pattern for floating-point values.
6894
6895 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6898 * config/riscv/riscv-sr.c: New file.
6899 * config/riscv/riscv.c (riscv_reorg): New function.
6900 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6901 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6902 (riscv_remove_unneeded_save_restore_calls): Declare.
6903 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6904
6905 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6906
6907 PR tree-optimization/92163
6908 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6909 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6910 before calling bitmap_set_bit.
6911 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6912 delete_dead_or_redundant_assignment.
6913 (dse_dom_walker::dse_optimize_stmt): Likewise.
6914 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6915
6916 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6917
6918 PR middle-end/91272
6919 * tree-vect-stmts.c (vectorizable_condition): Support
6920 EXTRACT_LAST_REDUCTION with fully-masked loops.
6921
6922 2019-10-28 Richard Biener <rguenther@suse.de>
6923
6924 PR tree-optimization/92252
6925 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6926 STMT_VINFO_REDUC_IDX when swapping operands.
6927
6928 2019-10-28 Richard Biener <rguenther@suse.de>
6929
6930 PR tree-optimization/92241
6931 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6932 we failed to update the reduction index do not use the pattern
6933 stmts for the reduction chain.
6934 (vectorizable_reduction): When the reduction chain is corrupt,
6935 fail.
6936 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6937 fail to update the reduction chain.
6938
6939 2019-10-28 Richard Biener <rguenther@suse.de>
6940
6941 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6942 STMT_VINFO_REDUC_IDX from the actual stmt.
6943 (vect_transform_reduction): Likewise.
6944 (vectorizable_reduction): Compute the reduction chain length,
6945 do not recompute the reduction operand index. Remove no longer
6946 necessary restriction for condition reduction chains.
6947
6948 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6949
6950 PR target/92225
6951 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6952 condition for V2DImode.
6953
6954 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6955
6956 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6957 Remove %k operand modifier.
6958 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6959
6960 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6961
6962 PR rtl-optimization/92007
6963 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6964 call it after reload if hot/cold partitioning has been done.
6965 (class pass_postreload_jump): Rename to
6966 pass_jump_after_combine.
6967 (make_pass_postreload_jump): Rename to
6968 make_pass_jump_after_combine.
6969 * passes.def(pass_postreload_jump): Move before reload, rename
6970 to pass_jump_after_combine.
6971 * tree-pass.h (make_pass_postreload_jump): Rename to
6972 make_pass_jump_after_combine.
6973
6974 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6975
6976 PR ipa/92242
6977 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6978 for missing EDGE_REF
6979 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6980
6981 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6982
6983 PR tree-optimization/88760
6984 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6985 Enable -funroll-loops for -O2 and above.
6986 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6987 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6988 do not turn on web and rngreg implicitly, if the unroller is not
6989 explicitly enabled.
6990
6991 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6992
6993 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6994 jump functions.
6995
6996 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6997
6998 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6999 * cgraph.h (cgraph_node::rtl_info): Likewise.
7000
7001 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7002
7003 * ipa-cp.c (propagate_constants_across_call): If args are not available
7004 just drop everything to varying.
7005 (find_aggregate_values_for_callers_subset): Watch for missing
7006 edge summary.
7007 (find_more_scalar_values_for_callers_subs): Likewise.
7008 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7009 update_jump_functions_after_inlining, propagate_controlled_uses):
7010 Watch for missing summaries.
7011 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7012 is finished.
7013 (ipa_write_node_info): Watch for missing summaries.
7014 (ipa_read_edge_info): Create new ref.
7015 (ipa_edge_args_sum_t): Add remove.
7016 (IPA_EDGE_REF_GET_CREATE): New macro.
7017 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7018 edge summary.
7019 (remap_edge_change_prob): Likewise.
7020
7021 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7022
7023 * ipa-inline-transform.c (inline_call): update function summaries
7024 after expanidng thunk.
7025
7026 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7027
7028 * ipa-icf.c (sem_function::merge): Update function summaries.
7029 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7030
7031 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7032
7033 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7034 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7035 operand already has scalar mode.
7036 (iptr): Remove SF/DF.
7037
7038 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7039
7040 PR target/91289
7041 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7042 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7043 this.
7044
7045 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7046
7047 * config/i386/sse.md
7048 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7049 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7050 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7051 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7052 <sse>_vmmaskcmp<mode>3):
7053 Change predicates from vector_operand to nonimmediate_operand,
7054 constraints xBm to xm, since scalar operations don't need
7055 memory address alignment.
7056 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7057 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7058 round_saeonly_nimm_predicate with
7059 round_saeonly_nimm_scalar_predicate.
7060 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7061 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7062 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7063 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7064 avx512f_vmfmadd_<mode>_mask3<round_name>,
7065 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7066 *avx512f_vmfmsub_<mode>_mask<round_name>,
7067 avx512f_vmfmsub_<mode>_mask3<round_name>,
7068 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7069 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7070 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7071 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7072 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7073 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7074 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7075 cvtusi2<ssescalarmodesuffix>32<round_name>,
7076 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7077 round_nimm_predicate with round_nimm_scalr_predicate.
7078 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7079 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7080 avx512er_vmrcp28<mode><round_saeonly_name>,
7081 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7082 ): Replace round_saeonly_nimm_predicate with
7083 round_saeonly_nimm_scalar_predicate.
7084 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7085 vector_operand with nonimmediate_operand.
7086 * config/i386/subst.md (round_scalar_nimm_predicate,
7087 round_saeonly_scalar_nimm_predicate): Replace
7088 vector_operand with nonimmediate_operand.
7089
7090 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7091
7092 PR target/89071
7093 * config/i386/i386.md (*rcpsf2_sse): Add
7094 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7095 (*rsqrtsf2_sse): Ditto.
7096 (*sqrt<mode>2_sse): Ditto.
7097 (sse4_1_round<mode>2): separate constraint vm, add
7098 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7099 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7100 by pass rpad.
7101 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7102 Ditto.
7103 (*sse_vmrsqrtv4sf2): Ditto.
7104 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7105 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7106 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7107 <iptr> pointer size modifier since vround support memory operand.
7108
7109 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7110
7111 PR target/85969
7112 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7113 static function.
7114
7115 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7116 Tobias Burnus <tobias@codesourcery.com>
7117
7118 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7119 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7120 common block decls.
7121
7122 2019-10-25 Richard Biener <rguenther@suse.de>
7123
7124 PR tree-optimization/92222
7125 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7126 (_slp_oprnd_info::second_pattern): Likewise.
7127 (_slp_oprnd_info::any_pattern): New.
7128 (vect_create_oprnd_info): Adjust.
7129 (vect_get_and_check_slp_defs): Compute whether any stmt is
7130 in a pattern.
7131 (vect_build_slp_tree_2): Avoid building up a node from scalars
7132 if any of the operand defs, not just the first, is in a pattern.
7133
7134 2019-10-25 Richard Biener <rguenther@suse.de>
7135
7136 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7137 swapping if we actually have to modify the IL on a shared stmt.
7138 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7139 because we no longer modify the IL.
7140
7141 2019-10-25 Martin Liska <mliska@suse.cz>
7142
7143 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7144
7145 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7146
7147 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7148 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7149 handled by vect_transform_reduction. Allow fully-masked loops
7150 to be used with reduction chains.
7151 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7152 operations in fully-masked loops.
7153 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7154 operations in fully-masked loops.
7155
7156 2019-10-25 Richard Biener <rguenther@suse.de>
7157
7158 * tree-vect-loop.c (vectorizable_reduction): Verify
7159 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7160 correctly.
7161 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7162 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7163 stmts.
7164
7165 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7166
7167 * gimplify.h (omp_construct_selector_matches): Declare.
7168 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7169 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7170 called function if needed for flag_openmp.
7171 (gimplify_scan_omp_clauses): Set ctx->code.
7172 (omp_construct_selector_matches): New function.
7173 * omp-general.h (omp_constructor_traits_to_codes,
7174 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7175 * omp-general.c (omp_constructor_traits_to_codes,
7176 omp_context_selector_matches, omp_resolve_declare_variant): New
7177 functions.
7178
7179 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7180 literal.
7181 * config/rx/rx.c (rx_print_operand): Likewise.
7182 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7183 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7184 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7185 Likewise.
7186 * genemit.c (emit_c_code): Likewise.
7187 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7188
7189 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7190
7191 * symbols-summary.h (fast_function_summary<T *, V>::release,
7192 fast_call_summary<T *, V>::release): Free m_vector.
7193
7194 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7195
7196 * cgraphunit.c (symbol_table::process_new_functions): Call
7197 ipa_free_size_summary.
7198 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7199 (devirtualization_time_bonus): Update.
7200 (ipcp_propagate_stage): Update.
7201 * ipa-fnsummary.c (ipa_size_summaries): New.
7202 (ipa_fn_summary_alloc): Alloc size summary.
7203 (dump_ipa_call_summary): Update.
7204 (ipa_dump_fn_summary): Update.
7205 (analyze_function_body): Update.
7206 (compute_fn_summary): Likewise.
7207 (ipa_get_stack_frame_offset): New function.
7208 (inline_update_callee_summaries): Do not update frame offsets.
7209 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7210 remove call and function summary.
7211 (ipa_update_overall_fn_summary): Update.
7212 (inline_read_section): Update.
7213 (ipa_fn_summary_write): Update.
7214 (ipa_free_fn_summary): Do not remove summaries.
7215 (ipa_free_size_summary): New.
7216 (release summary pass): Also run at WPA.
7217 * ipa-fnsummary.h (ipa_size_summary): Declare.
7218 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7219 estimated_self_stack_size.
7220 (ipa_size_summary_t): New type.
7221 (ipa_size_summaries): Declare.
7222 (ipa_free_size_summary): Declare.
7223 (ipa_get_stack_frame_offset): Declare.
7224 * ipa-icf.c (sem_function::merge): Update.
7225 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7226 (estimate_growth): Update.
7227 (growth_likely_positive): Update.
7228 (clone_inlined_nodes): Update.
7229 (inline_call): Update.
7230 * ipa-inline.c (caller_growth_limits): Update.
7231 (edge_badness): Update.
7232 (recursive_inlining): Update.
7233 (inline_small_functions): Update.
7234 (inline_to_all_callers_1): Update.
7235 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7236
7237 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7238
7239 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7240 (uavg<mode>3_ceil): ... This.
7241 (altivec_vavgs<VI_char>): Rename to...
7242 (avg<mode>3_ceil): ... This.
7243 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7244 VAVGUW, VAVGSW): Adjust.
7245
7246 2019-10-24 Nathan Sidwell <nathan@acm.org>
7247
7248 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7249
7250 2019-10-24 Martin Liska <mliska@suse.cz>
7251
7252 * symbol-summary.h (gt_pch_nx): Mark all functions
7253 with gcc_unreachable as we do not expect to be called.
7254
7255 2019-10-24 Richard Biener <rguenther@suse.de>
7256
7257 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7258 chains try harder with operand swapping and instead of
7259 putting a shifted chain into the reduction operands put
7260 a repetition of the final reduction op there as if we'd
7261 reassociate the expression.
7262
7263 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7264
7265 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7266 statics_not_read and statics_not_written to statics_read and
7267 statics_written respectively.
7268 (no_module_statics): New static var.
7269 (ipa_reference_get_not_read_global): Rename to ...
7270 (ipa_reference_get_read_global): ... this.
7271 (ipa_reference_get_not_written_global): Rename to ...
7272 (ipa_reference_get_written_global): ... this.
7273 (dump_static_vars_set_to_file): Dump no_module_statics.
7274 (copy_static_var_set): Add for propagation parameter.
7275 (ipa_init): Initialize no_module_statics.
7276 (ipa_ref_opt_summary_t::duplicate): Update.
7277 (ipa_ref_opt_summary_t::remove): Update.
7278 (propagate): Update.
7279 (write_node_summary_p): Look correctly for bitmap differences.
7280 (ipa_reference_write_optimization_summary): Update.
7281 (ipa_reference_read_optimization_summary): Update.
7282 * ipa-reference.h
7283 (ipa_reference_get_not_read_global): Rename to ...
7284 (ipa_reference_get_read_global): ... this.
7285 (ipa_reference_get_not_written_global): Rename to ...
7286 (ipa_reference_get_written_global): ... this.
7287 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7288 (call_may_clobber_ref_p_1): Update.
7289
7290 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7291
7292 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7293 and add comment.
7294 (msp430_hard_regno_nregs_with_padding): Remove.
7295
7296 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7297
7298 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7299 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7300 shift amount is between 1 and 4.
7301 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7302 is between 1 and 4.
7303
7304 2019-10-24 Richard Biener <rguenther@suse.de>
7305
7306 PR tree-optimization/92205
7307 * tree-vect-loop.c (vectorizable_reduction): Restrict
7308 search for alternate vectype_in to lane-reducing patterns
7309 we support.
7310
7311 2019-10-24 Richard Biener <rguenther@suse.de>
7312
7313 PR tree-optimization/92203
7314 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7315 Skip eliminating conversion stmts inserted by insertion.
7316
7317 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7318
7319 * config/s390/s390.c (s390_get_thread_pointer): Use
7320 gen_get_thread_pointer.
7321 (s390_expand_split_stack_prologue): Likewise.
7322 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7323 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7324 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7325 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7326 parameterized name.
7327
7328 2019-10-24 Richard Biener <rguenther@suse.de>
7329
7330 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7331 SLP discovery fails try to handle the reduction as part
7332 of SLP reduction discovery.
7333
7334 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7335
7336 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7337 declaration.
7338 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7339 attribute if it exists, rather than the insn size. If we use the
7340 insn size, adjust the size to remove the extra size that prefixed
7341 instructions take.
7342 (rs6000_adjust_insn_length): New function.
7343 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7344 update the instruction sized if prefixed instructions are used.
7345 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7346 (non_prefixed_length attribute): Delete.
7347 (num_insns attribute): New insn attribute to return the number of
7348 instructions.
7349 (max_prefixed_insns attribute): New insn attribute to return the
7350 maximum number of prefixed instructions in an insn.
7351 (length attribute): Do not adjust for prefix instructions here,
7352 punt to ADJUST_INSN_LENGTH.
7353 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7354 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7355 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7356 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7357 max_prefixed_insns and num_insns.
7358
7359 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7360 (movtd_64bit_nodm): Reformat.
7361 (mov<mode>_32bit): Reformat.
7362 (mov<mode>_softfloat): Reformat.
7363 (FMOVE128_GPR splitter): Reformat.
7364 (DIFD splitter): Reformat.
7365 (TI2 splitter): Reformat.
7366 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7367 bits of the offset for the memory address are non-zero, use PLWA
7368 if prefixed instructions are available.
7369
7370 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7371
7372 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7373
7374 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7375
7376 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7377 previous patch.
7378
7379 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7380
7381 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7382 (cmp_symbol_files): New.
7383 (lto_output): Copy sections in file order.
7384 * lto-streamer.h (lto_file_decl_data): Add field order.
7385
7386 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7387
7388 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7389 * ipa-reference.c (reference_vars_map_t): new type.
7390 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7391 (ipa_reference_var_uid): Implement.
7392 (varpool_node_hooks): New static var.
7393 (varpool_removal_hook): New function.
7394 (is_improper): Do not check bitmap for id==-1
7395 (get_static_name): Update.
7396 (ipa_init): Initialize new datastructures.
7397 (analyze_function): Do not recompute ids.
7398 (propagate): Free reference_vars_to_consider.
7399 (stream_out_bitmap): Update.
7400 (ipa_reference_read_optimization_summary): Update.
7401
7402 2019-10-23 qing zhao <qing.zhao@oracle.com>
7403
7404 PR gcov-profile/91971
7405 * coverage.c (coverage_init): Mangle the full path of filename when
7406 filename is a absolute path.
7407
7408 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7409
7410 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7411 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7412 (msp430_has_hwmult): New.
7413 (msp430_output_labelref):
7414 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7415 * config/msp430/msp430.md (mulhisi3): Likewise.
7416 (umulhisi3): Likewise.
7417 (mulsidi3): Likewise.
7418 (umulsidi3): Likewise.
7419
7420 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7421
7422 PR ipa/92074
7423 * params.def (inline-heuristics-hint-percent): Set to 600.
7424
7425 2019-10-23 Richard Biener <rguenther@suse.de>
7426
7427 PR tree-optimization/65930
7428 * tree-vect-loop.c (check_reduction_path): Allow conversions
7429 that only change the sign.
7430 (vectorizable_reduction): Relax latch def stmts we handle further.
7431
7432 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7433
7434 PR debug/90231
7435 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7436 (remove_unused_ivs): Use it instead of get_computation_at. When
7437 choosing best candidate, only consider candidates where
7438 get_debug_computation_at actually returns non-NULL.
7439
7440 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7441
7442 PR tree-optimization/92131
7443 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7444 range would be symbolic, drop to varying for any explicit overflow
7445 in the constant part or if neither range is a singleton.
7446
7447 2019-10-23 Martin Liska <mliska@suse.cz>
7448
7449 PR middle-end/81669
7450 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7451 Initialize m_data.
7452
7453 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7454
7455 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7456 int_mode_for_mode rather than mode_for_int_vector for scalars.
7457
7458 2019-10-23 Richard Biener <rguenther@suse.de>
7459
7460 PR tree-optimization/92179
7461 * tree-vect-stmts.c (vectorizable_shift): For shift args
7462 that are all the same remove type restriction in the SLP case.
7463 Adjust SLP code to handle converting of the shift arg to
7464 only apply in case the modes are different.
7465
7466 2019-10-23 Martin Liska <mliska@suse.cz>
7467
7468 PR ipa/91969
7469 * ipa-inline.c (recursive_inlining): Do not print
7470 when curr->count is not initialized.
7471
7472 2019-10-23 Richard Biener <rguenther@suse.de>
7473
7474 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7475 op from scalars in case there's a constant operand in its
7476 definition.
7477
7478 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7479
7480 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7481 against out of range max skip or log values.
7482
7483 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7484
7485 * cgraph.c (dump_graphviz): Change name to dump_name
7486
7487 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7488
7489 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7490 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7491 subtraction from a carry operation.
7492
7493 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7494
7495 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7496
7497 2019-10-22 Richard Biener <rguenther@suse.de>
7498
7499 PR tree-optimization/92173
7500 * tree-vect-loop.c (vectorizable_reduction): If
7501 vect_transform_reduction cannot handle code-generation try without
7502 the single-def-use-cycle optimization. Pass optab_vector to
7503 optab_for_tree_code to get vector shifts as that's what we'd
7504 generate.
7505
7506 2019-10-22 Michael Matz <matz@suse.de>
7507
7508 PR middle-end/90796
7509 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7510 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7511 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7512
7513 2019-10-22 Richard Biener <rguenther@suse.de>
7514
7515 PR tree-optimization/92173
7516 * tree-vect-loop.c (vectorizable_reduction): If
7517 vect_transform_reduction cannot handle code-generation try without
7518 the single-def-use-cycle optimization. Pass optab_vector to
7519 optab_for_tree_code to get vector shifts as that's what we'd
7520 generate.
7521
7522 2019-10-22 Martin Liska <mliska@suse.cz>
7523
7524 * diagnostic-format-json.cc (json_from_expanded_location):
7525 Use json::integer_number.
7526 * gcov.c (output_intermediate_json_line): Use new
7527 json::integer_number.
7528 (output_json_intermediate_file): Likewise.
7529 * json.cc (number::print): Move to ...
7530 (float_number::print): ... this.
7531 (integer_number::print): New.
7532 (test_writing_numbers): Move to ...
7533 (test_writing_float_numbers): ... this.
7534 (test_writing_integer_numbers): New.
7535 (json_cc_tests): Register test_writing_integer_numbers.
7536 * json.h (class value): Add forward declaration
7537 for float_number and integer_number.
7538 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7539 (class number): Move to ...
7540 (class float_number): ... this.
7541 (class integer_number): New.
7542 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7543 Use json::integer_number.
7544 (optrecord_json_writer::location_to_json): Likewise.
7545 (optrecord_json_writer::profile_count_to_json): Likewise.
7546 (optrecord_json_writer::pass_to_json): Likewise.
7547
7548 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7549
7550 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7551 autodetected_vector_size rather than vector_size is zero.
7552 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7553 Set autodetected_vector_size immediately after calling
7554 vect_analyze_loop_2. Check for a fatal error before advancing
7555 next_size.
7556
7557 2019-10-21 Jason Merrill <jason@redhat.com>
7558
7559 * lock-and-run.sh: Check for process existence rather than timeout.
7560
7561 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7562
7563 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7564 widening multiplication.
7565
7566 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7567
7568 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7569 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7570 type attribute.
7571 (subsi3_carryin_shift): Separate into register and constant controlled
7572 alternatives. Use shift_amount_operand for operand 4. Set shift
7573 attribute and simplify type attribute.
7574 (subsi3_carryin_shift_alt): Likewise.
7575 (rsbsi3_carryin_shift): Likewise.
7576 (rsbsi3_carryin_shift_alt): Likewise.
7577 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7578 and register controlled shifts into distinct alternatives.
7579 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7580 (andsi_not_shiftsi_si_scc): Likewise.
7581 (arm_cmpsi_negshiftsi_si): Likewise.
7582 (not_shiftsi): Remove redundant M constraint from alternative 1.
7583 (not_shiftsi_compare0): Likewise.
7584 (arm_cmpsi_insn): Remove redundant alternative 2.
7585 (cmpsi_shift_swp): Likewise.
7586 (sub_shiftsi): Likewise.
7587 (sub_shiftsi_compare0_scratch): Likewise.
7588 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7589 (thumb2_cmpsi_neg_shiftsi): Likewise.
7590
7591 2019-10-21 Richard Biener <rguenther@suse.de>
7592
7593 PR tree-optimization/92162
7594 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7595 STMT_VINFO_REDUC_IDX in reduc_info.
7596 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7597
7598 2019-10-21 Richard Biener <rguenther@suse.de>
7599
7600 * tree-vectorizer.h (_slp_tree::ops): New member.
7601 (SLP_TREE_SCALAR_OPS): New.
7602 (vect_get_slp_defs): Adjust prototype.
7603 * tree-vect-slp.c (vect_free_slp_tree): Release
7604 SLP_TREE_SCALAR_OPS.
7605 (vect_create_new_slp_node): Initialize it. New overload for
7606 initializing by an operands array.
7607 (_slp_oprnd_info::ops): New member.
7608 (vect_create_oprnd_info): Initialize it.
7609 (vect_free_oprnd_info): Release it.
7610 (vect_get_and_check_slp_defs): Populate the operands array.
7611 Do not swap operands in the IL when not necessary.
7612 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7613 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7614 swap operands in the operands array. Do not swap operands in
7615 the IL.
7616 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7617 (vect_gather_slp_loads): Fix.
7618 (vect_detect_hybrid_slp_stmts): Likewise.
7619 (vect_slp_analyze_node_operations_1): Search for a internal
7620 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7621 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7622 the def-type push/pop dance.
7623 (vect_get_constant_vectors): Compute number_of_vectors here.
7624 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7625 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7626 (vect_get_slp_defs): Simplify greatly.
7627 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7628 (vect_transform_reduction): Likewise.
7629 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7630 (vectorizable_call): Likewise.
7631 (vectorizable_operation): Likewise.
7632 (vectorizable_load): Likewise.
7633 (vectorizable_condition): Likewise.
7634 (vectorizable_comparison): Likewise.
7635
7636 2019-10-21 Richard Biener <rguenther@suse.de>
7637
7638 PR tree-optimization/92161
7639 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7640 for reductions.
7641
7642 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7643
7644 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7645 (aarch64_rndr): New define_insn.
7646 (aarch64_rndrrs): Likewise.
7647 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7648 (TARGET_RNG): Likewise.
7649 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7650 argument.
7651 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7652 Add fourth argument in prototype.
7653 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7654 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7655 (aarch64_init_rng_builtins): Define.
7656 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7657 (aarch64_expand_rng_builtin): Define.
7658 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7659 RNG builtins.
7660 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7661 __ARM_FEATURE_RNG when TARGET_RNG.
7662 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7663
7664 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7665
7666 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7667 alignment is more restrictive.
7668
7669 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7670
7671 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7672 (vect_update_max_nunits): Update comment.
7673 (current_vector_size): Delete.
7674 * tree-vect-stmts.c (current_vector_size): Likewise.
7675 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7676 of current_vector_size.
7677 (get_mask_type_for_scalar_type): Likewise.
7678 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7679 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7680 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7681 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7682 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7683 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7684
7685 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7686
7687 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7688 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7689 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7690 accordingly.
7691
7692 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7693
7694 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7695 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7696 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7697 call accordingly.
7698 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7699
7700 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7701
7702 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7703 a loop_vec_info.
7704 (vect_set_loop_condition_masked): Update call accordingly.
7705
7706 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7707
7708 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7709 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7710 (simple_integer_narrowing): Update call accordingly.
7711 (vectorizable_conversion): Likewise.
7712
7713 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7714
7715 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7716 (vectorizable_call): Update call accordingly.
7717
7718 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7719
7720 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7721 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7722 (duplicate_and_interleave): Update call accordingly.
7723 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7724
7725 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7726
7727 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7728 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7729 (vect_get_constant_vectors): Update call accordingly.
7730 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7731
7732 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7733
7734 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7735 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7736 (vect_prologue_cost_for_slp_op): Update call accordingly.
7737 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7738 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7739 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7740 (get_mask_type_for_scalar_type): Likewise.
7741 (vect_get_vector_types_for_stmt): Likewise.
7742 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7743 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7744 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7745 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7746 (vect_split_statement, vect_convert_input): Likewise.
7747 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7748 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7749 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7750 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7751 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7752 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7753 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7754 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7755 (vect_recog_mask_conversion_pattern): Likewise.
7756 (vect_add_conversion_to_pattern): Likewise.
7757 (vect_recog_gather_scatter_pattern): Likewise.
7758 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7759 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7760
7761 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7762
7763 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7764 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7765 (vect_check_load_store_mask): Update call accordingly.
7766 (vect_get_mask_type_for_stmt): Likewise.
7767 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7768 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7769 (vect_convert_mask_for_vectype): Likewise.
7770
7771 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7772
7773 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7774 a vec_info.
7775 (vect_recog_dot_prod_pattern): Update call accordingly.
7776 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7777 (vect_recog_widen_sum_pattern): Likewise.
7778
7779 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7780
7781 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7782 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7783 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7784 accordingly.
7785
7786 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7787
7788 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7789 get_vectype_for_scalar_type_and_size instead of
7790 get_vectype_for_scalar_type.
7791
7792 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7793
7794 * common.opt (-fcommon): Fix description.
7795
7796 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7797
7798 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7799 * config/i386/i386.c (ix86_pre_reload_split): New function.
7800 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7801 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7802 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7803 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7804 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7805 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7806 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7807 *<shift_insn><dwi>3_doubleword_mask,
7808 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7809 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7810 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7811 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7812 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7813 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7814 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7815 *avx2_<code>v8qiv8si2<mask_name>_2,
7816 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7817 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7818 *avx512f_<code>v8qiv8di2<mask_name>_2,
7819 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7820 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7821 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7822 sse4_2_pcmpistr): Likewise.
7823
7824 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7825
7826 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7827 now defaults to https.
7828
7829 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7830
7831 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7832 skip non-zero array accesses.
7833
7834 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7835
7836 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7837 and return a boolean success value. Move the allocation and
7838 initialization of the bb_vec_info to...
7839 (vect_slp_bb_region): ...here. Update call accordingly.
7840 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7841 than in vect_slp_analyze_bb_1.
7842
7843 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7844
7845 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7846 when processing the given datarefs for the first time and
7847 check_datarefs subsequently.
7848 (vect_slp_bb_region): New function, split out of...
7849 (vect_slp_bb): ...here. Don't recompute the region bounds and
7850 dataref sets when retrying with a different vector size.
7851
7852 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7853 Uroš Bizjak <ubizjak@gmail.com>
7854
7855 PR target/92140
7856 * config/i386/predicates.md (int_nonimmediate_operand): New special
7857 predicate.
7858 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7859 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7860 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7861 define_insn_and_split patterns.
7862
7863 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7864
7865 * config/rs6000/rs6000.md: Delete out--of-date comment about
7866 special-casing integer loads.
7867
7868 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7869
7870 * escaped_string.h (escaped_string): New header.
7871 * tree.c (escaped_string): Remove escaped_string class.
7872
7873 2019-10-18 Martin Sebor <msebor@redhat.com>
7874
7875 PR tree-optimization/92157
7876 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7877 compute_string_length to return a negative result.
7878
7879 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7880
7881 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7882 (negvsi3, negvdi3): Delete.
7883 (negdi2_compare): Delete.
7884
7885 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7886
7887 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7888 operations.
7889 (subdi3_compare1): Delete pattern.
7890 (subvsi3_borrow): New insn pattern.
7891 (subvsi3_borrow_imm): Likewise.
7892
7893 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7894
7895 * config/arm/arm.md (subv<mode>4): Delete.
7896 (subvdi4): New expander pattern.
7897 (subvsi4): Likewise. Handle some immediate values.
7898 (subvsi3_intmin): New insn pattern.
7899 (subvsi3): Likewise.
7900 (subvsi3_imm1): Likewise.
7901 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7902 idioms.
7903
7904 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7905
7906 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7907 incoming operands. Early split the calculation into SImode
7908 operations.
7909 (usubvsi3_borrow): New insn pattern.
7910 (usubvsi3_borrow_imm): Likewise.
7911
7912 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7913
7914 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7915 (usubvsi4): New pattern. Allow some immediate values for inputs.
7916 (usubvdi4): New pattern.
7917
7918 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7919
7920 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7921 or second operand of the PLUS inside a DImode equality test to be
7922 sign-extend when selecting CC_Vmode.
7923 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7924 instructions.
7925 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7926 expand patterns.
7927 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7928 (addsi3_cin_vout_0): Likewise.
7929 (adddi3_compareV): Delete.
7930
7931 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7932
7933 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7934 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7935 to transform this back into the summation version when that leads
7936 to smaller code.
7937
7938 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7939
7940 * config/arm/arm.md (addv<mode>4): Delete.
7941 (addvsi4): New pattern. Handle immediate values that the architecture
7942 supports.
7943 (addvdi4): New pattern.
7944 (addsi3_compareV): Rename to ...
7945 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7946 and use COMPARE rather than NE.
7947 (addsi3_compareV_imm): New pattern.
7948 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7949 a signed-overflow check.
7950
7951 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7952
7953 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7954 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7955 CC_ADCmode.
7956 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7957 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7958 with overflow.
7959 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7960 expand patterns.
7961 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7962 (addsi3_cin_cout_imm_insn): Likewise.
7963 (adddi3_compareC): Delete insn.
7964 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7965
7966 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7967
7968 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7969 * (uaddv<mode>4): Delete expansion pattern.
7970 (uaddvsi4): New pattern.
7971 (uaddvdi4): Likewise.
7972 (addsi3_compareC): Delete pattern, change callers to use
7973 addsi3_compare_op1.
7974 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7975 reduce the number of alternatives and re-work type attribute handling.
7976 (addsi3_compare_op2): Clean up constraints to reduce the number of
7977 alternatives and re-work type attribute handling.
7978 (compare_addsi2_op0): Likewise.
7979 (compare_addsi2_op1): Likewise.
7980
7981 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7982
7983 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7984 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7985 for DImode operands.
7986 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7987 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7988 CC_NCVmode.
7989 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7990 (arm_cmpdi_unsigned): Delete.
7991
7992 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7993
7994 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7995 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7996 unchanged only if that will be cheaper.
7997 (arm_select_cc_mode): Recognize a swapped comparison that will
7998 be regenerated using RSBS or RSCS. Relax restriction on selecting
7999 CC_RSBmode.
8000 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8001 a constant.
8002 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8003 is CC_RSBmode.
8004 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8005 as CCmode.
8006 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8007 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8008
8009 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8010
8011 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8012 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8013 need these modes.
8014 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8015 of EQ, NE, LT, GE, LTU and GEU.
8016 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8017 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8018 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8019 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8020 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8021
8022 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8023
8024 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8025 operand 2.
8026 (cstoredi4): Similarly, but for operand 3.
8027 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8028 canonicalization of unsigned compares with a constant on Arm.
8029 Prefer using const+1 and adjusting the comparison over swapping the
8030 operands whenever the original constant was not valid.
8031 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8032 register here.
8033 (arm_validize_comparison): Do not force invalid DImode operands to
8034 registers here.
8035
8036 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8037
8038 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8039 return CC_Zmode if comparing against a constant where one word is
8040 zero.
8041 (arm_gen_compare_reg): Split DImode handling to ...
8042 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8043 against simple constants.
8044 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8045
8046 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8047
8048 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8049 (rsbsi3_carryin_shift_alt): Likewise.
8050
8051 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8052
8053 * config/arm/arm.md (negscc_borrow): New pattern.
8054 (mov_negscc): Don't split if the insn would match negscc_borrow.
8055 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8056 (thumb2_mov_negscc_strict_it): Likewise.
8057
8058 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8059
8060 * config/arm/arm.c (arm_insn_cost): New function.
8061 (TARGET_INSN_COST): Override default definition.
8062
8063 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8064
8065 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8066 borrow operations.
8067
8068 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8069
8070 * config/arm/arm.c (strip_carry_operation): New function.
8071 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8072 for SImode.
8073
8074 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8075
8076 * config/arm/predicates.md (arm_carry_operation): New special
8077 predicate.
8078 * config/arm/iterators.md (LTUGEU): Delete iterator.
8079 (cnb): Delete code attribute.
8080 (optab): Delete ltu and geu elements.
8081 * config/arm/arm.md (addsi3_carryin): Renamed from
8082 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8083 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8084 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8085 (addsi3_carryin_clobercc): Similarly.
8086 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8087 Thumb2 state.
8088
8089 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8090
8091 * config/arm/arm.md (arm_subdi3): Delete insn.
8092 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8093
8094 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8095
8096 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8097 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8098 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8099 return CC_RSBmode.
8100 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8101 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8102 expand.
8103 (subdi3): Rewrite to early-expand the sub-operations.
8104 (rsb_im_compare): New pattern.
8105 (negdi2): Delete.
8106 (negdi2_insn): Delete.
8107 (arm_negsi2): Correct type attribute to alu_imm.
8108 (negsi2_0compare): New insn pattern.
8109 (negsi2_carryin): New insn pattern.
8110
8111 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8112
8113 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8114 operand 2.
8115
8116 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8117
8118 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8119 to match canonical form.
8120
8121 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8122
8123 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8124 (extend<mode>di2): Likewise.
8125
8126 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8127
8128 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8129 * config/arm/arm.c (arm_decompose_di_binop): New function.
8130 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8131 If not generating Thumb-1 code, decompose the operation into 32-bit
8132 pieces.
8133 * add0si_carryin_<optab>: New pattern.
8134
8135 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8136
8137 * arm.md (adddi3): Only accept register operands.
8138 (arm_adddi3): Convert to simple insn with no split. Do not accept
8139 constants.
8140 (adddi_sesidi_di): Delete patern.
8141 (adddi_zesidi_di): Likewise.
8142 (uaddv<mode>4): Use LTU as condition for branch.
8143 (adddi3_compareV): Convert to simple insn with no split.
8144 (addsi3_compareV_upper): Delete pattern.
8145 (adddi3_compareC): Convert to simple insn with no split. Correct
8146 flags setting expression.
8147 (addsi3_compareC_upper): Delete pattern.
8148 (addsi3_compareC): Correct flags setting expression.
8149 (subdi3_compare1): Convert to simple insn with no split.
8150 (subsi3_carryin_compare): Delete pattern.
8151 (arm_subdi3): Convert to simple insn with no split.
8152 (subdi_zesidi): Delete pattern.
8153 (subdi_di_sesidi): Delete pattern.
8154 (subdi_zesidi_di): Delete pattern.
8155 (subdi_sesidi_di): Delete pattern.
8156 (subdi_zesidi_zesidi): Delete pattern.
8157 (negvdi3): Use s_register_operand.
8158 (negdi2_compare): Convert to simple insn with no split.
8159 (negdi2_insn): Likewise.
8160 (negsi2_carryin_compare): Delete pattern.
8161 (negdi_zero_extendsidi): Delete pattern.
8162 (arm_cmpdi_insn): Convert to simple insn with no split.
8163 (negdi2): Don't call gen_negdi2_neon.
8164 * config/arm/neon.md (adddi3_neon): Delete pattern.
8165 (subdi3_neon): Delete pattern.
8166 (negdi2_neon): Delete pattern.
8167 (splits for negdi2_neon): Delete splits.
8168
8169 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8170
8171 PR middle-end/92153
8172 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8173 than after it.
8174
8175 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8176
8177 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8178 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8179 new multilib variants and new mappings.
8180
8181 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8182
8183 PR target/86040
8184 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8185
8186 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8187 Richard Sandiford <richard.sandiford@arm.com>
8188
8189 PR target/86753
8190 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8191 and define hashmap traits for it.
8192 (loop_vec_info::scalar_cond_masked_set): New member.
8193 (vect_record_loop_mask): Adjust prototype.
8194 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8195 Implement method.
8196 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8197 vect_record_loop_mask.
8198 (vectorizable_live_operation): Likewise.
8199 (vect_record_loop_mask): New param scalar_mask. Add entry
8200 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8201 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8202 Pass it as last arg to vect_record_loop_mask.
8203 (vectorizable_call): Pass scalar_mask as last arg to
8204 vect_record_loop_mask.
8205 (vectorizable_store): Likewise.
8206 (vectorizable_load): Likewise.
8207 (vectorizable_condition): Check if another part of vectorized code
8208 applies loop_mask to condition or to it's inverse, and if yes,
8209 apply loop_mask to result of vector comparison.
8210
8211 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8212
8213 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8214
8215 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8216
8217 PR tree-optimization/92056
8218 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8219 before calling compute_builtin_object_size.
8220
8221 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8222
8223 PR target/65342
8224 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8225 (movdi_low_st): Delete.
8226 * config/rs6000/rs6000.c
8227 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8228 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8229 * config/rs6000/rs6000.md (movsi_low): Delete.
8230
8231 2019-10-17 Jason Merrill <jason@redhat.com>
8232
8233 * gimplify.h (get_initialized_tmp_var): Add default argument to
8234 post_p.
8235 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8236 NULL post_p argument.
8237 * targhooks (std_gimplify_va_arg_expr): Likewise.
8238
8239 2019-10-17 Richard Biener <rguenther@suse.de>
8240
8241 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8242 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8243 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8244 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8245 * tree-vect-loop.c (vect_is_simple_reduction): Set
8246 STMT_VINFO_REDUC_CODE.
8247 (vectorizable_reduction): Remove dead and redundant code, use
8248 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8249
8250 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8251
8252 Fix breakage introduced by r276985.
8253
8254 * config/avr/avr.c (avr_option_override): Remove set of
8255 PARAM_ALLOW_STORE_DATA_RACES.
8256 * common/config/avr/avr-common.c (avr_option_optimization_table)
8257 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8258
8259 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8260
8261 * config/i386/i386.h (processor_costs): Add clear_ratio.
8262 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8263 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8264 of 6 and move_ratio in all cost models.
8265
8266 2019-10-17 Richard Biener <rguenther@suse.de>
8267
8268 * tree-vect-loop.c (check_reduction_path): Compute reduction
8269 operation here.
8270 (vect_is_simple_reduction): Remove special-case of single-stmt
8271 reduction path detection.
8272
8273 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8274
8275 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8276
8277 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8278
8279 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8280 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8281 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8282 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8283 New combine patterns.
8284 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8285 above.
8286 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8287
8288 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8289
8290 * tree-vrp.c (value_range_base::dump): Display +INF for both
8291 pointers and integers when appropriate.
8292
8293 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8294
8295 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8296 when to use versioning threshold.
8297
8298 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8299
8300 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8301 outlined code from ...
8302 (vect_analyze_loop_2): ... here.
8303
8304 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8305
8306 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8307 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8308 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8309
8310 2019-10-17 Richard Biener <rguenther@suse.de>
8311
8312 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8313 (vect_is_simple_reduction): Move all validity checks ...
8314 (vectorizable_reduction): ... here. Compute whether we
8315 need a fold-left reduction here.
8316 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8317 both overloads, check needs_fold_left_reduction_p directly.
8318 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8319
8320 2019-10-17 Richard Biener <rguenther@suse.de>
8321
8322 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8323 TARGET_MEM_REF creation.
8324
8325 2019-10-17 Richard Biener <rguenther@suse.de>
8326
8327 PR tree-optimization/92129
8328 * tree-vect-loop.c (vectorizable_reduction): Also fail
8329 on GIMPLE_SINGLE_RHS.
8330
8331 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8332
8333 PR tree-optimization/92056
8334 * tree-object-size.c (cond_expr_object_size): Return early if then_
8335 processing resulted in unknown size.
8336
8337 PR tree-optimization/92115
8338 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8339 temporary if it could trap.
8340
8341 2019-10-17 Richard Biener <rguenther@suse.de>
8342
8343 PR debug/91887
8344 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8345 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8346
8347 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8348
8349 * tree-ssa-strlen.c (maybe_invalidate): Use
8350 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8351
8352 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8353 Jim Wilson <jimw@sifive.com>
8354
8355 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8356 regs to SIBCALL_REGS.
8357 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8358 passing regs to SIBCALL_REGS.
8359
8360 2019-10-16 Martin Sebor <msebor@redhat.com>
8361
8362 PR tree-optimization/83821
8363 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8364 the length of a string when available.
8365 (handle_builtin_memset) Add argument.
8366 (handle_store, strlen_check_and_optimize_call): Same.
8367 (check_and_optimize_stmt): Same. Pass it to callees.
8368
8369 2019-10-16 Martin Sebor <msebor@redhat.com>
8370
8371 PR tree-optimization/91996
8372 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8373 information.
8374 (compare_nonzero_chars): Add an overload.
8375 (count_nonzero_bytes): Add an argument. Call overload above.
8376 Handle non-constant lengths in some range.
8377 (handle_store): Add an argument.
8378 (check_and_optimize_stmt): Pass an argument to handle_store.
8379
8380 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8381
8382 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8383
8384 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8385
8386 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8387 operands which correspond to the same input-output register to
8388 have the same pseudo assigned to them.
8389
8390 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8391
8392 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8393
8394 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8395
8396 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8397 Apply reasonable limit to symbol offsets.
8398
8399 2019-10-16 Richard Biener <rguenther@suse.de>
8400
8401 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8402 (vect_is_simple_reduction): Delay checking to
8403 vectorizable_reduction and relax the checking.
8404 (vectorizable_reduction): Check we have a simple use. Check
8405 for bogus condition reductions.
8406 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8407 are looking at the last stmt in a pattern sequence when
8408 filling in backedge PHI values.
8409
8410 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8411 Jiufu Guo <guojiufu@linux.ibm.com>
8412
8413 PR target/70010
8414 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8415 the callee explicitly disables some isa_flags the caller is using.
8416
8417 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8418
8419 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8420
8421 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8422
8423 * genmodes.c (mode_data::order): New field.
8424 (blank_mode): Update accordingly.
8425 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8426 (make_vector_modes): Likewise.
8427 (VECTOR_MODES): Update use accordingly.
8428 (cmp_modes): Sort by the new order field ahead of sorting by size.
8429 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8430 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8431 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8432 (aarch64_classify_vector_mode): Handle the new partial modes.
8433 (aarch64_vl_bytes): New function.
8434 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8435 when counting the number of registers in an SVE mode.
8436 (aarch64_class_max_nregs): Likewise.
8437 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8438 in registers yet.
8439 (aarch64_classify_address): Treat partial vectors analogously
8440 to full vectors.
8441 (aarch64_print_address_internal): Consolidate the printing of
8442 MUL VL addresses, using aarch64_vl_bytes as the number of
8443 bytes represented by "VL".
8444 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8445
8446 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8447
8448 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8449 rather than known_lt when choosing frame layouts.
8450
8451 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8452
8453 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8454 that all the adjustments add up to the full frame size.
8455 Use crtl->outgoing_args_size directly as the final adjustment
8456 where appropriate.
8457
8458 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8459
8460 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8461 "frame" reference instead of always referring directly to
8462 "cfun->machine->frame".
8463
8464 2019-10-16 Richard Biener <rguenther@suse.de>
8465
8466 PR tree-optimization/92119
8467 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8468 against missing bswap lhs.
8469
8470 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8471
8472 PR middle-end/92033
8473 * poly-int.h (constant_lower_bound_with_limit): New function.
8474 (constant_upper_bound_with_limit): Likewise.
8475 * doc/poly-int.texi: Document them.
8476 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8477 into the worst-case INTEGER_CST bounds.
8478
8479 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8480
8481 PR ipa/91088
8482 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8483 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8484 * ipa-predicat.h (struct expr_eval_op): New struct.
8485 (expr_eval_ops): New typedef.
8486 (struct condition): Add type and param_ops fields, remove size field.
8487 (add_condition): Replace size parameter with type parameter, add
8488 param_ops parameter.
8489 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8490 (predicate::add_clause): Add comparisons on type and param_ops.
8491 (dump_condition): Add debug dump for param_ops.
8492 (remap_after_inlining): Adjust call arguments to add_condition.
8493 (add_condition): Replace size parameter with type parameter, add
8494 param_ops parameter. Unshare constant value used in conditions.
8495 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8496 parameter expressions using param_ops.
8497 (decompose_param_expr): New function.
8498 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8499 to replace call to unmodified_parm_or_parm_agg_item.
8500 (set_switch_stmt_execution_predicate): Likewise.
8501 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8502 with type.
8503 (inline_read_section): Read param_ops from summary stream.
8504 (ipa_fn_summary_write): Write param_ops to summary stream.
8505
8506 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8507
8508 PR rtl-optimization/92107
8509 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8510 expression written.
8511
8512 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8513
8514 * config/darwin.c: Update description of fix and continue.
8515
8516 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8517
8518 * config/darwin.c (darwin_binds_local_p): Update to call
8519 default_binds_local_p_3 () directly. amend comments.
8520
8521 2019-10-15 Richard Biener <rguenther@suse.de>
8522
8523 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8524 (tree_is_indexable): Use it.
8525 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8526 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8527 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8528
8529 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8530
8531 * config/msp430/msp430.md (zero_extendqipsi2): New.
8532 (zero_extendqisi2): Optimize case where src register and base dst
8533 register are the same.
8534 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8535 (zero_extendpsisi2): Optimize r->m case.
8536 Add unnamed insn patterns to catch insns combine searches for when
8537 optimizing pointer manipulation.
8538
8539 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8540
8541 * config/msp430/msp430.md: Group zero_extend* insns together.
8542
8543 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8544
8545 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8546 constraint.
8547 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8548 POST_INC.
8549 (msp430_subreg): Likewise.
8550 (msp430_split_addsi): Likewise.
8551 (msp430_print_operand_addr): Likewise.
8552 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8553 (USE_STORE_POST_INCREMENT): Define.
8554 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8555 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8556 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8557 (msp430_general_dst_operand): New.
8558 (msp430_general_dst_nonv_operand): New.
8559 (msp430_nonsubreg_operand): Remove.
8560 (msp430_nonsubreg_dst_operand): New.
8561 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8562 of defunct msp430_nonsubreg_operand.
8563 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8564
8565 2019-10-15 Richard Biener <rguenther@suse.de>
8566
8567 PR tree-optimization/91929
8568 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8569 (get_or_alloc_expr_for_name): Initialize it.
8570 (get_or_alloc_expr_for_constant): Likewise.
8571 (phi_translate_1): Copy it.
8572 (create_expression_by_pieces): Use the original location
8573 of the expression for the inserted stmt.
8574 (compute_avail): Record the location of the stmt for the
8575 expressions created.
8576
8577 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8578
8579 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8580 before using tree_to_uhwi.
8581
8582 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8583
8584 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8585
8586 2019-10-15 Richard Biener <rguenther@suse.de>
8587
8588 PR tree-optimization/92094
8589 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8590 do not adjust the reduction definition def type.
8591 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8592 defines the latch argument of the PHI.
8593
8594 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8595
8596 PR target/92035
8597 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8598 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8599 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8600 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8601 _mm_maskz_roundscale_round_sd): New intrinsics.
8602 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8603 __builtin_ia32_rndscales?_mask_round builtins instead of
8604 __builtin_ia32_rndscales?_round.
8605 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8606 __builtin_ia32_rndscalesd_round): Remove.
8607 (__builtin_ia32_rndscaless_mask_round,
8608 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8609 * config/i386/sse.md
8610 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8611 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8612 ... this, adjust and add subst atrributes to make it maskable.
8613
8614 2019-10-15 Richard Biener <rguenther@suse.de>
8615
8616 PR middle-end/92046
8617 * common.opt (fallow-store-data-races): New.
8618 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8619 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8620 * doc/invoke.texi (fallow-store-data-races): Document.
8621 (--param allow-store-data-races): Remove docs.
8622 * opts.c (default_options_table): Enable -fallow-store-data-races
8623 at -Ofast.
8624 (default_options_optimization): Do not enable --param
8625 allow-store-data-races at -Ofast.
8626 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8627 instead of PARAM_ALLOW_STORE_DATA_RACES.
8628 * tree-ssa-loop-im.c (execute_sm): Likewise.
8629
8630 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8631
8632 PR tree-optimization/92085
8633 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8634 instead of calling it unconditionally after
8635 delete_dead_or_redundant_assignment and fix indentation.
8636
8637 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8638
8639 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8640 TARGET_VFP_DOUBLE.
8641 (*fmsub<SDF:mode>4): Likewise.
8642 *fnmsub<SDF:mode>4): Likewise.
8643 (*fnmadd<SDF:mode>4): Likewise.
8644
8645 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8646
8647 * doc/tree-ssa.texi: Update renamed macro name.
8648
8649 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8650
8651 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8652 vector constants.
8653
8654 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8655
8656 * config/darwin.c: Use unsigned ints for the picbase label
8657 counters, initialise the vars explicitly.
8658 (update_pic_label_number_if_needed): Move a variable declaration
8659 to where it's needed.
8660 (machopic_output_function_base_name): Use a more strict checking
8661 assert, and and unsigned int for the picbase label counter.
8662 (machopic_get_function_picbase): Likewise.
8663
8664 2019-10-14 Richard Biener <rguenther@suse.de>
8665
8666 PR middle-end/92046
8667 * dse.c (scan_insn): Use param max_active_local_stores.
8668 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8669 based on optimization level.
8670 * loop-invariant.c (move_loop_invariants): Adjust
8671 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8672 * opts.c (default_options_optimization): Do not adjust
8673 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8674 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8675
8676 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8677
8678 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8679
8680 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8681
8682 * config/arm/arm.c (arm_option_override): Don't override sched
8683 pressure algorithm.
8684
8685 2019-10-14 Richard Biener <rguenther@suse.de>
8686
8687 PR tree-optimization/92069
8688 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8689 cycles do not set vect_nested_cycle on the latch definition.
8690
8691 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8692
8693 * function-abi.h (expr_callee_abi): Declare.
8694 * function-abi.cc (expr_callee_abi): New function.
8695
8696 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8697
8698 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8699 into [1,MAX].
8700 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8701 non-zero being represented as [1,MAX].
8702
8703 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8704
8705 * tree-sra.c (dump_access): Add missing braces.
8706
8707 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8708
8709 * config/darwin.c (machopic_indirection_name): Rework the
8710 function to emit linker-visible symbols only for indirections
8711 in the data section. Clean up the code and update comments.
8712
8713 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8714
8715 * config/darwin.c (machopic_indirect_data_reference): Remove
8716 redundant code.
8717
8718 2019-10-13 Nathan Sidwell <nathan@acm.org>
8719
8720 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8721
8722 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8723
8724 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8725 c99_runtime.
8726
8727 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8728
8729 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8730 so non-virutal are before virutals.
8731 (output_function): Avoid body modifications.
8732
8733 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8734
8735 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8736 %r22. Load function address before global pointer.
8737 (pa_attr_length_indirect_call): Adjust length of inline versions of
8738 $$dyncall.
8739 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8740 before normal cases. Update inline $$dyncall sequences to preserve
8741 function descriptor address in register %r22.
8742 (TRAMPOLINE_CODE_SIZE): Adjust.
8743 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8744 register %r22 contains trampoline address.
8745 (pa_trampoline_init): Adjust offsets.
8746 (pa_trampoline_adjust_address): Likewise.
8747 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8748
8749 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8750
8751 PR target/67183
8752 * config/darwin.c (machopic_indirection): New field to flag
8753 non-lazy-symbol-pointers in the data section.
8754 (machopic_indirection_name): Compute if an indirection should
8755 appear in the data section.
8756 (machopic_output_data_section_indirection): New callback split
8757 from machopic_output_indirection.
8758 (machopic_output_stub_indirection): Likewise.
8759 (machopic_output_indirection): Retain the code for non-lazy
8760 symbol pointers in their regular section.
8761 (machopic_finish): Use the new callbacks to order the indirection
8762 output.
8763
8764 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8765
8766 * config/darwin-protos.h (machopic_finish): Delete.
8767 * config/darwin.c (machopic_finish): Make static.
8768
8769 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8770
8771 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8772 sections when building kernel extension code.
8773
8774 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8775
8776 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8777 later standard."
8778
8779 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8780
8781 * config/pa/pa.c (pa_option_override): Remove trailing comma
8782 from warning.
8783
8784 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8785
8786 PR middle-end/92063
8787 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8788 <case VEC_COND_EXPR>: Return false with *handled = false.
8789 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8790 recursing on the first operand.
8791 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8792 instead of tree_could_trap_p.
8793 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8794
8795 2019-10-11 Jim Wilson <jimw@sifive.com>
8796
8797 PR rtl-optimization/91860
8798 * combine.c (subst): If new_rtx is a constant, also check for
8799 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8800
8801 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8802
8803 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8804 INTVAL when calling store_bit_field.
8805
8806 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8807
8808 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8809 size.
8810
8811 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8812
8813 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8814 vectorizable_live_operation.
8815 (vectorizable_live_operation): Adjust parameters.
8816 * tree-vect-stmts.c (vect_init_vector,
8817 vect_gen_widened_results_half): Fix typo in function comment.
8818 (can_vectorize_live_stmts): Adjust function comment.
8819 Adjust parameters. Adjust call to vectorizable_live_operation.
8820 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8821 (vect_transform_stmt): Adjust function comment. Adjust call to
8822 can_vectorize_live_stmts.
8823 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8824
8825 2019-10-11 Richard Biener <rguenther@suse.de>
8826
8827 PR tree-optimization/90883
8828 PR tree-optimization/91091
8829 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8830 alias-sets both for recording VN table entries and continuing
8831 walking after translating through copies. Handle same-sized
8832 reads from SSA names by returning the plain SSA name.
8833 (eliminate_dom_walker::eliminate_stmt): Properly handle
8834 non-size precision stores in redundant store elimination.
8835
8836 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8837
8838 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8839 (ggc_collect): Dump later to not interfere with release_page dump.
8840 (ggc_trim): New function.
8841 * ggc-none.c (ggc_trim): New.
8842 * ggc.h (ggc_trim): Declare.
8843
8844 2019-10-11 Richard Biener <rguenther@suse.de>
8845
8846 PR tree-optimization/92066
8847 PR tree-optimization/92046
8848 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8849 Fix bogus cost model check.
8850
8851 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8852
8853 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8854 (LANG_HOOKS_DECLS): Add it.
8855 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8856 update comment for omp_is_optional_argument.
8857 * omp-general.c (omp_is_allocatable_or_ptr): New.
8858 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8859 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8860 Fortran's optional arguments and allocatable/pointer scalars
8861 with use_device_addr.
8862
8863 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8864
8865 PR target/77918
8866 * config/s390/2827.md: Add new opcodes.
8867 * config/s390/2964.md: Likewise.
8868 * config/s390/3906.md: Likewise.
8869 * config/s390/8561.md: Likewise.
8870 * config/s390/s390-builtins.def (s390_vfchesb): Use
8871 the new vec_cmpgev4sf_quiet_nocc.
8872 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8873 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8874 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8875 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8876 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8877 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8878 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8879 * config/s390/s390-modes.def (CCSFPS): New mode.
8880 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8881 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8882 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8883 (s390_expand_vec_compare): Use non-signaling patterns where
8884 necessary.
8885 (s390_reverse_condition): Support CCSFPS.
8886 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8887 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8888 (asm_fcmp_op): Likewise.
8889 (*smaxv2df3_vx): Use pattern for quiet comparison.
8890 (*sminv2df3_vx): Likewise.
8891 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8892 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8893 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8894 (vec_cmplt<mode>_quiet_nocc): New expander.
8895 (vec_cmpge<mode>_quiet_nocc): New pattern.
8896 (vec_cmple<mode>_quiet_nocc): New expander.
8897 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8898 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8899 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8900 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8901 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8902 (vec_cmpungt<mode>): New expander.
8903 (vec_cmpunge<mode>): Likewise.
8904 (vec_cmpuneq<mode>): Use quiet patterns.
8905 (vec_cmpltgt<mode>): Allow only on z14+.
8906 (vec_cmpordered<mode>): Use quiet patterns.
8907 (vec_cmpunordered<mode>): Likewise.
8908 (VEC_CMP_EXPAND): Add ungt and unge.
8909
8910 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8911
8912 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8913 parameter.
8914 * lto-streamer-out.c: Include tree-dfa.h.
8915 (output_cfg): Do not use cfun.
8916 (lto_prepare_function_for_streaming): New.
8917 (output_function): Do not push cfun; do not initialize loop optimizer.
8918 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8919 * passes.c (ipa_write_summaries): Use it.
8920 (ipa_write_optimization_summaries): Do not modify bodies.
8921 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8922 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8923 * tree-ssa-dse.c (pass_dse::execute): Update use of
8924 renumber_gimple_stmt_uids.
8925 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8926
8927 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8928
8929 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8930 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8931
8932 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8933
8934 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8935 macros.
8936 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8937 Also define DFP macros for these conditions.
8938 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8939 DEC128_SUBNORMAL_MIN): Do not define.
8940 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8941 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8942
8943 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8944 Sandra Loosemore <sandra@codesourcery.com>
8945
8946 PR middle-end/26241
8947 * doc/lto.texi (IPA): Reference to the IPA passes.
8948 * doc/passes.texi (Pass manager): Add node IPA passes and
8949 description for each IPA pass.
8950
8951 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8952
8953 * ipa-reference.c: Do not include splay-tree.h
8954 (reference_vars_to_consider): Turn to hash map.
8955 (get_static_name, ipa_init, analyze_function, propagate,
8956 stream_out_bitmap, ipa_reference_write_optimization_summary,
8957 ipa_reference_write_optimization_summary): Update.
8958
8959 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8960
8961 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8962
8963 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8964
8965 * config/darwin.c: Lookup Objective C metadata and force indirection
8966 for IVAR refs.
8967
8968 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8969
8970 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8971 addresses.
8972 (mem_operand_gpr): Add check for prefixed addresses.
8973 (mem_operand_ds_form): Add check for prefixed addresses.
8974 (rs6000_legitimate_offset_address_p): If we support prefixed
8975 addresses, check for a 34-bit offset instead of 16-bit.
8976 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8977 Do not allow load/store with update if the address is prefixed.
8978 (rs6000_mode_dependent_address): If we support prefixed
8979 addresses, check for a 34-bit offset instead of 16-bit.
8980
8981 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8982
8983 PR target/77918
8984 * config/s390/vector.md (vcond_comparison_operator): New
8985 predicate.
8986 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8987
8988 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8989
8990 PR 87488
8991 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8992 -D.
8993 * configure.ac (--with-documentation-root-url): New option.
8994 * configure: Regenerate.
8995 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8996 option URL, add it as a new string field of the diagnostic option.
8997 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8998 (print_option_information): If get_option_url is non-NULL, call
8999 it, and if the result is non-NULL, potentially emit an escape
9000 sequence to markup the option text with the resulting URL.
9001 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9002 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9003 example of JSON output.
9004 * opts-diagnostic.h (get_option_url): New decl.
9005 * opts.c (get_option_url): New function.
9006 * toplev.c (general_init): Initialize the get_option_url callback.
9007
9008 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9009
9010 PR 87488
9011 * common.opt (fdiagnostics-urls=): New option.
9012 (diagnostic-url.h): Add SourceInclude.
9013 (diagnostic_url_rule): New enum.
9014 * diagnostic-color.c: Include "diagnostic-url.h".
9015 (diagnostic_urls_enabled_p): New function.
9016 * diagnostic-url.h: New file.
9017 * diagnostic.c: Include "diagnostic-url.h".
9018 (diagnostic_urls_init): New function.
9019 * diagnostic.h (diagnostic_urls_init): New decl.
9020 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9021 -fdiagnostics-urls to the list.
9022 (-fdiagnostics-urls): New option.
9023 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9024 (driver::global_initializations): Call diagnostic_urls_init.
9025 * opts-global.c (init_options_once): Likewise.
9026 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9027 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9028 show_urls.
9029 (pp_begin_url): New function.
9030 (pp_end_url): New function.
9031 (selftest::test_urls): New selftest.
9032 (selftest::pretty_print_c_tests): Call it.
9033 * pretty-print.h (pretty_printer::show_urls): New field.
9034 (pp_begin_url): New decl.
9035 (pp_end_url): New decl.
9036
9037 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9038
9039 PR target/92022
9040 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9041
9042 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9043
9044 PR target/88630
9045 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9046 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9047 also for TARGET_FPU_SH4_300.
9048 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9049 TARGET_SH4_300.
9050 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9051 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9052 (*negsf2_i): Split into ...
9053 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9054 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9055 (**abssf2_i): Split into ...
9056 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9057 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9058 (*negdf2_i): Split into ...
9059 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9060 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9061 (**abssf2_i): Split into ...
9062 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9063
9064 2019-10-10 Richard Biener <rguenther@suse.de>
9065
9066 PR middle-end/92046
9067 * opts.c (finish_options): Do not influence global --params
9068 from options that are adjustable per function.
9069 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9070 Apply --param adjustment based on active cost-model.
9071 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9072 further store-sinking when vectorization or if-conversion
9073 are not enabled.
9074
9075 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9076
9077 PR middle-end/92037
9078 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9079 rather than ggc_alloc_cleared to alloc symbol table.
9080 * toplev.c (general_init): Likewise.
9081 * cgraph.h (symbol_table): Explicitly construct every field.
9082
9083 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9084
9085 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9086 (PF_Z15): ... this.
9087 * config.gcc: Add z15 as option for --with-arch and --with-tune
9088 configure switches.
9089 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9090 error reporting for unsupported builtins.
9091 * config/s390/s390-opts.h (enum processor_type): Rename
9092 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9093 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9094 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9095 Likewise.
9096 * config/s390/s390-builtins.def: Likewise.
9097 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9098 (s390_expand_builtin): Add missing check for unsupported builtins.
9099 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9100 (s390_rtx_costs): Likewise.
9101 (s390_get_sched_attrmask): Rename arch13 to z15.
9102 (s390_get_unit_mask): Likewise.
9103 (s390_is_fpd): Likewise.
9104 (s390_is_fxd): Likewise.
9105 * config/s390/s390.h (enum processor_flags): Likewise.
9106 * config/s390/s390.md: Likewise.
9107 * config/s390/vector.md: Likewise.
9108 * config/s390/vx-builtins.md: Likewise.
9109 * config/s390/s390.opt: Add z15 to processor_type value.
9110
9111 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9112
9113 PR target/91035
9114 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9115 prototype.
9116 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9117 ("split_stack_data", "split_stack_call")
9118 ("split_stack_call_<mode>", "split_stack_cond_call")
9119 ("split_stack_cond_call_<mode>"): Remove.
9120 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9121 insn definition.
9122 * config/s390/s390.c (s390_output_split_stack_data): New function.
9123 (s390_expand_split_stack_prologue): Use the merged expander.
9124
9125 2019-10-09 Martin Sebor <msebor@redhat.com>
9126
9127 PR tree-optimization/90879
9128 * builtins.c (check_access): Avoid using maxbound when null.
9129 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9130 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9131 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9132 conditional.
9133 (get_range_strlen): Overwrite initial maxbound when non-null.
9134 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9135 changes.
9136 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9137 (used_only_for_zero_equality): New function.
9138 (handle_builtin_memcmp): Call it.
9139 (determine_min_objsize): Return an integer instead of tree.
9140 (get_len_or_size, strxcmp_eqz_result): New functions.
9141 (maybe_warn_pointless_strcmp): New function.
9142 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9143 between a longer string and a smaller array.
9144 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9145
9146 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9147
9148 * config/darwin.c (darwin_override_options): Make the check for
9149 Objective-C ABI version more specific for 64bit code.
9150
9151 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9152
9153 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9154 indicate that the new symbol is an indirection.
9155 (machopic_indirect_call_target): Likewise.
9156 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9157 (MACHO_SYMBOL_INDIRECTION_P): New.
9158 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9159
9160 2019-10-08 Jason Merrill <jason@redhat.com>
9161
9162 * doc/invoke.texi: Document -fconcepts-ts.
9163
9164 2019-10-09 Richard Biener <rguenther@suse.de>
9165
9166 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9167 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9168
9169 2019-10-08 Richard Biener <rguenther@suse.de>
9170
9171 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9172 (_stmt_vec_info::force_single_cycle): Likewise.
9173 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9174 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9175 * tree-vect-loop.c (vectorizable_reduction): Set
9176 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9177 (vect_transform_reduction): Use them to remove redundant code.
9178 (vect_transform_cycle_phi): Likewise.
9179
9180 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9181
9182 PR tree-optimization/90836
9183 * match.pd (popcount): New pattern.
9184
9185 2019-10-08 Martin Sebor <msebor@redhat.com>
9186
9187 PR middle-end/92026
9188 PR middle-end/92014
9189 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9190 again once nbytes has been set. Set the access size when not yet set.
9191
9192 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9193
9194 * config/darwin.c (machopic_select_section): Remove dead code for
9195 old Objective-C section selection method, replace with unreachable.
9196
9197 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9198
9199 * config/darwin.c (machopic_indirect_data_reference): Check for
9200 required indirections before making direct access to defined
9201 values.
9202 (machopic_output_indirection): Place the indirected pointes for
9203 required indirections into the non-lazy symbol pointers section.
9204 (darwin_encode_section_info):
9205 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9206 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9207
9208 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9209
9210 PR target/91994
9211 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9212 instead of ALL_SSE_REG to check if function call preserves some
9213 256-bit SSE registers.
9214
9215 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9216
9217 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9218 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9219 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9220
9221 2019-10-08 Richard Biener <rguenther@suse.de>
9222
9223 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9224 (_stmt_vec_info::is_reduc_info): Add.
9225 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9226 (vectorizable_condition): Remove.
9227 (vectorizable_shift): Likewise.
9228 (vectorizable_reduction): Adjust.
9229 (info_for_reduction): New.
9230 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9231 (vect_analyze_scalar_cycles_1): ... here.
9232 (vect_analyze_loop_operations): Adjust.
9233 (needs_fold_left_reduction_p): Simplify for single caller.
9234 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9235 for nested cycles not part of double reductions.
9236 (vect_model_reduction_cost): Pass in the reduction type.
9237 (info_for_reduction): New function.
9238 (vect_create_epilog_for_reduction): Use it, access reduction
9239 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9240 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9241 (vectorize_fold_left_reduction): Remove pointless assert.
9242 (vectorizable_reduction): Analyze the full reduction when
9243 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9244 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9245 stmt code-generation to vectorizable_* in most cases. Verify
9246 code-generation only for cases handled by
9247 vect_transform_reductuon.
9248 (vect_transform_reduction): Use info_for_reduction to get at
9249 reduction meta. Simplify.
9250 (vect_transform_cycle_phi): Likewise.
9251 (vectorizable_live_operation): Likewise.
9252 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9253 at the PHI node for STMT_VINFO_REDUC_TYPE.
9254 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9255 longer necessary code.
9256 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9257 (vectorizable_condition): Likewise. Get at reduction related
9258 info via info_for_reduction.
9259 (vect_analyze_stmt): Adjust.
9260 (vect_transform_stmt): Likewise.
9261 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9262 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9263
9264 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9265
9266 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9267 -fno-fp-int-builtin-inexact default for C2X.
9268
9269 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9270 Richard Biener <rguenther@suse.de>
9271
9272 PR tree-optimization/91532
9273 * tree-if-conv.c: Include tree-ssa-dse.h.
9274 (ifcvt_local_dce): Change param from bb to loop,
9275 and call dse_classify_store.
9276 (tree_if_conversion): Pass loop instead of loop->header as arg
9277 to ifcvt_local_dce.
9278 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9279 (delete_dead_or_redundant_assignment): Remove static qualifier from
9280 declaration, and add prototype in tree-ssa-dse.h.
9281 (dse_store_status): Move to tree-ssa-dse.h.
9282 (dse_classify_store): Remove static qualifier and add new tree param
9283 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9284 * tree-ssa-dse.h: New header.
9285
9286 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9287
9288 * config/darwin.c (machopic_output_indirection): Don't put
9289 hidden symbol indirections into the .data section, use the
9290 non-lazy symbol pointers section as normal.
9291 (darwin_encode_section_info): Record if a symbol is hidden.
9292 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9293 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9294
9295 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9296
9297 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9298 predicates instead of accessing bits directly.
9299 (machopic_indirect_call_target): Likewise.
9300 (machopic_output_indirection): Likewise.
9301 (darwin_encode_section_info): Improve description. Use renamed
9302 symbol flags. Use predicate macros for variables and functions.
9303 * config/darwin.h:
9304 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9305 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9306 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9307 (MACHO_SYMBOL_VARIABLE_P): New.
9308 (MACHO_SYMBOL_DEFINED_P):New.
9309 (MACHO_SYMBOL_STATIC_P): New.
9310 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9311 (SYMBOL_FLAG_SUBT_DEP): New.
9312 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9313
9314 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9315
9316 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9317 (msp430_expand_epilogue): Likewise.
9318 * config/msp430/predicates.md: Likewise.
9319 * config/msp430/msp430.md: Likewise.
9320 Replace blocks of 8 spaces with tabs.
9321
9322 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9323
9324 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9325 * config/msp430/msp430.c (msp430_split_addsi): New.
9326 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9327 a block of C code for splitting addsi.
9328
9329 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9330
9331 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9332 ix86_expand_rounddf_32): Reorder functions.
9333 * config/i386/i386-protos.h: Update.
9334
9335 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9336
9337 * config.in: Regenerate.
9338 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9339 Add new "Yx" constraint.
9340 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9341 function.
9342 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9343 prototype.
9344 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9345 code/data region to be selected in the small memory model.
9346 (msp430_section_attr): Don't warn if the "section" and "lower"
9347 attributes are used together.
9348 (msp430_handle_generic_attribute): Likewise.
9349 (msp430_var_in_low_mem): New function.
9350 (TARGET_ENCODE_SECTION_INFO): Define.
9351 (msp430_encode_section_info): New function.
9352 (gen_prefix): Return early in the small memory model.
9353 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9354 ".lower" prefix if -m{code,data}-region=lower have been passed.
9355 (msp430_output_aligned_decl_common): Emit common symbols when
9356 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9357 set.
9358 (TARGET_ASM_FILE_END): Define.
9359 (msp430_file_end): New function.
9360 (msp430_do_not_relax_short_jumps): Allow relaxation when
9361 function will be in the lower region.
9362 (msp430_op_not_in_high_mem): New function.
9363 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9364 the 'X' operand selector.
9365 Clarify comment for 'x' operand selector.
9366 * config/msp430/msp430.h (LINK_SPEC): Propagate
9367 -m{code,data}-region to the linker via spec function
9368 msp430_propagate_region_opt.
9369 (msp430_propagate_region_opt): New prototype.
9370 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9371 (SYMBOL_FLAG_LOW_MEM): Define.
9372 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9373 selector.
9374 (zero_extendqihi2): Fix operand number used by "%X" selector.
9375 (zero_extendqisi2): Likewise.
9376 (zero_extendhisi2): Likewise.
9377 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9378 (movhi): Likewise.
9379 (addqi3): Likewise.
9380 (addhi3): Likewise.
9381 (addsi3): Likewise.
9382 (addhi3_cy): Likewise.
9383 (addchi4_cy): Likewise.
9384 (subqi3): Likewise.
9385 (subhi3): Likewise.
9386 (subsi3): Likewise.
9387 (bic<mode>3): Likewise.
9388 (and<mode>3): Likewise.
9389 (ior<mode>3): Likewise.
9390 (xor<mode>3): Likewise.
9391 (slli_1): Add missing "%X" operand selector.
9392 (slll_1): Likewise.
9393 (slll_2): Likewise.
9394 (srai_1): Likewise.
9395 (sral_1): Likewise.
9396 (sral_2): Likewise.
9397 (srli_1): Likewise.
9398 (srll_1): Likewise.
9399 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9400 selector.
9401 (cbranchhi4_real): Likewise.
9402 (cbranchqi4_reversed): Likewise.
9403 (cbranchhi4_reversed): Likewise.
9404 (*bitbranch<mode>4): Likewise.
9405 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9406 * config/msp430/msp430.opt (mcode-region=): Set default to
9407 MSP430_REGION_LOWER. Improve docstring.
9408 (mdata-region=): Likewise.
9409 (muse-lower-region-prefix): New option.
9410 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9411 mdata-region=none multilib.
9412 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9413 mdata-region=none multilib.
9414 MULTILIB_EXCEPTIONS: Remove.
9415 MULTILIB_REQUIRED: Define.
9416 * configure: Regenerate.
9417 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9418 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9419 * doc/extend.texi: Clarify comment for {upper,lower,either}
9420 function attributes.
9421 Add separate description for "lower" variable attribute.
9422
9423 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9424
9425 PR target/77918
9426 * optabs-tree.c (vcond_icode_p): New function.
9427 (vcond_eq_icode_p): Likewise.
9428 (expand_vec_cond_expr_p): Use vcond_icode_p and
9429 vcond_eq_icode_p.
9430 * optabs.c (can_vcond_compare_p): New function.
9431 * optabs.h (can_vcond_compare_p): Likewise.
9432
9433 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9434
9435 PR target/77918
9436 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9437 caller passes a non-trapping condition.
9438 (is_gimple_condexpr): Allow trapping conditions.
9439 (is_gimple_condexpr_1): New helper function.
9440 (is_gimple_condexpr_for_cond): New function, acts like old
9441 is_gimple_condexpr.
9442 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9443 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9444 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9445 * gimplify.c (gimplify_cond_expr): Use
9446 is_gimple_condexpr_for_cond.
9447 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9448 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9449 VEC_COND_EXPR.
9450 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9451 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9452 is_gimple_condexpr_for_cond, remove pointless tmp check
9453 (forward_propagate_into_cond): Remove pointless tmp check.
9454
9455 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9456
9457 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9458 match that of other gsi_next_* functions. Adjust the comment.
9459 (gsi_start_nonvirtual_phis): New function.
9460 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9461 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9462
9463 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9464
9465 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9466 setjmp situation here. Fix a verb's ending: "the exact variables or
9467 elements for which there are warnings depends" -> "... depend".
9468
9469 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9470
9471 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9472
9473 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9474
9475 * ipa-prop.c (ipa_vr::nonzero_p): New.
9476 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9477 non-zero range.
9478 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9479 * tree-vrp.c (range_has_numeric_bounds_p): New.
9480 (range_int_cst_p): Use range_has_numeric_bounds_p.
9481 (get_range_op_handler): New.
9482 (supported_types_p): New.
9483 (defined_ranges_p): New.
9484 (drop_undefines_to_varying): New.
9485 (range_fold_binary_symbolics_p): New.
9486 (range_fold_unary_symbolics_p): New.
9487 (range_fold_unary_expr): Extract out into above functions.
9488 (range_fold_binary_expr): Same.
9489 (value_range_base::normalize_addresses): New.
9490 (value_range_base::normalize_symbolics): Normalize addresses.
9491 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9492
9493 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9494
9495 * tree-vrp.c (value_range_base::singleton_p): Use
9496 value_range_base::num_pairs instead of vrp_val_is* to check
9497 if a range has one sub-range.
9498
9499 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9500
9501 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9502 DEF is not a true earlyclobber but is tied to a specific input
9503 operand, and so is effectively earlyclobber wrt inputs that have
9504 different values.
9505 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9506
9507 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9508
9509 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9510 (pod_mode): Mark operators likewise.
9511 (scalar_int_mode): Mark non-default constructors and
9512 operators with CONSTEXPR.
9513 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9514 (fixed_size_mode): Likewise.
9515
9516 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9517
9518 PR target/91994
9519 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9520 and wrap the unspec_volatile in a parallel.
9521 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9522 the unspec_volatile.
9523 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9524 unspec_volatile to be wrapped in a parallel.
9525 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9526 (ix86_add_reg_usage_to_vzerouppers): New functions.
9527 (rest_of_handle_insert_vzeroupper): Use them to add register
9528 usage information to the vzeroupper instructions.
9529
9530 2019-10-07 Richard Biener <rguenther@suse.de>
9531
9532 PR tree-optimization/91975
9533 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9534 handle invariants.
9535
9536 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9537
9538 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9539 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9540
9541 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9542
9543 * config/darwin.c (darwin_override_options): Adjust objective-c
9544 ABI version error messages to avoid punctuation and contracted
9545 negations.
9546
9547 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9548
9549 * ipa-inline.c: Fix type; compute size rather than self_size
9550 for size of caller function.
9551
9552 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9553
9554 PR target/59888
9555 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9556 choose const_data section for constants with relocations.
9557 (machopic_select_section): Pass relocation flag to
9558 darwin_rodata_section ().
9559
9560 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9561
9562 PR tree-optimization/91734
9563 * generic-match-head.c: Include fold-const-call.h.
9564 * match.pd (sqrt(x) cmp c): Check the boundary value and
9565 in case inexact computation of c*c affects comparison of the boundary,
9566 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9567 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9568 for -frounding-math. For c2, try the next smaller or larger floating
9569 point constant depending on comparison code and if it has the same
9570 sqrt as c2, use it instead of c2.
9571
9572 2019-10-04 Martin Sebor <msebor@redhat.com>
9573
9574 PR middle-end/91977
9575 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9576 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9577 uninitialized objects.
9578
9579 2019-10-04 Martin Sebor <msebor@redhat.com>
9580
9581 * builtins.c (compute_objsize): Add an argument.
9582 * tree-object-size.c (addr_object_size): Same.
9583 (compute_builtin_object_size): Same.
9584 * tree-object-size.h (compute_builtin_object): Same.
9585
9586 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9587
9588 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9589
9590 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9591
9592 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9593
9594 2019-10-04 Martin Jambor <mjambor@suse.cz>
9595
9596 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9597 fntype when switching to calling memcpy instead of memset.
9598
9599 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9600
9601 * hash-table.h (hash_table::empty_slow): Don't assign
9602 size_t values to int variables.
9603
9604 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9605
9606 * expr.c (convert_mode_scalar): Remove shadowing local var.
9607 (emit_block_move): Rename local vars.
9608 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9609 (emit_push_insn): Rename local vars.
9610 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9611 shadowing local vars.
9612 (store_constructor): Remove shadowing local vars. Rename local var.
9613 (store_field, expand_cond_expr_using_cmove,
9614 expand_expr_real_2): Remove shadowing local vars.
9615 (expand_expr_real_1,
9616 do_store_flag): Remove shadowing local vars. Rename local vars.
9617
9618 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9619
9620 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9621
9622 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9623
9624 * genmatch.c (commutate): Rename local var.
9625 (lower_cond): Reuse local var.
9626 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9627 dt_operand::gen, dt_operand::gen_gimple_expr,
9628 dt_simplify::gen): Add a param. Rename generated vars.
9629 (decision_tree::insert_operand,
9630 (capture_info::walk_match, capture_info::walk_result,
9631 capture_info::walk_c_expr): Rename local vars.
9632 (expr::gen_transform): Rename generated vars.
9633 Use snprintf. Rename local vars.
9634 (capture::gen_transform, dt_operand::get_name,
9635 dt_operand::gen_opname): Rename generated vars.
9636 (write_predicate): Adjust call to gen_kids.
9637 (parser::get_internal_capture_id): Rename generated vars.
9638 (parser::parse_expr): Rename local vars.
9639 (parser::parse_if): Remove local var.
9640 (parser::parse_pattern, add_operator): Rename local vars.
9641
9642 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9643
9644 * builtins.def (DEF_C2X_BUILTIN): New macro.
9645 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9646 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9647 (strndup): Use DEF_C2X_BUILTIN.
9648 * coretypes.h (enum function_class): Add function_c2x_misc.
9649
9650 2019-10-04 Maya Rashish <coypu@sdf.org>
9651
9652 * ira-color.c (update_costs_from_allocno): Call
9653 ira_init_register_move_cost_if_necessary.
9654
9655 2019-10-04 Jeff Law <law@redhat.com>
9656
9657 * config/h8300/h8300.md (cpymemsi): Disable.
9658 (movmd, movmd_internal_<mode>, movstr, movsd):
9659 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9660 (movmd splitter, movsd splitter): Likewise.
9661
9662 * range-op.cc (range_tests): Avoid two tests when ints and
9663 shorts are the same size.
9664
9665 2019-10-04 Richard Biener <rguenther@suse.de>
9666
9667 PR lto/91968
9668 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9669 BLOCK_VARS.
9670
9671 2019-10-04 Richard Biener <rguenther@suse.de>
9672
9673 PR tree-optimization/91982
9674 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9675 against EXTRACT_LAST_REDUCTION.
9676 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9677
9678 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9679
9680 * range-op.o (value_range_from_overflowed_bounds): Rename from
9681 adjust_overflow_bound.
9682 (value_range_with_overflow): Rename from
9683 create_range_with_overflow.
9684 (create_possibly_reversed_range): Adjusted for above renames.
9685 (operator_*::wi_fold): Same.
9686 (cross_product_operator::wi_cross_productor): Same.
9687
9688 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9689
9690 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9691 -Wshadow=compatible-local): Fix description.
9692 Add an example where -Wshadow=compatible-local does not
9693 warn.
9694
9695 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9696
9697 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9698
9699 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9700 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9701
9702 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9703
9704 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9705 can_move_by_pieces issue.
9706
9707 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9708
9709 PR target/87243
9710 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9711 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9712 is available and the user has not set one on the command line.
9713
9714 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9715
9716 PR target/91769
9717 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9718 instead of REGNO equality check on addr.reg.
9719
9720 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9721
9722 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9723 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9724 * doc/invoke.texi (inline-heuristics-hint-percent,
9725 inline-heuristics-hint-percent-O2): Document.
9726 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9727 hint attribute.
9728 (can_inline_edge_by_limits_p): Use it.
9729
9730 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9731
9732 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9733 to print CONST_DOUBLEs.
9734
9735 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9736
9737 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9738 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9739 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9740
9741 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9742
9743 * Makefile.in (OBJS): Add range.o and range-op.o.
9744 Remove wide-int-range.o.
9745 * function-tests.c (test_ranges): New.
9746 (function_tests_c_tests): Call test_ranges.
9747 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9748 range_fold_unary_expr instead of extract_range_from_unary_expr.
9749 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9750 * range-op.cc: New file.
9751 * range-op.h: New file.
9752 * range.cc: New file.
9753 * range.h: New file.
9754 * selftest.h (range_tests): New prototype.
9755 * ssa.h: Include range.h.
9756 * tree-vrp.c (value_range_base::value_range_base): New
9757 constructors.
9758 (value_range_base::singleton_p): Do not call
9759 ranges_from_anti_range until sure we will need to.
9760 (value_range_base::type): Rename gcc_assert to
9761 gcc_checking_assert.
9762 (vrp_val_is_max): New argument.
9763 (vrp_val_is_min): Same.
9764 (wide_int_range_set_zero_nonzero_bits): Move from
9765 wide-int-range.cc.
9766 (extract_range_into_wide_ints): Remove.
9767 (extract_range_from_multiplicative_op): Remove.
9768 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9769 from extract_range_from_binary_expr.
9770 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9771 from extract_range_from_binary_expr.
9772 (extract_range_from_binary_expr): Remove.
9773 (normalize_for_range_ops): New.
9774 (range_fold_binary_expr): New.
9775 (range_fold_unary_expr): New.
9776 (value_range_base::num_pairs): New.
9777 (value_range_base::lower_bound): New.
9778 (value_range_base::upper_bound): New.
9779 (value_range_base::upper_bound): New.
9780 (value_range_base::contains_p): New.
9781 (value_range_base::invert): New.
9782 (value_range_base::union_): New.
9783 (value_range_base::intersect): New.
9784 (range_compatible_p): New.
9785 (value_range_base::operator==): New.
9786 (determine_value_range_1): Call range_fold_*expr instead of
9787 extract_range_from_*expr.
9788 * tree-vrp.h (class value_range_base): Add new constructors.
9789 Add methods for union_, intersect, operator==, contains_p,
9790 num_pairs, lower_bound, upper_bound, invert.
9791 (vrp_val_is_min): Add handle_pointers argument.
9792 (vrp_val_is_max): Same.
9793 (extract_range_from_unary_expr): Remove.
9794 (extract_range_from_binary_expr): Remove.
9795 (range_fold_unary_expr): New.
9796 (range_fold_binary_expr): New.
9797 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9798 range_fold_binary_expr instead of extract_range_from_binary_expr.
9799 (vr_values::extract_range_basic): Same.
9800 (vr_values::extract_range_from_unary_expr): Call
9801 range_fold_unary_expr instead of extract_range_from_unary_expr.
9802 * wide-int-range.cc: Remove.
9803 * wide-int-range.h: Remove.
9804
9805 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9806
9807 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9808 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9809 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9810 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9811 macro.
9812
9813 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9814
9815 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9816 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9817 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9818 * glimits.h: Likewise.
9819
9820 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9821
9822 PR rtl-optimization/91976
9823 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9824 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9825 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9826
9827 2019-10-02 Martin Sebor <msebor@redhat.com>
9828
9829 PR tree-optimization/80936
9830 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9831
9832 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9833
9834 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9835 instead of reg_class_contents[ALL_REGS].
9836
9837 2019-09-30 Jason Merrill <jason@redhat.com>
9838
9839 Add some hash_map_safe_* functions like vec_safe_*.
9840 * hash-map.h (default_hash_map_size): New variable.
9841 (create_ggc): Use it as default argument.
9842 (hash_map_maybe_create, hash_map_safe_get)
9843 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9844
9845 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9846
9847 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9848 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9849 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9850 (can_inline_edge_by_limits_p): Use it.
9851 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9852 (want_inline_small_function_p): Use O2 bounds.
9853 (edge_badness): LIkewise.
9854 * opts.c (default_options): Add OPT_finline_functions.
9855 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9856 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9857 New parameters.
9858 * doc/invoke.texi (-finline-functions): Update documentation.
9859 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9860 inline-min-speedup-O2): Document.
9861 (early-inlining-insns-O2): Simplify docs.
9862
9863 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9864
9865 PR rtl-optimization/87047
9866 * ifcvt.c (average_cost): New static function. Use it...
9867 (noce_process_if_block): ... here.
9868
9869 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9870
9871 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9872 * config/rs6000/rs6000-string.c (expand_block_move): Add
9873 might_overlap parm.
9874 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9875 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9876
9877 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9878
9879 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9880 (expand_builtin_memcpy): Use might_overlap parm.
9881 (expand_builtin_mempcpy_args): Use might_overlap parm.
9882 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9883 (expand_builtin_memory_copy_args): Add might_overlap parm.
9884 * expr.c (emit_block_move_via_cpymem): Rename to
9885 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9886 or movmem optab as appropriate.
9887 (emit_block_move_hints): Add might_overlap parm, do the right
9888 thing for might_overlap==true.
9889 * expr.h (emit_block_move_hints): Update prototype.
9890
9891 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9892
9893 * tree-eh.h (unsplit_eh_edges): Declare.
9894 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9895 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9896 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9897 (struct store_immediate_info): Add lp_nr field.
9898 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9899 initialize lp_nr with it.
9900 (struct merged_store_group): Add lp_nr and only_constants fields.
9901 (merged_store_group::merged_store_group): Initialize them.
9902 (merged_store_group::can_be_merged_into): Deal with them.
9903 (pass_store_merging): Rename terminate_and_release_chain into
9904 terminate_and_process_chain.
9905 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9906 renaming and remove useless assertions.
9907 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9908 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9909 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9910 instead of always recomputing it and compare lp_nr.
9911 (imm_store_chain_info::output_merged_store): If the group is in an
9912 active EH region, register new stores if they can throw. Moreover,
9913 if the insertion has created new basic blocks, adjust the PHI nodes
9914 of the post landing pad.
9915 (imm_store_chain_info::output_merged_stores): If the original stores
9916 are in an active EH region, deregister them.
9917 (lhs_valid_for_store_merging_p): Prettify.
9918 (adjust_bit_pos): New function extracted from...
9919 (mem_valid_for_store_merging): ...here. Use it for the base address
9920 and also for the offset if it is the addition of a constant.
9921 (lp_nr_for_store): New function.
9922 (pass_store_merging::process_store): Change return type to bool.
9923 Call lp_nr_for_store to initialize the store info. Propagate the
9924 return status of various called functions to the return value.
9925 (store_valid_for_store_merging_p): New predicate.
9926 (enum basic_block_status): New enumeration.
9927 (get_status_for_store_merging): New function.
9928 (pass_store_merging::execute): If the function can throw and catch
9929 non-call exceptions, unsplit the EH edges on entry and clean up the
9930 CFG on exit if something changed. Call get_status_for_store_merging
9931 for every basic block and keep the chains open across basic blocks
9932 when possible. Terminate and process open chains at the end, if any.
9933
9934 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9935
9936 * reginfo.c (globalize_reg): Fix shadowed variable in
9937 function_abis walk.
9938
9939 2019-10-02 Martin Jambor <mjambor@suse.cz>
9940
9941 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9942 do not compute some stuff when set.
9943 (cgraph_node::create_edge): Likewise.
9944 (cgraph_node::create_indirect_edge): Renamed last parameter to
9945 coning_p and flipped its meaning, don't even calculate
9946 inline_failed when set.
9947 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9948 (symbol_table::::create_edge): Likewise.
9949 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9950 the default value.
9951 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9952 call graph edge creating functions.
9953
9954 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9955
9956 PR c++/91222
9957 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9958 namespace types.
9959
9960 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9961
9962 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9963
9964 2019-10-02 Richard Biener <rguenther@suse.de>
9965
9966 * tree-vectorizer.h (vect_transform_reduction): Declare.
9967 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9968 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9969 stmt transform to ...
9970 (vect_transform_reduction): ... this.
9971
9972 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9973
9974 * omp-low.c (lower_omp_target): Dereference optional argument
9975 to work with the right pointer.
9976
9977 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9978
9979 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9980 false.
9981 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9982 * langhooks.h (omp_is_optional_argument): New hook.
9983 * omp-general.c (omp_is_optional_argument): New.
9984 * omp-general.h (omp_is_optional_argument): New declaration.
9985 * omp-low.c (lower_omp_target): Create temporary for received value
9986 and take the address for new_var if the original variable was a
9987 DECL_BY_REFERENCE. Use size of referenced object when a
9988 pass-by-reference optional argument used as argument to firstprivate.
9989
9990 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9991
9992 PR tree-optimization/91940
9993 * tree-vect-patterns.c: Include tree-vector-builder.h and
9994 vec-perm-indices.h.
9995 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9996 unpromoting the argument back to uint16_t, or by converting into a
9997 rotate, or into shifts plus ior.
9998
9999 2019-10-02 Richard Biener <rguenther@suse.de>
10000
10001 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10002 New.
10003 (vect_transform_cycle_phi): Declare.
10004 * tree-vect-stmts.c (vect_transform_stmt): Call
10005 vect_transform_cycle_phi.
10006 * tree-vect-loop.c (vectorizable_reduction): Split out
10007 PHI transformation stage to ...
10008 (vect_transform_cycle_phi): ... here.
10009
10010 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10011
10012 PR middle-end/91957
10013 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10014 eliminable registers.
10015 (make_hard_regno_live): Likewise, and don't make them live.
10016
10017 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10018
10019 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10020 Call pp_emit_prefix.
10021 (layout::print_source_line): Likewise.
10022 (layout::start_annotation_line): Likewise.
10023 (diagnostic_show_locus): Remove call to temporarily clear the
10024 prefix.
10025 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10026 interaction of pp_set_prefix with rulers and fix-it hints.
10027 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10028 prefix when calling diagnostic_show_locus, rather than destroying
10029 it afterwards.
10030 (print_parseable_fixits): Temporarily clear prefix.
10031 * pretty-print.c (pp_format): Save and restore line_length, rather
10032 than assuming it is zero.
10033 (pp_output_formatted_text): Remove assertion that line_length is
10034 zero.
10035
10036 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10037
10038 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10039 Rename to ...
10040 (nonoverlapping_refs_since_match_p): ... this; handle also
10041 ARRAY_REFs.
10042 (alias_stats): Update stats.
10043 (dump_alias_stats): Likewise.
10044 (cheap_array_ref_low_bound): New function.
10045 (aliasing_matching_component_refs_p): Add partial_overlap
10046 argument;
10047 pass it to nonoverlapping_refs_since_match_p.
10048 (aliasing_component_refs_walk): Update call of
10049 aliasing_matching_component_refs_p
10050 (nonoverlapping_array_refs_p): New function.
10051 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10052 indirect_refs_may_alias_p): Update calls of
10053 nonoverlapping_refs_since_match_p.
10054
10055 2019-10-01 Maya Rashish <coypu@sdf.org>
10056
10057 PR target/85401
10058 * ira-color.c (allocno_copy_cost_saving): Call
10059 ira_init_register_move_cost_if_necessary.
10060
10061 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10062
10063 * Makefile.in (gnat_install_lib): New variable.
10064 * configure.ac: Substitute it.
10065 * configure: Regenerate.
10066
10067 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10068
10069 PR lto/91222
10070 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10071 is matched with non-C++ type
10072
10073 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10074
10075 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10076 after local CSE.
10077
10078 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10079
10080 * doc/invoke.texi (early-inlining-insns-O2): Document.
10081 (early-inlining-insns): Update.
10082 * params.def (early-inlining-insns-O2): New bound.
10083 (early-inlining-insns): Update docs.
10084 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10085
10086 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10087
10088 PR target/88562
10089 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10090 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10091 a memory access insn.
10092
10093 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10094
10095 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10096 vpmsumd.
10097
10098 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10099
10100 PR target/77918
10101 * config/s390/s390.c (s390_expand_vec_compare): Use
10102 gen_vec_cmpordered and gen_vec_cmpunordered.
10103 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10104 vec_unordered): Delete.
10105 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10106 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10107 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10108 (vec_cmp<code>): Generic dispatcher.
10109
10110 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10111
10112 PR target/77918
10113 * config/s390/vector.md (V_HW): Add V1TI in order to make
10114 vcond$a$b generate vcondv1tiv1tf.
10115
10116 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10117
10118 PR rtl-optimization/91948
10119 * ira-build.c (ira_create_allocno): Initialize
10120 ALLOCNO_CROSSED_CALLS_ABIS.
10121 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10122 than regno to ira_need_caller_save_p.
10123
10124 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10125
10126 * config/i386/i386-options.c
10127 (ix86_recompute_optlev_based_flags): New, moved out of...
10128 (ix86_option_override_internal): ... this. Call it.
10129 (ix86_override_options_after_change): Call it here too.
10130
10131 PR debug/91507
10132 * dwarf2out.c (override_type_for_decl_p): New.
10133 (gen_variable_die): Use it.
10134
10135 2019-10-01 Richard Biener <rguenther@suse.de>
10136
10137 * tree-vect-loop.c (vectorizable_reduction): Move variables
10138 to where they are used.
10139
10140 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10141
10142 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10143 (build_def_use): Use PC instead of CC0 in a comment.
10144
10145 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10146
10147 * rtl.def (CLOBBER_HIGH): Delete.
10148 * doc/rtl.texi (clobber_high): Remove documentation.
10149 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10150 (reg_is_clobbered_by_clobber_high): Delete.
10151 (gen_hard_reg_clobber_high): Likewise.
10152 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10153 * cfgexpand.c (expand_gimple_stmt): Likewise.
10154 * combine-stack-adj.c (single_set_for_csa): Likewise.
10155 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10156 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10157 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10158 * cse.c (invalidate_reg): Remove clobber_high parameter.
10159 (invalidate): Update call accordingly.
10160 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10161 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10162 (count_reg_usage, insn_live_p): Likewise.
10163 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10164 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10165 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10166 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10167 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10168 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10169 (mark_nonreg_stores_2): Likewise.
10170 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10171 (df_get_call_refs): Likewise.
10172 * dwarf2out.c (mem_loc_descriptor): Likewise.
10173 * emit-rtl.c (verify_rtx_sharing): Likewise.
10174 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10175 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10176 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10177 * genemit.c (gen_exp, gen_insn): Likewise.
10178 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10179 * haifa-sched.c (haifa_classify_rtx): Likewise.
10180 * ira-build.c (create_insn_allocnos): Likewise.
10181 * ira-costs.c (scan_one_insn): Likewise.
10182 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10183 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10184 * jump.c (mark_jump_label_1): Likewise.
10185 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10186 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10187 handling.
10188 (mark_not_eliminable): Likewise.
10189 * lra-lives.c (process_bb_lives): Likewise.
10190 * lra.c (new_insn_reg): Remove clobber_high parameter.
10191 (collect_non_operand_hard_regs): Likewise. Update call to new
10192 insn_reg. Remove CLOBBER_HIGH handling.
10193 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10194 to collect_non_operand_hard_regs.
10195 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10196 Update call to new_insn_reg.
10197 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10198 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10199 (move2add_note_store): Likewise.
10200 * print-rtl.c (print_pattern): Likewise.
10201 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10202 (if_test_bypass_p): Likewise.
10203 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10204 * reginfo.c (reg_scan_mark_refs): Likewise.
10205 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10206 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10207 (forget_old_reloads_1): Likewise.
10208 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10209 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10210 (dbr_schedule): Likewise.
10211 * resource.c (update_live_status, mark_referenced_resources)
10212 (mark_set_resources): Likewise.
10213 * rtl.c (copy_rtx): Likewise.
10214 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10215 (note_pattern_stores): Likewise.
10216 (reg_is_clobbered_by_clobber_high): Delete.
10217 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10218 CLOBBER_HIGH handling.
10219
10220 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10221
10222 PR target/91452
10223 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10224 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10225 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10226 Handle ARM_PCS_TLSDESC.
10227 (aarch64_tlsdesc_abi_id): New function.
10228 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10229 rtx instead of a list of clobbers and clobber_highs.
10230 (tlsdesc_small_<mode>): Update accordingly.
10231
10232 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10233
10234 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10235 extra callee_abi argument.
10236 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10237 Insert a CALLEE_ABI unspec into the call pattern as the second
10238 element in the PARALLEL.
10239 (aarch64_simd_call_p): Delete.
10240 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10241 the new CALLEE_ABI element of the PARALLEL.
10242 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10243 from the function type, if given.
10244 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10245 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10246 when passed the function_arg_info end marker.
10247 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10248 final argument of gen_sibcall.
10249 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10250 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10251 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10252 pattern.
10253 (call_value): Likewise operand 3.
10254 (sibcall): Likewise operand 2. Place the unspec before rather than
10255 after the return.
10256 (sibcall_value): Likewise operand 3.
10257 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10258 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10259 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10260 constraint strings.
10261 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10262
10263 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10264
10265 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10266 choose_hard_reg_mode.
10267 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10268
10269 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10270
10271 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10272 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10273 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10274
10275 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10276
10277 * diagnostic-show-locus.c (line_label::line_label): Initialize
10278 m_has_vbar.
10279 (line_label::comparator): Reverse the sort order by m_state_idx,
10280 so that when the list is walked backwards the labels appear in
10281 order of insertion into the rich_location.
10282 (line_label::m_has_vbar): New field.
10283 (layout::print_any_labels): When dealing with multiple labels at
10284 the same line and column, only print vertical bars for the one
10285 with the highest label_line.
10286 (selftest::test_one_liner_labels): Update test for multiple labels
10287 to expect the labels to be in the order of insertion into the
10288 rich_location. Add a test for many such labels, where the column
10289 numbers are out-of-order relative to the insertion order.
10290
10291 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10292
10293 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10294 (ix86_frame::expensive_count): Likewise.
10295 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10296 of use_fast_prologue_epilogue robust against incidental changes
10297 in function size.
10298
10299 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10300
10301 PR target/77918
10302 * config/s390/vector.md (vec_unordered<mode>): Call
10303 gen_vec_ordered<mode>.
10304
10305 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10306
10307 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10308 New pattern for ASRD.
10309 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10310 * internal-fn.def (IFN_DIV_POW2): New internal function.
10311 * optabs.def (sdiv_pow2_optab): New optab.
10312 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10313 Modify pattern to support new operation.
10314 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10315 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10316 Document new target selector.
10317
10318 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10319
10320 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10321 to test whether we're compiling a vector PCS function and to test
10322 whether the function needs to save a particular register.
10323 Remove the vector PCS handling of df_set_regs_ever_live.
10324 (aarch64_components_for_bb): Use crtl->abi to test whether
10325 the function needs to save a particular register.
10326 (aarch64_process_components): Use crtl->abi to test whether
10327 we're compiling a vector PCS function.
10328 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10329 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10330
10331 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10332
10333 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10334 Delete.
10335 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10336 whether the block calls a function that clobbers more registers
10337 than the current function is allowed to.
10338 (aarch64_use_simple_return_insn_p): Delete.
10339 * config/aarch64/aarch64.md (simple_return): Remove condition.
10340
10341 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10342
10343 * function-abi.h (function_abi_aggregator): New class.
10344 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10345 function.
10346 * ira.c (update_equiv_regs_prescan): New function. Call
10347 set_paradoxical_subreg here rather than...
10348 (update_equiv_regs): ...here.
10349 (ira): Call update_equiv_regs_prescan.
10350
10351 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10352
10353 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10354 IN_TARGET_CODE.
10355 (call_used_or_fixed_regs): Likewise.
10356 (call_used_or_fixed_reg_p): Likewise.
10357 * reginfo.c (regs_invalidated_by_call): New macro.
10358
10359 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10360
10361 * shrink-wrap.c: Include function-abi.h.
10362 (requires_stack_frame_p): Use crtl->abi to test whether the
10363 current function can use a register without saving it first.
10364
10365 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10366
10367 * sel-sched-ir.h (_def::crosses_call): Replace with...
10368 (_def::crossed_call_abis): ..this new field.
10369 (def_list_add): Take a mask of ABIs instead of a crosses_call
10370 boolean.
10371 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10372 of _def accordingly.
10373 * sel-sched.c: Include function-abi.h.
10374 (hard_regs_data::regs_for_call_clobbered): Delete.
10375 (reg_rename::crosses_call): Replace with...
10376 (reg_rename::crossed_call_abis): ...this new field.
10377 (fur_static_params::crosses_call): Replace with...
10378 (fur_static_params::crossed_call_abis): ...this new field.
10379 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10380 (init_hard_regs_data): Use crtl->abi to test which registers the
10381 current function would need to save before it uses them.
10382 (mark_unavailable_hard_regs): Update handling of call-clobbered
10383 registers, using call_clobbers_in_region to find out which registers
10384 might be call-clobbered (but without taking -fipa-ra into account
10385 for now). Remove separate handling of partially call-clobbered
10386 registers.
10387 (verify_target_availability): Use crossed_call_abis instead of
10388 crosses_call.
10389 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10390 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10391
10392 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10393
10394 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10395 function to test whether a register is fully or partly clobbered.
10396
10397 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10398
10399 * rtlanal.c: Include function-abi.h.
10400 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10401 function and clobbers_reg_p to test whether the register
10402 is call-clobbered.
10403 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10404 to get the ABI of the called function and full_reg_clobbers to
10405 get the set of fully call-clobbered registers. Warn about the
10406 pitfalls of using this mode.
10407
10408 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10409
10410 * reload.c: Include function-abi.h.
10411 (find_equiv_reg): Use clobbers_reg_p to test whether either
10412 of the equivalent registers is clobbered by a call.
10413 * reload1.c: Include function-abi.h.
10414 (reg_reloaded_call_part_clobbered): Delete.
10415 (reload): Use crtl->abi to test which registers would need
10416 saving in the prologue before use.
10417 (find_reg): Likewise.
10418 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10419 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10420 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10421
10422 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10423
10424 * regrename.h (du_head::call_clobber_mask): New field.
10425 (du_head::need_caller_save_reg): Replace with...
10426 (du_head::call_abis): ...this new field.
10427 * regrename.c: Include function-abi.h.
10428 (call_clobbered_in_chain_p): New function.
10429 (check_new_reg_p): Use crtl->abi when deciding whether a register
10430 is free for use after RA. Use call_clobbered_in_chain_p to test
10431 whether a candidate register would be clobbered by a call.
10432 (find_rename_reg): Don't add call-clobber conflicts here.
10433 (rename_chains): Check call_abis instead of need_caller_save_reg.
10434 (merge_chains): Update for changes to du_head.
10435 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10436 target. Record the ABI identifier in call_abis and the set of
10437 fully or partially clobbered registers in call_clobber_mask.
10438 Add fully-clobbered registers to hard_conflicts here rather
10439 than in find_rename_reg.
10440 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10441 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10442 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10443 function-abi.h.
10444 * config/c6x/c6x.c: Likewise.
10445
10446 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10447
10448 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10449 mode of the register when deciding whether it is no longer
10450 available after a call.
10451
10452 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10453
10454 * recog.c: Include function-abi.h.
10455 (peep2_find_free_register): Use crtl->abi when deciding whether
10456 a register is free for use after RA.
10457
10458 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10459
10460 * postreload-gcse.c: Include regs.h and function-abi.h.
10461 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10462 call insn target. Conservatively assume that partially-clobbered
10463 registers are altered.
10464
10465 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10466
10467 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10468 when deciding whether a register is free for use after RA.
10469 (reload_combine): Remove unnecessary use of fixed_reg_set.
10470 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10471 call insn target. Use reg_mode when testing whether a register
10472 is no longer available.
10473
10474 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10475
10476 * target.def (return_call_with_max_clobbers): Delete.
10477 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10478 * doc/tm.texi: Regenerate.
10479 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10480 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10481 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10482 (lra_reg::call_insn): Delete.
10483 * lra.c: Include function-abi.h.
10484 (initialize_lra_reg_info_element): Don't initialize the fields above.
10485 (lra): Use crtl->abi to test whether the current function needs to
10486 save a register in the prologue. Remove special pre-inheritance
10487 lra_create_live_ranges pass for flag_ipa_ra.
10488 * lra-assigns.c: Include function-abi.h
10489 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10490 function needs to save a register in the prologue.
10491 (lra_assign): Assert that registers aren't allocated to a
10492 conflicting register, rather than checking only for overlaps
10493 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10494 and for registers that are not live across a call.
10495 * lra-constraints.c (last_call_for_abi): New variable.
10496 (full_and_partial_call_clobbers): Likewise.
10497 (setup_next_usage_insn): Remove the register from
10498 full_and_partial_call_clobbers.
10499 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10500 whether the register needs a caller save.
10501 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10502 of call_used_or_fixed_regs.
10503 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10504 full_and_partial_call_clobbers.
10505 * lra-lives.c (check_pseudos_live_through_calls): Replace
10506 last_call_used_reg_set and call_insn arguments with an abi argument.
10507 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10508 as the set of conflicting registers.
10509 (calls_have_same_clobbers_p): Delete.
10510 (process_bb_lives): Track the ABI of the last call instead of an
10511 insn/HARD_REG_SET pair. Update calls to
10512 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10513 the set of registers that could be clobbered by an EH edge.
10514 Include partially-clobbered as well as fully-clobbered registers.
10515 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10516 * lra-remat.c: Include function-abi.h.
10517 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10518 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10519 registers and bitmap_view to combine them into dead_regs.
10520 (call_used_input_regno_present_p): Take a function_abi argument
10521 and use it to test whether a register is call-clobbered.
10522 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10523 call insn target. Update tje call to call_used_input_regno_present_p.
10524 (do_remat): Likewise.
10525 (lra_remat): Remove the initialization of call_used_regs_arr_len
10526 and call_used_regs_arr.
10527
10528 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10529
10530 * loop-iv.c: Include regs.h and function-abi.h.
10531 (simplify_using_initial_values): Use insn_callee_abi to get the
10532 ABI of the call insn target. Conservatively assume that
10533 partially-clobbered registers are altered.
10534
10535 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10536
10537 * function-abi.h (call_clobbers_in_region): Declare.
10538 (call_clobbered_in_region_p): New function.
10539 * function-abi.cc (call_clobbers_in_region): Likewise.
10540 * ira-int.h: Include function-abi.h.
10541 (ira_allocno::crossed_calls_abis): New field.
10542 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10543 (ira_need_caller_save_regs): New function.
10544 (ira_need_caller_save_p): Likewise.
10545 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10546 of call_used_or_fixed_regs.
10547 (do_reload): Use crtl->abi to test whether the current function
10548 needs to save a register in the prologue. Count registers that
10549 need to be saved rather than registers that don't.
10550 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10551 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10552 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10553 (propagate_some_info_from_allocno): Likewise.
10554 (copy_info_to_removed_store_destinations): Likewise.
10555 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10556 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10557 (ira_build): Use ira_need_caller_save_regs instead of
10558 call_used_or_fixed_regs.
10559 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10560 whether the current function would need to save a register
10561 before using it.
10562 (calculate_spill_cost): Likewise.
10563 (allocno_reload_assign): Use ira_need_caller_save_regs and
10564 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10565 * ira-conflicts.c (ira_build_conflicts): Use
10566 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10567 as the set of call-clobbered registers. Remove the
10568 call_used_or_fixed_regs mask from the calculation of
10569 temp_hard_reg_set and mask its use instead. Remove special
10570 handling of partially-clobbered registers.
10571 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10572 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10573 calculate the set of conflicting registers for calls that
10574 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10575 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10576 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10577 Use eh_edge_abi to calculate the set of registers that could
10578 be clobbered by an EH edge. Include partially-clobbered as
10579 well as fully-clobbered registers.
10580
10581 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10582
10583 * haifa-sched.c: Include function-abi.h.
10584 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10585 the function would need to save a register before using it.
10586
10587 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10588
10589 * gcse.c: Include function-abi.h.
10590 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10591 the call insn target. Invalidate partially call-clobbered
10592 registers as well as fully call-clobbered ones.
10593
10594 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10595
10596 * function.c (aggregate_value_p): Work out which ABI the
10597 function is using before testing which registers are at least
10598 partly preserved by a call.
10599
10600 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10601
10602 * early-remat.c: Include regs.h and function-abi.h.
10603 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10604 registers here.
10605 (early_remat::restrict_remat_for_unavail_regs): New function.
10606 (early_remat::restrict_remat_for_call): Likewise.
10607 (early_remat::process_block): Before calling emit_remat_insns
10608 for a previous call in the block, invalidate any candidates
10609 that would clobber call-preserved registers.
10610 (early_remat::emit_remat_insns_for_block): Likewise for the
10611 final call in a block. Do the same thing for live-in registers
10612 when calling emit_remat_insns at the head of a block.
10613
10614 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10615
10616 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10617 whether the current function needs to save at least part of a
10618 register before using it.
10619 (df_get_exit_block_use_set): Likewise for epilogue restores.
10620
10621 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10622
10623 * df-problems.c: Include regs.h and function-abi.h.
10624 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10625 sparse_invalidated_by_eh and dense_invalidated_by_call to
10626 dense_invalidated_by_eh.
10627 (df_print_bb_index): Update accordingly.
10628 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10629 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10630 that are clobbered by an EH edge. Clobber partially-clobbered
10631 registers as well as fully-clobbered ones.
10632 (df_md_confluence_n): Likewise.
10633 (df_rd_local_compute): Likewise. Update for changes to
10634 df_rd_problem_data.
10635 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10636 of registers that are clobbered by an EH edge. Includde partially-
10637 clobbered registers as well as fully-clobbered ones.
10638
10639 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10640
10641 * cselib.c (cselib_process_insn): If we know what mode a
10642 register was set in, check whether it is clobbered in that
10643 mode by a call. Only fall back to reg_raw_mode if that fails.
10644
10645 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10646
10647 * cse.c: Include regs.h and function-abi.h.
10648 (invalidate_for_call): Take the call insn as an argument.
10649 Use insn_callee_abi to get the ABI of the call and invalidate
10650 partially clobbered registers as well as fully clobbered ones.
10651 (cse_insn): Update call accordingly.
10652
10653 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10654
10655 * combine.c: Include function-abi.h.
10656 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10657 of the target of call insns. Invalidate partially-clobbered
10658 registers as well as fully-clobbered ones.
10659
10660 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10661
10662 * cfgloopanal.c: Include regs.h and function-abi.h.
10663 (init_set_costs): Use default_function_abi to test whether
10664 a general register is call-clobbered.
10665
10666 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10667
10668 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10669 instead of the call-clobbered sets.
10670
10671 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10672
10673 * caller-save.c (setup_save_areas): Remove redundant |s of
10674 fixed_reg_set.
10675 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10676 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10677 value is useful.
10678
10679 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10680
10681 * rtl.h (predefined_function_abi): Declare.
10682 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10683 instead of a boolean call_save flag.
10684 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10685 accordingly.
10686 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10687 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10688 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10689 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10690 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10691 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10692 * reginfo.c (init_reg_modes_target): Likewise.
10693 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10694 instead of a boolean call_save flag.
10695 * targhooks.c: Include function-abi.h.
10696 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10697 using eh_edge_abi to choose the mode.
10698
10699 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10700
10701 * target.def (hard_regno_call_part_clobbered): Take an ABI
10702 identifier instead of an rtx_insn.
10703 * doc/tm.texi: Regenerate.
10704 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10705 (hook_bool_uint_uint_mode_false): New function.
10706 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10707 (hook_bool_uint_uint_mode_false): New function.
10708 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10709 Take an ABI identifier instead of an rtx_insn.
10710 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10711 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10712 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10713 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10714 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10715 Likewise.
10716 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10717 * cselib.c: Include function-abi.h.
10718 (cselib_process_insn): Update call to
10719 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10720 to get the appropriate ABI identifier.
10721 * function-abi.cc (predefined_function_abi::initialize): Update call
10722 to targetm.hard_regno_call_part_clobbered.
10723 * ira-conflicts.c (ira_build_conflicts): Likewise.
10724 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10725 * lra-constraints.c: Include function-abi.h.
10726 (need_for_call_save_p): Update call to
10727 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10728 to get the appropriate ABI identifier.
10729 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10730 * regcprop.c (copyprop_hardreg_forward_1): Update call
10731 to targetm.hard_regno_call_part_clobbered.
10732 * reginfo.c (choose_hard_reg_mode): Likewise.
10733 * regrename.c (check_new_reg_p): Likewise.
10734 * reload.c (find_equiv_reg): Likewise.
10735 * reload1.c (emit_reload_insns): Likewise.
10736 * sched-deps.c: Include function-abi.h.
10737 (deps_analyze_insn): Update call to
10738 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10739 to get the appropriate ABI identifier.
10740 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10741 call to targetm.hard_regno_call_part_clobbered.
10742 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10743
10744 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10745
10746 * config/i386/i386.c: Include function-abi.h.
10747 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10748 if they preserve some 256-bit or 512-bit SSE registers.
10749
10750 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10751
10752 * target.def (insn_callee_abi): New hook.
10753 (remove_extra_call_preserved_regs): Delete.
10754 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10755 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10756 * doc/tm.texi: Regenerate.
10757 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10758 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10759 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10760 insn argument.
10761 (aarch64_remove_extra_call_preserved_regs): Delete.
10762 (aarch64_insn_callee_abi): New function.
10763 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10764 (TARGET_INSN_CALLEE_ABI): New macro.
10765 * rtl.h (get_call_fndecl): Declare.
10766 (cgraph_rtl_info): Fix formatting. Tweak comment for
10767 function_used_regs. Remove function_used_regs_valid.
10768 * rtlanal.c (get_call_fndecl): Moved from final.c
10769 * function-abi.h (insn_callee_abi): Declare.
10770 (target_function_abi_info): Mention insn_callee_abi.
10771 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10772 way to get_call_reg_set_usage did.
10773 (insn_callee_abi): New function.
10774 * regs.h (get_call_reg_set_usage): Delete.
10775 * final.c: Include function-abi.h.
10776 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10777 function_used_regs before the main loop rather than afterwards.
10778 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10779 if function_used_regs ends up not being useful.
10780 (get_call_fndecl): Move to rtlanal.c
10781 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10782 * caller-save.c: Include function-abi.h.
10783 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10784 instead of get_call_reg_set_usage.
10785 * cfgcleanup.c: Include function-abi.h.
10786 (old_insns_match_p): Use insn_callee_abi instead of
10787 get_call_reg_set_usage.
10788 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10789 a tree.
10790 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10791 function_used_regs.
10792 * df-scan.c: Include function-abi.h.
10793 (df_get_call_refs): Use insn_callee_abi instead of
10794 get_call_reg_set_usage.
10795 * ira-lives.c: Include function-abi.h.
10796 (process_bb_node_lives): Use insn_callee_abi instead of
10797 get_call_reg_set_usage.
10798 * lra-lives.c: Include function-abi.h.
10799 (process_bb_lives): Use insn_callee_abi instead of
10800 get_call_reg_set_usage.
10801 * postreload.c: Include function-abi.h.
10802 (reload_combine): Use insn_callee_abi instead of
10803 get_call_reg_set_usage.
10804 * regcprop.c: Include function-abi.h.
10805 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10806 get_call_reg_set_usage.
10807 * resource.c: Include function-abi.h.
10808 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10809 instead of get_call_reg_set_usage.
10810 * var-tracking.c: Include function-abi.h.
10811 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10812 get_call_reg_set_usage.
10813
10814 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10815
10816 * target.def (fntype_abi): New target hook.
10817 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10818 * doc/tm.texi: Regenerate.
10819 * target.h (predefined_function_abi): Declare.
10820 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10821 if defined.
10822 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10823 * config/aarch64/aarch64.c: Include function-abi.h.
10824 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10825 (TARGET_FNTYPE_ABI): Define.
10826
10827 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10828
10829 * Makefile.in (OBJS): Add function-abi.o.
10830 (GTFILES): Add function-abi.h.
10831 * function-abi.cc: New file.
10832 * function-abi.h: Likewise.
10833 * emit-rtl.h (rtl_data::abi): New field.
10834 * function.c: Include function-abi.h.
10835 (prepare_function_start): Initialize crtl->abi.
10836 * read-rtl-function.c: Include regs.h and function-abi.h.
10837 (read_rtl_function_body): Initialize crtl->abi.
10838 (read_rtl_function_body_from_file_range): Likewise.
10839 * reginfo.c: Include function-abi.h.
10840 (init_reg_sets_1): Initialize default_function_abi.
10841 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10842 when making a register global.
10843 * target-globals.h (this_target_function_abi_info): Declare.
10844 (target_globals::function_abi_info): New field.
10845 (restore_target_globals): Copy it.
10846 * target-globals.c: Include function-abi.h.
10847 (default_target_globals): Initialize the function_abi_info field.
10848 (target_globals): Allocate it.
10849 (save_target_globals): Free it.
10850
10851 2019-09-30 Nick Clifton <nickc@redhat.com>
10852
10853 PR target/85978
10854 * config/frv/frv.c (frv_register_move_cost): Add break statements
10855 to avoid falling through to the wrong cases. Tidy code.
10856
10857 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10858
10859 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10860 For multi-registers modes, test how big each register part is.
10861
10862 2019-09-30 Nick Clifton <nickc@redhat.com>
10863
10864 PR target/59205
10865 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10866 (TARGET_ASM_SELECT_SECTION): Remove definition.
10867 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10868
10869 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10870
10871 * emit-rtl.c (init_raw_REG): New function.
10872 (gen_raw_REG): Use init_raw_REG.
10873 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10874 macros.
10875 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10876 * rtl.h (rtx_init): New function.
10877 (rtx_alloca): New function.
10878 (init_raw_REG): New function.
10879 (alloca_raw_REG): New macro.
10880
10881 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10882
10883 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10884 (pcrel_local_address): Replace pcrel_address predicate, use the
10885 new function address_to_insn_form.
10886 (pcrel_external_address): Replace with new implementation using
10887 address_to_insn_form..
10888 (prefixed_mem_operand): Delete predicate which is now unused.
10889 (pcrel_external_mem_operand): Delete predicate which is now
10890 unused.
10891 * config/rs6000/rs6000-protos.h (enum insn_form): New
10892 enumeration.
10893 (enum non_prefixed_form): New enumeration.
10894 (address_to_insn_form): New declaration.
10895 (prefixed_load_p): New declaration.
10896 (prefixed_store_p): New declaration.
10897 (prefixed_paddi_p): New declaration.
10898 (rs6000_asm_output_opcode): New declaration.
10899 (rs6000_final_prescan_insn): Move declaration and update calling
10900 signature.
10901 (address_is_prefixed): New helper inline function.
10902 * config/rs6000/rs6000.c(print_operand_address): Check for either
10903 PC-relative local symbols or PC-relative external symbols.
10904 (rs6000_emit_move): Support loading PC-relative addresses.
10905 (mode_supports_prefixed_address_p): Delete, no longer used.
10906 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10907 (address_to_insn_form): New function to decode an address format.
10908 (reg_to_non_prefixed): New function to identify what the
10909 non-prefixed memory instruction format is for a register.
10910 (prefixed_load_p): New function to identify prefixed loads.
10911 (prefixed_store_p): New function to identify prefixed stores.
10912 (prefixed_paddi_p): New function to identify prefixed load
10913 immediates.
10914 (next_insn_prefixed_p): New static state variable.
10915 (rs6000_final_prescan_insn): New function to determine if an insn
10916 uses a prefixed instruction.
10917 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10918 prefixed instruction.
10919 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10920 (ASM_OUTPUT_OPCODE): New target hook.
10921 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10922 prefixed instructions.
10923 (prefixed_length): New insn attribute for the size of prefixed
10924 instructions.
10925 (non_prefixed_length): New insn attribute for the size of
10926 non-prefixed instructions.
10927 (pcrel_local_addr): New insn to load up a local PC-relative
10928 address.
10929 (pcrel_extern_addr): New insn to load up an external PC-relative
10930 address.
10931 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10932 GPR and loading a 128-bit floating point type to a GPR.
10933
10934 2019-09-30 Richard Biener <rguenther@suse.de>
10935
10936 * gimple.c (gimple_get_lhs): For PHIs return the result.
10937 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10938 SLP instance as argument.
10939 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10940 double-reduction PHIs with vectorizable_lc_phi.
10941 (vect_analyze_loop_operations): Adjust.
10942 (vect_create_epilog_for_reduction): Remove all code not dealing
10943 with reduction LC PHI or epilogue generation.
10944 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10945 for live stmts of reductions.
10946 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10947 do not handle defs that are not vect_internal_def.
10948 (can_vectorize_live_stmts): Adjust.
10949 (vect_analyze_stmt): When the vectorized stmt defined a value
10950 used on backedges adjust the backedge uses of vectorized PHIs.
10951
10952 2019-09-30 Martin Jambor <mjambor@suse.cz>
10953
10954 PR ipa/91853
10955 * tree-inline.c (force_value_to_type): New function.
10956 (setup_one_parameter): Use force_value_to_type to convert type.
10957 * tree-inline.c (force_value_to_type): Declare.
10958 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10959 with register type mismatches.
10960
10961 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10962
10963 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10964 32-bit PowerPC.
10965 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10966 * config/rs6000/t-freebsd64: Make use of the above define and build
10967 the 32-bit libraries with secure-plt.
10968
10969 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10970
10971 PR target/91931
10972 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10973 gen_int_mode instead of GEN_INT.
10974
10975 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10976
10977 * config/darwin.c (gen_macho_low): Amend to include the mode
10978 argument.
10979 (machopic_indirect_data_reference): Amend gen_macho_low call
10980 to include mode argument
10981 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10982 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10983 the macho_high expander and two define_insn entries.
10984
10985 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10986
10987 PR bootstrap/90543
10988 * optc-save-gen.awk: Fix up printing string option differences.
10989
10990 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10991
10992 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10993 vec_perm cost to 1 for non-Power7 VSX architectures.
10994
10995 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10996
10997 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10998 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10999 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11000
11001 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11002
11003 * config/darwin.c (gen_macho_high): Amend to include the mode
11004 argument.
11005 (machopic_indirect_data_reference): Amend gen_macho_high call
11006 to include mode argument.
11007 (machopic_legitimize_pic_address): Likewise.
11008 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11009 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11010 the macho_high expander and two define_insn entries.
11011
11012 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11013
11014 PR target/86805
11015 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11016
11017 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11018
11019 PR target/80672
11020 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11021 std::string::compare instead of std::string::find.
11022
11023 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11024
11025 * configure: Regenerate.
11026
11027 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11028
11029 PR middle-end/91920
11030 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11031 variables as shared.
11032
11033 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11034
11035 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11036 replaces the expander and two define_insn entries.
11037 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11038 call.
11039 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11040
11041 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11042
11043 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11044 (fibonacci_heap::nodes): Likewise.
11045 (fibonacci_heap::min_key): Likewise.
11046 (fibonacci_heap::min): Likewise.
11047
11048 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11049
11050 * cgraph.c (cgraph_node::get_fun): Make const.
11051 * cgraph.h (cgraph_node::get_fun): Likewise.
11052
11053 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11054
11055 PR target/91919
11056 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11057 of SImode MULT.
11058
11059 2019-09-27 Richard Biener <rguenther@suse.de>
11060
11061 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11062 (STMT_VINFO_REDUC_FN): Likewise.
11063 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11064 STMT_VINFO_REDUC_FN.
11065 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11066 for condition reductions.
11067 (vect_create_epilog_for_reduction): Compute all required state
11068 from the stmt to be vectorized.
11069 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11070 invocation and remove then dead code. For single def-use chains
11071 record only a single vector stmt.
11072
11073 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11074
11075 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11076 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11077 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11078 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11079 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11080 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11081 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11082 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11083 (aarch64_general_builtin_rsqrt): Declare.
11084 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11085 New function.
11086 (aarch64_mangle_builtin_type): Rename to...
11087 (aarch64_general_mangle_builtin_type): ...this.
11088 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11089 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11090 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11091 aarch64_general_add_builtin instead of add_builtin_function.
11092 (aarch64_init_builtins): Rename to...
11093 (aarch64_general_init_builtins): ...this. Use
11094 aarch64_general_add_builtin instead of add_builtin_function.
11095 (aarch64_builtin_decl): Rename to...
11096 (aarch64_general_builtin_decl): ...this and remove the unused
11097 arguments.
11098 (aarch64_expand_builtin): Rename to...
11099 (aarch64_general_expand_builtin): ...this and remove the unused
11100 arguments.
11101 (aarch64_builtin_rsqrt): Rename to...
11102 (aarch64_general_builtin_rsqrt): ...this.
11103 (aarch64_fold_builtin): Rename to...
11104 (aarch64_general_fold_builtin): ...this. Take the function subcode
11105 and return type as arguments. Remove the "ignored" argument.
11106 (aarch64_gimple_fold_builtin): Rename to...
11107 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11108 subcode and gcall as arguments, and return the new function call.
11109 * config/aarch64/aarch64.c (aarch64_init_builtins)
11110 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11111 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11112 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11113 instead of aarch64_builtin_rsqrt.
11114 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11115 instead of aarch64_mangle_builtin_type.
11116
11117 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11118
11119 * target.def (check_builtin_call): New target hook.
11120 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11121 * doc/tm.texi: Regenerate.
11122
11123 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11124
11125 PR tree-optimization/91909
11126 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11127 reduc_index parameter. When handling COND_REDUCTION, make sure
11128 that the reduction phi operand is in the correct arm of the
11129 VEC_COND_EXPR.
11130 (vectorizable_reduction): Pass reduc_index to the above.
11131
11132 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11133
11134 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11135 New combine pattern.
11136
11137 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11138
11139 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11140 loop instruction into new basic block before the loop when basic
11141 block that precedes the loop is empty.
11142
11143 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11144
11145 * function.c (gimplify_parameters): Use build_clobber function.
11146 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11147 * tree-inline.c (expand_call_inline): Likewise.
11148 * tree-sra.c (clobber_subtree): Likewise.
11149 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11150 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11151 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11152 lower_omp_target): Likewise.
11153 * omp-expand.c (expand_omp_for_generic): Likewise.
11154 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11155
11156 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11157
11158 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11159 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11160 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11161 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11162 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11163 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11164 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11165 LD_ELEMREV_V16QI): Use the PURE attribute.
11166
11167 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11168
11169 * config/rs6000/darwin.md: Replace the expanders for
11170 load_macho_picbase and reload_macho_picbase with use of '@'
11171 and <mode> in their respective define_insns.
11172 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11173 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11174 Pmode to gen_load_macho_picbase.
11175 * config/rs6000/rs6000.md: Likewise.
11176
11177 2019-09-25 Richard Biener <rguenther@suse.de>
11178
11179 PR tree-optimization/91896
11180 * tree-vect-loop.c (vectorizable_reduction): The single
11181 def-use cycle optimization cannot apply when there's more
11182 than one pattern stmt involved.
11183
11184 2019-09-26 Richard Biener <rguenther@suse.de>
11185
11186 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11187 loop-closed PHIs that are vect_internal_def.
11188 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11189 Simplify.
11190 (vectorizable_lc_phi): New.
11191 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11192 (vect_transform_stmt): Likewise.
11193 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11194 (vectorizable_lc_phi): Declare.
11195
11196 2019-09-26 Richard Biener <rguenther@suse.de>
11197
11198 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11199 vectorizable_reduction for vect_double_reduction_def.
11200 (vect_transform_loop): Likewise.
11201 (vect_create_epilog_for_reduction): Move double-reduction
11202 PHI creation and preheader argument setting of PHIs ...
11203 (vectorizable_reduction): ... here. Also process
11204 vect_double_reduction_def PHIs, creating the vectorized
11205 PHI nodes, remembering the scalar adjustment computed for
11206 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11207 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11208 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11209 Initialize STMT_VINFO_REDUC_CODE.
11210 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11211 (_stmt_vec_info::reduc_code): Likewise.
11212 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11213 (STMT_VINFO_REDUC_CODE): Likewise.
11214
11215 2019-09-26 Matt Turner <mattst88@gmail.com>
11216
11217 PR driver/69471
11218 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11219 (mtune=): Add Negative(mtune=).
11220 (mcpu=): Add Negative(mcpu=).
11221 * config/arm/arm.opt: Likewise.
11222
11223 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11224
11225 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11226 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11227 Define.
11228 * config/arm/arm_acle.h: Define builtins for the above.
11229 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11230 (simd32_op): Handle the above.
11231 * config/arm/unspecs.md: Define unspecs for the above.
11232
11233 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11234
11235 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11236 (arm_<sup>xtb16): Likewise.
11237 (arm_usada8): Likewise.
11238 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11239 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11240 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11241 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11242 __sxtb16, __uxtab16, __uxtb16): Define.
11243 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11244 * config/arm/unspecs.md: Define unspecs for the above.
11245 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11246 (USXTB16): Likewise.
11247 (simd32_op): New int_attribute.
11248 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11249 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11250
11251 2019-09-26 Martin Jambor <mjambor@suse.cz>
11252
11253 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11254 internal_error.
11255
11256 2019-09-26 Martin Jambor <mjambor@suse.cz>
11257
11258 * ipa-sra.c (process_scan_results): Fix continue condition.
11259
11260 2019-09-26 Martin Liska <mliska@suse.cz>
11261
11262 PR tree-optimization/91885
11263 * tree-vectorizer.c (try_vectorize_loop_1): Add
11264 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11265
11266 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11267
11268 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11269 aarch64_plus_immediate rather than aarch64_uimm12_shift
11270 to test for valid PLUS immediates.
11271
11272 2019-09-25 Martin Jambor <mjambor@suse.cz>
11273
11274 * tree-sra.c (no_accesses_p): Remove.
11275 (no_accesses_representant): Likewise.
11276
11277 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11278
11279 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11280 consistenly.
11281 (vaba_s16): Likewise.
11282 (vaba_s32): Likewise.
11283 (vaba_u8): Likewise.
11284 (vaba_u16): Likewise.
11285 (vaba_u32): Likewise.
11286 (vabal_high_s8): Likewise.
11287 (vabal_high_s16): Likewise.
11288 (vabal_high_s32): Likewise.
11289 (vabal_high_u8): Likewise.
11290 (vabal_high_u16): Likewise.
11291 (vabal_high_u32): Likewise.
11292 (vabal_s8): Likewise.
11293 (vabal_s16): Likewise.
11294 (vabal_s32): Likewise.
11295 (vabal_u8): Likewise.
11296 (vabal_u16): Likewise.
11297 (vabal_u32): Likewise.
11298 (vabaq_s8): Likewise.
11299 (vabaq_s16): Likewise.
11300 (vabaq_s32): Likewise.
11301 (vabaq_u8): Likewise.
11302 (vabaq_u16): Likewise.
11303 (vabaq_u32): Likewise.
11304 (vabd_s8): Likewise.
11305 (vabd_s16): Likewise.
11306 (vabd_s32): Likewise.
11307 (vabd_u8): Likewise.
11308 (vabd_u16): Likewise.
11309 (vabd_u32): Likewise.
11310 (vabdl_high_s8): Likewise.
11311 (vabdl_high_s16): Likewise.
11312 (vabdl_high_s32): Likewise.
11313 (vabdl_high_u8): Likewise.
11314 (vabdl_high_u16): Likewise.
11315 (vabdl_high_u32): Likewise.
11316 (vabdl_s8): Likewise.
11317 (vabdl_s16): Likewise.
11318 (vabdl_s32): Likewise.
11319 (vabdl_u8): Likewise.
11320 (vabdl_u16): Likewise.
11321 (vabdl_u32): Likewise.
11322 (vabdq_s8): Likewise.
11323 (vabdq_s16): Likewise.
11324 (vabdq_s32): Likewise.
11325 (vabdq_u8): Likewise.
11326 (vabdq_u16): Likewise.
11327 (vabdq_u32): Likewise.
11328 (vaddlv_s8): Likewise.
11329 (vaddlv_s16): Likewise.
11330 (vaddlv_u8): Likewise.
11331 (vaddlv_u16): Likewise.
11332 (vaddlvq_s8): Likewise.
11333 (vaddlvq_s16): Likewise.
11334 (vaddlvq_s32): Likewise.
11335 (vaddlvq_u8): Likewise.
11336 (vaddlvq_u16): Likewise.
11337 (vaddlvq_u32): Likewise.
11338 (vcvtx_f32_f64): Likewise.
11339 (vcvtx_high_f32_f64): Likewise.
11340 (vcvtxd_f32_f64): Likewise.
11341 (vmla_n_f32): Likewise.
11342 (vmla_n_s16): Likewise.
11343 (vmla_n_s32): Likewise.
11344 (vmla_n_u16): Likewise.
11345 (vmla_n_u32): Likewise.
11346 (vmla_s8): Likewise.
11347 (vmla_s16): Likewise.
11348 (vmla_s32): Likewise.
11349 (vmla_u8): Likewise.
11350 (vmla_u16): Likewise.
11351 (vmla_u32): Likewise.
11352 (vmlal_high_n_s16): Likewise.
11353 (vmlal_high_n_s32): Likewise.
11354 (vmlal_high_n_u16): Likewise.
11355 (vmlal_high_n_u32): Likewise.
11356 (vmlal_high_s8): Likewise.
11357 (vmlal_high_s16): Likewise.
11358 (vmlal_high_s32): Likewise.
11359 (vmlal_high_u8): Likewise.
11360 (vmlal_high_u16): Likewise.
11361 (vmlal_high_u32): Likewise.
11362 (vmlal_n_s16): Likewise.
11363 (vmlal_n_s32): Likewise.
11364 (vmlal_n_u16): Likewise.
11365 (vmlal_n_u32): Likewise.
11366 (vmlal_s8): Likewise.
11367 (vmlal_s16): Likewise.
11368 (vmlal_s32): Likewise.
11369 (vmlal_u8): Likewise.
11370 (vmlal_u16): Likewise.
11371 (vmlal_u32): Likewise.
11372 (vmlaq_n_f32): Likewise.
11373 (vmlaq_n_s16): Likewise.
11374 (vmlaq_n_s32): Likewise.
11375 (vmlaq_n_u16): Likewise.
11376 (vmlaq_n_u32): Likewise.
11377 (vmlaq_s8): Likewise.
11378 (vmlaq_s16): Likewise.
11379 (vmlaq_s32): Likewise.
11380 (vmlaq_u8): Likewise.
11381 (vmlaq_u16): Likewise.
11382 (vmlaq_u32): Likewise.
11383 (vmls_n_f32): Likewise.
11384 (vmls_n_s16): Likewise.
11385 (vmls_n_s32): Likewise.
11386 (vmls_n_u16): Likewise.
11387 (vmls_n_u32): Likewise.
11388 (vmls_s8): Likewise.
11389 (vmls_s16): Likewise.
11390 (vmls_s32): Likewise.
11391 (vmls_u8): Likewise.
11392 (vmls_u16): Likewise.
11393 (vmls_u32): Likewise.
11394 (vmlsl_high_n_s16): Likewise.
11395 (vmlsl_high_n_s32): Likewise.
11396 (vmlsl_high_n_u16): Likewise.
11397 (vmlsl_high_n_u32): Likewise.
11398 (vmlsl_high_s8): Likewise.
11399 (vmlsl_high_s16): Likewise.
11400 (vmlsl_high_s32): Likewise.
11401 (vmlsl_high_u8): Likewise.
11402 (vmlsl_high_u16): Likewise.
11403 (vmlsl_high_u32): Likewise.
11404 (vmlsl_n_s16): Likewise.
11405 (vmlsl_n_s32): Likewise.
11406 (vmlsl_n_u16): Likewise.
11407 (vmlsl_n_u32): Likewise.
11408 (vmlsl_s8): Likewise.
11409 (vmlsl_s16): Likewise.
11410 (vmlsl_s32): Likewise.
11411 (vmlsl_u8): Likewise.
11412 (vmlsl_u16): Likewise.
11413 (vmlsl_u32): Likewise.
11414 (vmlsq_n_f32): Likewise.
11415 (vmlsq_n_s16): Likewise.
11416 (vmlsq_n_s32): Likewise.
11417 (vmlsq_n_u16): Likewise.
11418 (vmlsq_n_u32): Likewise.
11419 (vmlsq_s8): Likewise.
11420 (vmlsq_s16): Likewise.
11421 (vmlsq_s32): Likewise.
11422 (vmlsq_u8): Likewise.
11423 (vmlsq_u16): Likewise.
11424 (vmlsq_u32): Likewise.
11425 (vmovl_high_s8): Likewise.
11426 (vmovl_high_s16): Likewise.
11427 (vmovl_high_s32): Likewise.
11428 (vmovl_high_u8): Likewise.
11429 (vmovl_high_u16): Likewise.
11430 (vmovl_high_u32): Likewise.
11431 (vmovl_s8): Likewise.
11432 (vmovl_s16): Likewise.
11433 (vmovl_s32): Likewise.
11434 (vmovl_u8): Likewise.
11435 (vmovl_u16): Likewise.
11436 (vmovl_u32): Likewise.
11437 (vmovn_high_s16): Likewise.
11438 (vmovn_high_s32): Likewise.
11439 (vmovn_high_s64): Likewise.
11440 (vmovn_high_u16): Likewise.
11441 (vmovn_high_u32): Likewise.
11442 (vmovn_high_u64): Likewise.
11443 (vmovn_s16): Likewise.
11444 (vmovn_s32): Likewise.
11445 (vmovn_s64): Likewise.
11446 (vmovn_u16): Likewise.
11447 (vmovn_u32): Likewise.
11448 (vmovn_u64): Likewise.
11449 (vmull_high_n_s16): Likewise.
11450 (vmull_high_n_s32): Likewise.
11451 (vmull_high_n_u16): Likewise.
11452 (vmull_high_n_u32): Likewise.
11453 (vmull_high_p8): Likewise.
11454 (vmull_high_s8): Likewise.
11455 (vmull_high_s16): Likewise.
11456 (vmull_high_s32): Likewise.
11457 (vmull_high_u8): Likewise.
11458 (vmull_high_u16): Likewise.
11459 (vmull_high_u32): Likewise.
11460 (vmull_n_s16): Likewise.
11461 (vmull_n_s32): Likewise.
11462 (vmull_n_u16): Likewise.
11463 (vmull_n_u32): Likewise.
11464 (vmull_p8): Likewise.
11465 (vmull_s8): Likewise.
11466 (vmull_s16): Likewise.
11467 (vmull_s32): Likewise.
11468 (vmull_u8): Likewise.
11469 (vmull_u16): Likewise.
11470 (vmull_u32): Likewise.
11471 (vpadal_s8): Likewise.
11472 (vpadal_s16): Likewise.
11473 (vpadal_s32): Likewise.
11474 (vpadal_u8): Likewise.
11475 (vpadal_u16): Likewise.
11476 (vpadal_u32): Likewise.
11477 (vpadalq_s8): Likewise.
11478 (vpadalq_s16): Likewise.
11479 (vpadalq_s32): Likewise.
11480 (vpadalq_u8): Likewise.
11481 (vpadalq_u16): Likewise.
11482 (vpadalq_u32): Likewise.
11483 (vpaddl_s8): Likewise.
11484 (vpaddl_s16): Likewise.
11485 (vpaddl_s32): Likewise.
11486 (vpaddl_u8): Likewise.
11487 (vpaddl_u16): Likewise.
11488 (vpaddl_u32): Likewise.
11489 (vpaddlq_s8): Likewise.
11490 (vpaddlq_s16): Likewise.
11491 (vpaddlq_s32): Likewise.
11492 (vpaddlq_u8): Likewise.
11493 (vpaddlq_u16): Likewise.
11494 (vpaddlq_u32): Likewise.
11495 (vpaddq_s8): Likewise.
11496 (vpaddq_s16): Likewise.
11497 (vpaddq_s32): Likewise.
11498 (vpaddq_s64): Likewise.
11499 (vpaddq_u8): Likewise.
11500 (vpaddq_u16): Likewise.
11501 (vpaddq_u32): Likewise.
11502 (vpaddq_u64): Likewise.
11503 (vqdmulh_n_s16): Likewise.
11504 (vqdmulh_n_s32): Likewise.
11505 (vqdmulhq_n_s16): Likewise.
11506 (vqdmulhq_n_s32): Likewise.
11507 (vqmovn_high_s16): Likewise.
11508 (vqmovn_high_s32): Likewise.
11509 (vqmovn_high_s64): Likewise.
11510 (vqmovn_high_u16): Likewise.
11511 (vqmovn_high_u32): Likewise.
11512 (vqmovn_high_u64): Likewise.
11513 (vqmovun_high_s16): Likewise.
11514 (vqmovun_high_s32): Likewise.
11515 (vqmovun_high_s64): Likewise.
11516 (vqrdmulh_n_s16): Likewise.
11517 (vqrdmulh_n_s32): Likewise.
11518 (vqrdmulhq_n_s16): Likewise.
11519 (vqrdmulhq_n_s32): Likewise.
11520 (vrsqrte_u32): Likewise.
11521 (vrsqrteq_u32): Likewise.
11522 (vtst_p8): Likewise.
11523 (vtst_p16): Likewise.
11524 (vtst_p64): Likewise.
11525 (vtstq_p8): Likewise.
11526 (vtstq_p16): Likewise.
11527 (vtstq_p64): Likewise.
11528 (vaddlv_s32): Likewise.
11529 (vaddlv_u32): Likewise.
11530 (vqtbl1_p8): Likewise.
11531 (vqtbl1_s8): Likewise.
11532 (vqtbl1_u8): Likewise.
11533 (vqtbl1q_p8): Likewise.
11534 (vqtbl1q_s8): Likewise.
11535 (vqtbl1q_u8): Likewise.
11536 (vqtbx1_s8): Likewise.
11537 (vqtbx1_u8): Likewise.
11538 (vqtbx1_p8): Likewise.
11539 (vqtbx1q_s8): Likewise.
11540 (vqtbx1q_u8): Likewise.
11541 (vqtbx1q_p8): Likewise.
11542 (vtbl1_s8): Likewise.
11543 (vtbl1_u8): Likewise.
11544 (vtbl1_p8): Likewise.
11545 (vtbl2_s8): Likewise.
11546 (vtbl2_u8): Likewise.
11547 (vtbl2_p8): Likewise.
11548 (vtbl3_s8): Likewise.
11549 (vtbl3_u8): Likewise.
11550 (vtbl3_p8): Likewise.
11551 (vtbl4_s8): Likewise.
11552 (vtbl4_u8): Likewise.
11553 (vtbl4_p8): Likewise.
11554 (vtbx2_s8): Likewise.
11555 (vtbx2_u8): Likewise.
11556 (vtbx2_p8): Likewise.
11557 (vld1_f32): Likewise.
11558 (vld1_f64): Likewise.
11559 (vld1_p8): Likewise.
11560 (vld1_p16): Likewise.
11561 (vld1_p64): Likewise.
11562 (vld1_s8): Likewise.
11563 (vld1_s16): Likewise.
11564 (vld1_s32): Likewise.
11565 (vld1_s64): Likewise.
11566 (vld1_u8): Likewise.
11567 (vld1_u16): Likewise.
11568 (vld1_u32): Likewise.
11569 (vld1_u64): Likewise.
11570 (vld1q_f32): Likewise.
11571 (vld1q_f64): Likewise.
11572 (vld1q_p8): Likewise.
11573 (vld1q_p16): Likewise.
11574 (vld1q_p64): Likewise.
11575 (vld1q_s8): Likewise.
11576 (vld1q_s16): Likewise.
11577 (vld1q_s32): Likewise.
11578 (vld1q_s64): Likewise.
11579 (vld1q_u8): Likewise.
11580 (vld1q_u16): Likewise.
11581 (vld1q_u32): Likewise.
11582 (vld1q_u64): Likewise.
11583 (vpmax_s8): Likewise.
11584 (vpmax_s16): Likewise.
11585 (vpmax_s32): Likewise.
11586 (vpmax_u8): Likewise.
11587 (vpmax_u16): Likewise.
11588 (vpmax_u32): Likewise.
11589 (vpmaxq_s8): Likewise.
11590 (vpmaxq_s16): Likewise.
11591 (vpmaxq_s32): Likewise.
11592 (vpmaxq_u8): Likewise.
11593 (vpmaxq_u16): Likewise.
11594 (vpmaxq_u32): Likewise.
11595 (vpmax_f32): Likewise.
11596 (vpmaxq_f32): Likewise.
11597 (vpmaxq_f64): Likewise.
11598 (vpmaxqd_f64): Likewise.
11599 (vpmaxs_f32): Likewise.
11600 (vpmaxnm_f32): Likewise.
11601 (vpmaxnmq_f32): Likewise.
11602 (vpmaxnmq_f64): Likewise.
11603 (vpmaxnmqd_f64): Likewise.
11604 (vpmaxnms_f32): Likewise.
11605 (vpmin_s8): Likewise.
11606 (vpmin_s16): Likewise.
11607 (vpmin_s32): Likewise.
11608 (vpmin_u8): Likewise.
11609 (vpmin_u16): Likewise.
11610 (vpmin_u32): Likewise.
11611 (vpminq_s8): Likewise.
11612 (vpminq_s16): Likewise.
11613 (vpminq_s32): Likewise.
11614 (vpminq_u8): Likewise.
11615 (vpminq_u16): Likewise.
11616 (vpminq_u32): Likewise.
11617 (vpmin_f32): Likewise.
11618 (vpminq_f32): Likewise.
11619 (vpminq_f64): Likewise.
11620 (vpminqd_f64): Likewise.
11621 (vpmins_f32): Likewise.
11622 (vpminnm_f32): Likewise.
11623 (vpminnmq_f32): Likewise.
11624 (vpminnmq_f64): Likewise.
11625 (vpminnmqd_f64): Likewise.
11626 (vpminnms_f32): Likewise.
11627 (vmla_f32): Likewise.
11628 (vmlaq_f32): Likewise.
11629 (vmlaq_f64): Likewise.
11630 (vmls_f32): Likewise.
11631 (vmlsq_f32): Likewise.
11632 (vmlsq_f64): Likewise.
11633 (vqtbl2_s8): Likewise.
11634 (vqtbl2_u8): Likewise.
11635 (vqtbl2_p8): Likewise.
11636 (vqtbl2q_s8): Likewise.
11637 (vqtbl2q_u8): Likewise.
11638 (vqtbl2q_p8): Likewise.
11639 (vqtbl3_s8): Likewise.
11640 (vqtbl3_u8): Likewise.
11641 (vqtbl3_p8): Likewise.
11642 (vqtbl3q_s8): Likewise.
11643 (vqtbl3q_u8): Likewise.
11644 (vqtbl3q_p8): Likewise.
11645 (vqtbl4_s8): Likewise.
11646 (vqtbl4_u8): Likewise.
11647 (vqtbl4_p8): Likewise.
11648 (vqtbl4q_s8): Likewise.
11649 (vqtbl4q_u8): Likewise.
11650 (vqtbl4q_p8): Likewise.
11651 (vqtbx2_s8): Likewise.
11652 (vqtbx2_u8): Likewise.
11653 (vqtbx2_p8): Likewise.
11654 (vqtbx2q_s8): Likewise.
11655 (vqtbx2q_u8): Likewise.
11656 (vqtbx2q_p8): Likewise.
11657 (vqtbx3_s8): Likewise.
11658 (vqtbx3_u8): Likewise.
11659 (vqtbx3_p8): Likewise.
11660 (vqtbx3q_s8): Likewise.
11661 (vqtbx3q_u8): Likewise.
11662 (vqtbx3q_p8): Likewise.
11663 (vqtbx4_s8): Likewise.
11664 (vqtbx4_u8): Likewise.
11665 (vqtbx4_p8): Likewise.
11666 (vqtbx4q_s8): Likewise.
11667 (vqtbx4q_u8): Likewise.
11668 (vqtbx4q_p8): Likewise.
11669 (vrev16_p8): Likewise.
11670 (vrev16_s8): Likewise.
11671 (vrev16_u8): Likewise.
11672 (vrev16q_p8): Likewise.
11673 (vrev16q_s8): Likewise.
11674 (vrev16q_u8): Likewise.
11675 (vrev32_p8): Likewise.
11676 (vrev32_p16): Likewise.
11677 (vrev32_s8): Likewise.
11678 (vrev32_s16): Likewise.
11679 (vrev32_u8): Likewise.
11680 (vrev32_u16): Likewise.
11681 (vrev32q_p8): Likewise.
11682 (vrev32q_p16): Likewise.
11683 (vrev32q_s8): Likewise.
11684 (vrev32q_s16): Likewise.
11685 (vrev32q_u8): Likewise.
11686 (vrev32q_u16): Likewise.
11687 (vrev64_f32): Likewise.
11688 (vrev64_p8): Likewise.
11689 (vrev64_p16): Likewise.
11690 (vrev64_s8): Likewise.
11691 (vrev64_s16): Likewise.
11692 (vrev64_s32): Likewise.
11693 (vrev64_u8): Likewise.
11694 (vrev64_u16): Likewise.
11695 (vrev64_u32): Likewise.
11696 (vrev64q_f32): Likewise.
11697 (vrev64q_p8): Likewise.
11698 (vrev64q_p16): Likewise.
11699 (vrev64q_s8): Likewise.
11700 (vrev64q_s16): Likewise.
11701 (vrev64q_s32): Likewise.
11702 (vrev64q_u8): Likewise.
11703 (vrev64q_u16): Likewise.
11704 (vrev64q_u32): Likewise.
11705 (vsha1cq_u32): Likewise.
11706 (vsha1mq_u32): Likewise.
11707 (vsha1pq_u32): Likewise.
11708 (vsha1h_u32): Likewise.
11709 (vsha1su0q_u32): Likewise.
11710 (vsha1su1q_u32): Likewise.
11711 (vsha256hq_u32): Likewise.
11712 (vsha256h2q_u32): Likewise.
11713 (vsha256su0q_u32): Likewise.
11714 (vsha256su1q_u32): Likewise.
11715 (vmull_p64): Likewise.
11716 (vmull_high_p64): Likewise.
11717 (vsqrt_f32): Likewise.
11718 (vsqrtq_f32): Likewise.
11719 (vsqrt_f64): Likewise.
11720 (vsqrtq_f64): Likewise.
11721 (vst1_f32): Likewise.
11722 (vst1_f64): Likewise.
11723 (vst1_p8): Likewise.
11724 (vst1_p16): Likewise.
11725 (vst1_p64): Likewise.
11726 (vst1_s8): Likewise.
11727 (vst1_s16): Likewise.
11728 (vst1_s32): Likewise.
11729 (vst1_s64): Likewise.
11730 (vst1_u8): Likewise.
11731 (vst1_u16): Likewise.
11732 (vst1_u32): Likewise.
11733 (vst1_u64): Likewise.
11734 (vst1q_f32): Likewise.
11735 (vst1q_f64): Likewise.
11736 (vst1q_p8): Likewise.
11737 (vst1q_p16): Likewise.
11738 (vst1q_p64): Likewise.
11739 (vst1q_s8): Likewise.
11740 (vst1q_s16): Likewise.
11741 (vst1q_s32): Likewise.
11742 (vst1q_s64): Likewise.
11743 (vst1q_u8): Likewise.
11744 (vst1q_u16): Likewise.
11745 (vst1q_u32): Likewise.
11746 (vst1q_u64): Likewise.
11747 (vst1_s64_x2): Likewise.
11748 (vst1_u64_x2): Likewise.
11749 (vst1_f64_x2): Likewise.
11750 (vst1_s8_x2): Likewise.
11751 (vst1_p8_x2): Likewise.
11752 (vst1_s16_x2): Likewise.
11753 (vst1_p16_x2): Likewise.
11754 (vst1_s32_x2): Likewise.
11755 (vst1_u8_x2): Likewise.
11756 (vst1_u16_x2): Likewise.
11757 (vst1_u32_x2): Likewise.
11758 (vst1_f16_x2): Likewise.
11759 (vst1_f32_x2): Likewise.
11760 (vst1_p64_x2): Likewise.
11761 (vst1q_s8_x2): Likewise.
11762 (vst1q_p8_x2): Likewise.
11763 (vst1q_s16_x2): Likewise.
11764 (vst1q_p16_x2): Likewise.
11765 (vst1q_s32_x2): Likewise.
11766 (vst1q_s64_x2): Likewise.
11767 (vst1q_u8_x2): Likewise.
11768 (vst1q_u16_x2): Likewise.
11769 (vst1q_u32_x2): Likewise.
11770 (vst1q_u64_x2): Likewise.
11771 (vst1q_f16_x2): Likewise.
11772 (vst1q_f32_x2): Likewise.
11773 (vst1q_f64_x2): Likewise.
11774 (vst1q_p64_x2): Likewise.
11775 (vst1_s64_x3): Likewise.
11776 (vst1_u64_x3): Likewise.
11777 (vst1_f64_x3): Likewise.
11778 (vst1_s8_x3): Likewise.
11779 (vst1_p8_x3): Likewise.
11780 (vst1_s16_x3): Likewise.
11781 (vst1_p16_x3): Likewise.
11782 (vst1_s32_x3): Likewise.
11783 (vst1_u8_x3): Likewise.
11784 (vst1_u16_x3): Likewise.
11785 (vst1_u32_x3): Likewise.
11786 (vst1_f16_x3): Likewise.
11787 (vst1_f32_x3): Likewise.
11788 (vst1_p64_x3): Likewise.
11789 (vst1q_s8_x3): Likewise.
11790 (vst1q_p8_x3): Likewise.
11791 (vst1q_s16_x3): Likewise.
11792 (vst1q_p16_x3): Likewise.
11793 (vst1q_s32_x3): Likewise.
11794 (vst1q_s64_x3): Likewise.
11795 (vst1q_u8_x3): Likewise.
11796 (vst1q_u16_x3): Likewise.
11797 (vst1q_u32_x3): Likewise.
11798 (vst1q_u64_x3): Likewise.
11799 (vst1q_f16_x3): Likewise.
11800 (vst1q_f32_x3): Likewise.
11801 (vst1q_f64_x3): Likewise.
11802 (vst1q_p64_x3): Likewise.
11803 (vst2_s64): Likewise.
11804 (vst2_u64): Likewise.
11805 (vst2_f64): Likewise.
11806 (vst2_s8): Likewise.
11807 (vst2_p8): Likewise.
11808 (vst2_s16): Likewise.
11809 (vst2_p16): Likewise.
11810 (vst2_s32): Likewise.
11811 (vst2_u8): Likewise.
11812 (vst2_u16): Likewise.
11813 (vst2_u32): Likewise.
11814 (vst2_f16): Likewise.
11815 (vst2_f32): Likewise.
11816 (vst2_p64): Likewise.
11817 (vst2q_s8): Likewise.
11818 (vst2q_p8): Likewise.
11819 (vst2q_s16): Likewise.
11820 (vst2q_p16): Likewise.
11821 (vst2q_s32): Likewise.
11822 (vst2q_s64): Likewise.
11823 (vst2q_u8): Likewise.
11824 (vst2q_u16): Likewise.
11825 (vst2q_u32): Likewise.
11826 (vst2q_u64): Likewise.
11827 (vst2q_f16): Likewise.
11828 (vst2q_f32): Likewise.
11829 (vst2q_f64): Likewise.
11830 (vst2q_p64): Likewise.
11831 (vst3_s64): Likewise.
11832 (vst3_u64): Likewise.
11833 (vst3_f64): Likewise.
11834 (vst3_s8): Likewise.
11835 (vst3_p8): Likewise.
11836 (vst3_s16): Likewise.
11837 (vst3_p16): Likewise.
11838 (vst3_s32): Likewise.
11839 (vst3_u8): Likewise.
11840 (vst3_u16): Likewise.
11841 (vst3_u32): Likewise.
11842 (vst3_f16): Likewise.
11843 (vst3_f32): Likewise.
11844 (vst3_p64): Likewise.
11845 (vst3q_s8): Likewise.
11846 (vst3q_p8): Likewise.
11847 (vst3q_s16): Likewise.
11848 (vst3q_p16): Likewise.
11849 (vst3q_s32): Likewise.
11850 (vst3q_s64): Likewise.
11851 (vst3q_u8): Likewise.
11852 (vst3q_u16): Likewise.
11853 (vst3q_u32): Likewise.
11854 (vst3q_u64): Likewise.
11855 (vst3q_f16): Likewise.
11856 (vst3q_f32): Likewise.
11857 (vst3q_f64): Likewise.
11858 (vst3q_p64): Likewise.
11859 (vst4_s64): Likewise.
11860 (vst4_u64): Likewise.
11861 (vst4_f64): Likewise.
11862 (vst4_s8): Likewise.
11863 (vst4_p8): Likewise.
11864 (vst4_s16): Likewise.
11865 (vst4_p16): Likewise.
11866 (vst4_s32): Likewise.
11867 (vst4_u8): Likewise.
11868 (vst4_u16): Likewise.
11869 (vst4_u32): Likewise.
11870 (vst4_f16): Likewise.
11871 (vst4_f32): Likewise.
11872 (vst4_p64): Likewise.
11873 (vst4q_s8): Likewise.
11874 (vst4q_p8): Likewise.
11875 (vst4q_s16): Likewise.
11876 (vst4q_p16): Likewise.
11877 (vst4q_s32): Likewise.
11878 (vst4q_s64): Likewise.
11879 (vst4q_u8): Likewise.
11880 (vst4q_u16): Likewise.
11881 (vst4q_u32): Likewise.
11882 (vst4q_u64): Likewise.
11883 (vst4q_f16): Likewise.
11884 (vst4q_f32): Likewise.
11885 (vst4q_f64): Likewise.
11886 (vst4q_p64): Likewise.
11887 (vtbx4_s8): Likewise.
11888 (vtbx4_u8): Likewise.
11889 (vtbx4_p8): Likewise.
11890 (vtrn_f32): Likewise.
11891 (vtrn_p8): Likewise.
11892 (vtrn_p16): Likewise.
11893 (vtrn_s8): Likewise.
11894 (vtrn_s16): Likewise.
11895 (vtrn_s32): Likewise.
11896 (vtrn_u8): Likewise.
11897 (vtrn_u16): Likewise.
11898 (vtrn_u32): Likewise.
11899 (vtrnq_f32): Likewise.
11900 (vtrnq_p8): Likewise.
11901 (vtrnq_p16): Likewise.
11902 (vtrnq_s8): Likewise.
11903 (vtrnq_s16): Likewise.
11904 (vtrnq_s32): Likewise.
11905 (vtrnq_u8): Likewise.
11906 (vtrnq_u16): Likewise.
11907 (vtrnq_u32): Likewise.
11908 (vrsqrte_f16): Likewise.
11909 (vrsqrteq_f16): Likewise.
11910 (vsqrt_f16): Likewise.
11911 (vsqrtq_f16): Likewise.
11912 (vabd_f16): Likewise.
11913 (vabdq_f16): Likewise.
11914 (vpadd_f16): Likewise.
11915 (vpaddq_f16): Likewise.
11916 (vpmax_f16): Likewise.
11917 (vpmaxq_f16): Likewise.
11918 (vpmaxnm_f16): Likewise.
11919 (vpmaxnmq_f16): Likewise.
11920 (vpmin_f16): Likewise.
11921 (vpminq_f16): Likewise.
11922 (vpminnm_f16): Likewise.
11923 (vpminnmq_f16): Likewise.
11924 (vrsqrts_f16): Likewise.
11925 (vrsqrtsq_f16): Likewise.
11926
11927 2019-09-25 Richard Biener <rguenther@suse.de>
11928
11929 PR tree-optimization/91896
11930 * tree-vect-loop.c (vectorizable_reduction): The single
11931 def-use cycle optimization cannot apply when there's more
11932 than one pattern stmt involved.
11933
11934 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11935
11936 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11937 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11938 (reload_macho_picbase_<mode>): Likewise.
11939
11940 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11941
11942 * config/rs6000/rs6000.md: Move darwin.md include until
11943 after the definition of the mode iterators.
11944
11945 2019-09-23 Martin Sebor <msebor@redhat.com>
11946
11947 PR tree-optimization/91570
11948 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11949 non-constant minlen, maxlen and maxbound.
11950
11951 2019-09-24 Richard Biener <rguenther@suse.de>
11952
11953 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11954 Rename to...
11955 (_stmt_vec_info::cond_reduc_code): ... this.
11956 (_stmt_vec_info::induc_cond_initial_val): Add.
11957 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11958 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11959 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11960 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11961 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11962 the reduction code.
11963 (vect_create_epilog_for_reduction): Drop special
11964 induction condition reduction params, pass in reduction code
11965 and simplify.
11966 (vectorizable_reduction): Perform condition reduction kind
11967 selection only at analysis time. Adjust passing on state.
11968
11969 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11970
11971 * config/aarch64/aarch64.md (mov<mode>): Don't call
11972 aarch64_split_dimode_const_store on volatile MEM.
11973
11974 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11975
11976 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11977 Update hwcap string for fp16fml.
11978
11979 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11980
11981 PR middle-end/91866
11982 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11983 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11984
11985 2019-09-24 Martin Liska <mliska@suse.cz>
11986
11987 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11988 instead of if-elseif-elseif-...
11989 * gimple-expr.c (extract_ops_from_tree): Likewise.
11990 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11991 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11992
11993 2019-09-24 Martin Jambor <mjambor@suse.cz>
11994
11995 PR ipa/91831
11996 * ipa-param-manipulation.c (carry_over_param): Make a method of
11997 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11998 in case of a context mismatch.
11999 (ipa_param_body_adjustments::common_initialization): Adjust call to
12000 carry_over_param.
12001 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12002 private method carry_over_param.
12003
12004 2019-09-24 Martin Jambor <mjambor@suse.cz>
12005
12006 PR ipa/91832
12007 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12008
12009 2019-09-24 Richard Biener <rguenther@suse.de>
12010
12011 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12012 base.
12013
12014 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12015
12016 * config/arm/t-arm (arm-builtins.o): Add dependency on
12017 arm_acle_builtins.def.
12018
12019 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12020
12021 PR target/91823
12022 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12023 canonical CONST_INTs. Use gen_rtvec.
12024
12025 2019-09-23 Richard Biener <rguenther@suse.de>
12026
12027 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12028 avoid adjusting by + 0 or * 1.
12029 (vect_create_epilog_for_reduction): Get reduction code only
12030 when necessary. Deal with adjustment_def only when necessary.
12031
12032 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12033
12034 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12035 memmodel index.
12036
12037 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12038
12039 PR ipa/91835
12040 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12041 "ipa-sra".
12042
12043 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12044
12045 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12046 code. Merge code blocks with common conditionals. Use declared
12047 macro instead of a magic number for PIC level.
12048
12049 2019-09-21 Martin Sebor <msebor@redhat.com>
12050
12051 PR middle-end/91830
12052 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12053 Simplify computation of the offset of the referenced subobject.
12054
12055 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12056
12057 * config/darwin.c (machopic_legitimize_pic_address): Check
12058 for lra not reload.
12059
12060 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12061
12062 * ira-conflicts.c (can_use_same_reg_p): New function.
12063 (process_reg_shuffles): Take an insn parameter. Ignore cases
12064 in which input operand op_num could seemingly never be allocated
12065 to the same register as the destination.
12066 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12067
12068 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12069
12070 * simplify-rtx.c (neg_const_int): Replace with...
12071 (neg_poly_int_rtx): ...this new function.
12072 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12073 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12074 (simplify_plus_minus): Likewise for constant terms here.
12075
12076 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12077
12078 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12079 HOST_WIDE_PRINT_UNSIGNED.
12080
12081 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12082
12083 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12084 character.
12085
12086 2019-09-20 Maya Rashish <coypu@sdf.org>
12087
12088 PR target/86811
12089 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12090 Define to speculation_safe_value_not_needed.
12091
12092 2019-09-20 Richard Biener <rguenther@suse.de>
12093 Uros Bizjak <ubizjak@gmail.com>
12094
12095 PR target/91814
12096 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12097 previous change.
12098 (general_scalar_chain::convert_op): Force not suitable memory
12099 operands to a register.
12100
12101 2019-09-20 Richard Biener <rguenther@suse.de>
12102
12103 PR tree-optimization/91821
12104 * tree-vect-loop.c (check_reduction_path): Check we can compute
12105 reduc_idx.
12106 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12107 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12108 operands in canonical order.
12109 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12110 STMT_VINFO_REDUC_IDX.
12111 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12112 (STMT_VINFO_REDUC_IDX): Likewise.
12113
12114 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12115
12116 PR target/91269
12117 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12118
12119 2019-09-20 Richard Biener <rguenther@suse.de>
12120
12121 PR tree-optimization/91822
12122 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12123 parameter.
12124 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12125 for reduc_index in nested cycles, adjust vectorizable_condition
12126 calls.
12127 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12128 parameter.
12129 (vect_analyze_stmt): Adjust.
12130 (vect_transform_stmt): Likewise.
12131
12132 2019-09-20 Richard Biener <rguenther@suse.de>
12133
12134 PR target/91767
12135 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12136 Ensure there's a sequence point between allocating the new register
12137 and passing a reference to a reg via regno_reg_rtx.
12138
12139 2019-09-20 Martin Jambor <mjambor@suse.cz>
12140
12141 * coretypes.h (cgraph_edge): Declare.
12142 * ipa-param-manipulation.c: Rewrite.
12143 * ipa-param-manipulation.h: Likewise.
12144 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12145 (OBJS): Added ipa-sra.o.
12146 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12147 and ref_p, added fields param_adjustments and performed_splits.
12148 (struct cgraph_clone_info): Remove ags_to_skip and
12149 combined_args_to_skip, new field param_adjustments.
12150 (cgraph_node::create_clone): Changed parameters to use
12151 ipa_param_adjustments.
12152 (cgraph_node::create_virtual_clone): Likewise.
12153 (cgraph_node::create_virtual_clone_with_body): Likewise.
12154 (tree_function_versioning): Likewise.
12155 (cgraph_build_function_type_skip_args): Removed.
12156 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12157 using ipa_param_adjustments.
12158 (clone_of_p): Likewise.
12159 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12160 (build_function_decl_skip_args): Likewise.
12161 (duplicate_thunk_for_node): Adjust parameters using
12162 ipa_param_body_adjustments, copy param_adjustments instead of
12163 args_to_skip.
12164 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12165 (cgraph_node::create_virtual_clone): Likewise.
12166 (cgraph_node::create_version_clone_with_body): Likewise.
12167 (cgraph_materialize_clone): Likewise.
12168 (symbol_table::materialize_all_clones): Likewise.
12169 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12170 ipa_replace_map check.
12171 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12172 (initialize_node_lattices): Make aware that some parameters might have
12173 already been removed.
12174 (want_remove_some_param_p): New function.
12175 (create_specialized_node): Convert to using ipa_param_adjustments and
12176 deal with possibly pre-existing adjustments.
12177 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12178 (output_node_opt_summary): Do not stream removed fields. Stream
12179 parameter adjustments instead of argumetns to skip.
12180 (input_node_opt_summary): Likewise.
12181 (input_node_opt_summary): Likewise.
12182 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12183 * lto-streamer.h (lto_section_type): Likewise.
12184 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12185 param_body_adjs.
12186 (copy_decl_to_var): Declare.
12187 * tree-inline.c (update_clone_info): Do not remap old_tree.
12188 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12189 statements, walk all extra generated statements and remap their
12190 operands.
12191 (redirect_all_calls): Add killed SSA names to a hash set.
12192 (remap_ssa_name): Do not remap killed SSA names.
12193 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12194 half of functionality moved to ipa_param_body_adjustments.
12195 (copy_decl_to_var): Make exported.
12196 (copy_body): Destroy killed_new_ssa_names hash set.
12197 (expand_call_inline): Remap performed splits.
12198 (update_clone_info): Likewise.
12199 (tree_function_versioning): Simplify tree_map processing. Updated to
12200 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12201 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12202 for the new interface.
12203 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12204 (simd_clone_compute_base_data_type): Likewise.
12205 (simd_clone_init_simd_arrays): Adjust for the new interface.
12206 (simd_clone_adjust_argument_types): Likewise.
12207 (struct modify_stmt_info): Likewise.
12208 (ipa_simd_modify_stmt_ops): Likewise.
12209 (ipa_simd_modify_function_body): Likewise.
12210 (simd_clone_adjust): Likewise.
12211 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12212 (type_internals_preclude_sra_p): Make public.
12213 * tree-sra.h: New file.
12214 * ipa-inline-transform.c (save_inline_function_body): Update to
12215 refelct new tree_function_versioning signature.
12216 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12217 ipa_param_adjustments to get current parameter indices.
12218 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12219 (ipcp_update_bits): Likewise.
12220 (ipcp_update_vr): Likewise.
12221 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12222 * ipa-sra.c: New file.
12223 * multiple_target.c (create_target_clone): Update to reflet new type
12224 of create_version_clone_with_body.
12225 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12226 tree_function_versioning.
12227 (modify_function): Update to reflect new type of
12228 tree_function_versioning.
12229 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12230 * passes.def: Remove old IPA-SRA and add new one.
12231 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12232 (make_pass_ipa_sra): Declare.
12233 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12234 ipa_sra_retvalues.
12235 * doc/invoke.texi (ipa-sra-max-replacements): New.
12236
12237 2019-09-19 Martin Sebor <msebor@redhat.com>
12238
12239 PR middle-end/91631
12240 * builtins.c (component_size): Correct trailing array computation,
12241 rename to component_ref_size and move...
12242 (compute_objsize): Adjust.
12243 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12244 (builtin_access::strict): Do not consider memmove.
12245 (builtin_access::write_off): New function.
12246 (builtin_memref::builtin_memref): Initialize refsize.
12247 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12248 refsize.
12249 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12250 Handle refsize.
12251 (builtin_access::builtin_access): Initialize dstoff to destination
12252 refeence offset here instead of in maybe_diag_overlap. Adjust
12253 referencess even to unrelated objects. Adjust sizrange of bounded
12254 string functions to reflect bound. For strcat, adjust destination
12255 sizrange by that of source.
12256 (builtin_access::strcat_overlap): Adjust offsets and sizes
12257 to reflect the increase in destination sizrange above.
12258 (builtin_access::overlap): Do not set dstoff here but instead
12259 in builtin_access::builtin_access.
12260 (check_bounds_or_overlap): Use builtin_access::write_off.
12261 (maybe_diag_access_bounds): Add argument. Add informational notes.
12262 (dump_builtin_memref, dump_builtin_access): New functions.
12263 * tree.c (component_ref_size): ...to here.
12264 * tree.h (component_ref_size): Declare.
12265 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12266 nul in the size of the source string.
12267
12268 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12269
12270 PR c/67224
12271 * doc/cpp.texi: Document support for extended characters in
12272 identifiers.
12273 * doc/cppopts.texi: Likewise.
12274
12275 2019-09-19 Richard Biener <rguenther@suse.de>
12276
12277 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12278 (check_reduction_path): New overload having the path as result.
12279 (vect_is_simple_reduction): From the detected reduction
12280 path build a SLP reduction chain if possible.
12281
12282 2019-09-19 Richard Biener <rguenther@suse.de>
12283
12284 PR target/91814
12285 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12286 Force operand to a register if it isn't nonimmediate_operand.
12287
12288 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12289
12290 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12291 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12292 (logical_op): Remove code attribute.
12293 (logical_OP): Likewise.
12294
12295 2019-09-19 Martin Liska <mliska@suse.cz>
12296
12297 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12298 Use proper casting.
12299
12300 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12301
12302 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12303 registers with %R.
12304
12305 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12306 for NE comparison of TImode values.
12307 (aarch64_emit_load_exclusive): Add support for TImode.
12308 (aarch64_emit_store_exclusive): Likewise.
12309 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12310 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12311 Change iterator from ALLI to ALLI_TI.
12312 (@atomic_compare_and_swap<JUST_TI>): New.
12313 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12314 (aarch64_load_exclusive_pair): New.
12315 (aarch64_store_exclusive_pair): New.
12316 * config/aarch64/iterators.md (JUST_TI): New.
12317
12318 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12319 strong_zero_p for aarch64_track_speculation; unify some code paths;
12320 use aarch64_gen_compare_reg instead of open-coding.
12321
12322 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12323 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12324 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12325 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12326 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12327 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12328 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12329 (atomic_<atomic_op><ALLI>): Likewise.
12330 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12331 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12332 * doc/invoke.texi: Document -moutline-atomics.
12333
12334 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12335
12336 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12337 trivial predicate for condition branch.
12338 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12339 for switch case.
12340 (compute_bb_predicates): Update predicate based on post-dominating
12341 relationship.
12342 (analyze_function_body): Calculate post-dominating information.
12343
12344 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12345
12346 * tree-vectorizer.h (vectorizable_condition): Take an int
12347 reduction index instead of a boolean flag.
12348 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12349 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12350 reductions if the reduction accumulator is the "then" rather
12351 than the "else" value.
12352 (vect_analyze_stmt): Update call accordingly.
12353 (vect_transform_stmt): Likewise.
12354 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12355 asserting that the index is > 0.
12356
12357 2019-09-19 Martin Liska <mliska@suse.cz>
12358
12359 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12360 (sort_congruence_classes_by_decl_uid): Likewise.
12361 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12362 easier sorting.
12363 (sem_item_optimizer::merge_classes): Likewise.
12364
12365 2019-09-19 Richard Biener <rguenther@suse.de>
12366
12367 PR tree-optimization/91812
12368 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12369 volatile loads.
12370
12371 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12372
12373 * defaults.h (TARGET_UNIT): New macro.
12374 (target_unit): New type.
12375 * rtl.h (native_encode_rtx, native_decode_rtx)
12376 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12377 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12378 * rtlanal.c (subreg_lsb_1): Delete.
12379 (subreg_size_lsb): New function.
12380 * simplify-rtx.c: Include rtx-vector-builder.h
12381 (simplify_immed_subreg): Delete.
12382 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12383 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12384 functions.
12385 (simplify_subreg): Use them.
12386 (test_vector_subregs_modes, test_vector_subregs_repeating)
12387 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12388 (test_vector_subregs): New functions.
12389 (test_vector_ops): Call test_vector_subregs for integer vector
12390 modes with at least 2 elements.
12391
12392 2019-09-19 Richard Biener <rguenther@suse.de>
12393
12394 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12395 LOOP_VINFO_OPERANDS_SWAPPED.
12396 (parloops_is_simple_reduction): Likewise.
12397 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12398 initialize operands_swapped.
12399 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12400 (vect_is_slp_reduction): Do not swap operands.
12401 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12402 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12403
12404 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12405
12406 PR target/87007
12407 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12408 Add avx_partial_xmm_update.
12409
12410 2019-09-18 Jim Wilson <jimw@sifive.com>
12411
12412 PR target/91683
12413 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12414 (riscv_move_integer): Likewise.
12415 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12416 riscv_move_integer arg.
12417 (riscv_legitimize_move): Likewise.
12418 (riscv_force_temporary): New parameter in_splitter. Don't call
12419 force_reg if true.
12420 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12421 arg.
12422 (riscv_add_offset): Likewise.
12423 (riscv_split_symbol): New parameter in_splitter. Pass to
12424 riscv_force_temporary.
12425 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12426 arg.
12427 (riscv_move_integer): New parameter in_splitter. New local
12428 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12429 in_splitter TRUE.
12430 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12431 riscv_split_symbol, and riscv_force_temporary args.
12432 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12433 riscv_move_integer arg.
12434 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12435
12436 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12437
12438 PR target/90878
12439 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12440 hard register store cost to 6.
12441
12442 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12443
12444 PR target/91446
12445 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12446 pseudo register store cost from 3 to 6 to make it the same as
12447 QImode and HImode.
12448
12449 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12450
12451 PR target/91738
12452 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12453 (one_cmpldi2): Likewise.
12454 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12455 of the constant parts is simple.
12456 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12457 (logical_op): Add new code attribute.
12458 (logical_OP): Likewise.
12459 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12460 (arm_iordi_operand): Add predicate.
12461 (arm_xordi_operand): Add predicate.
12462
12463 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12464
12465 * config/arm/arm.md (maddsidi4): Remove expander.
12466 (mulsidi3adddi): Remove pattern.
12467 (mulsidi3adddi_v6): Likewise.
12468 (mulsidi3_nov6): Likewise.
12469 (mulsidi3_v6): Likewise.
12470 (umulsidi3): Remove expander.
12471 (umulsidi3_nov6): Remove pattern.
12472 (umulsidi3_v6): Likewise.
12473 (umulsidi3adddi): Likewise.
12474 (umulsidi3adddi_v6): Likewise.
12475 (<Us>mulsidi3): Add combined expander.
12476 (<Us>maddsidi4): Likewise.
12477 (<US>mull): Add combined umull and smull pattern.
12478 (<US>mlal): Likewise.
12479 * config/arm/iterators.md (Us): Add new iterator.
12480
12481 2019-09-18 Richard Biener <rguenther@suse.de>
12482
12483 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12484 swapping.
12485 (vectorize_fold_left_reduction): Remove assert.
12486 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12487 operand in position 2. Remove assert.
12488
12489 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12490
12491 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12492 (smulsi3_highpart_nov6): Remove pattern.
12493 (smulsi3_highpart_v6): Likewise.
12494 (umulsi3_highpart): Likewise.
12495 (umulsi3_highpart_nov6): Likewise.
12496 (umulsi3_highpart_v6): Likewise.
12497 (<US>mull_high): Add new combined multiply pattern.
12498
12499 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12500
12501 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12502 (arm_mulsi3_v6): Likewise.
12503 (mulsi3addsi_v6): Likewise.
12504 (mulsi3subsi): Likewise.
12505 (mul): Add new multiply pattern.
12506 (mla): Likewise.
12507 (mls): Likewise.
12508
12509 2019-09-18 Richard Biener <rguenther@suse.de>
12510
12511 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12512 (parloops_valid_reduction_input_p): Copy from
12513 valid_reduction_input_p.
12514 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12515 (parloops_needs_fold_left_reduction_p): Copy from
12516 needs_fold_left_reduction_p.
12517 (parloops_is_simple_reduction): Copy from
12518 vect_is_simple_reduction.
12519 (parloops_force_simple_reduction): Copy from
12520 vect_force_simple_reduction.
12521 (gather_scalar_reductions): Adjust.
12522 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12523 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12524
12525 2019-09-18 Richard Biener <rguenther@suse.de>
12526
12527 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12528 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12529 static.
12530 (vect_create_epilog_for_reduction): Remove dead code.
12531
12532 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12533
12534 * varasm.c (assemble_real): Generate canonical const_ints.
12535
12536 2019-09-18 Richard Biener <rguenther@suse.de>
12537
12538 PR lto/91763
12539 * lto-streamer-in.c (input_eh_regions): Move EH init to
12540 lto_materialize_function.
12541 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12542 Likewise.
12543
12544 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12545
12546 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12547 are INTEGER_CSTs.
12548
12549 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12550
12551 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12552 of checking specifically for INTEGER_CST.
12553
12554 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12555
12556 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12557 sizes instead of uhwi sizes.
12558
12559 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12560
12561 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12562 (add_const_value_attribute): Handle CONST_POLY_INT.
12563
12564 2019-09-18 Martin Liska <mliska@suse.cz>
12565
12566 * dbgcnt.def (store_merging): New counter.
12567 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12568 Use it in store merging.
12569
12570 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12571
12572 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12573 function.
12574 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12575 * config/arm/arm.c (arm_sched_variable_issue): New function.
12576 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12577
12578 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12579
12580 * config/arm/types.md (no_reservation): New reservation.
12581 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12582 no_insn here.
12583 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12584 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12585 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12586 * config/arm/arm1020e.md (1020alu_op): Likewise.
12587 * config/arm/arm1026ejs.md (alu_op): Likewise.
12588 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12589 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12590 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12591 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12592 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12593 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12594 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12595 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12596 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12597 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12598 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12599 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12600 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12601 * config/arm/fa526.md (526_alu_op): Likewise.
12602 * config/arm/fa606te.md (606te_alu_op): Likewise.
12603 * config/arm/fa626te.md (626te_alu_op): Likewise.
12604 * config/arm/fa726te.md (726te_alu_op): Likewise.
12605 * config/arm/xgene1.md (xgene1_nop): Likewise.
12606
12607 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12608
12609 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12610 "no_insn" to "branch".
12611
12612 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12613
12614 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12615
12616 2019-09-17 Richard Biener <rguenther@suse.de>
12617
12618 PR debug/91772
12619 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12620 was missing generate locations only once.
12621
12622 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12623
12624 PR ipa/91089
12625 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12626 option.
12627 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12628 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12629 for switch default case using range analysis information.
12630
12631 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12632
12633 PR target/91749
12634 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12635 mode attributed is supported by FDPIC.
12636
12637 2019-09-17 Richard Biener <rguenther@suse.de>
12638
12639 PR tree-optimization/91790
12640 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12641 use the correct DR for setting up realignment.
12642
12643 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12644
12645 PR target/91719
12646 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12647 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12648 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12649 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12650
12651 2019-09-16 Jason Merrill <jason@redhat.com>
12652
12653 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12654
12655 2019-09-16 Martin Liska <mliska@suse.cz>
12656
12657 * gimple-fold.c (or_comparisons_1): Remove rules moved
12658 to ...
12659 * match.pd: ... here.
12660
12661 2019-09-16 Martin Liska <mliska@suse.cz>
12662
12663 * gimple-fold.c (or_comparisons_1): Remove rules
12664 moved to ...
12665 * match.pd: ... here.
12666
12667 2019-09-16 Martin Liska <mliska@suse.cz>
12668
12669 * genmatch.c (dt_node::append_simplify): Do not print
12670 warning when we have duplicate patterns belonging
12671 to a same simplify rule.
12672 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12673 (maybe_fold_comparisons_from_match_pd): Handle
12674 tcc_comparison as a results.
12675 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12676
12677 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12678 Qi Feng <ffengqi@linux.ibm.com>
12679
12680 PR middle-end/88784
12681 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12682 (x > y && x == XXX_MIN): Optimize into 'false'.
12683 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12684 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12685 (x < y && x == XXX_MAX): Optimize into 'false'.
12686 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12687 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12688 (x <= y || x != XXX_MIN): Optimize into 'true'.
12689 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12690 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12691 (x >= y || x != XXX_MAX): Optimize into 'true'.
12692 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12693
12694 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12695 Martin Liska <mliska@suse.cz>
12696
12697 * gimple-fold.c (and_comparisons_1): Add type as first
12698 argument.
12699 (and_var_with_comparison): Likewise.
12700 (and_var_with_comparison_1): Likewise.
12701 (or_comparisons_1): Likewise.
12702 (or_var_with_comparison): Likewise.
12703 (or_var_with_comparison_1): Likewise.
12704 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12705 (maybe_fold_or_comparisons): Likewise.
12706 (maybe_fold_comparisons_from_match_pd): New.
12707 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12708 (maybe_fold_or_comparisons): Likewise.
12709 * gimple.c (gimple_size): Make it public and add num_ops argument.
12710 (gimple_init): New function.
12711 (gimple_alloc): Call gimple_init.
12712 * gimple.h (gimple_size): New.
12713 (gimple_init): Likewise.
12714 * tree-if-conv.c (fold_or_predicates): Pass type.
12715 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12716 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12717 (optimize_vec_cond_expr): Likewise.
12718 (ovce_extract_ops): Return type of conditional expression.
12719 * tree-ssanames.c (init_ssa_name_imm_use): New.
12720 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12721 * tree-ssanames.h (init_ssa_name_imm_use): New.
12722
12723 2019-09-16 Richard Biener <rguenther@suse.de>
12724
12725 PR tree-optimization/91756
12726 PR tree-optimization/87132
12727 * tree-ssa-alias.h (enum translate_flags): New.
12728 (get_continuation_for_phi): Use it instead of simple bool flag.
12729 (walk_non_aliased_vuses): Likewise.
12730 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12731 (get_continuation_for_phi): When looking across backedges only
12732 disallow valueization.
12733 (walk_non_aliased_vuses): Adjust.
12734 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12735 if requested.
12736
12737 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12738
12739 PR middle-end/80791
12740 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12741 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12742 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12743 * target.def (have_count_reg_decr_p): New hook.
12744 (doloop_cost_for_generic): Likewise.
12745 (doloop_cost_for_address): Likewise.
12746 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12747 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12748 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12749 * doc/tm.texi: Regenerate.
12750 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12751 addend.
12752 (record_group): Init doloop_p.
12753 (add_candidate_1): Add optional argument doloop, change the handlings
12754 accordingly.
12755 (add_candidate): Likewise.
12756 (generic_predict_doloop_p): Update attribute.
12757 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12758 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12759 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12760 MIN_EXPR.
12761 (get_computation_cost): Update for doloop IV cand extra cost.
12762 (determine_group_iv_cost_cond): Update for doloop IV cand.
12763 (determine_iv_cost): Likewise.
12764 (ivopts_estimate_reg_pressure): Likewise.
12765 (may_eliminate_iv): Update handlings for doloop IV cand.
12766 (add_iv_candidate_for_doloop): New function.
12767 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12768 (iv_ca_set_no_cp): Update for doloop IV cand.
12769 (iv_ca_set_cp): Likewise.
12770 (iv_ca_dump): Dump register cost.
12771 (find_doloop_use): New function.
12772 (analyze_and_mark_doloop_use): Likewise.
12773 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12774
12775 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12776
12777 PR middle-end/91708
12778 * cse.c (cse_insn): Do not replace anything with a
12779 MEM.
12780
12781 2019-09-13 Ian Lance Taylor <iant@golang.org>
12782
12783 * doc/invoke.texi (Optimize Options): Fix typo.
12784
12785 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12786
12787 PR tree-optimization/89386
12788 * config/i386/sse.md (smulhrs<mode>3): New expander.
12789 (smulhrsv4hi3): Ditto.
12790
12791 2019-09-12 Richard Biener <rguenther@suse.de>
12792
12793 PR tree-optimization/91750
12794 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12795 in the type of the evolution.
12796
12797 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12798
12799 PR tree-optimization/89386
12800 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12801 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12802 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12803 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12804 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12805 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12806 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12807 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12808 (su, r): Handle the unspecs above.
12809 (bt): New int attribute.
12810 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12811 * internal-fn.c (first_commutative_argument): Commutativity info for
12812 above.
12813 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12814 (umulhrs_optab): New optabs.
12815 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12816 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12817 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12818 function.
12819 (vect_vect_recog_func_ptrs): Add it.
12820
12821 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12822
12823 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12824 code.
12825
12826 2019-09-11 Nathan Sidwell <nathan@acm.org>
12827
12828 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12829 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12830
12831 2019-09-11 Richard Biener <rguenther@suse.de>
12832
12833 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12834 * lto-wrapper.c (merge_and_complain): Pick up -g.
12835 (append_compiler_options): Likewise.
12836 (run_gcc): Re-instantiate handling -g0 at link-time.
12837 * doc/invoke.texi (flto): Document debug info generation.
12838
12839 2019-09-11 Richard Biener <rguenther@suse.de>
12840
12841 PR tree-optimization/90387
12842 * vr-values.c (vr_values::extract_range_basic): After inlining
12843 simplify non-constant __builtin_constant_p to false.
12844
12845 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12846
12847 PR rtl-optimization/89795
12848 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12849 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12850
12851 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12852
12853 PR tree-optimization/91723
12854 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12855 instead of pointer equality when checking if argument vectypes are
12856 the same.
12857
12858 PR middle-end/91725
12859 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12860 of get_nonzero_bits, only call it for integral types.
12861
12862 2019-09-11 Richard Biener <rguenther@suse.de>
12863
12864 Revert
12865 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12866
12867 * match.pd: Add flag_unsafe_math_optimizations check
12868 before deciding on the widest type in a binary math operation.
12869
12870 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12871
12872 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12873 and CALL_REALLY_USED_REGISTERS must be defined, and that
12874 CALL_REALLY_USED_REGISTERS is preferred.
12875 * doc/tm.texi: Regenerate.
12876 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12877 (call_really_used_regs): Likewise.
12878 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12879 CALL_REALLY_USED_REGISTERS are defined.
12880 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12881 initial value if defined.
12882 (initial_call_really_used_regs): Delete.
12883 (saved_call_really_used_regs): Likewise.
12884 (CALL_REALLY_USED_REGNO_P): Likewise.
12885 (init_reg_sets): Remove handling of call_really_used_regs.
12886 (save_register_info, restore_register_info, globalize_reg): Likewise.
12887 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12888 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12889 outside operand_reg_set.
12890 (fix_register): Don't change call_used_regs if
12891 CALL_REALLY_USED_REGISTERS is defined.
12892 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12893 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12894 instead of call_really_used_regs.
12895 (csky_conditional_register_usage): Remove the old handling of
12896 call_used_regs and change the handling of call_really_used_regs
12897 to use call_used_regs instead.
12898 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12899 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12900 making a register fixed.
12901 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12902 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12903 instead of call_really_used_regs.
12904 (m32r_conditional_register_usage): Don't set call_used_regs when
12905 making a register fixed.
12906 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12907 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12908 instead of call_really_used_regs.
12909 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12910 (mips_cfun_call_saved_reg_p): Likewise.
12911 (mips_swap_registers): Remove the old handling of call_used_regs
12912 and change the handling of call_really_used_regs to use call_used_regs
12913 instead.
12914 (mips_conditional_register_usage): Likewise.
12915 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12916 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12917 instead of call_really_used_regs.
12918 (mn10300_get_live_callee_saved_regs): Likewise.
12919 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12920 (mn10300_conditional_register_usage): Don't set call_used_regs when
12921 making a register fixed.
12922 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12923 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12924 Remove the old handling of call_used_regs and change the handling
12925 of call_really_used_regs to use call_used_regs instead.
12926 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12927 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12928 instead of call_really_used_regs.
12929 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12930 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12931 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12932 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12933 (s390_conditional_register_usage): Remove the old handling of
12934 call_used_regs and change the handling of call_really_used_regs
12935 to use call_used_regs instead.
12936 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12937 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12938 (sh_fix_range, reg_unused_after): Likewise.
12939 (sh_conditional_register_usage): Remove the old handling of
12940 call_used_regs and change the handling of call_really_used_regs
12941 to use call_used_regs instead.
12942 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12943 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12944 call_used_regs when making a register fixed.
12945 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12946 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12947 call_used_regs when making a register fixed.
12948 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12949 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12950 set call_used_regs when making a register fixed.
12951 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12952 * config/visium/visium.c (visium_conditional_register_usage): Remove
12953 the old handling of call_used_regs and change the handling of
12954 call_really_used_regs to use call_used_regs instead.
12955
12956 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12957
12958 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12959 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12960 * reginfo.c (call_used_regs): New macro.
12961
12962 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12963
12964 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12965 fixed_regs test.
12966 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12967 (bpf_expand_epilogue): Likewise.
12968 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12969 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12970 (ft32_expand_epilogue): Likewise.
12971 * config/i386/i386.c (ix86_save_reg): Likewise.
12972 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12973 (moxie_expand_epilogue): Likewise.
12974 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12975 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12976 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12977
12978 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12979
12980 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12981 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12982 instead of testing call_used_regs directly.
12983 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12984 (aarch64_components_for_bb): Likewise.
12985 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12986 * config/arc/arc.c (arc_must_save_register): Likewise.
12987 (arc_epilogue_uses): Likewise.
12988 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12989 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12990 (arm_compute_save_reg0_reg12_mask): Likewise.
12991 (arm_compute_save_core_reg_mask): Likewise.
12992 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12993 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12994 (cmse_nonsecure_entry_clear_before_return): Likewise.
12995 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12996 (arm_expand_epilogue): Likewise.
12997 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12998 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12999 (_reg_unused_after): Likewise.
13000 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13001 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13002 (add_to_reg, hwloop_optimize): Likewise.
13003 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13004 (bpf_expand_epilogue): Likewise.
13005 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13006 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13007 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13008 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13009 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13010 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13011 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13012 * config/frv/frv.c (frv_stack_info): Likewise.
13013 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13014 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13015 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13016 (move_callee_saved_registers): Likewise.
13017 * config/h8300/h8300.c (byte_reg): Likewise.
13018 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13019 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13020 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13021 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13022 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13023 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13024 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13025 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13026 * config/m32c/m32c.c (need_to_save): Likewise.
13027 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13028 * config/mcore/mcore.c (calc_live_regs): Likewise.
13029 * config/microblaze/microblaze.c (microblaze_must_save_register):
13030 Likewise.
13031 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13032 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13033 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13034 (mmix_expand_epilogue): Likewise.
13035 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13036 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13037 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13038 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13039 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13040 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13041 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13042 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13043 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13044 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13045 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13046 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13047 * config/rl78/rl78.c (need_to_save): Likewise.
13048 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13049 (rs6000_stack_info, generate_set_vrsave): Likewise.
13050 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13051 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13052 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13053 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13054 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13055 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13056 (save_local_or_in_reg_p): Likewise.
13057 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13058 (xstormy16_epilogue_uses): Likewise.
13059 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13060 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13061 * config/v850/v850.c (compute_register_save_size): Likewise.
13062 * config/vax/vax.c (vax_expand_prologue): Likewise.
13063 * config/visium/visium.c (visium_save_reg_p): Likewise.
13064 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13065 * cselib.c (cselib_process_insn): Likewise.
13066 * df-scan.c (df_get_entry_block_def_set): Likewise.
13067 * function.c (aggregate_value_p): Likewise.
13068 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13069 * ira-lives.c (process_bb_node_lives): Likewise.
13070 * ira.c (do_reload): Likewise.
13071 * lra-lives.c (process_bb_lives): Likewise.
13072 * lra-remat.c (lra_remat): Likewise.
13073 * lra.c (lra): Likewise.
13074 * postreload.c (reload_combine_recognize_pattern): Likewise.
13075 (reload_cse_move2add): Likewise.
13076 * recog.c (peep2_find_free_register): Likewise.
13077 * regrename.c (check_new_reg_p): Likewise.
13078 * reload.c (find_equiv_reg): Likewise.
13079 * reload1.c (reload, find_reg): Likewise.
13080 * sel-sched.c (init_hard_regs_data): Likewise.
13081
13082 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13083
13084 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13085 regs_invalidated_by_call & ~fixed_reg_set instead of
13086 call_used_or_fixed_regs & ~fixed_reg_set.
13087 * config/sh/sh.c (output_stack_adjust): Likewise.
13088
13089 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13090
13091 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13092 (call_used_reg_set): Delete.
13093 (call_used_or_fixed_regs): New macro.
13094 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13095 of call_used_reg_set.
13096 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13097 instead of call_used_regs.
13098 (save_call_clobbered_regs): Likewise.
13099 * cfgcleanup.c (old_insns_match_p): Likewise.
13100 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13101 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13102 Likewise.
13103 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13104 * config/sh/sh.c (output_stack_adjust): Likewise.
13105 * final.c (collect_fn_hard_reg_usage): Likewise.
13106 * ira-build.c (ira_build): Likewise.
13107 * ira-color.c (calculate_saved_nregs): Likewise.
13108 (allocno_reload_assign, calculate_spill_cost): Likewise.
13109 * ira-conflicts.c (ira_build_conflicts): Likewise.
13110 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13111 * ira-lives.c (process_bb_node_lives): Likewise.
13112 * ira.c (setup_reg_renumber): Likewise.
13113 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13114 * lra-constraints.c (need_for_call_save_p): Likewise.
13115 (need_for_split_p, inherit_in_ebb): Likewise.
13116 * lra-lives.c (process_bb_lives): Likewise.
13117 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13118 * postreload.c (reload_combine): Likewise.
13119 * regrename.c (find_rename_reg): Likewise.
13120 * reload1.c (reload_as_needed): Likewise.
13121 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13122 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13123 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13124
13125 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13126
13127 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13128 (no_caller_save_reg_set): Delete.
13129 * caller-save.c (init_caller_save): Don't initialize it.
13130 * ira-conflicts.c (ira_build_conflicts): Calculate
13131 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13132
13133 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13134
13135 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13136 (target_hard_regs::x_savable_regs): New field.
13137 (call_fixed_reg_set): Delete.
13138 (savable_regs): New macro,
13139 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13140 (init_reg_sets_1): Likewise. Initialize savable_regs.
13141 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13142 for all registers. Set savable_regs instead of call_fixed_reg_set.
13143 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13144 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13145 * config/sh/sh.c (output_stack_adjust): Likewise.
13146
13147 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13148
13149 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13150 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13151 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13152
13153 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13154
13155 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13156 * rtlanal.c (get_call_rtx_from): Likewise.
13157 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13158 than the pattern to get_call_rtx_from.
13159 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13160 an rtx_insn * instead of an rtx.
13161 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13162
13163 2019-09-10 Martin Liska <mliska@suse.cz>
13164
13165 * common.opt: Use newly added WarnRemoved.
13166 * config/aarch64/aarch64.opt: Likewise.
13167 * config/arm/arm.opt: Likewise.
13168 * config/i386/i386.opt: Likewise.
13169 * config/ia64/ia64.opt: Likewise.
13170 * config/rs6000/rs6000.opt: Likewise.
13171 * doc/options.texi: Document WarnRemoved properly.
13172 * dwarf2out.c (gen_producer_string): Handle renamed
13173 OPT_SPECIAL_warn_removed.
13174 * lto-opts.c (lto_write_options): Likewise.
13175 * lto-wrapper.c (merge_and_complain): Likewise.
13176 * opts-common.c (decode_cmdline_option): Likewise.
13177 (prune_options): Likewise.
13178 (read_cmdline_option): Likewise.
13179 (control_warning_option): Likewise.
13180 * opts.c (print_filtered_help): Likewise.
13181 * optc-gen.awk: Parse for WarnRemoved and make usage
13182 of Deprecated an error.
13183 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13184
13185 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13186
13187 * doc/install.texi: Fix syntax for html generation.
13188
13189 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13190
13191 PR middle-end/91680
13192 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13193 the shift type to type.
13194
13195 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13196
13197 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13198 FDPIC mode.
13199 (stack_protect_combined_test_insn): Likewise.
13200
13201 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13202 Mickaël Guêné <mickael.guene@st.com>
13203
13204 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13205 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13206 (load_tp_soft_fdpic): New pattern.
13207 (load_tp_soft): Disable in FDPIC mode.
13208
13209 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13210 Mickaël Guêné <mickael.guene@st.com>
13211
13212 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13213 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13214 (arm_call_tls_get_addr): Add FDPIC support.
13215 (legitimize_tls_address): Likewise.
13216 (arm_emit_tls_decoration): Likewise.
13217
13218 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13219 Mickaël Guêné <mickael.guene@st.com>
13220
13221 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13222 support.
13223 (arm_trampoline_init): Likewise.
13224 (arm_trampoline_adjust_address): Likewise.
13225 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13226
13227 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13228 Mickaël Guêné <mickael.guene@st.com>
13229
13230 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13231 (legitimize_pic_address): Enforce binding rules on function
13232 pointers in FDPIC mode.
13233 (arm_assemble_integer): Likewise.
13234
13235 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13236 Mickaël Guêné <mickael.guene@st.com>
13237
13238 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13239 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13240 FDPIC.
13241
13242 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13243 Mickaël Guêné <mickael.guene@st.com>
13244
13245 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13246 field.
13247
13248 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13249 Mickaël Guêné <mickael.guene@st.com>
13250
13251 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13252 in FDPIC mode.
13253 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13254 new function.
13255 * config/arm/arm.c (arm_option_override): Define pic register to
13256 FDPIC_REGNUM.
13257 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13258 have no decl or go through PLT.
13259 (calculate_pic_address_constant): New function.
13260 (legitimize_pic_address): Call calculate_pic_address_constant.
13261 (arm_load_pic_register): Handle TARGET_FDPIC.
13262 (arm_is_segment_info_known): New function.
13263 (arm_pic_static_addr): Add support for FDPIC.
13264 (arm_load_function_descriptor): New function.
13265 (arm_emit_call_insn): Add support for FDPIC.
13266 (arm_assemble_integer): Add support for FDPIC.
13267 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13268 Define. (FDPIC_REGNUM): New define.
13269 * config/arm/arm.md (call): Add support for FDPIC.
13270 (call_value): Likewise.
13271 (restore_pic_register_after_call): New pattern.
13272 (untyped_call): Disable if FDPIC.
13273 (untyped_return): Likewise.
13274 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13275
13276 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13277 Mickaël Guêné <mickael.guene@st.com>
13278
13279 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13280 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13281 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13282 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13283 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13284 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13285 * config/arm/uclinuxfdpiceabi.h: New file.
13286
13287 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13288
13289 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13290
13291 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13292 Mickaël Guêné <mickael.guene@st.com>
13293
13294 * config/arm/arm.opt: Add -mfdpic option.
13295 * doc/invoke.texi: Add documentation for -mfdpic.
13296
13297 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13298
13299 * expmed.c (extract_bit_field): Update function comment
13300 regarding alt_rtl.
13301 * expr.c (expand_expr_real): Update function comment
13302 regarding alt_rtl.
13303 (expand_misaligned_mem_ref): New helper function.
13304 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13305 Remove duplicate assignment to "base" at case MEM_REF.
13306 Remove a shadowed variable "unsignedp" at case VCE.
13307
13308 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13309
13310 * regset.h (regs_invalidated_by_call_regset): Delete.
13311 (fixed_reg_set_regset): Likewise.
13312 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13313 (fixed_reg_set_regset, persistent_obstack): Likewise.
13314 (init_reg_sets_1, globalize_reg): Update accordingly.
13315 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13316 instead of a bitmap.
13317 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13318 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13319 instead of regs_invalidated_by_call_regset.
13320 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13321 * df-scan.c (df_scan_start_dump): Likewise.
13322 * dse.c (copy_fixed_regs): Likewise.
13323 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13324
13325 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13326
13327 * array-traits.h: New file.
13328 * coretypes.h (array_traits, bitmap_view): New types.
13329 * bitmap.h: Include "array-traits.h"
13330 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13331 (base_bitmap_view, bitmap_view): New classes.
13332 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13333 * hard-reg-set.h: Include array-traits.h.
13334 (array_traits<HARD_REG_SET>): New struct.
13335 * regset.h (IOR_REG_SET_HRS): New macro.
13336 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13337 rather than iterating over each hard register.
13338 * sched-deps.c (sched_analyze_insn): Likewise.
13339 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13340
13341 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13342
13343 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13344 instead of a HARD_REG_SET *.
13345 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13346 (ira_build): Update call accordingly.
13347 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13348
13349 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13350
13351 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13352 (HARD_REG_SET::operator!=): Likewise.
13353 (hard_reg_set_equal_p): Delete.
13354 * cfgcleanup.c (old_insns_match_p): Use == instead of
13355 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13356 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13357 (add_allocno_hard_regs_to_forest): Likewise.
13358 (setup_allocno_available_regs_num): Likewise.
13359 * ira.c (setup_pressure_classes): Likewise.
13360 (setup_allocno_and_important_classes): Likewise.
13361 (setup_reg_class_relations): Likewise.
13362 * lra-lives.c (process_bb_lives): Likewise.
13363 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13364
13365 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13366
13367 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13368 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13369 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13370 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13371 Likewise.
13372 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13373 * ira.c (setup_reg_renumber): Likewise.
13374 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13375 * regrename.c (regrename_find_superclass): Likewise.
13376 * reload1.c (find_reg): Likewise.
13377
13378 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13379
13380 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13381 * caller-save.c (setup_save_areas): Use "&~" instead of
13382 AND_COMPL_HARD_REG_SET.
13383 (save_call_clobbered_regs): Likewise.
13384 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13385 Likewise.
13386 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13387 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13388 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13389 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13390 (mips_conditional_register_usage): Likewise.
13391 * config/sh/sh.c (output_stack_adjust): Likewise.
13392 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13393 (setup_profitable_hard_regs): Likewise.
13394 (get_conflict_and_start_profitable_regs): Likewise.
13395 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13396 (ira_build_conflicts): Likewise.
13397 * ira-costs.c (restrict_cost_classes): Likewise.
13398 (setup_regno_cost_classes_by_aclass): Likewise.
13399 * ira-lives.c (process_bb_node_lives): Likewise.
13400 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13401 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13402 (setup_allocno_and_important_classes, setup_class_translate_array)
13403 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13404 Likewise.
13405 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13406 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13407 (process_alt_operands, inherit_in_ebb): Likewise.
13408 * lra-eliminations.c (update_reg_eliminate): Likewise.
13409 * lra-lives.c (process_bb_lives): Likewise.
13410 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13411 * resource.c (find_dead_or_set_registers): Likewise.
13412 (mark_target_live_regs): Likewise.
13413 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13414 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13415 (implicit_clobber_conflict_p): Likewise.
13416 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13417 (try_shrink_wrapping): Likewise.
13418
13419 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13420
13421 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13422 (HARD_REG_SET::operator|=): Likewise.
13423 (IOR_HARD_REG_SET): Delete.
13424 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13425 IOR_HARD_REG_SET.
13426 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13427 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13428 * final.c (collect_fn_hard_reg_usage): Likewise.
13429 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13430 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13431 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13432 (propagate_some_info_from_allocno): Likewise.
13433 (copy_info_to_removed_store_destinations): Likewise.
13434 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13435 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13436 (fast_allocation): Likewise.
13437 * ira-conflicts.c (ira_build_conflicts): Likewise.
13438 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13439 (process_bb_node_lives): Likewise.
13440 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13441 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13442 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13443 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13444 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13445 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13446 (process_bb_lives): Likewise.
13447 * lra-spills.c (assign_spill_hard_regs): Likewise.
13448 * postreload.c (reload_combine): Likewise.
13449 * reginfo.c (init_reg_sets_1): Likewise.
13450 * regrename.c (merge_overlapping_regs, find_rename_reg)
13451 (merge_chains): Likewise.
13452 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13453 (find_reload_regs, finish_spills, choose_reload_regs_init)
13454 (emit_reload_insns): Likewise.
13455 * reorg.c (redundant_insn): Likewise.
13456 * resource.c (find_dead_or_set_registers, mark_set_resources)
13457 (mark_target_live_regs): Likewise.
13458 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13459 * sched-deps.c (sched_analyze_insn): Likewise.
13460 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13461 (find_best_reg_for_expr): Likewise.
13462 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13463
13464 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13465
13466 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13467 (HARD_REG_SET::operator&): Likewise.
13468 (AND_HARD_REG_SET): Delete.
13469 * caller-save.c (setup_save_areas): Use "&" instead of
13470 AND_HARD_REG_SET.
13471 (save_call_clobbered_regs): Likewise.
13472 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13473 * config/m32c/m32c.c (reduce_class): Likewise.
13474 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13475 * final.c (get_call_reg_set_usage): Likewise.
13476 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13477 (setup_left_conflict_sizes_p): Likewise.
13478 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13479 (ira_build_conflicts): Likewise.
13480 * ira-costs.c (restrict_cost_classes): Likewise.
13481 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13482 (setup_reg_class_relations): Likewise.
13483 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13484 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13485 * resource.c (find_dead_or_set_registers): Likewise.
13486 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13487
13488 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13489
13490 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13491 (COMPL_HARD_REG_SET): Delete.
13492 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13493 of COMPL_HARD_REG_SET.
13494 (try_rename_operands): Likewise.
13495 * config/sh/sh.c (push_regs): Likewise.
13496 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13497 * lra-constraints.c (contains_reg_p): Likewise.
13498 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13499
13500 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13501
13502 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13503 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13504 of COPY_HARD_REG_SET.
13505 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13506 (epiphany_conditional_register_usage): Likewise.
13507 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13508 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13509 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13510 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13511 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13512 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13513 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13514 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13515 * config/sh/sh.c (output_stack_adjust): Likewise.
13516 * final.c (collect_fn_hard_reg_usage): Likewise.
13517 (get_call_reg_set_usage): Likewise.
13518 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13519 (ira_flattening): Likewise.
13520 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13521 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13522 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13523 (ira_reassign_pseudos): Likewise.
13524 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13525 (ira_build_conflicts): Likewise.
13526 * ira-costs.c (restrict_cost_classes): Likewise.
13527 (setup_regno_cost_classes_by_aclass): Likewise.
13528 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13529 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13530 (setup_stack_reg_pressure_class, setup_pressure_classes)
13531 (setup_allocno_and_important_classes, setup_class_translate_array)
13532 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13533 (ira_setup_eliminable_regset): Likewise.
13534 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13535 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13536 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13537 (process_alt_operands, inherit_in_ebb): Likewise.
13538 * lra-lives.c (process_bb_lives): Likewise.
13539 * lra-spills.c (assign_spill_hard_regs): Likewise.
13540 * lra.c (lra): Likewise.
13541 * mode-switching.c (new_seginfo): Likewise.
13542 * postreload.c (reload_combine): Likewise.
13543 * reg-stack.c (straighten_stack): Likewise.
13544 * reginfo.c (save_register_info, restore_register_info): Likewise.
13545 (init_reg_sets_1, record_subregs_of_mode): Likewise
13546 * regrename.c (create_new_chain, rename_chains): Likewise.
13547 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13548 (find_reload_regs): Likewise.
13549 * resource.c (find_dead_or_set_registers): Likewise.
13550 (mark_target_live_regs): Likewise.
13551 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13552
13553 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13554
13555 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13556 (note_pattern_stores): Declare.
13557 (note_stores): Take an rtx_insn *.
13558 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13559 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13560 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13561 (note_stores): Take an rtx_insn * as argument and process
13562 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13563 (note_pattern_stores): ...this.
13564 (find_first_parameter_load): Pass the insn rather than
13565 its pattern to note_stores.
13566 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13567 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13568 (insert_one_insn): Likewise.
13569 * combine.c (combine_instructions): Likewise.
13570 (likely_spilled_retval_p): Likewise.
13571 (try_combine): Use note_pattern_stores instead of note_stores.
13572 (record_dead_and_set_regs): Pass the insn rather than its pattern
13573 to note_stores.
13574 (reg_dead_at_p): Likewise.
13575 * config/bfin/bfin.c (workaround_speculation): Likewise.
13576 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13577 rather than an rtx.
13578 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13579 instead of note_stores.
13580 (frv_optimize_membar_local): Pass the insn rather than its pattern
13581 to note_stores.
13582 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13583 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13584 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13585 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13586 (mips_reorg_process_insns): Likewise.
13587 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13588 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13589 rather than rtxes.
13590 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13591 its pattern to note_stores.
13592 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13593 of note_stores.
13594 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13595 the insn to note_stores.
13596 (prescan_insns_for_dce): Update call accordingly.
13597 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13598 to note_stores.
13599 * df-problems.c (can_move_insns_across): Likewise.
13600 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13601 * function.c (assign_parm_setup_reg): Likewise.
13602 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13603 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13604 (single_set_gcse): Likewise.
13605 * ira.c (validate_equiv_mem): Likewise.
13606 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13607 for no_equiv.
13608 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13609 pattern to note_stores.
13610 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13611 * loop-iv.c (simplify_using_initial_values): Likewise.
13612 * mode-switching.c (optimize_mode_switching): Likewise.
13613 * optabs.c (emit_libcall_block_1): Likewise.
13614 (expand_atomic_compare_and_swap): Likewise.
13615 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13616 (record_opr_changes): Likewise. Remove explicit handling of
13617 CALL_INSN_FUNCTION_USAGE.
13618 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13619 * regcprop.c (kill_clobbered_values): Likewise.
13620 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13621 to note_stores.
13622 * regrename.c (build_def_use): Likewise.
13623 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13624 for mark_not_eliminable.
13625 (reload_as_needed): Pass the insn rather than its pattern
13626 to note_stores.
13627 (emit_output_reload_insns): Likewise.
13628 * resource.c (mark_target_live_regs): Likewise.
13629 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13630 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13631 instead of note_stores.
13632 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13633 its pattern to note_stores.
13634 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13635 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13636
13637 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13638
13639 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13640 than a #define. Use a structure rather than an array as the
13641 fallback definition. Remove special cases for low array sizes.
13642 (const_hard_reg_set): New typedef.
13643 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13644 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13645 (hard_reg_set_empty_p): Likewise.
13646 (SET_HARD_REG_BIT): Use a function rather than a macro to
13647 handle the case in which HARD_REG_SET is a structure.
13648 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13649 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13650 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13651 (IOR_COMPL_HARD_REG_SET): Likewise.
13652 (hard_reg_set_iterator::pset): Constify the pointer target.
13653 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13654 of a "const HARD_REG_SET". Update the handling of non-integer
13655 HARD_REG_SETs.
13656 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13657 * reload.h: Likewise.
13658 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13659 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13660 of a "const HARD_REG_SET".
13661 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13662 (range_in_hard_reg_set_p): Likewise.
13663 * ira-costs.c (restrict_cost_classes): Likewise.
13664 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13665 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13666 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13667 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13668 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13669 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13670 take an unsigned int and open-code the HARD_REG_SET operations.
13671
13672 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13673
13674 * Makefile.in (OBJS): Remove bt-load.o.
13675 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13676 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13677 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13678 document that the option no longer does anything.
13679 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13680 * target.def (branch_target_register_class): Delete.
13681 (branch_target_register_callee_saved): Likewise.
13682 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13683 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13684 * doc/tm.texi: Regenerate.
13685 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13686 (make_pass_branch_target_load_optimize2): Likewise.
13687 * passes.def (pass_branch_target_load_optimize1): Likewise.
13688 (pass_branch_target_load_optimize2): Likewise.
13689 * targhooks.h (default_branch_target_register_class): Likewise.
13690 * targhooks.c (default_branch_target_register_class): Likewise.
13691 * opt-suggestions.c (test_completion_valid_options): Remove
13692 -fbtr-bb-exclusive from the list of test options.
13693 * bt-load.c: Remove.
13694
13695 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13696
13697 * match.pd: Add flag_unsafe_math_optimizations check
13698 before deciding on the widest type in a binary math operation.
13699
13700 2019-09-09 Martin Liska <mliska@suse.cz>
13701
13702 * config/i386/i386.opt: Update comment of removed
13703 options that are preserved only for backward
13704 compatibility.
13705
13706 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13707
13708 PR target/87853
13709 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13710 instead of __v16qs.
13711
13712 PR target/91704
13713 * config/i386/avxintrin.h (__v32qs): New typedef.
13714 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13715 instead of __v32qi.
13716
13717 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13718
13719 * doc/invoke.texi (Option Summary): Cover eBPF.
13720 (eBPF Options): New section.
13721 * doc/extend.texi (BPF Built-in Functions): Likewise.
13722 (BPF Kernel Helpers): Likewise.
13723
13724 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13725
13726 * config.gcc: Support for bpf-*-* targets.
13727 * common/config/bpf/bpf-common.c: New file.
13728 * config/bpf/t-bpf: Likewise.
13729 * config/bpf/predicates.md: Likewise.
13730 * config/bpf/constraints.md: Likewise.
13731 * config/bpf/bpf.opt: Likewise.
13732 * config/bpf/bpf.md: Likewise.
13733 * config/bpf/bpf.h: Likewise.
13734 * config/bpf/bpf.c: Likewise.
13735 * config/bpf/bpf-protos.h: Likewise.
13736 * config/bpf/bpf-opts.h: Likewise.
13737 * config/bpf/bpf-helpers.h: Likewise.
13738 * config/bpf/bpf-helpers.def: Likewise.
13739
13740 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13741
13742 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13743 indirect_calls.
13744
13745 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13746
13747 * opt-functions.awk (integer_range_info): Make sure values are in
13748 numeric context before operating with them.
13749
13750 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13751
13752 * genemit.c (gen_split): Print the filename and line number where the
13753 splitter (or peephole2) was defined, to the dump file.
13754
13755 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13756
13757 PR tree-optimization/91665
13758 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13759 incompatible with the type of PHI result.
13760
13761 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13762
13763 PR target/91684
13764 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13765 gen_unaligned_storedi for 4-byte aligned addresses.
13766
13767 2019-09-06 Jim Wilson <jimw@sifive.com>
13768
13769 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13770 change.
13771
13772 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13773
13774 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13775
13776 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13777
13778 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13779 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13780
13781 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13782
13783 PR target/91654
13784 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13785 cost of SSE->integer and integer->SSE moves from 2 to 6.
13786 (core_cost): Ditto.
13787
13788 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13789
13790 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13791 before testing TYPE_TRANSPARENT_AGGR.
13792 * calls.c (initialize_argument_information, load_register_parameters):
13793 Likewise.
13794
13795 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13796
13797 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13798 high regs.
13799 (cmp_ior): Likewise.
13800
13801 2019-09-06 Martin Liska <mliska@suse.cz>
13802
13803 * doc/match-and-simplify.texi: Separate tuples with ;.
13804
13805 2019-09-06 Martin Liska <mliska@suse.cz>
13806
13807 PR c++/91125
13808 * Makefile.in: Remove tlink.o.
13809 * collect2.c (do_link): New function isolated
13810 from do_tlink.
13811 (main): Use.
13812 * collect2.h (do_tlink): Remove declaration of do_tlink.
13813 * doc/extend.texi: Remove documentation of -frepo.
13814 * doc/invoke.texi: Likewise.
13815 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13816 * tlink.c: Remove.
13817
13818 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13819 Jim Wilson <jimw@sifive.com>
13820
13821 PR target/91635
13822 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13823 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13824 paradoxical_subreg_p (operands[0]).
13825 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13826 use as intermediate value.
13827
13828 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13829
13830 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13831 (sync_compare_and_swap<mode>_insn): Likewise.
13832
13833 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13834
13835 PR middle-end/91615
13836 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13837 without movmisalign optab.
13838
13839 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13840
13841 PR middle-end/91001
13842 PR middle-end/91105
13843 PR middle-end/91106
13844 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13845 types, use type of their first field instead of type of
13846 args[i].tree_value.
13847
13848 2019-09-05 Richard Biener <rguenther@suse.de>
13849
13850 PR rtl-optimization/91656
13851 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13852 of early out.
13853
13854 2019-09-05 Richard Biener <rguenther@suse.de>
13855
13856 PR middle-end/90501
13857 * tree-inline.c (declare_return_variable): Mark the return
13858 slot as addressable after building an address of it.
13859
13860 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13861
13862 * doc/install.texi: Update and clarify requirements to build GNAT.
13863
13864 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13865
13866 PR middle-end/91577
13867 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13868 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13869 call to be in memory.
13870 (pass_expand::execute): Call discover_nonconstant_array_refs before
13871 setting currently_expanding_to_rtl.
13872
13873 2019-09-04 Caroline Tice <cmtice@google.com>
13874
13875 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13876 specified together.
13877
13878 2019-09-04 Marek Polacek <polacek@redhat.com>
13879
13880 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13881
13882 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13883
13884 PR target/32413
13885 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13886 for QI and HImode moves between SSE and general registers.
13887
13888 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13889
13890 PR c/78736
13891 * doc/invoke.texi: Document -Wenum-conversion.
13892
13893 2019-09-04 Richard Biener <rguenther@suse.de>
13894
13895 PR rtl-optimization/36262
13896 * postreload-gcse.c: Include intl.h and gcse.h.
13897 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13898 to avoid linear list walk.
13899 (record_last_mem_set_info): Gate off if not computing transparentness.
13900 (get_bb_avail_insn): If transparentness isn't computed give up
13901 early.
13902 (gcse_after_reload_main): Skip compute_transp and extended PRE
13903 if gcse_or_cprop_is_too_expensive says so.
13904
13905 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13906
13907 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13908 noinit section.
13909 (msp430_select_section): Handle decls with the "noinit" attribute with
13910 default_elf_select_section.
13911 Handle SECCAT_RODATA_MERGE_* section types with
13912 default_elf_select_section.
13913 Add comments about handling of unsupported section types.
13914 (msp430_section_type_flags): Remove handling of the noinit section.
13915
13916 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13917
13918 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13919 conflicting msp430-specific attributes.
13920 (msp430_section_attr): Likewise.
13921 Add warnings about conflicts with generic "noinit" and "section"
13922 attributes.
13923 Fix grammar in -mlarge error message.
13924 (msp430_data_attr): Rename to msp430_persist_attr.
13925 Add warnings about conflicts with generic "noinit" and "section"
13926 attributes.
13927 Add warning for when variable is not initialized.
13928 Chain conditionals which prevent the attribute being added.
13929 (ATTR_EXCL): New helper.
13930 (attr_reent_exclusions): New exclusion table.
13931 (attr_naked_exclusions): Likewise.
13932 (attr_crit_exclusions): Likewise.
13933 (attr_lower_exclusions): Likewise.
13934 (attr_upper_exclusions): Likewise.
13935 (attr_either_exclusions): Likewise.
13936 (attr_persist_exclusions): Likewise.
13937 (msp430_attribute_table): Update with exclusion rules.
13938 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13939 has a section.
13940
13941 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13942
13943 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13944 (msp430_handle_generic_attribute): New function.
13945 * doc/tm.texi: Regenerate.
13946 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13947 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13948 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13949 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13950
13951 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13952
13953 PR tree-optimization/91504
13954 * match.pd: Add ((~a & b) ^a) --> (a | b).
13955
13956 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13957
13958 PR target/91604
13959 * config/i386/i386-expand.c (split_double_mode): If there is more than
13960 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13961 already split matching MEM operand instead of calling adjust_address
13962 again.
13963
13964 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13965
13966 * config.gcc: Obsolete spu target. Remove references to spu.
13967 * configure.ac: Remove references to spu.
13968 * configure: Regenerate.
13969 * config/spu/: Remove directory.
13970 * common/config/spu/: Remove directory.
13971
13972 * doc/extend.texi: Remove references to spu.
13973 * doc/invoke.texi: Likewise.
13974 * doc/md.texi: Likewise.
13975 * doc/sourcebuild.texi: Likewise.
13976
13977 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13978
13979 PR middle-end/91603
13980 PR middle-end/91612
13981 PR middle-end/91613
13982 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13983 and SSA_NAME referring to CONSTANT_P correctly.
13984
13985 2019-09-03 Richard Biener <rguenther@suse.de>
13986
13987 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13988 (vn_nary_op_insert): Likewise.
13989 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13990 (vn_nary_op_lookup): Likewise.
13991 (vn_nary_op_insert): Likewise.
13992
13993 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13994
13995 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13996 (*op0, 1) instead of XEXP (*op1, 0).
13997
13998 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13999
14000 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14001 (aarch64_fjcvtzs): New define_insn.
14002 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14003 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14004 Add AARCH64_JSCVT.
14005 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14006 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14007 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14008 __ARM_FEATURE_JCVT where appropriate.
14009 * config/aarch64/arm_acle.h (__jcvt): Define.
14010
14011 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14012
14013 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14014 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14015 (aarch64_<frintnzs_op><mode>): New define_insn.
14016 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14017 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14018 __ARM_FEATURE_FRINT when appropriate.
14019 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14020 frint32x, frint64z, frint64x.
14021 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14022 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14023 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14024 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14025 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14026 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14027 * config/aarch64/iterators.md (VSFDF): Define.
14028 (FRINTNZX): Likewise.
14029 (frintnzs_op): Likewise.
14030
14031 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14032
14033 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14034 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14035 Cortex-A34.
14036 * config/aarch64/aarch64-tune.md: Regenerated.
14037 * doc/invoke.texi: Document the new processors.
14038
14039 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14040
14041 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14042 string.
14043 (ssbs): Likewise.
14044 (sve2): Likewise.
14045 (sve2-sm4): Likewise.
14046 (sveaes): Likewise.
14047 (svesha3): Likewise.
14048 (svebitperm): Likewise.
14049
14050 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14051 Richard Biener <rguenther@suse.de>
14052
14053 PR tree-optimization/91597
14054 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14055 BIT_AND_EXPR optimization for pointers, even if both operand
14056 ranges don't include NULL, the result can be NULL.
14057
14058 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14059
14060 PR middle-end/91605
14061 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14062 (non_mem_decl_p): ...this.
14063 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14064 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14065 unconditionally as before.
14066
14067 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14068
14069 PR target/91323
14070 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14071 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14072 * tree.def (LTGT_EXPR): Likewise.
14073 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14074
14075 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14076
14077 PR go/91617
14078 * fold-const.c (range_check_type): For enumeral and boolean
14079 type, pass 1 to type_for_size langhook instead of
14080 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14081 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14082 (build_range_check): Don't call unsigned_type_for for pointer types.
14083 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14084 range_check_type result.
14085
14086 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14087
14088 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14089 (replace_ref): Do not replace a chain of only two candidates which are
14090 valid memory references.
14091
14092 2019-09-02 Martin Liska <mliska@suse.cz>
14093
14094 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14095 Bail out when we'll end up with the same number of clusters as
14096 at the beginning.
14097 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14098 (jump_table_cluster::can_be_handled): Remove the guard
14099 as it's already handled in ::is_enabled. Allocate output
14100 after early bail out.
14101
14102 2019-09-02 Martin Liska <mliska@suse.cz>
14103
14104 PR gcov-profile/91601
14105 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14106 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14107 also negative edges.
14108 (circuit): Handle also negative edges as they can happen
14109 in some situations.
14110
14111 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14112
14113 PR target/91472
14114 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14115 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14116 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14117
14118 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14119
14120 PR middle-end/91623
14121 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14122 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14123 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14124 zero vector.
14125
14126 PR lto/91572
14127 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14128 GIMPLE_ASM TREE_LIST operands.
14129
14130 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14131
14132 * doc/generic.texi (Unary and Binary Expressions): Mark up
14133 an instance of TYPE_MIN.
14134
14135 2019-08-31 Stafford Horne <shorne@gmail.com>
14136
14137 * config/or1k/constraints.md (t): New constraint.
14138 * config/or1k/or1k.h (GOT_REGS): New register class.
14139 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14140
14141 2019-08-30 Jim Wilson <jimw@sifive.com>
14142
14143 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14144 and -fpic and -mplt then disable -msave-restore and warn.
14145
14146 2019-08-30 Martin Sebor <msebor@redhat.com>
14147
14148 PR middle-end/91599
14149 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14150 the statement doesn't have one.
14151 * gimple-pretty-print.c (percent_G_format): Same.
14152
14153 PR middle-end/91584
14154 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14155 before using them to validate MEM_REF offset.
14156
14157 2019-08-30 Marek Polacek <polacek@redhat.com>
14158
14159 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14160
14161 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14162
14163 * config/arm/arm.md (unaligned_loaddi,
14164 unaligned_storedi): New unspec insn patterns.
14165 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14166 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14167 and unaligned_storedi for 4-byte aligned memory.
14168 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14169 4-byte aligned memory.
14170
14171 2019-08-30 Martin Jambor <mjambor@suse.cz>
14172
14173 tree-optimization/91579
14174 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14175 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14176 appropriate.
14177 (arg_needs_copy_p): Removed.
14178 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14179 arg_needs_copy_p.
14180 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14181
14182 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14183
14184 * config/i386/i386-features.c
14185 (general_scalar_chain::compute_convert_gain):
14186 Correct cost for double-word shifts.
14187 (general_scalar_to_vector_candidate_p): Reject count operands
14188 greater or equal to mode bitsize.
14189
14190 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14191
14192 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14193 for moves between SSE and non-general registers and between
14194 mask and non-general registers.
14195 (ix86_register_move_cost): Remove stalled comment.
14196
14197 2019-08-29 Richard Biener <rguenther@suse.de>
14198
14199 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14200 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14201
14202 2019-08-29 Richard Biener <rguenther@suse.de>
14203
14204 PR bootstrap/91580
14205 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14206 Do not emit scalar copies for debug-insns, instead replace
14207 their uses with the reg copy used in the chain or reset them
14208 if there is a reaching definition outside of the chain as well.
14209
14210 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14211
14212 PR target/91560
14213 * config/i386/i386-expand.c (expand_vec_perm_movs,
14214 expand_vec_perm_blend, expand_vec_perm_vpermil,
14215 expand_vec_perm_pshufb, expand_vec_perm_1,
14216 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14217 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14218 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14219 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14220 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14221 comments - replace ix86_expand_vec_perm_builtin_1 with
14222 ix86_expand_vec_perm_const_1.
14223 (expand_vec_perm2_vperm2f128_vblend): New function.
14224 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14225 expand_vec_perm2_vperm2f128_vblend as last resort.
14226 (canonicalize_perm): Formatting fix.
14227
14228 PR tree-optimization/91351
14229 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14230 unsigned_type_for.
14231 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14232 range_check_type returns NULL.
14233 * tree-switch-conversion.c (switch_conversion::build_one_array):
14234 Use range_check_type instead of unsigned_type_for, don't perform
14235 linear opt if it returns NULL.
14236 (bit_test_cluster::find_bit_tests): Formatting fix.
14237 (bit_test_cluster::emit): Use range_check_type instead of
14238 unsigned_type_for.
14239 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14240 returns NULL.
14241
14242 2019-08-29 Richard Biener <rguenther@suse.de>
14243
14244 PR tree-optimization/91568
14245 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14246 (vect_update_max_nunits): Add overload for poly_uint64.
14247 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14248 (vect_build_slp_tree): Record max_nunits into the subtree
14249 and merge it upwards.
14250 (vect_print_slp_tree): Print max_nunits.
14251
14252 2019-08-28 Marek Polacek <polacek@redhat.com>
14253
14254 Implement P1152R4: Deprecating some uses of volatile.
14255 PR c++/91361
14256 * doc/invoke.texi: Document -Wvolatile.
14257
14258 2019-08-28 Marek Polacek <polacek@redhat.com>
14259
14260 PR c++/91360 - Implement C++20 P1143R2: constinit.
14261 * doc/invoke.texi: Document -Wc++20-compat.
14262
14263 2019-08-28 Martin Sebor <msebor@redhat.com>
14264
14265 PR tree-optimization/91457
14266 * builtins.c (component_size): New function.
14267 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14268 * builtins.h (compute_objsize): Add argument.
14269 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14270 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14271 (vrp_prop::check_mem_ref): Same.
14272 (vrp_prop::search_for_addr_array): Set no-warning bit.
14273 (check_array_bounds): Same.
14274
14275 2019-08-28 Martin Sebor <msebor@redhat.com>
14276
14277 PR driver/80545
14278 * opts-common.c (option_enabled): Correct checking for language
14279 options.
14280
14281 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14282
14283 * config/i386/i386.c (ix86_register_move_cost): Do not
14284 limit the cost of moves to/from XMM register to minimum 8.
14285
14286 2019-08-28 Martin Jambor <mjambor@suse.cz>
14287
14288 PR ipa/91468
14289 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14290 checking assert a normal assert to test it really is redundant.
14291 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14292 redundant test.
14293 (update_jump_functions_after_inlining): Removed combining unary
14294 arithmetic operations with an ancestor jump function.
14295 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14296 instead of t.
14297
14298 2019-08-28 Richard Biener <rguenther@suse.de>
14299
14300 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14301 add the MD problem.
14302
14303 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14304 Richard Biener <rguenther@suse.de>
14305
14306 * expr.c (expand_assignment): Handle misaligned DECLs.
14307 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14308 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14309 too.
14310 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14311 * varasm.c (build_constant_desc): Align constants of misaligned types.
14312 * config/arm/predicates.md (aligned_operand): New predicate.
14313 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14314 aligned_operand to check restrictions on memory addresses.
14315 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14316 * config/arm/vec-common.md (mov<VALL>): Likewise.
14317
14318 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14319
14320 PR libgomp/91530
14321 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14322 V_128 iterator instead of VI_128.
14323
14324 2019-08-28 Martin Liska <mliska@suse.cz>
14325
14326 PR tree-optimization/90970
14327 * builtins.c (check_access): Remove assignment to maxread
14328 as it hasn't been used since when it was introduced in r255755.
14329
14330 2019-08-27 Martin Sebor <msebor@redhat.com>
14331
14332 PR tree-optimization/91567
14333 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14334 of unknown strings.
14335 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14336 to PTRDIFF_MAX - 2.
14337
14338 2019-08-27 Jeff Law <law@redhat.com>
14339
14340 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14341 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14342
14343 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14344
14345 PR target/91528
14346 * config/i386/i386-features.c (convert_scalars_to_vector):
14347 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14348 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14349 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14350 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14351
14352 2019-08-27 Richard Biener <rguenther@suse.de>
14353
14354 * config/i386/i386-features.h
14355 (general_scalar_chain::~general_scalar_chain): Add.
14356 (general_scalar_chain::insns_conv): New bitmap.
14357 (general_scalar_chain::n_sse_to_integer): New.
14358 (general_scalar_chain::n_integer_to_sse): Likewise.
14359 (general_scalar_chain::make_vector_copies): Adjust signature.
14360 * config/i386/i386-features.c
14361 (general_scalar_chain::general_scalar_chain): Outline,
14362 initialize new members.
14363 (general_scalar_chain::~general_scalar_chain): New.
14364 (general_scalar_chain::mark_dual_mode_def): Record insns
14365 we need to insert conversions at and count them.
14366 (general_scalar_chain::compute_convert_gain): Account
14367 for conversion instructions at chain boundary.
14368 (general_scalar_chain::make_vector_copies): Generate a single
14369 copy for a def by a specific insn.
14370 (general_scalar_chain::convert_registers): First populate
14371 defs_map, then make copies at out-of chain insns.
14372
14373 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14374
14375 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14376 comment.
14377 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14378
14379 2019-08-27 Martin Liska <mliska@suse.cz>
14380
14381 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14382 loop.
14383 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14384 Enclose in anonymous namespace.
14385 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14386 hard_register initialization in braces.
14387 * tree-vrp.h (value_range_base::supports_type_p): Return false
14388 for function with boolean return type.
14389
14390 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14391
14392 * config/i386/i386.c (emit_i387_cw_initialization)
14393 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14394
14395 2019-08-26 Martin Sebor <msebor@redhat.com>
14396
14397 PR c++/83431
14398 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14399 (sprintf_dom_walker): Remove class.
14400 (get_int_range): Make argument const.
14401 (directive::fmtfunc, directive::set_precision): Same.
14402 (format_none): Same.
14403 (build_intmax_type_nodes): Same.
14404 (adjust_range_for_overflow): Same.
14405 (format_floating): Same.
14406 (format_character): Same.
14407 (format_string): Same.
14408 (format_plain): Same.
14409 (get_int_range): Cast away constness.
14410 (format_integer): Same.
14411 (get_string_length): Call get_range_strlen_dynamic. Handle
14412 null lendata.maxbound.
14413 (should_warn_p): Adjust argument scope qualifier.
14414 (maybe_warn): Same.
14415 (format_directive): Same.
14416 (parse_directive): Same.
14417 (is_call_safe): Same.
14418 (try_substitute_return_value): Same.
14419 (sprintf_dom_walker::handle_printf_call): Rename...
14420 (handle_printf_call): ...to this. Initialize target to host charmap
14421 here instead of in pass_sprintf_length::execute.
14422 (struct call_info): Make global.
14423 (sprintf_dom_walker::compute_format_length): Make global.
14424 (sprintf_dom_walker::handle_gimple_call): Same.
14425 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14426 * print-rtl.c (print_pattern): Reduce the number of spaces to
14427 avoid -Wformat-truncation.
14428 * tree-pass.h (make_pass_warn_printf): New function.
14429 * tree-ssa-strlen.c (strlen_optimize): New variable.
14430 (get_string_length): Add comments.
14431 (get_range_strlen_dynamic): New function.
14432 (check_and_optimize_call): New function.
14433 (handle_integral_assign): New function.
14434 (strlen_check_and_optimize_stmt): Factor code out into
14435 strlen_check_and_optimize_call and handle_integral_assign.
14436 (strlen_dom_walker::evrp): New member.
14437 (strlen_dom_walker::before_dom_children): Use evrp member.
14438 (strlen_dom_walker::after_dom_children): Use evrp member.
14439 (printf_strlen_execute): New function.
14440 (pass_strlen::gate): Update to handle printf calls.
14441 (dump_strlen_info): New function.
14442 (pass_data_warn_printf): New variable.
14443 (pass_warn_printf): New class.
14444 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14445 (handle_printf_call): Same.
14446 * tree-vrp.c (value_range_base::type): Adjust assertion.
14447 * vr-values.c (vr_values::update_value_range): Use type of the first
14448 argument rather than the second.
14449
14450 2019-08-26 Richard Biener <rguenther@suse.de>
14451
14452 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14453 Remove.
14454 (convert_scalars_to_vector): Do not call it.
14455
14456 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14457 Uros Bizjak <ubizjak@gmail.com>
14458
14459 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14460 CASE_MATHFN_FLOATN for roundeven.
14461 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14462 I387_ROUNDEVEN.
14463 (ix86_mode_needed): Likewise.
14464 (ix86_mode_after): Likewise.
14465 (ix86_mode_entry): Likewise.
14466 (ix86_mode_exit): Likewise.
14467 (ix86_emit_mode_set): Likewise.
14468 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14469 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14470 (ix86_entity): Add I387_ROUNDEVEN.
14471 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14472 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14473 (define_int_iterator): Likewise.
14474 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14475 (define_constant): Define ROUND_ROUNDEVEN mode.
14476 (define_attr): Add roundeven mode for i387_cw.
14477 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14478 * internal-fn.def (ROUNDEVEN): New builtin function.
14479 * optabs.def (roundeven_optab): New optab.
14480
14481 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14482
14483 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14484 for ROUNDEVEN.
14485 * builtins.def: Added function definitions for roundeven function
14486 variants.
14487 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14488 function call. Adjust condition for floor, ceil, trunc and round.
14489 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14490 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14491 (integer_valued_real_call_p): Added case for roundeven function.
14492 * real.c (is_even): New function. Returns true if real number is even,
14493 otherwise returns false.
14494 (is_halfway_below): New function. Returns true if real number is
14495 halfway between two integers, else return false.
14496 (real_roundeven): New function. Round real number to nearest integer,
14497 rounding halfway cases towards even.
14498 * real.h (real_value): Added descriptive comments. Added function
14499 declaration for roundeven function.
14500 * doc/extend.texi (Other Builtins): List roundeven variants among
14501 functions which can be handled as builtins.
14502
14503 2019-08-26 Richard Biener <rguenther@suse.de>
14504
14505 PR target/91522
14506 PR target/91527
14507 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14508 New member.
14509 (general_scalar_chain::replace_with_subreg): Remove.
14510 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14511 (general_scalar_chain::convert_reg): Adjust signature.
14512 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14513 iterate over all defs of a reg.
14514 (general_scalar_chain::replace_with_subreg): Remove.
14515 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14516 (general_scalar_chain::make_vector_copies): Populate defs_map,
14517 place copy only after defs that are used as vectors in the chain.
14518 (general_scalar_chain::convert_reg): Emit a copy for a specific
14519 def in a specific instruction.
14520 (general_scalar_chain::convert_op): All reg uses are converted here.
14521 (general_scalar_chain::convert_insn): Emit copies for scalar
14522 uses of defs here. Replace uses with the copies we created.
14523 Replace and convert the def. Adjust REG_DEAD notes, remove
14524 REG_EQUIV/EQUAL notes.
14525 (general_scalar_chain::convert_registers): Only handle copies
14526 into the chain here.
14527
14528 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14529
14530 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14531
14532 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14533
14534 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14535 Add nop_convert case.
14536 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14537 Fold all statements if requested.
14538 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14539 Allow to fold all statements.
14540 * tree-vrp.c (class vrp_folder):
14541 Let substitute_and_fold_engine fold all statements.
14542
14543 2019-08-26 Richard Biener <rguenther@suse.de>
14544
14545 PR tree-optimization/91526
14546 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14547 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14548 TODO_update_address_taken.
14549
14550 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14551
14552 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14553 __STDC_HOSTED__.
14554
14555 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14556
14557 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14558 machine mode for unspec_volatile operand.
14559
14560 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14561
14562 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14563 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14564 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14565 (prefer_neon_for_64bits): Remove.
14566 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14567 (tune_params): Remove PREF_NEON_64_FALSE uses.
14568 (arm_option_override): Remove prefer_neon selection code.
14569 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14570 * config/arm/arm-protos.h (tune_params): Remove
14571 prefer_neon_for_64bits.
14572 (prefer_neon_for_64bits): Remove.
14573
14574 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14575
14576 PR pch/61250
14577 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14578 and issue any diagnostics needed before collecting the pre-PCH
14579 state.
14580
14581 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14582
14583 PR middle-end/91283
14584 * common.opt (fexcess-precision=): Add Optimization flag. Use
14585 flag_excess_precision variable instead of
14586 flag_excess_precision_cmdline.
14587 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14588 member.
14589 (flag_excess_precision): Don't define.
14590 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14591 flag_excess_precision_cmdline. Remove comment.
14592 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14593 and x_flag_excess_precision instead of
14594 frontend_set_flag_excess_precision_cmdline and
14595 x_flag_excess_precision_cmdline.
14596 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14597 x_flag_excess_precision_cmdline.
14598 * toplev.c (init_excess_precision): Remove.
14599 (lang_dependent_init_target): Don't call it.
14600
14601 2019-08-23 Martin Liska <mliska@suse.cz>
14602
14603 * lto-wrapper.c (run_gcc): When setting jobserver
14604 set also parallel to 1. This was done so before r273908.
14605
14606 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14607
14608 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14609 (cortex-a76ae): Likewise.
14610 (cortex-a77): Likewise
14611 * config/arm/arm-tables.opt: Regenerate.
14612 * config/arm/arm-tune.md: Likewise.
14613 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14614 cortex-a77 CPU options.
14615
14616 2019-08-23 Martin Liska <mliska@suse.cz>
14617
14618 * profile.c (instrument_values): Do not set
14619 0 as last argument.
14620 * tree-profile.c (gimple_gen_interval_profiler): Remove
14621 last argument.
14622 (gimple_gen_pow2_profiler): Likewise.
14623 (gimple_gen_topn_values_profiler): Likewise.
14624 (gimple_gen_ic_profiler): Likewise.
14625 (gimple_gen_time_profiler): Likewise.
14626 (gimple_gen_average_profiler): Likewise.
14627 (gimple_gen_ior_profiler): Likewise.
14628 * value-prof.c (dump_histogram_value): Use default
14629 in switch statement instead of HIST_TYPE_MAX.
14630 (stream_in_histogram_value): Likewise.
14631 (gimple_duplicate_stmt_histograms): Do not
14632 use NULL for implicitly set arguments.
14633 (gimple_divmod_values_to_profile): Do not use
14634 reserve+quick_push.
14635 (gimple_indirect_call_to_profile): Likewise.
14636 (gimple_find_values_to_profile): Use implicit
14637 function call arguments.
14638 * value-prof.h (gimple_alloc_histogram_value):
14639 Set default values.
14640 (gimple_gen_interval_profiler): Remove last argument.
14641 (gimple_gen_pow2_profiler): Likewise.
14642 (gimple_gen_topn_values_profiler): Likewise.
14643 (gimple_gen_ic_profiler): Likewise.
14644 (gimple_gen_time_profiler): Likewise.
14645 (gimple_gen_average_profiler): Likewise.
14646 (gimple_gen_ior_profiler): Likewise.
14647
14648 2019-08-22 Martin Sebor <msebor@redhat.com>
14649
14650 PR middle-end/91490
14651 * builtins.c (c_strlen): Rename argument and introduce new local.
14652 Set no-warning bit on original argument.
14653 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14654 Fold empty and zero constructors into empty strings.
14655 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14656 for missing initializers.
14657 * tree.c (build_string_literal): Handle optional argument.
14658 * tree.h (build_string_literal): Add defaulted argument.
14659 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14660 no-warning bit on original expression.
14661
14662 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14663
14664 PR target/91481
14665 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14666 and UNSPEC_DARN_RAW.
14667 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14668 UNSPECV_DARN_RAW.
14669 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14670 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14671 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14672
14673 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14674
14675 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14676 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14677 * config/rs6000/rs6000.md (unspec): ... here.
14678 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14679 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14680 cmpeqb, *cmpeqb_internal): Delete, move to...
14681 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14682 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14683 cmpeqb, *cmpeqb_internal): ... here.
14684
14685 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14686
14687 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14688 intrinsics if __ARM_FP.
14689 Use __ARM_FEATURE_CRC32 ifdef guard.
14690
14691 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14692
14693 * config/arm/arm.md (neon_for_64bits): Remove.
14694 (avoid_neon_for_64bits): Remove.
14695 (arm_adddi3): Always split early.
14696 (arm_subdi3): Always split early.
14697 (negdi2): Remove Neon expansion.
14698 (split zero_extend): Split before reload.
14699 (split sign_extend): Split before reload.
14700
14701 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14702
14703 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14704 (qhs_extenddi_cstr): Likewise.
14705 * config/arm/arm.md (ashldi3): Always expand early.
14706 (ashlsi3): Likewise.
14707 (ashrsi3): Likewise.
14708 (zero_extend<mode>di2): Remove Neon variants.
14709 (extend<mode>di2): Likewise.
14710 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14711 (signed_shift_di3_neon): Likewise.
14712 (unsigned_shift_di3_neon): Likewise.
14713 (ashrdi3_neon_imm_noclobber): Likewise.
14714 (lshrdi3_neon_imm_noclobber): Likewise.
14715 (<shift>di3_neon): Likewise.
14716 (split extend): Remove DI extend split patterns.
14717
14718 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14719
14720 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14721 (split not): Add DImode not splitter.
14722 (anddi3): Remove pattern.
14723 (anddi3_insn): Likewise.
14724 (anddi_zesidi_di): Likewise.
14725 (anddi_sesdi_di): Likewise.
14726 (anddi_notdi_di): Likewise.
14727 (anddi_notzesidi_di): Likewise.
14728 (anddi_notsesidi_di): Likewise.
14729 (iordi3): Likewise.
14730 (iordi3_insn): Likewise.
14731 (iordi_zesidi_di): Likewise.
14732 (iordi_sesidi_di): Likewise.
14733 (xordi3): Likewise.
14734 (xordi3_insn): Likewise.
14735 (xordi_sesidi_di): Likewise.
14736 (xordi_zesidi_di): Likewise.
14737 (one_cmpldi2): Likewise.
14738 (one_cmpldi2_insn): Likewise.
14739 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14740 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14741 alternative.
14742 (iwmmxt_xordi3): Likewise.
14743 (iwmmxt_anddi3): Likewise.
14744 * config/arm/neon.md (orndi3_neon): Remove pattern.
14745 (anddi_notdi_di): Likewise.
14746 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14747 (arm_iordi_operand_neon): Likewise.
14748 (arm_xordi_operand_neon): Likewise.
14749 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14750 (iordi_notzesidi_di): Likewise.
14751 (iordi_notdi_zesidi): Likewise.
14752 (iordi_notsesidi_di): Likewise.
14753
14754 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14755
14756 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14757 insn.
14758 (iorsi3_compare0_scratch): Likewise.
14759
14760 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14761
14762 * config/aarch64/aarch64-simd-builtins.def:
14763 (ld1x4): New.
14764 (st1x4): Likewise.
14765 * config/aarch64/aarch64-simd.md:
14766 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14767 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14768 (aarch64_ld1_x4_<mode>): Likewise.
14769 (aarch64_st1_x4_<mode>): Likewise.
14770 * config/aarch64/arm_neon.h:
14771 (vld1_s8_x4): New function.
14772 (vld1q_s8_x4): Likewise.
14773 (vld1_s16_x4): Likewise.
14774 (vld1q_s16_x4): Likewise.
14775 (vld1_s32_x4): Likewise.
14776 (vld1q_s32_x4): Likewise.
14777 (vld1_u8_x4): Likewise.
14778 (vld1q_u8_x4): Likewise.
14779 (vld1_u16_x4): Likewise.
14780 (vld1q_u16_x4): Likewise.
14781 (vld1_u32_x4): Likewise.
14782 (vld1q_u32_x4): Likewise.
14783 (vld1_f16_x4): Likewise.
14784 (vld1q_f16_x4): Likewise.
14785 (vld1_f32_x4): Likewise.
14786 (vld1q_f32_x4): Likewise.
14787 (vld1_p8_x4): Likewise.
14788 (vld1q_p8_x4): Likewise.
14789 (vld1_p16_x4): Likewise.
14790 (vld1q_p16_x4): Likewise.
14791 (vld1_s64_x4): Likewise.
14792 (vld1_u64_x4): Likewise.
14793 (vld1_p64_x4): Likewise.
14794 (vld1q_s64_x4): Likewise.
14795 (vld1q_u64_x4): Likewise.
14796 (vld1q_p64_x4): Likewise.
14797 (vld1_f64_x4): Likewise.
14798 (vld1q_f64_x4): Likewise.
14799 (vst1_s8_x4): Likewise.
14800 (vst1q_s8_x4): Likewise.
14801 (vst1_s16_x4): Likewise.
14802 (vst1q_s16_x4): Likewise.
14803 (vst1_s32_x4): Likewise.
14804 (vst1q_s32_x4): Likewise.
14805 (vst1_u8_x4): Likewise.
14806 (vst1q_u8_x4): Likewise.
14807 (vst1_u16_x4): Likewise.
14808 (vst1q_u16_x4): Likewise.
14809 (vst1_u32_x4): Likewise.
14810 (vst1q_u32_x4): Likewise.
14811 (vst1_f16_x4): Likewise.
14812 (vst1q_f16_x4): Likewise.
14813 (vst1_f32_x4): Likewise.
14814 (vst1q_f32_x4): Likewise.
14815 (vst1_p8_x4): Likewise.
14816 (vst1q_p8_x4): Likewise.
14817 (vst1_p16_x4): Likewise.
14818 (vst1q_p16_x4): Likewise.
14819 (vst1_s64_x4): Likewise.
14820 (vst1_u64_x4): Likewise.
14821 (vst1_p64_x4): Likewise.
14822 (vst1q_s64_x4): Likewise.
14823 (vst1q_u64_x4): Likewise.
14824 (vst1q_p64_x4): Likewise.
14825 (vst1_f64_x4): Likewise.
14826 (vst1q_f64_x4): Likewise.
14827
14828 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14829
14830 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14831
14832 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14833 Richard Sandiford <richard.sandiford@arm.com>
14834
14835 PR target/88839
14836 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14837 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14838
14839 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14840
14841 PR target/90724
14842 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14843 in reg if it fails aarch64_plus_operand predicate.
14844
14845 2019-08-21 Richard Biener <rguenther@suse.de>
14846
14847 PR tree-optimization/91482
14848 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14849 BUILT_IN_ASSUME_ALIGNED calls.
14850
14851 2019-08-21 Richard Biener <rguenther@suse.de>
14852
14853 PR target/91498
14854 PR target/91503
14855 * config/i386/i386-features.c
14856 (general_scalar_chain::make_vector_copies): Copy stack temporary
14857 rtx when using it multiple times.
14858 (general_scalar_chain::convert_reg): Likewise.
14859
14860 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14861
14862 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14863
14864 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14865
14866 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14867 catch more redundant zero initialization cases.
14868 (dse_dom_walker::dse_optimize_stmt): Likewise.
14869
14870 2019-08-20 Richard Biener <rguenther@suse.de>
14871
14872 PR lto/91307
14873 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14874 by collect2 when targetm.have_ctors_dtors which avoids dragging
14875 in temporary filenames from LTO input objects.
14876
14877 2019-08-20 Richard Biener <rguenther@suse.de>
14878
14879 PR tree-optimization/37242
14880 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14881 to (T)a + (T)b if we know that a + b does not overflow.
14882
14883 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14884
14885 PR rtl-optimization/91347
14886 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14887 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14888
14889 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14890
14891 * calls.h (function_arg_info): Add a pass_by_reference field,
14892 defaulting to false.
14893 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14894 when applying pass-by-reference semantics.
14895 (initialize_argument_information): Likewise.
14896 (emit_library_call_value_1): Likewise.
14897 * function.c (assign_parm_data_one): Remove passed_pointer field.
14898 (assign_parm_find_data_types): Don't set it.
14899 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14900 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14901 arg.pass_by_reference instead of passed_pointer.
14902
14903 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14904
14905 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14906 into a single function_arg_info, updating its fields when we
14907 apply pass-by-reference and promotion semantics. Use the
14908 function_arg_info to track the mode rather than keeping it in
14909 a separate local variable.
14910 (initialize_argument_information): Likewise. Base the final
14911 arg_to_skip on this new function_arg_info rather than creating
14912 a new one from scratch.
14913
14914 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14915
14916 * function.c (assign_parm_data_one): Replace passed_type,
14917 promoted_mode and named_arg with a function_arg_info field.
14918 (assign_parm_find_data_types): Remove local variables and
14919 assign directly to "data". Make data->passed_mode shadow
14920 data->arg.mode until promotion, then assign the promoted
14921 mode to data->arg.mode.
14922 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14923 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14924 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14925 (assign_parm_setup_block, assign_parm_setup_reg)
14926 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14927 arg.mode instead of promoted_mode, arg.type instead of passed_type
14928 and arg.named instead of named_arg. Use data->arg for
14929 function_arg_info structures that had the field values passed_type,
14930 promoted_mode and named_arg. Base other function_arg_infos on
14931 data->arg, changing the necessary properties.
14932
14933 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14934
14935 * calls.h (apply_pass_by_reference_rules): Declare.
14936 * calls.c (apply_pass_by_reference_rules): New function.
14937 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14938 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14939 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14940 * function.c (assign_parm_find_data_types): Likewise.
14941 * var-tracking.c (prepare_call_arguments): Likewise.
14942
14943 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14944
14945 * target.def (must_pass_in_stack): Take a function_arg_info instead
14946 of a mode and a type.
14947 * doc/tm.texi: Regenerate.
14948 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14949 instead of a mode and a type.
14950 (must_pass_in_stack_var_size_or_pad): Likewise.
14951 * calls.c (must_pass_in_stack_var_size): Likewise.
14952 (must_pass_in_stack_var_size_or_pad): Likewise.
14953 (initialize_argument_information): Update call to
14954 targetm.calls.must_pass_in_stack.
14955 (must_pass_va_arg_on_stack): Likewise.
14956 * function.c (assign_parm_find_entry_rtl): Likewise.
14957 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14958 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14959 (alpha_function_arg_advance): Likewise.
14960 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14961 (cr16_function_arg_advance): Likewise.
14962 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14963 (cris_arg_partial_bytes): Likewise.
14964 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14965 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14966 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14967 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14968 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14969 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14970 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14971 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14972 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14973 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14974 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14975 instead of a mode and a type.
14976 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14977 (fr30_num_arg_regs): Likewise.
14978 (fr30_setup_incoming_varargs): Update calls accordingly.
14979 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14980 (fr30_function_arg_advance): Likewise.
14981 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14982 instead of a mode and a type.
14983 * config/gcn/gcn.c (num_arg_regs): Likewise.
14984 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14985 num_arg_regs and targetm.calls.must_pass_in_stack.
14986 (gcn_arg_partial_bytes): Likewise.
14987 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14988 function_arg_info instead of a mode and a type.
14989 (classify_argument): Update call accordingly.
14990 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14991 function_arg_info instead of a mode and a type.
14992 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14993 Likewise.
14994 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14995 (rs6000_parm_needs_stack): Update call accordingly.
14996 (setup_incoming_varargs): Likewise.
14997
14998 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14999
15000 * target.def (callee_copies): Take a function_arg_info instead
15001 of a mode, type and named flag.
15002 * doc/tm.texi: Regenerate.
15003 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15004 instead of a mode, type and named flag.
15005 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15006 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15007 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15008 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15009 instead of a mode, type and named flag.
15010 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15011 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15012 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15013 * calls.h (reference_callee_copied): Take a function_arg_info
15014 instead of a mode, type and named flag.
15015 * calls.c (reference_callee_copied): Likewise.
15016 (initialize_argument_information): Update call accordingly.
15017 (emit_library_call_value_1): Likewise.
15018 * function.c (gimplify_parameters): Likewise.
15019 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15020 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15021 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15022 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15023 (TARGET_CALLEE_COPIES): Define to
15024 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15025 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15026 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15027 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15028 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15029 instead of a mode, type and named flag.
15030 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15031 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15032 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15033 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15034 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15035 (TARGET_CALLEE_COPIES): Define to
15036 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15037 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15038 instead of a mode, type and named flag.
15039 * config/sh/sh.c (sh_callee_copies): Likewise.
15040 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15041 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15042 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15043
15044 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15045
15046 * target.def (function_arg_advance): Take a function_arg_info instead
15047 of a mode, type and named flag.
15048 * doc/tm.texi: Regenerate.
15049 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15050 instead of a mode, type and named flag.
15051 * targhooks.c (default_function_arg_advance): Likewise.
15052 * calls.c (initialize_argument_information): Update call to
15053 targetm.calls.function_arg_advance.
15054 (emit_library_call_value_1): Likewise.
15055 * dse.c (get_call_args): Likewise.
15056 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15057 * function.c (assign_parms, gimplify_parameters): Likewise.
15058 * var-tracking.c (prepare_call_arguments): Likewise.
15059 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15060 function_arg_info instead of a mode, type and named flag.
15061 (aarch64_setup_incoming_varargs): Update call accordingly.
15062 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15063 function_arg_info instead of a mode, type and named flag.
15064 (alpha_setup_incoming_varargs): Update call accordingly.
15065 * config/arc/arc.c (arc_function_arg_advance): Take a
15066 function_arg_info instead of a mode, type and named flag.
15067 (arc_setup_incoming_varargs): Update call accordingly.
15068 * config/arm/arm.c (arm_function_arg_advance): Take a
15069 function_arg_info instead of a mode, type and named flag.
15070 (cmse_func_args_or_return_in_stack): Update call accordingly.
15071 (arm_function_ok_for_sibcall): Likewise.
15072 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15073 * config/avr/avr.c (avr_function_arg_advance): Take a
15074 function_arg_info instead of a mode, type and named flag.
15075 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15076 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15077 (c6x_call_saved_register_used): Update call accordingly.
15078 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15079 function_arg_info instead of a mode, type and named flag.
15080 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15081 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15082 (csky_setup_incoming_varargs): Update call accordingly.
15083 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15084 function_arg_info instead of a mode, type and named flag.
15085 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15086 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15087 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15088 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15089 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15090 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15091 (ix86_setup_incoming_varargs): Update call accordingly.
15092 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15093 function_arg_info instead of a mode, type and named flag.
15094 (ia64_setup_incoming_varargs): Update call accordingly.
15095 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15096 function_arg_info instead of a mode, type and named flag.
15097 (iq2000_expand_prologue): Update call accordingly.
15098 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15099 function_arg_info instead of a mode, type and named flag.
15100 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15101 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15102 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15103 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15104 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15105 Likewise.
15106 (microblaze_expand_prologue): Update call accordingly.
15107 * config/mips/mips.c (mips_function_arg_advance): Take a
15108 function_arg_info instead of a mode, type and named flag.
15109 (mips_setup_incoming_varargs): Update call accordingly.
15110 (mips_output_args_xfer): Likewise.
15111 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15112 function_arg_info instead of a mode, type and named flag.
15113 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15114 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15115 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15116 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15117 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15118 (nios2_setup_incoming_varargs): Update call accordingly.
15119 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15120 function_arg_info instead of a mode, type and named flag.
15121 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15122 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15123 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15124 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15125 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15126 (riscv_setup_incoming_varargs): Update call accordingly.
15127 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15128 function_arg_info instead of a mode, type and named flag.
15129 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15130 Likewise.
15131 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15132 (rs6000_parm_needs_stack): Update call accordingly.
15133 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15134 instead of a mode, type and named flag.
15135 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15136 (s390_call_saved_register_used): Update call accordingly.
15137 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15138 instead of a mode, type and named flag.
15139 (sh_output_mi_thunk): Update call accordingly.
15140 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15141 function_arg_info instead of a mode, type and named flag.
15142 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15143 (spu_setup_incoming_varargs): Update call accordingly.
15144 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15145 function_arg_info instead of a mode, type and named flag.
15146 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15147 (tilegx_setup_incoming_varargs): Update call accordingly.
15148 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15149 function_arg_info instead of a mode, type and named flag.
15150 (tilegx_setup_incoming_varargs): Update call accordingly.
15151 * config/v850/v850.c (v850_function_arg_advance): Take a
15152 function_arg_info instead of a mode, type and named flag.
15153 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15154 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15155 (visium_setup_incoming_varargs): Update call accordingly.
15156 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15157 function_arg_info instead of a mode, type and named flag.
15158
15159 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15160
15161 * target.def (function_arg, function_incoming_arg): Take a
15162 function_arg_info instead of a mode, tree and named flag.
15163 * doc/tm.texi: Regenerate.
15164 * targhooks.h (default_function_arg): Take a function_arg_info
15165 instead of a mode, tree and named flag.
15166 (default_function_incoming_arg): Likewise.
15167 * targhooks.c (default_function_arg): Likewise.
15168 (default_function_incoming_arg): Likewise.
15169 * calls.h (function_arg_info::end_marker_p): New function.
15170 (function_arg_info::end_marker): Likewise.
15171 * calls.c (prepare_call_address, initialize_argument_information)
15172 (expand_call, emit_library_call_value_1): Update calls to
15173 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15174 * dse.c: Include calls.h.
15175 (get_call_args): Update call to targetm.calls.function_arg.
15176 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15177 * var-tracking.c (prepare_call_arguments): Likewise.
15178 * function.c (assign_parm_find_entry_rtl): Update call to
15179 targetm.calls.function_incoming_arg.
15180 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15181 function_arg_info instead of a mode, tree and named flag.
15182 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15183 * config/arc/arc.c (arc_function_arg): Likewise.
15184 * config/arm/arm.c (arm_function_arg): Likewise.
15185 (cmse_func_args_or_return_in_stack): Update call accordingly.
15186 (arm_function_ok_for_sibcall): Likewise.
15187 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15188 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15189 instead of a mode, tree and named flag.
15190 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15191 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15192 (c6x_call_saved_register_used): Update call accordingly.
15193 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15194 instead of a mode, tree and named flag.
15195 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15196 (cris_function_arg_1): Likewise.
15197 * config/csky/csky.c (csky_function_arg): Likewise.
15198 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15199 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15200 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15201 (frv_function_arg_1): Likewise.
15202 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15203 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15204 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15205 * config/i386/i386.c (ix86_function_arg): Likewise.
15206 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15207 (ia64_function_arg_1): Likewise.
15208 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15209 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15210 accordingly.
15211 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15212 instead of a mode, tree and named flag.
15213 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15214 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15215 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15216 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15217 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15218 (microblaze_expand_prologue): Update call accordingly.
15219 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15220 instead of a mode, tree and named flag.
15221 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15222 (mmix_function_arg_1): Likewise.
15223 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15224 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15225 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15226 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15227 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15228 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15229 (nvptx_function_incoming_arg): Likewise.
15230 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15231 * config/pa/pa.c (pa_function_arg): Likewise.
15232 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15233 * config/pru/pru.c (pru_function_arg): Likewise.
15234 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15235 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15236 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15237 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15238 (rs6000_parm_needs_stack): Update call accordingly.
15239 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15240 instead of a mode, tree and named flag.
15241 * config/s390/s390.c (s390_function_arg): Likewise.
15242 (s390_call_saved_register_used): Update call accordingly.
15243 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15244 instead of a mode, tree and named flag.
15245 (sh_output_mi_thunk): Update call accordingly.
15246 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15247 (sparc_function_incoming_arg): Take a function_arg_info instead of
15248 a mode, tree and named flag.
15249 * config/spu/spu.c (spu_function_arg): Likewise.
15250 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15251 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15252 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15253 * config/v850/v850.c (v850_function_arg): Likewise.
15254 * config/vax/vax.c (vax_function_arg): Likewise.
15255 * config/visium/visium.c (visium_function_arg): Likewise.
15256 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15257 (xtensa_function_incoming_arg): Likewise.
15258
15259 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15260
15261 * target.def (setup_incoming_varargs): Take a function_arg_info
15262 instead of a mode and tree.
15263 * doc/tm.texi: Regenerate.
15264 * targhooks.h (default_setup_incoming_varargs): Take a
15265 function_arg_info instead of a mode and tree.
15266 * targhooks.c (default_setup_incoming_varargs): Likewise.
15267 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15268 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15269 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15270 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15271 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15272 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15273 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15274 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15275 Likewise.
15276 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15277 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15278 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15279 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15280 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15281 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15282 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15283 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15284 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15285 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15286 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15287 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15288 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15289 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15290 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15291 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15292 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15293 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15294 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15295 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15296 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15297 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15298 * function.c (assign_parms_setup_varargs): Update call to
15299 targetm.calls.setup_incoming_varargs.
15300
15301 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15302
15303 * target.def (pass_by_reference): Take a function_arg_info instead
15304 of a mode, type and named flag.
15305 * doc/tm.texi: Regenerate.
15306 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15307 accordingly.
15308 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15309 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15310 function_arg_info instead of a mode, type and named flag.
15311 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15312 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15313 mode, type and named flag.
15314 * calls.c (pass_by_reference): Likewise.
15315 (pass_va_arg_by_reference): Update call accordingly.
15316 (initialize_argument_information): Likewise.
15317 (emit_library_call_value_1): Likewise.
15318 * function.c (assign_parm_find_data_types): Likewise.
15319 * var-tracking.c (prepare_call_arguments): Likewise.
15320 * stor-layout.c: Include calls.h.
15321 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15322 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15323 function_arg_info instead of a mode, type and named flag.
15324 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15325 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15326 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15327 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15328 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15329 (c6x_call_saved_register_used): Update call to pass_by_reference.
15330 * config/cris/cris.c (cris_pass_by_reference): Take a
15331 function_arg_info instead of a mode, type and named flag.
15332 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15333 function_arg_info instead of a mode, type and named flag.
15334 (epiphany_arg_partial_bytes): Update call accordingly.
15335 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15336 function_arg_info instead of a mode, type and named flag.
15337 (ft32_arg_partial_bytes): Update call accordingly.
15338 * config/i386/i386.c (ix86_pass_by_reference): Take a
15339 function_arg_info instead of a mode, type and named flag.
15340 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15341 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15342 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15343 (m32r_return_in_memory): Update call accordingly.
15344 * config/mips/mips.c (mips_pass_by_reference): Take a
15345 function_arg_info instead of a mode, type and named flag.
15346 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15347 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15348 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15349 (moxie_arg_partial_bytes): Update call accordingly.
15350 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15351 function_arg_info instead of a mode, type and named flag.
15352 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15353 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15354 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15355 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15356 (riscv_return_in_memory): Update call accordingly.
15357 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15358 function_arg_info instead of a mode, type and named flag.
15359 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15360 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15361 * config/s390/s390.c (s390_pass_by_reference): Take a
15362 function_arg_info instead of a mode, type and named flag.
15363 (s390_call_saved_register_used): Update call accordingly.
15364 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15365 instead of a mode, type and named flag.
15366 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15367 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15368 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15369 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15370 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15371 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15372
15373 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15374
15375 * target.def (arg_partial_bytes): Take a function_arg_info instead
15376 of a mode, type and named flag.
15377 * doc/tm.texi: Regenerate.
15378 * target.h (function_arg_info): Declare.
15379 * calls.h (function_arg_info): New class.
15380 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15381 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15382 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15383 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15384 * calls.c (initialize_argument_information): Update call to
15385 targetm.calls.partial_bytes.
15386 (emit_library_call_value_1): Likewise.
15387 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15388 * function.c (assign_parm_find_entry_rtl): Likewise.
15389 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15390 function_arg_info instead of a mode, type and named flag.
15391 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15392 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15393 (cmse_func_args_or_return_in_stack): Update accordingly.
15394 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15395 function_arg_info instead of a mode, type and named flag.
15396 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15397 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15398 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15399 * config/fr30/fr30.c: Include calls.h.
15400 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15401 type and named flag.
15402 * config/frv/frv.c: Include calls.h.
15403 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15404 type and named flag.
15405 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15406 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15407 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15408 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15409 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15410 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15411 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15412 Likewise.
15413 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15414 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15415 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15416 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15417 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15418 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15419 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15420 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15421 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15422 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15423 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15424 (rs6000_parm_needs_stack): Update call accordingly.
15425 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15426 function_arg_info instead of a mode, type and named flag.
15427 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15428 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15429
15430 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15431
15432 * calls.h (must_pass_va_arg_in_stack): Declare.
15433 * calls.c (must_pass_va_arg_in_stack): New function.
15434 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15435 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15436 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15437 Likewise.
15438 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15439
15440 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15441
15442 * calls.h (pass_va_arg_by_reference): Declare.
15443 * calls.c (pass_va_arg_by_reference): New function.
15444 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15445 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15446 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15447 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15448 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15449 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15450 (mips_gimplify_va_arg_expr): Likewise.
15451 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15452 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15453 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15454 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15455 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15456 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15457 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15458 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15459 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15460 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15461 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15462
15463 2019-08-20 Richard Biener <rguenther@suse.de>
15464
15465 PR target/91498
15466 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15467 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15468 (convert_scalars_to_vector): Add timode_p parameter and use it
15469 to guard TImode-only operation.
15470 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15471 (pass_stv::execute): Pass down timode_p.
15472
15473 2019-08-20 Lili Cui <lili.cui@intel.com>
15474
15475 * common/config/i386/i386-common.c
15476 (processor_names): Add tigerlake and cooperlake.
15477 (processor_alias_table): Add tigerlake and cooperlake.
15478 * config.gcc: Add -march=tigerlake and cooperlake.
15479 * config/i386/driver-i386.c
15480 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15481 Add "has_avx" to classify processor.
15482 * config/i386/i386-builtins.c (processor_model) :
15483 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15484 (arch_names_table): Add tigerlake and cooperlake.
15485 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15486 and PROCESSOR_COOPERLAKE.
15487 * config/i386/i386-c.c
15488 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15489 * config/i386/i386-options.c
15490 (m_TIGERLAKE): Define.
15491 (m_COOPERLAKE): Ditto.
15492 (m_CORE_AVX512): Ditto.
15493 (processor_cost_table): Add cascadelake.
15494 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15495 * config/i386/i386.h
15496 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15497 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15498 (PTA_MOVDIRI): Ditto.
15499 (PTA_MOVDIR64B): Ditto.
15500 (PTA_COOPERLAKE): Ditto.
15501 (PTA_TIGERLAKE): Ditto.
15502 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15503 * doc/extend.texi: Add tigerlake and cooperlake.
15504 * doc/invoke.texi: Add tigerlake and cooperlake.
15505
15506 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15507
15508 * doc/install.texi (Specific, alpha): Remove note to use
15509 binutils 2.11.2 or later.
15510
15511 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15512
15513 PR middle-end/89544
15514 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15515 when possible.
15516
15517 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15518
15519 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15520 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15521 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15522 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15523 * config/aarch64/constraints.md (Dt): New constraint
15524 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15525
15526 2019-08-19 Richard Biener <rguenther@suse.de>
15527
15528 PR tree-optimization/91403
15529 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15530 cases we can handle with tail-recursion...
15531 (follow_ssa_edge_expr): ... here. Do so.
15532
15533 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15534
15535 PR target/91441
15536 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15537 implemented for -fsanitize=kernel-address, and merge check logic
15538 with -fsanitize=address.
15539
15540 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15541
15542 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15543 for cpu and machine. Factor 64/32b builtins.
15544
15545 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15546
15547 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15548 gone, point to sourceforge.net.
15549
15550 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15551
15552 * doc/ux.texi (User Experience Guidelines): Update reference.
15553
15554 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15555
15556 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15557 not LGPL".
15558
15559 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15560
15561 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15562 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15563
15564 2019-08-16 Martin Sebor <msebor@redhat.com>
15565
15566 * tree.def (TYPE_SIZE): Clarify.
15567 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15568
15569 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15570
15571 PR tree-optimization/91109
15572 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15573 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15574 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15575
15576 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15577
15578 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15579 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15580 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15581 (uavg<mode>3_ceil): New expander.
15582 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15583 mode iterator when creating CONST1_RTX.
15584 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15585 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15586 mode iterator for const1_operand predicate.
15587
15588 2019-08-16 Richard Biener <rguenther@suse.de>
15589
15590 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15591 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15592 follow_ssa_edge.
15593 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15594 (analyze_evolution_in_loop): Likewise.
15595 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15596 (follow_ssa_edge_expr): ... here. Refactor code.
15597
15598 2019-08-16 Richard Biener <rguenther@suse.de>
15599
15600 PR target/91469
15601 * config/i386/i386-features.c
15602 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15603
15604 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15605
15606 PR other/91255
15607 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15608 only if subst_name matches curr_attr string.
15609
15610 2019-08-16 Richard Biener <rguenther@suse.de>
15611
15612 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15613 stmt at gsi_p, instead replace it with a NOP removed later.
15614 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15615 that became dead because of that.
15616
15617 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15618
15619 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15620 for which we can't represent a range.
15621 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15622 set_varying.
15623 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15624 Set VR_UNDEFINED if type is not supported.
15625 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15626 * tree-vrp.c (value_range_base::check): Assert that a varying has
15627 min/max set.
15628 (value_range_base::equal_p): Early bail for undefines.
15629 (value_range_base::set_varying): Accept a type.
15630 (value_range::set_varying): Same.
15631 (value_range_base::type): VARYING can have a type, while UNDEFINE
15632 is typeless.
15633 (value_range_base::dump): Print type for VARYING nodes.
15634 (value_range_base::set): Add type to VARYING.
15635 (extract_range_from_multiplicative_op): Pass type to set_varying.
15636 (extract_range_from_binary_expr): Same.
15637 (value_range_base::intersect_helper): Same.
15638 (value_range_base::union_helper): Same.
15639 (value_range_base::normalize_symbolics): Same.
15640 (determine_value_range_1): Same.
15641 * tree-vrp.h (class value_range_base): Add type to set_varying.
15642 Add prototype for dump(void).
15643 Add prototype for supports_type_p.
15644 (class value_range): Add type to set_varying.
15645 Add prototype for dump(void).
15646 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15647 set_varying.
15648 (vr_values::get_lattice_entry): Set varying even if propagation
15649 finished.
15650 Pass type to set_varying.
15651 (vr_values::get_value_range): Remove vr_const_varying.
15652 Reallocate the lattice if needed.
15653 (vr_values::update_value_range): Pass type to set_varying.
15654 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15655 (vr_values::extract_range_from_binary_expr): Same.
15656 (vr_values::extract_range_from_unary_expr): Same.
15657 (vr_values::extract_range_from_cond_expr): Same.
15658 (vr_values::check_for_binary_op_overflow): Same.
15659 (vr_values::extract_range_basic): Same.
15660 (vr_values::extract_range_from_assignment): Same.
15661 (vr_values::vr_values): Increase size of num_vr_values.
15662 (vr_values::extract_range_from_phi_node): Pass type to
15663 set_varying.
15664
15665 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15666
15667 PR target/90878
15668 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15669 for costs of hard register moves.
15670 (ix86_register_move_cost): Likewise.
15671 * config/i386/i386.h (processor_costs): Move costs of hard
15672 register moves to hard_register. Add int_load, int_store,
15673 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15674 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15675 for costs of RTL expressions.
15676 * config/i386/x86-tune-costs.h: Move costs of hard register
15677 moves to hard_register. Duplicate int_load, int_store,
15678 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15679 sse_load, sse_store for costs of RTL expressions.
15680
15681 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15682
15683 * target.def (setup_incoming_vararg_bounds): Remove.
15684 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15685 * doc/tm.texi: Regenerate.
15686 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15687 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15688 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15689 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15690
15691 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15692
15693 MSP430: Fix lines over 80 characters long in
15694 config/msp430/*.{c,h} files
15695
15696 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15697 specifier in string.
15698 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15699 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15700 redundant old comment.
15701 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15702 Split line more than 80 characters long.
15703 * config/msp430/msp430.c (msp430_option_override): Likewise.
15704 (msp430_return_in_memory): Likewise.
15705 (msp430_gimplify_va_arg_expr): Likewise.
15706 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15707 (msp430_legitimate_constant): Likewise.
15708 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15709 (msp430_attr): Likewise.
15710 (msp430_data_attr): Likewise.
15711 (msp430_start_function): Likewise.
15712 (gen_prefix): Likewise.
15713 (msp430_init_sections): Likewise.
15714 (msp430_select_section): Likewise.
15715 (msp430_function_section): Likewise.
15716 (msp430_unique_section): Likewise.
15717 (msp430_output_aligned_decl_common): Likewise.
15718 (msp430_do_not_relax_short_jumps): Likewise.
15719 (msp430_init_builtins): Likewise.
15720 (msp430_expand_delay_cycles): Likewise.
15721 (msp430_expand_prologue): Likewise.
15722 (msp430_expand_epilogue): Likewise.
15723 (msp430_expand_helper): Likewise.
15724 (msp430_split_movsi): Likewise.
15725 (msp430_print_operand): Likewise.
15726 (msp430_return_addr_rtx): Likewise.
15727 (msp430x_extendhisi): Likewise.
15728 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15729 (ASM_SPEC): Likewise.
15730 Remove very obvious comments.
15731 (LIB_SPEC): Split line more than 80 characters long.
15732 (EH_RETURN_HANDLER_RTX): Likewise.
15733 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15734
15735 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15736
15737 MSP430: Fix whitespace errors and incorrect indentation in
15738 config/msp430/*.{c,h} files
15739
15740 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15741 (msp430_select_hwmult_lib): Likewise.
15742 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15743 (msp430_extract_mcu_data): Likewise.
15744 (struct t_msp430_mcu_data): Likewise.
15745 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15746 before left square bracket.
15747 (msp430_option_override): Fix indentation.
15748 (msp430_hard_regno_nregs_with_padding): Likewise.
15749 (msp430_initial_elimination_offset): Likewise.
15750 (msp430_special_register_convention_p): Remove whitespace before left
15751 square bracket and after exclamation mark.
15752 (msp430_evaluate_arg): Likewise.
15753 (msp430_callee_copies): Fix indentation.
15754 (msp430_gimplify_va_arg_expr): Likewise.
15755 (msp430_function_arg_advance): Remove whitespace before left square
15756 bracket.
15757 (reg_ok_for_addr): Likewise.
15758 (msp430_preserve_reg_p): Likewise.
15759 (msp430_compute_frame_info): Likewise.
15760 (msp430_asm_output_addr_const_extra): Add space between function name
15761 and open parenthesis.
15762 (has_section_name): Fix indentation.
15763 (msp430_attr): Remove trailing whitespace.
15764 (msp430_section_attr): Likewise.
15765 (msp430_data_attr): Likewise.
15766 (struct msp430_attribute_table): Fix comment and whitespace.
15767 (msp430_start_function): Remove whitespace before left square bracket.
15768 Add space between function name and open parenthesis.
15769 (msp430_select_section): Remove trailing whitespace.
15770 (msp430_section_type_flags): Remove trailing whitespace.
15771 (msp430_unique_section): Remove space before closing parenthesis.
15772 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15773 (msp430_builtins): Remove whitespace before left square bracket.
15774 (msp430_init_builtins): Fix indentation.
15775 (msp430_expand_prologue): Remove whitespace before left square bracket.
15776 Remove space before closing parenthesis.
15777 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15778 (msp430_split_movsi): Remove space before closing parenthesis.
15779 (helper_function_name_mappings): Fix indentation.
15780 (msp430_use_f5_series_hwmult): Fix whitespace.
15781 (use_32bit_hwmult): Likewise.
15782 (msp430_no_hwmult): Likewise.
15783 (msp430_output_labelref): Remove whitespace before left square bracket.
15784 (msp430_print_operand_raw): Likewise.
15785 (msp430_print_operand_addr): Likewise.
15786 (msp430_print_operand): Add two spaces after '.' in comment.
15787 Fix trailing whitespace.
15788 (msp430x_extendhisi): Fix indentation.
15789 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15790 tab.
15791 (PC_REGNUM): Likewise.
15792 (STACK_POINTER_REGNUM): Likewise.
15793 (CC_REGNUM): Likewise.
15794
15795 2019-08-15 Richard Biener <rguenther@suse.de>
15796
15797 PR target/91454
15798 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15799 helper.
15800 (general_scalar_chain::make_vector_copies): Use it.
15801
15802 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15803
15804 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15805
15806 2019-08-15 Martin Liska <mliska@suse.cz>
15807
15808 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15809 operators with no arguments.
15810 (eliminate_unnecessary_stmts): Likewise here.
15811
15812 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15813
15814 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15815 <case COMPARE>: Revert 2019-08-14 change.
15816 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15817 for (TARGET_64BIT || mode != DImode).
15818
15819 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15820
15821 * tree-vrp.c (value_range_base::set): Merge in code from
15822 value_range_base::set_and_canonicalize.
15823 Enforce canonicalization at set time.
15824 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15825 (value_range_base::set_undefined): Inline call to set().
15826 (value_range_base::set_varying): Same.
15827 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15828 (vrp_val_max): New argument handle_pointers.
15829 (vrp_val_min): Same.
15830 (ranges_from_anti_range): Same.
15831 (extract_range_into_wide_ints): Use tree argument instead of sign
15832 and precision.
15833 (extract_range_from_multiplicative_op): Take in tree type instead
15834 of precision and sign. Adapt function for canonicalized ranges.
15835 (extract_range_from_binary_expr): Pass type to
15836 extract_range_from_multiplicative_op.
15837 Adapt for canonicalized ranges.
15838 (extract_range_from_unary_expr): Same.
15839 (value_range_base::intersect_helper): Adjust for canonicalized
15840 ranges.
15841 (value_range_base::union_helper): Same.
15842 (value_range_base::normalize_symbolics): New.
15843 * tree-vrp.h (class value_range_base): Remove
15844 set_and_canonicalize.
15845 New prototype for normalize_symbolics.
15846 (class value_range): Remove set_and_canonicalize.
15847 (vrp_val_min): Adjust prototype.
15848 (vrp_val_max): Same.
15849 * vr-values.c
15850 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15851 instead of set_and_canonicalize.
15852
15853 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15854
15855 PR middle-end/91444
15856 * tree-vect-stmts.c (vectorizable_call): Check that the function
15857 is a BUILT_IN_MD function before passing it to
15858 targetm.vectorize.builtin_md_vectorized_function.
15859
15860 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15861
15862 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15863 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15864 (aarch64_select_early_remat_modes): Use it.
15865
15866 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15867
15868 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15869 16 for SVE predicates even if they are fixed-length.
15870
15871 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15872
15873 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15874 operand order match the MOV /Z alias.
15875
15876 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15877
15878 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15879 the vector pattern as an aarch64_svpattern argument. Update the
15880 overloaded caller accordingly.
15881 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15882 (aarch64_output_sve_vector_inc_dec): Likewise.
15883
15884 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15885
15886 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15887 multiplication case, try to compute VG * (lowest set bit) directly
15888 rather than always basing the multiplication on VG. Use
15889 expand_mult for the multiplication if we can.
15890
15891 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15892
15893 * config/aarch64/aarch64-protos.h
15894 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15895 (aarch64_sve_inc_dec_immediate_p): Rename to...
15896 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15897 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15898 (aarch64_output_sve_scalar_inc_dec): Declare.
15899 (aarch64_output_sve_inc_dec_immediate): Rename to...
15900 (aarch64_output_sve_vector_inc_dec): ...this.
15901 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15902 (aarch64_output_sve_scalar_inc_dec): New functions.
15903 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15904 arguments. Only handle true ADDVL and ADDPL instructions;
15905 don't emit an INC or DEC.
15906 (aarch64_sve_inc_dec_immediate_p): Rename to...
15907 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15908 (aarch64_output_sve_inc_dec_immediate): Rename to...
15909 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15910 aarch64_sve_vector_inc_dec_immediate_p.
15911 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15912 (aarch64_sve_plus_immediate): New predicates.
15913 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15914 rather than aarch64_sve_addvl_addpl_immediate.
15915 (aarch64_sve_inc_dec_immediate): Rename to...
15916 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15917 aarch64_sve_vector_inc_dec_immediate_p.
15918 (aarch64_sve_add_operand): Update accordingly.
15919 * config/aarch64/constraints.md (Uai): New constraint.
15920 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15921 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15922 operand into a register if it satisfies aarch64_sve_plus_immediate.
15923 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15924 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15925 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15926 aarch64_output_sve_vector_inc_dec instead of
15927 aarch64_output_sve_inc_dec_immediate.
15928
15929 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15930
15931 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15932 (UNSPEC_REVW): New constants.
15933 (elem_bits): New mode attribute.
15934 (SVE_INT_UNARY): New int iterator.
15935 (optab): Handle UNSPEC_REV[BHW].
15936 (sve_int_op): New int attribute.
15937 (min_elem_bits): Handle VNx16QI and the predicate modes.
15938 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15939 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15940 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15941 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15942 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15943 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15944 unspecs based on the total width of the reversed data.
15945 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15946 reinterpret followed by a subreg on big-endian targets.
15947
15948 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15949 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15950
15951 * config/aarch64/aarch64-sve.md
15952 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15953 alternatives in which one of the inputs is in the same register
15954 as the output.
15955
15956 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15957
15958 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15959 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15960
15961 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15962
15963 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15964 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15965
15966 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15967 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15968
15969 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15970 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15971 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15972
15973 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15974 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15975
15976 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15977 Add an alternative that uses reversed shifts.
15978
15979 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15980
15981 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15982 struct.
15983
15984 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15985
15986 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15987 a commutativity marker.
15988
15989 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15990 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15991
15992 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15993 (aarch64_prepare_sve_cond_int_fma): Declare.
15994 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15995 (aarch64_prepare_sve_int_fma): New functions.
15996 (aarch64_prepare_sve_cond_int_fma): Likewise.
15997 * config/aarch64/aarch64-sve.md
15998 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15999 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16000 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16001 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16002 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16003 (*madd<mode>): Rename to...
16004 (*fma<mode>4): ...this.
16005 (*msub<mode>): Rename to...
16006 (*fnma<mode>4): ...this.
16007
16008 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16009 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16010
16011 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16012 Print 2.0 naturally.
16013 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16014 * config/aarch64/predicates.md
16015 (aarch64_sve_float_negated_arith_immediate): New predicate,
16016 renamed from aarch64_sve_float_arith_with_sub_immediate.
16017 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16018 positive and negative constants.
16019 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16020 or an aarch64_sve_float_arith_with_sub_immediate.
16021 * config/aarch64/constraints.md (vsN): Use
16022 aarch64_sve_float_negated_arith_immediate.
16023 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16024 iterator.
16025 (sve_pred_fp_rhs2_immediate): New int attribute.
16026 * config/aarch64/aarch64-sve.md
16027 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16028 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16029 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16030 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16031 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16032 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): 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_abd<SVE_F:mode>_2)
16038 (*aarch64_cond_abd<SVE_F:mode>_3)
16039 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16040
16041 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16042 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16043
16044 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16045 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16046
16047 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16048 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16049
16050 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16051 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16052 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16053 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16054 optabs.
16055 * optabs.h (create_convert_operand_from): Expand comment.
16056 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16057 when mapping scalar rtxes to vector operands.
16058 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16059 ashiftrt and lshiftrt.
16060 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16061 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16062 (*cond_<optab><mode>_any_const): New patterns.
16063
16064 2019-08-15 Martin Liska <mliska@suse.cz>
16065
16066 PR ipa/91438
16067 * cgraph.c (cgraph_node::remove): When setting
16068 n->origin = NULL for all nested functions, reset
16069 also next_nested.
16070
16071 2019-08-15 Martin Liska <mliska@suse.cz>
16072
16073 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16074 and next_nested.
16075
16076 2019-08-15 Martin Liska <mliska@suse.cz>
16077
16078 PR ipa/91404
16079 * passes.c (order): Remove.
16080 (uid_hash_t): Likewise).
16081 (remove_cgraph_node_from_order): Remove from set
16082 of pointers (cgraph_node *).
16083 (insert_cgraph_node_to_order): New.
16084 (duplicate_cgraph_node_to_order): New.
16085 (do_per_function_toporder): Register all 3 cgraph hooks.
16086 Skip removed_nodes now as we know about all of them.
16087
16088 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16089
16090 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16091 <case E_V8QImode>: Use vector_set path for
16092 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16093 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16094 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16095
16096 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16097
16098 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16099
16100 2019-08-14 Martin Sebor <msebor@redhat.com>
16101
16102 PR tree-optimization/91294
16103 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16104 source length as exact.
16105
16106 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16107
16108 * doc/extend.texi: Add "noinit" attribute documentation.
16109 * doc/sourcebuild.texi: Add noinit effective target documentation.
16110 * varasm.c (default_section_type_flags): Add support for "noinit"
16111 section.
16112 (default_elf_select_section): Add support for "noinit" attribute.
16113 * config/msp430/msp430.c (msp430_attribute_table): Remove
16114 "noinit" entry.
16115
16116 2019-08-14 Richard Biener <rguenther@suse.de>
16117 Uroš Bizjak <ubizjak@gmail.com>
16118
16119 PR target/91154
16120 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16121 mode arguments.
16122 (scalar_chain::smode): New member.
16123 (scalar_chain::vmode): Likewise.
16124 (dimode_scalar_chain): Rename to...
16125 (general_scalar_chain): ... this.
16126 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16127 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16128 base with TImode and V1TImode.
16129 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16130 (general_scalar_chain::vector_const_cost): Adjust for SImode
16131 chains.
16132 (general_scalar_chain::compute_convert_gain): Likewise. Add
16133 {S,U}{MIN,MAX} support.
16134 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16135 (general_scalar_chain::make_vector_copies): Likewise. Handle
16136 non-DImode chains appropriately.
16137 (general_scalar_chain::convert_reg): Likewise.
16138 (general_scalar_chain::convert_op): Likewise.
16139 (general_scalar_chain::convert_insn): Likewise. Add
16140 fatal_insn_not_found if the result is not recognized.
16141 (convertible_comparison_p): Pass in the scalar mode and use that.
16142 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16143 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16144 (scalar_to_vector_candidate_p): Remove by inlining into single
16145 caller.
16146 (general_remove_non_convertible_regs): Rename from
16147 dimode_remove_non_convertible_regs.
16148 (remove_non_convertible_regs): Remove by inlining into single caller.
16149 (convert_scalars_to_vector): Handle SImode and DImode chains
16150 in addition to TImode chains.
16151 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16152 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16153 (*<maxmin>di3_doubleword): Likewise.
16154
16155 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16156 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16157
16158 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16159 (*cond_bic<mode>_any): New patterns.
16160
16161 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16162
16163 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16164 take the equivalent mask, as well as a bit count.
16165 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16166 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16167 (aarch64_sve_pred_and_operand): New predicates.
16168 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16169 code attribute.
16170 * config/aarch64/aarch64-sve.md
16171 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16172 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16173
16174 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16175
16176 * config/aarch64/aarch64-sve.md
16177 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16178 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16179 New patterns.
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_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16186 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16187
16188 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16189 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16190
16191 * config/aarch64/aarch64-sve.md
16192 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16193 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16194
16195 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16196
16197 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16198 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16199 New pattern.
16200
16201 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16202 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16203
16204 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16205
16206 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16207 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16208
16209 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16210 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16211 (aarch64_print_operand): Add support for %I.
16212 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16213 Bitcast floating-point constants to the corresponding integer constant.
16214 (aarch64_float_const_representable_p): Handle vectors as well
16215 as scalars.
16216 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16217 for the new vcond_mask_<mode><vpred> expander.
16218 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16219 test aarch64_float_const_representable_p.
16220 (aarch64_sve_reg_or_dup_imm): New predicate.
16221 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16222 gen_vcond_mask_<mode><vpred> instead of
16223 gen_aarch64_sve_dup<mode>_const.
16224 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16225 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16226 for operands 1 and 2 respectively. Force operand 2 into a
16227 register if operand 1 is a register. Fold old define_insn...
16228 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16229 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16230 floating-point constants that can be moved as integers. Add
16231 alternatives for MOV /M and FMOV /M.
16232 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16233 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16234 1 and 2 respectively.
16235 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16236 as scalars.
16237 (vss): New constraint.
16238
16239 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16240
16241 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16242 (aarch64_sve_float_maxmin_operand): New predicates.
16243 * config/aarch64/constraints.md (vsB): New constraint.
16244 (vsM): Fix typo.
16245 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16246 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16247 UNSPEC_COND_FMINNM.
16248 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16249 Use aarch64_sve_float_maxmin_operand for operand 2.
16250 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16251 Add alternatives for the constant forms.
16252
16253 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16254
16255 * config/aarch64/constraints.md (vsb): New constraint.
16256 (vsm): Generalize description.
16257 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16258 iterator.
16259 (sve_imm_con): Handle smax, smin, umax and umin.
16260 (sve_imm_prefix): New code attribute.
16261 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16262 (aarch64_sve_vsb_operand): New predicates.
16263 (aarch64_sve_mul_immediate): Rename to...
16264 (aarch64_sve_vsm_immediate): ...this.
16265 (aarch64_sve_mul_operand): Rename to...
16266 (aarch64_sve_vsm_operand): ...this.
16267 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16268 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16269 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16270 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16271 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16272 add movprfx support for the immediate alternatives.
16273 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16274 of the above.
16275 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16276 for operand 3.
16277
16278 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16279
16280 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16281 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16282 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16283
16284 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16285
16286 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16287 (optab, sve_int_op): Handle them.
16288 * config/aarch64/aarch64-sve.md: Expand comment.
16289
16290 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16291
16292 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16293 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16294 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16295
16296 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16297
16298 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16299 (aarch64_expand_sve_const_pred_trn): New functions.
16300 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16301 use the above functions when the parameter is true.
16302 (aarch64_expand_sve_const_pred): Update call accordingly.
16303 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16304 Rename to...
16305 (@aarch64_sve_<perm_insn><mode>): ...this.
16306
16307 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16308
16309 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16310 Declare.
16311 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16312 (aarch64_sve_emit_int_cmp): New functions.
16313 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16314 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16315 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16316 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16317 (UNSPEC_PRED_Z): New unspec.
16318 (set_clobber_cc_nzc): Delete.
16319 * config/aarch64/aarch64-sve.md: Add a block comment about
16320 UNSPEC_PRED_Z.
16321 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16322 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16323 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16324 UNSPEC_MERGE_PTRUE.
16325 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16326 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16327 check for compatible predicates.
16328 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16329 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16330 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16331 comparisons above.
16332
16333 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16334
16335 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16336 * config/aarch64/aarch64-sve.md: Add a section describing it.
16337 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16338 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16339 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16340 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16341 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16342 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16343 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16344 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16345 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16346 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16347 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16348 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16349 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16350 (aarch64_evpc_rev_local): Update accordingly.
16351
16352 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16353
16354 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16355 iterators.
16356 (SVE_BHSI, SVE_SDI): Tweak comment.
16357 (SVE_HSDI): Likewise. Fix definition.
16358 (SVE_SDF): New mode iterator.
16359 (elem_bits): New mode attribute.
16360 (SVE_COND_FCVT): New int iterator.
16361 * config/aarch64/aarch64-sve.md
16362 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16363 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16364 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16365 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16366 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16367 ...these new patterns.
16368 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16369 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16370 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16371 Merge into...
16372 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16373 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16374 ...these new patterns.
16375 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16376 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16377 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16378 ...this new pattern.
16379 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16380 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16381 ...this new pattern.
16382 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16383
16384 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16385
16386 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16387 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16388 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16389 unspecs.
16390 (optab, su): Handle them.
16391 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16392 * config/aarch64/aarch64-sve.md
16393 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16394 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16395 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16396 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16397 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16398 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16399 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16400 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16401 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16402 FIXUORS.
16403 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16404 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16405 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16406 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16407 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16408 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16409 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16410 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16411 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16412 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16413 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16414 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16415 of UNSPEC_FLOAT_CONVERT.
16416 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16417 aarch64_sve_extend<mode><Vwide>2.
16418
16419 2019-08-14 Richard Biener <rguenther@suse.de>
16420
16421 PR target/91154
16422 * config/i386/i386-features.c
16423 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16424 individual instruction gain. Fix reg-reg copy GRP cost. Use
16425 ix86_cost->sse_op for vector instruction costs.
16426
16427 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16428
16429 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16430 (cmp_op): Handle it.
16431 (SVE_COND_FP_CMP): Rename to...
16432 (SVE_COND_FP_CMP_I0): ...this.
16433 (SVE_FP_CMP): Remove.
16434 * config/aarch64/aarch64-sve.md
16435 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16436 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16437 using unspecs to represent the comparison.
16438 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16439 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16440 accordingly.
16441 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16442 (aarch64_unspec_cond_code): Move after integer code. Handle
16443 UNORDERED.
16444 (aarch64_emit_sve_predicated_cond): Replace with...
16445 (aarch64_emit_sve_fp_cond): ...this new function.
16446 (aarch64_emit_sve_or_conds): Replace with...
16447 (aarch64_emit_sve_or_fp_conds): ...this new function.
16448 (aarch64_emit_sve_inverted_cond): Replace with...
16449 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16450 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16451
16452 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16453
16454 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16455 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16456 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16457 SVE_HSD instead of SVE_SD.
16458
16459 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16460 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16461
16462 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16463 iterator.
16464 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16465 attributes.
16466 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16467 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16468 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16469 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16470 (*div<SVE_F:mode>3): Generalize to...
16471 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16472
16473 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16474 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16475
16476 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16477 constants.
16478 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16479 predicate.
16480 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16481 Declare.
16482 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16483 function.
16484 * config/aarch64/aarch64-sve.md: Add a block comment about the
16485 handling of predicated FP operations.
16486 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16487 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16488 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16489 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16490 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16491 operand.
16492 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16493 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16494 operand.
16495 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16496 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16497 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16498 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16499 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16500 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16501 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16502 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16503 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16504 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16505 strictness operands. Use aarch64_sve_pred_dominates_p to check
16506 whether the predicate on the conditional operation is suitable
16507 for merging. Split patterns into the canonical equal-predicate form.
16508 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16509 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16510
16511 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16512 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16513
16514 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16515 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16516 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16517 rtx codes.
16518 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16519 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16520 unspecs.
16521
16522 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16523 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16524
16525 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16526 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16527 actually has, rather than relying on REG_EQUAL notes.
16528 Make the insn operand order match the SVE operand order.
16529 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16530 the SVE operand order.
16531
16532 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16533
16534 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16535 (aarch64_emit_set_immediate): Likewise.
16536 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16537 (aarch64_pfalse_reg): Likewise.
16538 (aarch64_convert_sve_data_to_pred): New function.
16539 (aarch64_sve_move_pred_via_while): Take an optional target register
16540 and the required register mode.
16541 (aarch64_expand_sve_const_pred_1): New function.
16542 (aarch64_expand_sve_const_pred): Likewise.
16543 (aarch64_expand_mov_immediate): Build an all-true predicate
16544 if the significant bits of the immediate are all true. Use
16545 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16546 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16547 before register allocation.
16548 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16549 a VNx16BI PTRUE when splitting the memory alternative.
16550 (vec_duplicate<mode>): Update accordingly.
16551 (*pred_cmp<cmp_op><mode>): Rename to...
16552 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16553
16554 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16555
16556 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16557 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16558 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16559 (UNSPEC_PTEST): New unspec.
16560 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16561 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16562 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16563 * config/aarch64/aarch64-sve.md: Add a new section describing the
16564 handling of UNSPEC_PTEST.
16565 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16566 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16567 (ptest_ptrue<mode>): Replace with...
16568 (aarch64_ptest<mode>): ...this new pattern.
16569 (cbranch<mode>4): Update after above changes.
16570 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16571 UNSPEC_PTEST_PTRUE.
16572 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16573 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16574 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16575
16576 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16577
16578 PR lto/91287
16579 * builtins.c (builtin_with_linkage_p): New function.
16580 * builtins.h (builtin_with_linkage_p): New function.
16581 * symtab.c (write_symbol): Remove redundant assert.
16582 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16583 Remove FIXME and use builtin_with_linkage_p.
16584
16585 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16586
16587 PR middle-end/91421
16588 * tree-core.h (function_decl::function_code): Change type to
16589 unsigned int.
16590 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16591 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16592 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16593 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16594 is BUILT_IN_NORMAL.
16595 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16596 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16597 (fndecl_built_in_p): Change the type of the "name" argument to
16598 unsigned int.
16599 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16600 after check for DECL_BUILT_IN_CLASS.
16601 * cgraphclones.c (build_function_decl_skip_args): Use
16602 set_decl_built_in_function.
16603 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16604 * ipa-split.c (split_function): Likewise.
16605 * langhooks.c (add_builtin_function_common): Likewise.
16606 * omp-simd-clone.c (simd_clone_create): Likewise.
16607 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16608 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16609 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16610 DECL_FUNCTION_CODE.
16611 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16612 instead of DECL_FUNCTION_CODE.
16613 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16614 instead of DECL_FUNCTION_CODE.
16615 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16616 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16617 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16618 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16619 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16620 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16621 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16622 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16623 (alpha_gimple_fold_builtin): Likewise.
16624 * config/arc/arc.c (arc_expand_builtin): Likewise.
16625 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16626 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16627 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16628 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16629 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16630 * config/frv/frv.c (frv_expand_builtin): Likewise.
16631 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16632 (gcn_expand_builtin): Likewise.
16633 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16634 (fold_builtin_cpu): Likewise.
16635 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16636 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16637 (ix86_gimple_fold_builtin): Likewise.
16638 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16639 (ia64_expand_builtin): Likewise.
16640 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16641 * config/mips/mips.c (mips_expand_builtin): Likewise.
16642 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16643 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16644 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16645 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16646 * config/pa/pa.c (pa_expand_builtin): Likewise.
16647 * config/pru/pru.c (pru_expand_builtin): Likewise.
16648 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16649 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16650 Likewise.
16651 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16652 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16653 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16654 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16655 (rs6000_builtin_reciprocal): Likewise.
16656 * config/rx/rx.c (rx_expand_builtin): Likewise.
16657 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16658 * config/s390/s390.c (s390_expand_builtin): Likewise.
16659 * config/sh/sh.c (sh_expand_builtin): Likewise.
16660 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16661 (sparc_fold_builtin): Likewise.
16662 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16663 * config/spu/spu.c (spu_expand_builtin): Likewise.
16664 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16665 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16666 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16667 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16668 (xtensa_expand_builtin): Likewise.
16669
16670 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16671
16672 PR middle-end/91421
16673 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16674 before the DECL_FUNCTION_CODE.
16675 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16676 to check for a BUILT_IN_ALLOCA call.
16677 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16678 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16679 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16680 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16681 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16682 for BUILT_IN_NORMAL functions.
16683 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16684 test for BUILT_IN_TM_ABORT.
16685 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16686 to check for a BUILT_IN_STACK_RESTORE call.
16687 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16688 * tree-ssa-threadedge.c
16689 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16690 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16691 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16692 test for a BUILT_IN_NORMAL call instead of a negative test for
16693 an internal function call.
16694
16695 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16696
16697 * tree.h (build_vector_a_then_b): Declare.
16698 * tree.c (build_vector_a_then_b): New function.
16699 * fold-const-call.c (fold_while_ult): Likewise.
16700 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16701 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16702 (aarch64_svpattern): New enum.
16703 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16704 constants through aarch64_expand_mov_immediate.
16705 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16706 than general_operand as the predicate for operand 1.
16707 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16708 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16709 insn_type.
16710 (simd_immediate_info::simd_immediate_info): New overload that
16711 takes a scalar_int_mode and an svpattern.
16712 (simd_immediate_info::u): Add a "pattern" field.
16713 (svpattern_token): New function.
16714 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16715 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16716 (aarch64_sve_move_pred_via_while): New functions.
16717 (aarch64_expand_mov_immediate): Try using
16718 aarch64_sve_move_pred_via_while for predicates that contain N ones
16719 followed by M zeros but that do not correspond to a VLnnn pattern.
16720 (aarch64_sve_pred_valid_immediate): New function.
16721 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16722 with PTRUE and PFALSE.
16723 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16724 forms.
16725
16726 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16727
16728 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16729 flag.
16730 (darwin_override_options): Likewise.
16731 * config/darwin.h: Likewise.
16732 * config/darwin.opt: Likewise.
16733 * config/i386/i386.c (output_pic_addr_const): Likewise.
16734 * config/rs6000/darwin.h: Likewise.
16735 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16736 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16737 ... this TARGET_MACHO_SYMBOL_STUBS.
16738 (FUNCTION_PROFILER):Likewise.
16739 * config/i386/i386.h: Likewise.
16740
16741 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16742
16743 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16744 <case E_V2SImode>: Use vec_extr path for
16745 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16746 <case E_V8QImode>: Ditto.
16747 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16748 Use SWI48 mode iterator. Use %k to output operand 0.
16749 (*mmx_pextrw): New insn pattern.
16750 (*mmx_pextrb): Ditto.
16751 (*mmx_pextrb_zext): Ditto.
16752
16753 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16754
16755 * target.def (libc_has_function, libc_has_fast_function): Improve
16756 documentation strings.
16757 * doc/tm.texi: Regenerate.
16758
16759 2019-08-13 Caroline Tice <cmtice@google.com>
16760
16761 PR other/91396
16762 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16763 vtv_end.o or vtv_end_preinit.o files if !static.
16764
16765 2019-08-13 Olivier Hainque <hainque@adacore.com>
16766
16767 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16768
16769 2019-08-13 Olivier Hainque <hainque@adacore.com>
16770
16771 * rtlanal.c (tablejump_casesi_pattern): New function, to
16772 determine if a tablejump insn is a casesi dispatcher. Extracted
16773 from patch_jump_insn.
16774 * rtl.h (tablejump_casesi_pattern): Declare.
16775 * cfgrtl.c (patch_jump_insn): Use it.
16776 * dwarf2cfi.c (create_trace_edges): Use it.
16777
16778 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16779
16780 PR target/81800
16781 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16782 operand is larger than a long int.
16783
16784 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16785
16786 * machmode.h (opt_mode::else_mode): New function.
16787 (opt_mode::else_blk): Use it.
16788 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16789 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16790 (aarch64_gen_stepped_int_parallel): Likewise.
16791 (aarch64_stepped_int_parallel_p): Likewise.
16792 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16793 argument.
16794 * config/aarch64/aarch64.c
16795 (aarch64_expand_sve_widened_duplicate): Delete.
16796 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16797 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16798 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16799 argument. Use early returns in the !CONST_INT_P handling.
16800 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16801 than handling some inline.
16802 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16803 from...
16804 (aarch64_simd_container_mode): ...here.
16805 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16806 (aarch64_sve_ld1rq_operand_p): New functions.
16807 * config/aarch64/predicates.md (descending_int_parallel)
16808 (aarch64_sve_ld1rq_operand): New predicates.
16809 * config/aarch64/constraints.md (UtQ): New constraint.
16810 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16811 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16812 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16813 (@aarch64_sve_reinterpret<mode>): New expander.
16814 (*aarch64_sve_reinterpret<mode>): New pattern.
16815 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16816 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16817 (*sve_ld1rq<Vesize>): Replace with...
16818 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16819
16820 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16821
16822 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16823 16:12.
16824
16825 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16826
16827 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16828 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16829 (msp430_check_path_for_devices): New.
16830 (parse_devices_csv_1): New.
16831 (parse_devices_csv): New.
16832 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16833 MCU data in devices.csv before using the hard-coded data.
16834 Warn if devices.csv isn't found and the MCU wasn't found in the
16835 hard-coded data either.
16836 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16837 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16838 Search for devices.csv on -I and -L paths.
16839 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16840 msp430_set_driver_var.
16841 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16842 -mdevices-csv-loc=.
16843 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16844 searched for devices.csv.
16845 (mwarn-devices-csv): Document option.
16846
16847 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16848
16849 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16850 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16851 Use a single Dn alternative instead of separate Dz and Dm
16852 alternatives. Use aarch64_output_sve_move_immediate.
16853 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16854 function.
16855 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16856 for predicates too.
16857 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16858 (aarch64_output_ptrue): Delete.
16859
16860 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16861
16862 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16863 INDEX.
16864 (simd_immediate_info::value, simd_immediate_info::step)
16865 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16866 with...
16867 (simd_immediate_info::u): ...this new union.
16868 (simd_immediate_info::simd_immediate_info): Update accordingly.
16869 (aarch64_output_simd_mov_immediate): Likewise.
16870 (aarch64_output_sve_mov_immediate): Likewise.
16871
16872 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16873
16874 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16875 extra_gcc_objs.
16876 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16877 (msp430_select_cpu): New spec function.
16878 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16879 MCU data.
16880 * config/msp430/msp430-devices.c: New file.
16881 * config/msp430/msp430-devices.h: New file.
16882 * config/msp430/msp430.c: Remove msp430_mcu_data.
16883 (msp430_option_override): Use msp430_extract_mcu_data to extract
16884 MCU data.
16885 (msp430_use_f5_series_hwmult): Likewise.
16886 (use_32bit_hwmult): Likewise.
16887 (msp430_no_hwmult): Likewise.
16888 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16889 assembler.
16890 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16891 and -mcpu option.
16892 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16893 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16894 Remove hard-coded MCU multilib data.
16895
16896 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16897
16898 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16899 based on the mode instead of testing properties of it.
16900
16901 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16902
16903 * doc/md.texi: Document the x and y constraints for AArch64.
16904 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16905 (FP_LO8_REGS): New reg_class.
16906 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16907 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16908 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16909 * config/aarch64/predicates.md (aarch64_simd_register): Use
16910 FP_REGNUM_P instead of checking the classes manually.
16911 * config/aarch64/constraints.md (y): New constraint.
16912
16913 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16914
16915 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16916 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16917 * config/aarch64/aarch64-simd.md
16918 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16919 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16920 from the asm template.
16921 * config/aarch64/aarch64-sve.md
16922 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16923 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16924 from the asm template.
16925 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16926 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16927 from the asm template.
16928 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16929
16930 2019-08-13 Martin Liska <mliska@suse.cz>
16931
16932 * value-prof.c (gimple_ic_transform): Add new line.
16933 Print details with MSG_NOTE.
16934
16935 2019-08-13 Martin Liska <mliska@suse.cz>
16936
16937 * doc/invoke.texi: Document automatic detection of jobserver.
16938 * lto-wrapper.c (run_gcc): Detect jobserver always.
16939
16940 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16941
16942 * config/i386/i386-expand.c (ix86_expand_vector_set)
16943 <case E_V2SImode>: Use vec_merge path for
16944 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16945 <case E_V8QImode>: Ditto.
16946 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16947 (*mmx_pinsrb): Ditto.
16948
16949 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16950
16951 PR target/83250
16952 PR target/91340
16953 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16954 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16955 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16956 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16957 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16958
16959 2019-08-12 Richard Biener <rguenther@suse.de>
16960
16961 PR lto/91375
16962 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16963 flag_devirtualize.
16964
16965 2019-08-12 Richard Biener <rguenther@suse.de>
16966
16967 PR driver/91130
16968 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16969 lang_mask option, always use CL_DRIVER.
16970 (get_options_from_collect_gcc_options): Adjust.
16971 (find_and_merge_options): Likewise.
16972 (run_gcc): Likewise.
16973
16974 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16975
16976 * ipa-predicate.c (add_condition): Restore inverted test.
16977
16978 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16979
16980 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16981 (enum omp_clause_device_type_kind): New enum.
16982 (struct tree_omp_clause): Add subcode.device_type_kind.
16983 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16984 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16985 for device_type clause.
16986 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16987 * tree-pretty-print.c (dump_omp_clause): Likewise.
16988
16989 PR target/91408
16990 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16991 vector_operand.
16992
16993 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16994
16995 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16996 handling spilled pseudos.
16997
16998 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16999
17000 PR target/91386
17001 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17002 to preserve the contents of the original insns.
17003
17004 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17005
17006 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17007 (addsi3_compare_op2): Likewise.
17008
17009 2019-08-09 Martin Liska <mliska@suse.cz>
17010
17011 * alias.c (alias_ptr_types_compatible_p): Strengten
17012 type comparison in LTO mode.
17013
17014 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17015
17016 PR middle-end/90313
17017 * tree-tailcall.c (find_tail_calls): Reject calls that might
17018 read from an escaped RESULT_DECL.
17019
17020 2019-08-09 Martin Liska <mliska@suse.cz>
17021
17022 * doc/invoke.texi: Document the option value.
17023 * lto-wrapper.c (run_gcc): Set auto_parallel
17024 only with -flto=auto.
17025
17026 2019-08-09 Martin Liska <mliska@suse.cz>
17027
17028 * opts.c (common_handle_option): Error for an invalid argument
17029 to -flto=.
17030
17031 2019-08-09 Martin Liska <mliska@suse.cz>
17032
17033 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17034 use dump_printf to report optimization.
17035 (sem_variable::merge): Likwise.
17036 (sem_item_optimizer::merge_classes): Use dump_printf to report
17037 ICF hits.
17038
17039 2019-08-09 Martin Liska <mliska@suse.cz>
17040
17041 * value-prof.c (gimple_divmod_fixed_value_transform):
17042 Use dump_printf_loc.
17043 (gimple_mod_pow2_value_transform): Likewise.
17044 (gimple_mod_subtract_transform): Likewise.
17045 (init_node_map): Likewise.
17046 (gimple_ic_transform): Likewise.
17047 (gimple_stringops_transform): Likewise.
17048
17049 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17050
17051 * doc/extend.texi: Add const qualifier to ld intrinsics.
17052
17053 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17054
17055 * config/rs6000/dfp.md (D64_D128): Rename to ...
17056 (DDTD): ... this, throughout.
17057 (dfp_suffix): Rename to ...
17058 (q): ... this, throughout.
17059
17060 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17061
17062 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17063 (dfp_suffix): Ditto.
17064 (adddd3, addtd3): Merge to ...
17065 (add<mode>3 for D64_D128): ... this.
17066 (subdd3, subtd3): Merge to ...
17067 (sub<mode>3 for D64_D128): ... this.
17068 (muldd3, multd3): Merge to ...
17069 (mul<mode>3 for D64_D128): ... this.
17070 (divdd3, divtd3): Merge to ...
17071 (div<mode>3 for D64_D128): ... this.
17072 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17073 (*cmp<mode>_internal1 for D64_D128): ... this.
17074 (ftruncdd2, ftrunctd2): Merge to ...
17075 (ftrunc<mode>2 for D64_D128): ... this.
17076 (fixdddi2, fixtddi2): Merge to ...
17077 (fix<mode>di2 for D64_D128): ... this.
17078
17079 2019-08-08 Jim Wilson <jimw@sifive.com>
17080
17081 PR target/91229
17082 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17083 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17084 Pass into recursive call.
17085 (riscv_flatten_aggregate_argument): New arg. Pass to
17086 riscv_flatten_aggregate_field.
17087 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17088 riscv_flatten_aggregate_argument twice, with false and true as last
17089 arg. Process result twice. Compare results and warn if different.
17090 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17091
17092 2019-08-08 Martin Liska <mliska@suse.cz>
17093
17094 PR bootstrap/91352
17095 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17096 * lto-wrapper.c (jobserver_active_p): Likewise.
17097
17098 2019-08-08 Martin Liska <mliska@suse.cz>
17099
17100 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17101 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17102 (create_version_clone_with_body): Likewise.
17103
17104 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17105
17106 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17107 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17108 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17109 GOVD_EXPLICIT flags.
17110 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17111 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17112 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17113 call install_var_field with mask 11 instead of 3.
17114 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17115 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17116
17117 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17118
17119 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17120 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17121
17122 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17123
17124 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17125 MOVPRFX alternatives. Make the GPR alternatives more expensive
17126 than the FPR ones.
17127
17128 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17129
17130 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17131 Disparage the GPR alternative relative to the FPR one.
17132 Fix handling of 8-bit and 16-bit FPR values.
17133
17134 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17135
17136 * config/aarch64/iterators.md (BITWISEV): Delete.
17137 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17138 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17139 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17140 UNSPEC_FMINNMV, UNSPEC_FMINV.
17141 (bit_reduc_op): Delete.
17142 (sve_int_op): New int attribute.
17143 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17144 UNSPEC_FMINNMV, UNSPEC_FMINV.
17145 * config/aarch64/aarch64-sve.md
17146 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17147 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17148 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17149 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17150 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17151 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17152 new patterns.
17153 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17154 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17155 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17156 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17157 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17158 new patterns.
17159
17160 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17161
17162 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17163 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17164 (fms<mode>4, *fms<mode>4): Replace with...
17165 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17166 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17167 Use unspecs instead of rtx codes.
17168 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17169 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17170
17171 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17172
17173 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17174 int iterator.
17175 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17176 * config/aarch64/aarch64-sve.md
17177 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17178 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17179 use a single unspec for the rhs.
17180 (*<su><maxmin><mode>3): Delete.
17181 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17182
17183 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17184
17185 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17186 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17187 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17188 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17189 (optab, sve_fp_op): Handle them.
17190 (SVE_FP_UNARY): Delete.
17191 (optab): Remove sqrt entry.
17192 (sve_fp_op): Remove neg, abs and sqrt entries.
17193 (SVE_COND_FP_UNARY): New int iterator.
17194 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17195 (*<frint_pattern><mode>2): Delete.
17196 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17197 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17198 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17199 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17200
17201 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17202
17203 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17204
17205 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17206
17207 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17208 (UNSPEC_COND_FADD): ...this.
17209 (UNSPEC_COND_SUB): Rename to...
17210 (UNSPEC_COND_FSUB): ...this.
17211 (UNSPEC_COND_MUL): Rename to...
17212 (UNSPEC_COND_FMUL): ...this.
17213 (UNSPEC_COND_DIV): Rename to...
17214 (UNSPEC_COND_FDIV): ...this.
17215 (UNSPEC_COND_MAX): Rename to...
17216 (UNSPEC_COND_FMAXNM): ...this.
17217 (UNSPEC_COND_MIN): Rename to...
17218 (UNSPEC_COND_FMINNM): ...this.
17219 (UNSPEC_COND_LT): Rename to...
17220 (UNSPEC_COND_FCMLT): ...this.
17221 (UNSPEC_COND_LE): Rename to...
17222 (UNSPEC_COND_FCMLE): ...this.
17223 (UNSPEC_COND_EQ): Rename to...
17224 (UNSPEC_COND_FCMEQ): ...this.
17225 (UNSPEC_COND_NE): Rename to...
17226 (UNSPEC_COND_FCMNE): ...this.
17227 (UNSPEC_COND_GE): Rename to...
17228 (UNSPEC_COND_FCMGE): ...this.
17229 (UNSPEC_COND_GT): Rename to...
17230 (UNSPEC_COND_FCMGT): ...this.
17231 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17232 (sve_fp_op_rev): Update accordingly.
17233 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17234
17235 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17236
17237 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17238 banner comments.
17239 * config/aarch64/check-sve-md.awk: New file.
17240 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17241 (insn-conditions.md): Depend on it.
17242
17243 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17244
17245 PR target/91385
17246 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17247 (*negsi2_cmpz_zext): Ditto.
17248
17249 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17250
17251 * config/aarch64/iterators.md (commutative): Remove.
17252
17253 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17254
17255 PR driver/91130
17256 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17257 processing COLLECT_GCC_OPTIONS.
17258 (run_gcc): Likewise.
17259
17260 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17261
17262 PR tree-optimization/91109
17263 * lra-remat.c (update_scratch_ops): Remove assignment of the
17264 hard register.
17265
17266 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17267
17268 * data-streamer.h (streamer_write_poly_uint64): Declare.
17269 (streamer_read_poly_uint64): Likewise.
17270 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17271 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17272 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17273 (add_condition): Take a poly_int64 size.
17274 * ipa-predicate.c (add_condition): Likewise.
17275 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17276 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17277 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17278 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17279 condition::size as a poly_int64.
17280 (unmodified_parm_1): Take a poly_int64 size pointer.
17281 (unmodified_parm): Likewise.
17282 (unmodified_parm_or_parm_agg_item): Likewise.
17283 (set_cond_stmt_execution_predicate): Update accordingly.
17284 (set_switch_stmt_execution_predicate): Likewise.
17285 (will_be_nonconstant_expr_predicate): Likewise.
17286 (will_be_nonconstant_predicate): Likewise.
17287 (inline_read_section): Stream condition::size as a poly_int.
17288 (ipa_fn_summary_write): Likewise.
17289
17290 2019-08-07 Martin Liska <mliska@suse.cz>
17291
17292 * fold-const.c (twoval_comparison_p): Replace int
17293 with bool as a return type.
17294 (simple_operand_p): Likewise.
17295 (operand_equal_p): Replace int with bool as a return type.
17296 * fold-const.h (operand_equal_p): Likewise.
17297
17298 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17299
17300 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17301 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17302 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17303 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17304 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17305 * tree-pretty-print.c (dump_omp_clause): Likewise.
17306 * tree-nested.c (convert_nonlocal_omp_clauses,
17307 convert_local_omp_clauses): Likewise.
17308 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17309 Likewise.
17310 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17311 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17312 clause with array or reference to array types, no matter what type
17313 except for reference it has.
17314
17315 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17316
17317 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17318
17319 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17320
17321 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17322 (arch_canonicalize): Support rv32g and rv64g and fix error
17323 handling.
17324
17325 2019-08-06 Martin Liska <mliska@suse.cz>
17326
17327 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17328 and DECL_IS_OPERATOR_DELETE_P.
17329
17330 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17331
17332 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17333 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17334 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17335 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17336 (gimplify_omp_for): Don't do C++ random access iterator clause
17337 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17338 don't predetermine the artificial iterator in case of C++ random
17339 access iterators as lastprivate, but private. For OMP_LOOP, force
17340 bind expr around simd body and force for_pre_body before the
17341 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17342 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17343 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17344 diff var of C++ random access iterators. Handle
17345 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17346 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17347 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17348 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17349 * omp-low.c (lower_rec_input_clauses): For
17350 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17351 variables instead of default constructing them.
17352 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17353 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17354 is_taskloop_ctx check from the assert to the guarding condition.
17355
17356 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17357
17358 * config/riscv/multilib-generator: (canonical_order): New.
17359 (arch_canonicalize): Dito.
17360 Apply arch_canonicalize for alts.
17361
17362 2019-08-05 Martin Sebor <msebor@redhat.com>
17363
17364 * doc/extend.texi (Common Variable Attributes): Document alias
17365 attribute.
17366
17367 2019-08-05 Marek Polacek <polacek@redhat.com>
17368
17369 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17370 * doc/invoke.texi: Document -Wcomma-subscript.
17371
17372 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17373
17374 * tree-core.h (tree_function_decl): Make function_code an
17375 independent field. Group the remaining bitfields into bytes
17376 and move decl_type so that it contines to be at a byte boundary.
17377 Leave 12 bits for future expansion.
17378
17379 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17380
17381 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17382 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17383 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17384 IFN_MASK_STORE.
17385
17386 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17387
17388 * gimple.h (gimple_move_vops): Declare.
17389 * gimple.c (gimple_move_vops): New function
17390 * gimple-fold.c (replace_call_with_call_and_fold)
17391 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17392 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17393 (gimple_fold_call): Use it.
17394 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17395 * tree-call-cdce.c (use_internal_fn): Likewise.
17396 * tree-if-conv.c (predicate_load_or_store): Likewise.
17397 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17398 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17399 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17400 (update_call_from_tree): Likewise.
17401 * tree-vect-stmts.c (vectorizable_load): Likewise.
17402 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17403
17404 2019-08-05 Martin Liska <mliska@suse.cz>
17405
17406 PR c++/91334
17407 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17408 with not arguments.
17409 (eliminate_unnecessary_stmts): Likewise.
17410
17411 2019-08-05 Richard Biener <rguenther@suse.de>
17412
17413 PR middle-end/91169
17414 * fold-const.c (get_array_ctor_element_at_index): Create
17415 offset_ints according to the sign of the index type and treat
17416 that as signed if it is obviously so.
17417
17418 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17419
17420 PR target/91341
17421 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17422 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17423 _mm256_storeu2_m128i): New function.
17424
17425 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17426
17427 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17428 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17429
17430 2019-08-05 Alan Modra <amodra@gmail.com>
17431
17432 PR target/91349
17433 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17434 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17435
17436 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17437
17438 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17439 bug that was fixed in Tcl 8.6.1.
17440
17441 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17442
17443 * config/rs6000/future.md: New file.
17444 * config/rs6000/rs6000.md: Include future.md.
17445 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17446
17447 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17448
17449 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17450 check to use targetm.slow_unaligned_access instead.
17451
17452 * function.c (assign_param_data_one): Remove unused data members.
17453
17454 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17455
17456 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17457 build_distinct_type_copy.
17458 (simd_clone_adjust_argument_types): Ditto.
17459 (simd_clone_adjust): Call build_distinct_type_copy here.
17460 (expand_simd_clones): Ditto.
17461
17462 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17463
17464 PR target/91201
17465 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17466
17467 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17468
17469 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17470 from 'const void *'.
17471 (sort_locs_in_loop_postorder_cmp): Likewise.
17472
17473 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17474
17475 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17476 (hot-bb-count-ws-permille): Likewise.
17477 (hot-bb-frequency-fraction): Likewise.
17478 (unlikely-bb-count-fraction): Likewise.
17479 * params.def (hot-bb-count-fraction): Rework description.
17480 (hot-bb-count-ws-permille): Likewise.
17481 (hot-bb-frequency-fraction): Likewise.
17482 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17483 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17484
17485 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17486
17487 PR target/91323
17488 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17489 Return false.
17490
17491 2019-08-02 Richard Biener <rguenther@suse.de>
17492
17493 * vec.h (vec::sort): Add gcc_qsort_r support.
17494 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17495 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17496 to gcc_qsort_r style callback.
17497 (sort_locs_in_loop_postorder_cmp): Likewise.
17498 (analyze_memory_references): Use gcc_sort_r interfaces.
17499 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17500
17501 2019-08-02 Martin Liska <mliska@suse.cz>
17502
17503 PR lto/91313
17504 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17505 to detect working job server.
17506 (driver::detect_jobserver): Test whether jobserver
17507 is active from GCC driver. That will prevent situation where
17508 GCC is invoked from a LD plugin and the linker already uses
17509 file descriptors suggested by make. That leads to a wrong
17510 detection.
17511 * gcc.h (driver): Add detect_jobserver.
17512 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17513 not scanning for --jobserver-auth prefix.
17514
17515 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17516
17517 PR tree-optimization/91201
17518 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17519 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17520 extraction.
17521
17522 2019-08-01 Martin Sebor <msebor@redhat.com>
17523
17524 PR c++/90947
17525 * tree.c (type_initializer_zero_p): Define.
17526 * tree.h (type_initializer_zero_p): New function.
17527
17528 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17529
17530 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17531
17532 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17533
17534 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17535 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17536 * predict.c (maybe_hot_count_p): Likewise.
17537 (maybe_hot_bb_p): Tweak comment.
17538 (maybe_hot_edge_p): Likewise.
17539 (probably_never_executed): Likewise. Minor tweak.
17540 (probably_never_executed_bb_p): Likewise.
17541 (unlikely_executed_edge_p): Likewise.
17542 (probably_never_executed_edge_p): Likewise.
17543 (optimize_function_for_size_p): Likewise.
17544 (optimize_function_for_speed_p): Likewise.
17545 (function_optimization_type): Likewise.
17546 (optimize_bb_for_size_p): Likewise.
17547 (optimize_bb_for_speed_p): Likewise.
17548 (bb_optimization_type): Likewise.
17549 (optimize_edge_for_size_p): Likewise.
17550 (optimize_edge_for_speed_p): Likewise.
17551 (optimize_insn_for_size_p): Likewise.
17552 (optimize_insn_for_speed_p): Likewise.
17553 (optimize_loop_for_size_p): Likewise.
17554 (optimize_loop_for_speed_p): Likewise.
17555 (optimize_loop_nest_for_speed_p): Likewise.
17556 (optimize_loop_nest_for_size_p): Likewise.
17557 (predictable_edge_p): Likewise.
17558 (handle_missing_profiles): Minor tweak.
17559
17560 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17561
17562 * config/rs6000/predicates.md (pcrel_external_address): Update
17563 comment.
17564
17565 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17566
17567 PR target/85693
17568 * config/i386/mmx.md (usadv8qi): New expander.
17569
17570 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17571
17572 PR c++/90590
17573 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17574 with reserved names that are in a system header.
17575
17576 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17577
17578 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17579 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17580 (*vec_extractv2si_0_zext): Ditto.
17581 (*vec_extractv2si_1): Add (rm,x) alternative.
17582 (*vec_extractv2si_1_zext): New insn pattern.
17583 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17584 insn constraint.
17585
17586 2019-08-01 Richard Biener <rguenther@suse.de>
17587
17588 * domwalk.c (bb_postorder): Remove static variable.
17589 (cmp_bb_postorder): Adjust.
17590 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17591 (dom_walker::walk): Adjust.
17592
17593 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17594
17595 * sort.cc (sort_r_ctx): New struct.
17596 (reorder23): Make templated on context type.
17597 (reorder45): Ditto.
17598 (cmp1): Ditto. Adjust signature.
17599 (netsort): Ditto.
17600 (mergesort): Ditto.
17601 [CHECKING_P] (cmp2to3): New static function. Use it...
17602 (gcc_qsort) [CHECKING_P]: ...here.
17603 (gcc_sort_r): New function.
17604 * system.h (sort_r_cmp_fn): New function typedef.
17605 (qsort_chk): Adjust signature.
17606 (gcc_sort_r): Declare.
17607 * vec.c (qsort_chk_error): Adjust.
17608 (qsort_chk): Adjust.
17609
17610 2019-08-01 Richard Biener <rguenther@suse.de>
17611
17612 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17613 (compute_antic): Localize it here.
17614
17615 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17616
17617 * common/config/riscv/riscv-common.c: Check -march string ends
17618 with null.
17619
17620 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17621
17622 * ipa-devirt.c (type_warning_cmp): Make static.
17623 (decl_warning_cmp): Ditto.
17624
17625 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17626
17627 PR target/91050
17628 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17629 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17630 use of deleted rs6000_dejagnu_cpu_index variable.
17631 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17632 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17633 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17634 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17635 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17636 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17637
17638 2019-07-31 Richard Biener <rguenther@suse.de>
17639
17640 PR tree-optimization/91280
17641 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17642 Decompose MEM_REF manually for offset handling.
17643
17644 2019-07-31 Richard Biener <rguenther@suse.de>
17645
17646 PR tree-optimization/91293
17647 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17648 of reduction stmts.
17649
17650 2019-07-31 Matt Thomas <matt@3am-software.com>
17651 Nick Hudson <nick@nthcliff.demon.co.uk>
17652 Matthew Green <mrg@eterna.com.au>
17653 Maya Rashish <coypu@sdf.org>
17654
17655 * config.gcc (hppa*-*-netbsd*): New target.
17656 * config/pa/pa-netbsd.h: New file.
17657 * config/pa/pa32-netbsd.h: New file.
17658
17659 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17660
17661 PR tree-optimization/91201
17662 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17663
17664 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17665
17666 * config/gcn/gcn-valu.md
17667 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17668 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17669 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17670 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17671 struct ilist. Add nops for delayeduse insns.
17672 * config/gcn/gcn.md (delayeduse): New attribute.
17673 (*movbi): Remove s_waitcnt from stores.
17674 (*mov<mode>_insn): Likewise.
17675 (*movti_insn): Likewise. Add delayeduse attribute.
17676 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17677 (atomic_store<mode>): Remove or adjust s_waitcnt.
17678
17679 2019-07-31 Richard Biener <rguenther@suse.de>
17680
17681 * vr-values.h (vr_values::swap_vr_value): New.
17682 (vr_values::free_value_range): likewise.
17683 * vr-values.c (vr_values::swap_vr_value): Implement.
17684 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17685 Do not return a range or take a var.
17686 (evrp_range_analyzer::stack): Change back to recording a non-const
17687 value_range *.
17688 * gimple-ssa-evrp-analyze.c
17689 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17690 value-range.
17691 (evrp_range_analyzer::pop_to_marker): Adjust.
17692 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17693 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17694 no longer needed value-range.
17695
17696 2019-07-31 Martin Liska <mliska@suse.cz>
17697
17698 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17699 have size and (or) alignment as 2nd and later arguments.
17700 Mark all of them as necessary.
17701
17702 2019-07-31 Richard Biener <rguenther@suse.de>
17703
17704 PR tree-optimization/91178
17705 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17706 Use tail-recursion.
17707
17708 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17709
17710 PR tree-optimization/91201
17711 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17712 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17713 TARGET_AVX512F.
17714 (reduc_plus_scal_<mode>): Improve formatting by introducing
17715 a temporary.
17716
17717 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17718
17719 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17720 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17721 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17722 (aarch64_init_tme_builtins): New.
17723 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17724 (aarch64_expand_builtin_tme): New.
17725 (aarch64_expand_builtin): Handle TME builtins.
17726 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17727 __ARM_FEATURE_TME when enabled.
17728 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17729 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17730 (TARGET_TME): New.
17731 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17732 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17733 UNSPECV_TCANCEL.
17734 (tstart, ttest, tcommit, tcancel): New instructions.
17735 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17736 (__tcancel, __ttest): New.
17737 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17738 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17739 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17740 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17741 * config/arm/types.md: Add new tme type attr.
17742 * doc/invoke.texi: Document "tme".
17743
17744 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17745
17746 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17747 warn_unused_result attribute.
17748 (cmse_check_address_range): Add warn_unused_result attribute.
17749
17750 2019-07-31 Richard Biener <rguenther@suse.de>
17751
17752 PR tree-optimization/91257
17753 * tree-vrp.c (union_ranges): Unify equality and less tests
17754 by using compare_values. Re-order cheap tests first.
17755
17756 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17757
17758 PR middle-end/91301
17759 * gimplify.c (gimplify_omp_for): If for class iterator on
17760 distribute parallel for there is no data sharing clause
17761 on inner_for_stmt, look for private clause on combined
17762 parallel too and if found, move it to inner_for_stmt.
17763
17764 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17765
17766 * lra-int.h (lra_operand_data): Remove early_clobber field.
17767 (lra_insn_reg): Likewise.
17768 * lra.c (debug_operand_data): Update accordingly.
17769 (setup_operand_alternative): Likewise.
17770 (new_insn_reg): Likewise. Remove early_clobber parameter.
17771 (collect_non_operand_hard_regs): Update call accordingly.
17772 Don't assign to lra_insn_reg::early_clobber.
17773 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17774 and update calls to new_insn_reg.
17775 (lra_update_insn_regno_info): Update calls accordingly.
17776 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17777 alternative number as a parameter and test whether the operand
17778 is earlyclobbered in that particular alternative.
17779 (process_alt_operands): Update call accordingly. Use per-alternative
17780 checks for earyclobber here too.
17781 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17782 against zero for IRA_UNKNOWN_ALT.
17783
17784 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17785
17786 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17787
17788 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17789
17790 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17791 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17792
17793 2019-07-30 Martin Liska <mliska@suse.cz>
17794
17795 PR ipa/89330
17796 * cgraph.c (cgraph_edge::make_direct): Use
17797 edge->indirect_unknown_callee as edge->resolve_speculation can
17798 deallocate edge which is this pointer.
17799
17800 2019-07-30 Richard Biener <rguenther@suse.de>
17801
17802 PR tree-optimization/91257
17803 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17804
17805 2019-07-30 Martin Liska <mliska@suse.cz>
17806
17807 * doc/invoke.texi: Document new behavior.
17808 * lto-wrapper.c (cpuset_popcount): New function
17809 is a copy of libgomp/config/linux/proc.c.
17810 (init_num_threads): Likewise.
17811 (run_gcc): Automatically detect core count for -flto.
17812 (jobserver_active_p): New function.
17813
17814 2019-07-30 Richard Biener <rguenther@suse.de>
17815
17816 PR tree-optimization/91257
17817 * bitmap.h (bitmap_ior_into_and_free): Declare.
17818 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17819 whether to add the unliked element to the freelist.
17820 (bitmap_list_insert_element_after): Add defaulted param for
17821 an already allocated element.
17822 (bitmap_ior_into_and_free): New function.
17823 * tree-ssa-structalias.c (condense_visit): Reduce the
17824 ponts-to and edge bitmaps of the SCC members in a
17825 logarithmic fashion rather than all to one.
17826
17827 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17828
17829 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17830 parameter. When nonnull, make sure that the addition or subtraction
17831 has the same condition.
17832 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17833 for CFN_COND_MUL too.
17834
17835 2019-07-30 Richard Biener <rguenther@suse.de>
17836
17837 PR tree-optimization/91291
17838 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17839 constant values.
17840
17841 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17842
17843 PR middle-end/91216
17844 * omp-low.c (global_nonaddressable_vars): New variable.
17845 (use_pointer_for_field): For global decls, if they are non-addressable,
17846 remember it in the global_nonaddressable_vars bitmap, if they are
17847 addressable and in the global_nonaddressable_vars bitmap, ignore their
17848 TREE_ADDRESSABLE bit.
17849 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17850 vars in global_nonaddressable_vars bitmap.
17851 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17852
17853 PR target/91150
17854 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17855 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17856 comparison to unsigned HOST_WIDE_INT before shifting it left.
17857
17858 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17859
17860 * config/i386/i386.md (movstrict<mode>): Use register_operand
17861 predicate for operand 0. Add expander condition. Assert that
17862 operand 0 is a SUBREG RTX.
17863 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17864 Update operand constraints and insn condition.
17865 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17866 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17867 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17868 Update operand 0 constraints.
17869 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17870
17871 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17872
17873 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17874 when -m{code,data}-region are used without -mlarge.
17875 * config/msp430/msp430.c (msp430_option_override): Error when a
17876 non-default code or data region is used without -mlarge.
17877 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17878 attributes when they are used without -mlarge.
17879
17880 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17881
17882 PR target/70320
17883 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17884
17885 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17886
17887 PR middle-end/91242
17888 * wide-int.h (generic_wide_int::sext_elt): New function.
17889 * inchash.h (hash::add_wide_int): Use it instead of elt.
17890
17891 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17892
17893 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17894 CODE_FOR_arm_##.
17895 * config/arm/arm.md (<crc_variant>): Rename to...
17896 (arm_<crc_variant>): ... This.
17897 (<cdp>): Rename to...
17898 (arm_<cdp>): ... This.
17899 (<ldc>): Rename to...
17900 (arm_<ldc>): ... This.
17901 (<stc>): Rename to...
17902 (arm_<stc>): ... This.
17903 (<mcr>): Rename to...
17904 (arm_<mcr>): ... This.
17905 (<mrc>): Rename to...
17906 (arm_<mrc>): ... This.
17907 (<mcrr>): Rename to...
17908 (arm_<mcrr>): ... This.
17909 (<mrrc>): Rename to...
17910 (arm_<mrrc>): ... This.
17911
17912 2019-07-29 Richard Biener <rguenther@suse.de>
17913
17914 PR tree-optimization/91257
17915 * tree-ssa-sccvn.h (struct vn_avail): New.
17916 (struct vn_ssa_aux): Add avail member.
17917 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17918 member, add m_avail_freelist one.
17919 (rpo_elim::~rpo_elim): Remove.
17920 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17921 data structure.
17922 (rpo_elim::eliminate_push_avail): Likewise.
17923 (do_unwind): Likewise.
17924 (do_rpo_vn): Likewise.
17925
17926 2019-07-29 Richard Biener <rguenther@suse.de>
17927
17928 PR tree-optimization/91257
17929 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17930 most cases, instead call compare_values which handles the
17931 symbolic ranges we handle specially.
17932 (compare_values_warnv): Do not call operand_less_p but open-code
17933 the effective fold calls. Avoid converting so much.
17934
17935 2019-07-29 Martin Liska <mliska@suse.cz>
17936
17937 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17938 remove LHS of operator new call. It's handled latter.
17939
17940 2019-07-29 Richard Biener <rguenther@suse.de>
17941
17942 PR tree-optimization/91267
17943 * vr-values.c (vr_values::update_value_range): Add early return
17944 for effectively VARYING lattice entry.
17945
17946 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17947
17948 PR debug/86638
17949 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17950 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17951 necessary if keep_all_vdefs_p is true.
17952 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17953 that keep_all_vdefs_p is false.
17954 (mark_all_reaching_defs_necessary): Likewise.
17955 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17956
17957 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17958
17959 * common.opt (Og): Change the initial value of flag_dse to 0.
17960 * opts.c (default_options_table): Move OPT_ftree_dse from
17961 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17962 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17963 entry before the OPT_ftree_sra entry.
17964 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17965 of flags disabled by Og.
17966
17967 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17968
17969 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17970 variables for -Og.
17971
17972 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17973
17974 * doc/sourcebuild.texi (check-function-bodies): Document.
17975
17976 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17977
17978 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17979 VEC_DUPLICATE of a fixed-length vector even if the result
17980 is variable-length. Likewise fold a duplicate of a
17981 variable-length vector if the variable-length vector is
17982 itself a duplicate of a fixed-length sequence.
17983 (test_vector_ops_duplicate): Test more cases.
17984
17985 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17986
17987 * vector-builder.h (vector_builder): Add a shape template parameter.
17988 (vector_builder::new_unary_operation): New function, generalizing
17989 the old tree_vector_builder function.
17990 (vector_builder::new_binary_operation): Likewise.
17991 (vector_builder::binary_encoded_nelts): Likewise.
17992 * int-vector-builder.h (int_vector_builder): Update template
17993 parameters to vector_builder.
17994 (int_vector_builder::shape_nelts): New function.
17995 * rtx-vector-builder.h (rtx_vector_builder): Update template
17996 parameters to vector_builder.
17997 (rtx_vector_builder::shape_nelts): New function.
17998 (rtx_vector_builder::nelts_of): Likewise.
17999 (rtx_vector_builder::npatterns_of): Likewise.
18000 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18001 * tree-vector-builder.h (tree_vector_builder): Update template
18002 parameters to vector_builder.
18003 (tree_vector_builder::shape_nelts): New function.
18004 (tree_vector_builder::nelts_of): Likewise.
18005 (tree_vector_builder::npatterns_of): Likewise.
18006 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18007 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18008 (tree_vector_builder::new_binary_operation): Delete.
18009 (tree_vector_builder::binary_encoded_nelts): Likewise.
18010 * simplify-rtx.c: Include rtx-vector-builder.h.
18011 (distributes_over_addition_p): New function.
18012 (simplify_const_unary_operation)
18013 (simplify_const_binary_operation): Generalize handling of vector
18014 constants to include variable-length vectors.
18015 (test_vector_ops_series): Add more tests.
18016
18017 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18018
18019 PR lto/91222
18020 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18021 than INDENTIFIER_POINTER.
18022
18023 2019-07-28 Martin Liska <mliska@suse.cz>
18024
18025 PR ipa/89330
18026 * cgraph.c (symbol_table::create_edge): Always allocate
18027 a cgraph_edge.
18028 (symbol_table::free_edge): Store summary_id to
18029 edge_released_summary_ids if != -1;
18030 * cgraph.h (NEXT_FREE_NODE): Remove.
18031 (SET_NEXT_FREE_NODE): Likewise.
18032 (NEXT_FREE_EDGE): Likewise.
18033 (symbol_table::release_symbol): Store summary_id to
18034 cgraph_released_summary_ids if != -1;
18035 (symbol_table::allocate_cgraph_symbol): Always allocate
18036 a cgraph_node.
18037
18038 2019-07-28 Alan Modra <amodra@gmail.com>
18039
18040 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18041 gen_sibcall.
18042
18043 2019-07-28 Alan Modra <amodra@gmail.com>
18044
18045 PR target/91135
18046 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18047 define.
18048 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18049 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18050 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18051
18052 2019-07-28 Alan Modra <amodra@gmail.com>
18053
18054 PR target/91050
18055 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18056 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18057 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18058 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18059 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18060 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18061 in asm_default spec.
18062 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18063 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18064
18065 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18066
18067 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18068
18069 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18070
18071 PR target/89517
18072 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18073 * config/aarch64/aarch64-option-extensions.def: Add new comments
18074 and restore easier to read options.
18075
18076 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18077
18078 * convert.c (convert_to_real_1): Move part of conversion code...
18079 * match.pd: ...To here.
18080
18081 2019-07-26 Martin Jambor <mjambor@suse.cz>
18082
18083 PR ipa/89330
18084 * ipa-inline-transform.c (check_speculations_1): New function.
18085 (push_all_edges_in_set_to_vec): Likewise.
18086 (check_speculations): Use check_speculations_1, new parameter
18087 new_edges.
18088 (inline_call): Pass new_edges to check_speculations.
18089 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18090 NULL.
18091 (speculation_useful_p): Early return true if edge is inlined, remove
18092 later checks for inline_failed.
18093
18094 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18095
18096 PR rtl-optimization/91223
18097 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18098 matching with INOUT operand.
18099
18100 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18101
18102 * stmt.c (expand_case): Try to narrow the index type if it's larger
18103 than a word. Tidy up.
18104
18105 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18106
18107 * cif-code.def (NEVER_CALL): New code.
18108 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18109 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18110
18111 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18112
18113 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18114 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18115
18116 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18117
18118 * ipa-devirt.c (add_type_duplicate): Fix return value.
18119
18120 2019-07-25 Richard Biener <rguenther@suse.de>
18121
18122 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18123 type parameter and use it instead of guessing expression
18124 type from the first operand.
18125 (extract_range_from_binary_expr): Pass expr_type down.
18126
18127 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18128
18129 * config/arm/arm.md (SATrev): Change to code attribute.
18130 (*satsi_<SAT:code>): Adjust for the above.
18131 (*satsi_<SAT:code>_shift): Likewise.
18132
18133 2019-07-25 Richard Biener <rguenther@suse.de>
18134
18135 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18136 Make value_range * temporary const.
18137 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18138 Likewise.
18139 (evrp_range_analyzer::record_ranges_from_): Likewise.
18140 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18141 deal with having recorded a const one.
18142 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18143 Return a const value_range *.
18144 (evrp_range_analyzer::pop_value_range): Likewise.
18145 (evrp_range_analyzer::stack): Record const value_range *s.
18146 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18147 Adjust.
18148 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18149 (format_integer): Likewise.
18150 (sprintf_dom_walker::handle_gimple_call): Likewise.
18151 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18152 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18153 (vrp_prop::get_value_range): Adjust.
18154 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18155 modifying the lattice in-place.
18156 (vrp_prop::visit_stmt): Likewise.
18157 * vr-values.c (vr_values::get_lattice_entry): New private method.
18158 (vr_values::get_value_range): Wrap it and return a const
18159 value_range *.
18160 (vr_values::set_def_to_varying): New.
18161 (vr_values::set_defs_to_varying): Use it.
18162 (vr_values::update_value_range): Likewise.
18163 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18164 (values::op_with_constant_singleton_va): Likewise.
18165 (vr_values::extract_range_for_var_from_co): Likewise.
18166 (vr_values::extract_range_from_ssa_name): Likewise.
18167 (vr_values::extract_range_from_cond_expr): Likewise.
18168 (vr_values::extract_range_basic): Likewise.
18169 (compare_ranges): Take const value_range *, adjust.
18170 (compare_range_with_value): Likewise.
18171 (vrp_valueize): Adjust.
18172 (vrp_valueize_1): Likewise.
18173 (vr_values::get_vr_for_comparison): Return a const value_range *.
18174 (vr_values::compare_name_with_value): Adjust.
18175 (vr_values::compare_names): Likewise.
18176 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18177 Likewise.
18178 (vr_values::vrp_evaluate_conditional): Likewise.
18179 (find_case_label_ranges): Take a const value_range *.
18180 (vr_values::vrp_visit_switch_stmt): Adjust.
18181 (vr_values::extract_range_from_phi_node): Likewise.
18182 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18183 (vr_values::simplify_abs_using_ranges): Likewise.
18184 (test_for_singularity): Take a const value_range *.
18185 (range_fits_type_p): Likewise.
18186 (vr_values::simplify_cond_using_ranges_1): Adjust.
18187 (vr_values::simplify_cond_using_ranges_2): Likewise.
18188 (vr_values::simplify_switch_using_ranges): Likewise.
18189 (vr_values::simplify_float_conversion_usi): Likewise.
18190 (vr_values::two_valued_val_range_p): Likewise.
18191 * vr-values.h (vr_values::get_value_range): Return a const
18192 value_range *.
18193 (vr_values::set_def_to_varying): New.
18194 (vr_values::get_lattice_entry): New private method.
18195 (vr_values::get_vr_for_comparison): Return a const value_range *.
18196
18197 2019-07-25 Martin Liska <mliska@suse.cz>
18198 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18199
18200 PR c++/23383
18201 * common.opt: Add -fallocation-dce
18202 * gimple.c (gimple_call_operator_delete_p): New.
18203 * gimple.h (gimple_call_operator_delete_p): Likewise.
18204 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18205 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18206 DECL_IS_OPERATOR_DELETE_P.
18207 (mark_all_reaching_defs_necessary_1): Likewise.
18208 (propagate_necessity): Likewise.
18209 (eliminate_unnecessary_stmts): Handle
18210 gimple_call_operator_delete_p.
18211 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18212 Add packing of OPERATOR_DELETE.
18213 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18214 Similarly here.
18215 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18216 (DECL_SET_IS_OPERATOR_DELETE): New.
18217 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18218
18219 2019-07-25 Martin Liska <mliska@suse.cz>
18220
18221 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18222 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18223 * coverage.c (coverage_begin_function): Likewise.
18224 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18225 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18226 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18227 (sem_item::hash_referenced_symbol_properties): Likewise.
18228 * lto-streamer-out.c (hash_tree): Likewise.
18229 * predict.c (expr_expected_value_1): Likewise.
18230 * tree-inline.c (expand_call_inline): Likewise.
18231 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18232 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18233 * tree-core.h (enum function_decl_type): New enum.
18234 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18235 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18236 (set_function_decl_type): Likewise.
18237 (DECL_IS_OPERATOR_NEW_P): New.
18238 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18239 (DECL_LAMBDA_FUNCTION): Likewise.
18240 (DECL_LAMBDA_FUNCTION_P): Likewise.
18241 (DECL_IS_OPERATOR_NEW): Remove.
18242 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18243
18244 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18245
18246 * ipa-profile.c (get_most_common_single_value): Use
18247 get_nth_most_common_value.
18248 * profile.c (sort_hist_value): New function.
18249 (compute_value_histograms): Call sort_hist_value to sort the
18250 values after loading from disk.
18251 * value-prof.c (get_most_common_single_value): Rename to ...
18252 get_nth_most_common_value. Add input params n, return
18253 the n_th value and count.
18254 (gimple_divmod_fixed_value_transform): Use
18255 get_nth_most_common_value.
18256 (gimple_ic_transform): Likewise.
18257 (gimple_stringops_transform): Likewise.
18258 * value-prof.h (get_most_common_single_value): Add input params
18259 n, default to 0.
18260
18261 2019-07-25 Richard Biener <rguenther@suse.de>
18262
18263 PR tree-optimization/91236
18264 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18265 size of CONSTRUCTOR write. Fix buffer size we pass to
18266 native_encode_expr.
18267
18268 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18269
18270 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18271 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18272 r273773.
18273
18274 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18275
18276 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18277 explicitly disabled with --disable-initfini-array.
18278
18279 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18280
18281 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18282 if-exists.
18283
18284 2019-07-24 Martin Sebor <msebor@redhat.com>
18285
18286 PR tree-optimization/91183
18287 PR tree-optimization/86688
18288 * builtins.c (compute_objsize): Handle MEM_REF.
18289 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18290 (get_min_string_length): Remove.
18291 (count_nonzero_bytes): New function.
18292 (handle_char_store): Rename...
18293 (handle_store): to this. Handle multibyte stores via integer types.
18294 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18295 function name.
18296
18297 2019-07-24 Martin Sebor <msebor@redhat.com>
18298
18299 PR driver/80545
18300 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18301 (diagnostic_report_diagnostic): Same.
18302 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18303 (diagnostic_context::lang_mask): New data member.
18304 * ipa-pure-const.c (suggest_attribute): Use
18305 lang_hooks.option_lang_mask ().
18306 * opts-common.c (option_enabled): Handle new argument.
18307 (get_option_state): Pass an additional argument.
18308 * opts.c (print_filtered_help): Print supported languages for
18309 unsupported options. Adjust printing of current state.
18310 * opts.h (option_enabled): Add argument.
18311 * toplev.c (print_switch_values): Use lang_mask.
18312 (general_init): Set global_dc->lang_mask.
18313
18314 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18315
18316 PR bootstrap/87030
18317 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18318
18319 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18320
18321 * cgraphunit.c (symbol_table::compile): Start and stop
18322 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18323 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18324
18325 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18326
18327 * gimplify.c (flag_instrument_functions_exclude_p): Include
18328 namespace/class information in the printable name.
18329 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18330 to tokens entered into the vector.
18331
18332 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18333
18334 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18335 (get_static_chain): Call it instead of build_simple_mem_ref.
18336 (get_frame_field): Likewise.
18337 (get_nonlocal_debug_decl): Likewise.
18338 (convert_nonlocal_reference_op): Likewise.
18339
18340 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18341
18342 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18343 declaration.
18344 (arc_compute_frame_size): Millicode is disabled when compiling
18345 ISR.
18346 (arc_return_address_register): Likewise.
18347 (arc_compute_function_type): Likewise.
18348 (arc_compute_frame_size): Likewise.
18349 (secondary_reload_info): Likewise.
18350 (arc_get_unalign): Likewise.
18351 (arc_can_use_return_insn): Declare.
18352 * config/arc/arc.c (AUX_LP_START): Define
18353 (AUX_LP_END): Likewise.
18354 (arc_frame_info): Update gmask member to 64-bit datum.
18355 (GMASK_LEN): Update.
18356 (arc_compute_function_type): Make it static, move it forward.
18357 (arc_must_save_register): Update, consider the extra regs.
18358 (arc_compute_millicode_save_restore_regs): Update to use the 64
18359 bit gmask.
18360 (arc_compute_frame_size): Likewise.
18361 (arc_enter_leave_p): Likewise.
18362 (arc_save_callee_saves): Likewise.
18363 (arc_restore_callee_saves): Likewise.
18364 (arc_save_callee_enter): Likewise.
18365 (arc_restore_callee_leave): Likewise.
18366 (arc_save_callee_milli): Likewise.
18367 (arc_restore_callee_milli): Likewise.
18368 (arc_expand_prologue): Add new interrupt handling.
18369 (arc_return_address_register): Make it static, move it forward.
18370 (arc_expand_epilogue): Add new interrupt handling.
18371 (arc_get_unalign): Delete.
18372 (arc_epilogue_uses): Make sure we do not remove the extra
18373 saved/restored registers when interrupt.
18374 (arc_can_use_return_insn): New function.
18375 (push_reg): Likewise.
18376 (pop_reg): Likewise.
18377 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18378 procedures.
18379 (arc_restore_callee_saves): Likewise, but restoring.
18380 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18381 (R33_REG): Likewise.
18382 (R34_REG): Likewise.
18383 (R35_REG): Likewise.
18384 (R36_REG): Likewise.
18385 (R37_REG): Likewise.
18386 (R38_REG): Likewise.
18387 (R39_REG): Likewise.
18388 (R45_REG): Likewise.
18389 (R46_REG): Likewise.
18390 (R47_REG): Likewise.
18391 (R48_REG): Likewise.
18392 (R49_REG): Likewise.
18393 (R50_REG): Likewise.
18394 (R51_REG): Likewise.
18395 (R52_REG): Likewise.
18396 (R53_REG): Likewise.
18397 (R54_REG): Likewise.
18398 (R55_REG): Likewise.
18399 (R56_REG): Likewise.
18400 (R58_REG): Likewise.
18401 (type): Add rtie attribute.
18402 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18403 (movsi_insn): Accept moves to lp_count.
18404 (rtie): Update pattern.
18405 (simple_return): Simplify it, don't use this pattern as a return
18406 from an interrupt.
18407 (arc600_rtie): New pattern.
18408 (p_return_i): Clean up.
18409 (return): Likewise.
18410 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18411 family CPUs.
18412 * config/arc/predicates.md (move_src_operand): Consider lp_count
18413 as a register.
18414
18415 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18416
18417 * config/s390/predicates.md (addv_const_operand): New predicate.
18418 * config/s390/s390-modes.def (CCO): New condition code mode.
18419 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18420 (s390_branch_condition_mask): Likewise.
18421 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18422 ("mulv<mode>4"): New expanders.
18423 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18424 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18425 pattern definitions.
18426
18427 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18428
18429 PR middle-end/91166
18430 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18431 (define_predicates): Add entry for uniform_vector_p.
18432 (vec_same_elem_p): New match pattern.
18433
18434 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18435
18436 PR bootstrap/87030
18437 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18438 * config/i386/darwin32-biarch.h .. to here.
18439 * config/i386/darwin64-biarch.h: Adjust comments.
18440 * config/rs6000/darwin32-biarch.h: Likewise.
18441 * config/rs6000/darwin64-biarch.h: Likewise.
18442 * config.gcc: Missed commit from r273746
18443 (*-*-darwin*): Don't include CPU t-darwin here.
18444 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18445 an error message if i686-darwin configuration is attempted for
18446 Darwin >= 18.
18447
18448 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18449
18450 PR bootstrap/87030
18451 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18452 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18453 an error message if i686-darwin configuration is attempted for
18454 Darwin >= 18.
18455 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18456 (powerpc-*-darwin*): Use biarch files where needed.
18457 (powerpc64-*-darwin*): Likewise.
18458 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18459 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18460 arch case.
18461 * config/i386/darwin32-biarch.h: New.
18462 * config/i386/darwin64.h: Rename.
18463 * config/i386/darwin64-biarch.h: To this.
18464 * config/i386/t-darwin: Rename.
18465 * config/i386/t-darwin32-biarch: To this.
18466 * config/i386/t-darwin64: Rename.
18467 * config/i386/t-darwin64-biarch: To this.
18468 * config/rs6000/darwin32-biarch.h: New.
18469 * config/rs6000/darwin64.h: Rename.
18470 * config/rs6000/darwin64-biarch.h: To this.
18471 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18472 arch case.
18473 * config/rs6000/t-darwin8: Rename.
18474 * config/rs6000/t-darwin32-biarch: To this.
18475 * config/rs6000/t-darwin64 Rename.
18476 * config/rs6000/t-darwin64-biarch: To this.
18477
18478 2019-07-23 Martin Sebor <msebor@redhat.com>
18479
18480 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18481
18482 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18483
18484 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18485 (rh): New alias for it.
18486
18487 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18488
18489 * gdbhooks.py: Pass replace=True to
18490 gdb.printing.register_pretty_printer.
18491
18492 2019-07-23 Richard Biener <rguenther@suse.de>
18493
18494 PR debug/91231
18495 * lto-streamer-in.c (input_function): Drop inline-entry markers
18496 that ended up with an unknown location block.
18497
18498 2019-07-23 Richard Biener <rguenther@suse.de>
18499
18500 PR tree-optimization/83518
18501 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18502 init from a constant even when partial defs are already recorded.
18503
18504 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18505
18506 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18507 * config/i386/znver1.md: Enable patterns for znver2 and add store
18508 variants which use extra AGU unit.
18509
18510 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18511
18512 * config/i386/i386-options.c (ix86_option_override_internal): Default
18513 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18514 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18515 for ZNVER2.
18516
18517 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18518
18519 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18520 (znver2_costs): Update 256 bit SSE costs and multiplication.
18521
18522 2019-07-23 Jan Beulich <jbeulich@suse.com>
18523
18524 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18525 Require only AVX512F.
18526 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18527 alternative expanding to vpternlog.
18528
18529 2019-07-23 Martin Liska <mliska@suse.cz>
18530
18531 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18532 to -flto in dwarf producer string.
18533
18534 2019-07-23 Richard Biener <rguenther@suse.de>
18535
18536 * tree-cfg.c (label_for_bb): Remove global var.
18537 (main_block_label): Take label_for_bb as argument.
18538 (cleanup_dead_labels_eh): Likewise, adjust.
18539 (cleanup_dead_labels): Adjust.
18540
18541 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18542
18543 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18544 Configurations): Add documentation for __builtin_mtfsf.
18545
18546 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18547
18548 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18549 * config/riscv/riscv.c (riscv_constant_alignment): Use
18550 riscv_align_data_type.
18551 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18552 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18553 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18554 * config/riscv/riscv.opt (malign-data): New.
18555 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18556
18557 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18558
18559 * cgraph.c (dump_graphviz): New function.
18560 * cgraph.h (dump_graphviz): New function.
18561 * symtab.c (dump_graphviz): New function.
18562
18563 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18564
18565 * config/aarch64/aarch64-simd.md
18566 (*aarch64_simd_sra<mode>): New.
18567 * config/aarch64/iterators.md
18568 (SHIFTRT): New iterator.
18569 (sra_op): New attribute.
18570
18571 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18572
18573 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18574 callee-saved regs R4->R10 in an interrupt function that calls another
18575 function.
18576
18577 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18578
18579 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18580 (_mm_blendv_epi8): New.
18581
18582 2019-07-22 Richard Biener <rguenther@suse.de>
18583
18584 PR tree-optimization/91221
18585 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18586 restrict partial-def handling of empty constructors and
18587 memset to refs with known offset.
18588
18589 2019-07-22 Jan Beulich <jbeulich@suse.com>
18590
18591 * config/i386/sse.md (ternlogsuffix): New.
18592 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18593 AVX512F is in use.
18594 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18595
18596 2019-07-22 Martin Liska <mliska@suse.cz>
18597
18598 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18599 comment.
18600 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18601
18602 2019-07-22 Martin Liska <mliska@suse.cz>
18603
18604 * lto-section-in.c (lto_get_section_data):
18605 Use new function get_compression.
18606 * lto-streamer-out.c (produce_lto_section): Use
18607 set_compression to encode compression algorithm.
18608 * lto-streamer.h (struct lto_section): Do not
18609 use bitfields in the format.
18610
18611 2019-07-22 Martin Liska <mliska@suse.cz>
18612
18613 PR driver/91172
18614 * opts-common.c (decode_cmdline_option): Decode
18615 argument of -Werror and check it for a wrong language.
18616 * opts-global.c (complain_wrong_lang): Remove such case.
18617
18618 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18619
18620 * config/arc/arc.c (prepare_move_operands): Always use an
18621 intermediate register when storing a TLS symbols.
18622
18623 2019-07-22 Stafford Horne <shorne@gmail.com>
18624
18625 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18626 force_reg.
18627
18628 2019-07-22 Stafford Horne <shorne@gmail.com>
18629
18630 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18631 and munordered-float validations.
18632 * config/or1k/constraints.md (d): New register constraint.
18633 * config/or1k/predicates.md (fp_comparison_operator): New.
18634 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18635 operands.
18636 (or1k_expand_compare): Normalize unordered comparisons.
18637 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18638 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18639 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18640 * config/or1k/or1k.md (type): Add fpu.
18641 (fpu): New instruction reservation.
18642 (F, f, fr, fi, FI, FOP, fop): New.
18643 (<fop><F:mode>3): New ALU instruction definition.
18644 (float<fi><F:mode>2): New conversion instruction definition.
18645 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18646 (fpcmpcc): New code iterator.
18647 (*sf_fp_insn): New instruction definition.
18648 (cstore<F:mode>4): New expand definition.
18649 (cbranch<F:mode>4): New expand definition.
18650 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18651 munordered-float): New options.
18652 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18653 munordered-float.
18654
18655 2019-07-22 Stafford Horne <shorne@gmail.com>
18656
18657 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18658 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18659 documenation to be more clear.
18660 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18661 more clear.
18662 * config/or1k/or1k.opt (mrori): New option.
18663 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18664 msfimm, mshftimm): Rewrite documentation to be more clear.
18665 * config/or1k/or1k.md (insn_support): Add ror and rori.
18666 (enabled): Add conditions for ror and rori.
18667 (rotrsi3): Replace condition for shftimm with ror and rori.
18668
18669 2019-07-22 Stafford Horne <shorne@gmail.com>
18670
18671 PR target/90363
18672 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18673 (extend<mode>si2): Update predicate.
18674 * config/or1k/predicates.md (volatile_mem_operand): New.
18675 (reg_or_mem_operand): New.
18676
18677 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18678
18679 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18680 * config/rs6000/rs6000-call.c: ... to here.
18681
18682 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18683
18684 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18685 memory.
18686
18687 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18688
18689 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18690
18691 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18692
18693 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18694
18695 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18696
18697 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18698 (any_memory_operand): New predicate.
18699 (reg_or_mem_operand): Use it.
18700
18701 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18702
18703 PR target/91204
18704 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18705
18706 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18707
18708 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18709 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18710
18711 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18712
18713 * tree.def (OMP_LOOP): New tree code.
18714 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18715 (enum omp_clause_bind_kind): New enum.
18716 (struct tree_omp_clause): Add subcode.bind_kind.
18717 * tree.h (OMP_LOOP_CHECK): Rename to ...
18718 (OMP_LOOPING_CHECK): ... this.
18719 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18720 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18721 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18722 (OMP_CLAUSE_BIND_KIND): Define.
18723 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18724 bind clause entries.
18725 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18726 * tree-pretty-print.c (dump_omp_clause): Likewise.
18727 (dump_generic_node): Handle OMP_LOOP.
18728 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18729 (in_omp_construct): New variable.
18730 (is_gimple_stmt): Handle OMP_LOOP.
18731 (gimplify_scan_omp_clauses): For lastprivate don't set
18732 check_non_private if code == OMP_LOOP. For reduction clause
18733 on OMP_LOOP combined with parallel or teams propagate as shared
18734 on the combined construct. Handle OMP_CLAUSE_BIND.
18735 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18736 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18737 for constructs from a loop construct to gimplify_scan_omp_clauses.
18738 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18739 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18740 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18741 to match the implicit ORT_TARGET construct around whole body.
18742 Temporarily clear in_omp_construct when processing body.
18743 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18744 etc. temporarily set in_omp_construct when processing body.
18745 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18746 * omp-low.c (struct omp_context): Add loop_p.
18747 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18748 in that the original var might be private.
18749 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18750 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18751 addition of loop construct.
18752 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18753
18754 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18755 lastprivate non-addressable iterator of a collapse(1) simd.
18756
18757 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18758
18759 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18760 as in rs6000.c.
18761
18762 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18763
18764 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18765 refer to default conditions. Warn for the 'y' spec which is ignored
18766 by current linkers.
18767
18768 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18769
18770 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18771 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18772 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18773 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18774 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18775 init_cumulative_args, rs6000_promote_function_mode,
18776 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18777 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18778 rs6000_function_arg_boundary, rs6000_parm_offset,
18779 rs6000_parm_start, rs6000_arg_size,
18780 rs6000_darwin64_record_arg_advance_flush,
18781 rs6000_darwin64_record_arg_advance_recurse,
18782 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18783 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18784 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18785 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18786 rs6000_finish_function_arg, rs6000_function_arg,
18787 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18788 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18789 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18790 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18791 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18792 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18793 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18794 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18795 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18796 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18797 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18798 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18799 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18800 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18801 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18802 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18803 get_element_number, altivec_expand_vec_set_builtin,
18804 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18805 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18806 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18807 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18808 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18809 rs6000_expand_builtin, rs6000_vector_type,
18810 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18811 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18812 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18813 to rs6000-call.c.
18814 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18815 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18816 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18817 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18818 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18819 init_cumulative_args, rs6000_promote_function_mode,
18820 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18821 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18822 rs6000_function_arg_boundary, rs6000_parm_offset,
18823 rs6000_parm_start, rs6000_arg_size,
18824 rs6000_darwin64_record_arg_advance_flush,
18825 rs6000_darwin64_record_arg_advance_recurse,
18826 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18827 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18828 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18829 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18830 rs6000_finish_function_arg, rs6000_function_arg,
18831 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18832 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18833 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18834 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18835 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18836 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18837 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18838 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18839 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18840 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18841 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18842 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18843 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18844 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18845 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18846 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18847 get_element_number, altivec_expand_vec_set_builtin,
18848 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18849 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18850 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18851 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18852 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18853 rs6000_expand_builtin, rs6000_vector_type,
18854 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18855 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18856 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18857 to here from rs6000.c.
18858 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18859 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18860 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18861 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18862 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18863 rs6000_return_in_memory, rs6000_return_in_msb,
18864 rs6000_pass_by_reference, setup_incoming_varargs,
18865 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18866 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18867 rs6000_function_arg_padding, rs6000_function_arg,
18868 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18869 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18870 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18871 rs6000_passes_long_double, rs6000_passes_vector,
18872 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18873 altivec_builtin_mask_for_load) Add declarations.
18874 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18875 * config/config.gcc: Add new source file rs6000-call.c to garbage
18876 collector and extra_objs.
18877
18878 2019-07-19 Jeff Law <law@redhat.com>
18879
18880 PR tree-optimization/86061
18881 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18882 strncpy. Drop some trivial dead code.
18883 (maybe_trim_memstar_call): Handle strncpy.
18884
18885 2019-07-19 Richard Biener <rguenther@suse.de>
18886
18887 PR tree-optimization/91211
18888 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18889 memset encoding size.
18890
18891 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18892
18893 PR target/91204
18894 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18895
18896 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18897
18898 PR ipa/91194
18899 * ipa-inline.c (recursive_inlining): Fix limits check.
18900
18901 2019-07-19 Richard Biener <rguenther@suse.de>
18902
18903 PR tree-optimization/91200
18904 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18905 no PHI nodes in middle-bb.
18906
18907 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18908
18909 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18910 to +sve-bitperm.
18911 * config/aarch64/aarch64-option-extensions.def: Likewise.
18912
18913 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18914
18915 PR middle-end/91190
18916 * function.c (insert_temp_slot_address): Store into the hash table
18917 a copy of address to avoid RTL sharing issues.
18918
18919 2019-07-19 Richard Biener <rguenther@suse.de>
18920
18921 PR tree-optimization/91207
18922 Revert
18923 2019-07-17 Richard Biener <rguenther@suse.de>
18924
18925 PR tree-optimization/91178
18926 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18927 loads with a gap larger than the vector size always use
18928 VMAT_STRIDED_SLP.
18929 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18930 avoid loading vectors that are only contained in the gap
18931 and thus are not needed.
18932
18933 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18934
18935 * config/i386/i386.md (*addqi_2_slp): Remove.
18936 (*<code>qi_2_slp): Ditto.
18937
18938 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18939
18940 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18941 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18942 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18943 Rename function from rs6000_prefixed_address.
18944 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18945 TARGET_HAS_TOC.
18946 (TARGET_TOC): Likewise.
18947 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18948 rs6000.h.
18949 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18950 TARGET_HAS_TOC.
18951 (TARGET_TOC): Likewise.
18952 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18953 rs6000.h.
18954 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18955 TARGET_HAS_TOC.
18956 (TARGET_TOC): Likewise.
18957 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18958 check to require -mcmodel=medium for pc-relative addressing.
18959 (create_TOC_reference): Add assertion for TARGET_TOC.
18960 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18961 TARGET_NO_TOC.
18962 (rs6000_emit_move): Likewise.
18963 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18964 to 'TOC_alias_set'.
18965 (get_TOC_alias_set): Likewise.
18966 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18967 TARGET_NO_TOC.
18968 (rs6000_can_eliminate): Likewise.
18969 (rs6000_prefixed_address_mode_p): Rename function from
18970 rs6000_prefixed_address.
18971 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18972 TARGET_HAS_TOC and not pc-relative.
18973 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18974 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18975 TARGET_HAS_TOC.
18976 (TARGET_TOC): Likewise.
18977 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18978 rs6000.h.
18979
18980 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18981
18982 PR target/91188
18983 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18984 for operand 0. Do not use (match_dup) to match operand 1 with
18985 operand 0. Add check in insn constraint that either input operand
18986 matches operand 0. Use SWI12 mode iterator to also handle
18987 HImode operands.
18988 (*and<mode>_1_slp): Ditto.
18989 (*<code>qi_1_slp): Ditto.
18990 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18991 Do not use (match_dup) to match operand 1 with operand 0. Add
18992 check in insn constraint that operand 1 matches operand 0.
18993 Use SWI12 mode iterator to also handle HImode operands.
18994 (*ashl<mode>3_1_slp): Ditto.
18995 (*<shift_insn><mode>3_1_slp): Ditto.
18996 (*<rotate_insn><mode>3_1_slp): Ditto.
18997
18998 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18999
19000 * config/arm/arm-builtins.c
19001 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19002 (arm_expand_unop_builtin): Likewise.
19003 * config/arm/crypto.md
19004 (crypto_sha1h): Convert from define_insn to define_expand.
19005 (crypto_<crypto_pattern>): Likewise.
19006 (crypto_sha1h_lb): New define_insn.
19007 (crypto_<crypto_pattern>_lb): Likewise.
19008
19009 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19010
19011 PR target/90317
19012 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19013 (vsha1cq_u32): Likewise.
19014 (vsha1pq_u32): Likewise.
19015 (vsha1mq_u32): Likewise.
19016 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19017 vec select.
19018 (crypto_sha1c): Correct vec select.
19019 (crypto_sha1m): Likewise.
19020 (crypto_sha1p): Likewise.
19021
19022 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19023
19024 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19025 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19026 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19027 (subdi_zesidi_zesidi): Likewise.
19028 (negdi2_compare, negdi2_insn): Likewise.
19029 (negdi_extensidi): Likewise.
19030 (negdi_zero_extendsidi): Likewise.
19031 (arm_cmpdi_insn): Likewise.
19032 (subsi3_carryin): Use arm_borrow_operation.
19033 (subsi3_carryin_const): Likewise.
19034 (subsi3_carryin_const0): Likewise.
19035 (subsi3_carryin_compare): Likewise.
19036 (subsi3_carryin_compare_const): Likewise.
19037 (subsi3_carryin_compare_const0): Likewise.
19038 (subsi3_carryin_shift): Likewise.
19039 (rsbsi3_carryin_shift): Likewise.
19040 (negsi2_carryin_compare): Likewise.
19041
19042 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19043
19044 PR tree-optimization/91137
19045 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19046 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19047 Init, use and fini the above new field.
19048 (determine_base_object_1): New function.
19049 (determine_base_object): Reimplement using walk_tree.
19050
19051 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19052
19053 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19054 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19055 CLEANUP_FORCE_FAST_DCE is set.
19056 * ifcvt.c (rest_of_handle_if_conversion): Pass
19057 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19058 if-conversion succeeded.
19059
19060 2019-07-18 Richard Biener <rguenther@suse.de>
19061
19062 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19063 branches to make code less indented.
19064
19065 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19066
19067 PR middle-end/81824
19068 * attribs.c (decls_mismatched_attributes): Simplify the logic
19069 that avoids duplicates and false positives.
19070
19071 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19072
19073 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19074 data into data section when generating PIC code.
19075 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19076 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19077 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19078 return 2 for SOM and 0 for other targets.
19079
19080 2019-07-17 Jeff Law <law@redhat.com>
19081
19082 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19083 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19084 avoid unexpected switch statement fallthru.
19085
19086 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19087
19088 * config/i386/i386.md (*add<dwi>3_doubleword):
19089 Remove redundant constraints.
19090 (*add<mode>_1): Ditto.
19091 (*addhi_1): Ditto.
19092 (*addqi_1): Ditto.
19093 (*addqi_1_slp): Ditto.
19094 (*add<mode>_2): Ditto.
19095 (*addv<mode>4): Ditto.
19096 (*sub<dwi>3_doubleword): Ditto.
19097 (*sub<mode>_1): Ditto.
19098 (*subqi_1_slp): Ditto.
19099 (*sub<mode>_2): Ditto.
19100 (*subv<mode>4): Ditto.
19101 (*sub<mode>_3): Ditto.
19102 (@add<mode>3_carry): Ditto.
19103 (@sub<mode>3_carry): Ditto.
19104 (*add<mode>3_cc_overflow_1): Ditto.
19105 (*add<mode>3_zext_cc_overflow_2): Ditto.
19106 (*anddi_1): Ditto.
19107 (*and<mode>_1): Ditto.
19108 (*andqi_1): Ditto.
19109 (*andqi_1_slp): Ditto.
19110 (*anddi_2): Ditto.
19111 (*andqi_2_maybe_si): Ditto.
19112 (*and<mode>_2): Ditto.
19113 (*andqi_2_slp): Ditto.
19114 (*<code><mode>_1): Ditto.
19115 (*<code>qi_1): Ditto.
19116 (*<code>qi_1_slp): Ditto.
19117 (*<code><mode>_2): Ditto.
19118 (*<code>qi_2_slp): Ditto.
19119
19120 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19121
19122 * alias.c (record_component_aliases): Do not simplify pointed-to
19123 types of ODR types.
19124
19125 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19126
19127 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19128 partial reg stall on alternative 2.
19129
19130 2019-07-17 Richard Biener <rguenther@suse.de>
19131
19132 PR tree-optimization/91178
19133 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19134 lower SSA names to avoid quadratic behavior in the common case.
19135 * tree-data-ref.c (split_constant_offset): Add limit argument
19136 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19137 (split_constant_offset_1): Add limit argument and use it to
19138 limit SSA def walking. Optimize the common plus/minus case.
19139
19140 2019-07-17 Richard Biener <rguenther@suse.de>
19141
19142 PR tree-optimization/91178
19143 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19144 loads with a gap larger than the vector size always use
19145 VMAT_STRIDED_SLP.
19146 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19147 avoid loading vectors that are only contained in the gap
19148 and thus are not needed.
19149
19150 2019-07-17 Richard Biener <rguenther@suse.de>
19151
19152 PR tree-optimization/91180
19153 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19154 computation for memset partial defs.
19155
19156 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19157
19158 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19159 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19160 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19161 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19162 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19163 * omp-grid.c (grid_process_grid_body,
19164 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19165 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19166 == GF_OMP_FOR_KIND_SIMD.
19167 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19168 check_omp_nesting_restrictions, scan_omp_1_stmt,
19169 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19170 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19171 omp_find_scan): Likewise.
19172 * omp-expand.c (expand_omp_for): Likewise.
19173 * omp-general.c (omp_extract_for_data): Likewise.
19174
19175 PR tree-optimization/91157
19176 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19177 a vector boolean with scalar mode.
19178 (expand_vector_condition): Handle first operand being a vector boolean
19179 with scalar mode.
19180 (expand_vector_operations_1): For comparisons, don't bail out early
19181 if the return type is vector boolean with scalar mode, but comparison
19182 operand type is not.
19183
19184 2019-07-17 Richard Biener <rguenther@suse.de>
19185
19186 PR tree-optimization/91181
19187 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19188 IFN_LOADs as calls.
19189
19190 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19191
19192 * config/i386/i386.md (*testdi_1): Match CCZmode for
19193 constants that might have the SImode sign bit set.
19194 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19195 Use correct constraints for pentium pairing.
19196 (*test<mode>_1): Ditto.
19197
19198 2019-07-16 Jeff Law <law@redhat.com>
19199
19200 PR rtl-optimization/91173
19201 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19202 SSA_NAME with a constant value, fold its value into the offset
19203 and clear the base before calling gen_addr_rtx.
19204
19205 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19206
19207 PR rtl-optimization/91164
19208 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19209 invalidate dominance info.
19210
19211 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19212
19213 * read-md.h (md_reader::record_potential_iterator_use): Add a
19214 file_location parameter.
19215 * read-rtl.c (attribute_use::loc): New field.
19216 (map_attr_string): Take a file_location parameter. Report cases
19217 in which attributes map to multiple distinct values.
19218 (apply_attribute_uses): Update call accordingly.
19219 (md_reader::handle_overloaded_name): Likewise.
19220 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19221 nonnull strings.
19222 (record_attribute_use): Take a file_location parameter.
19223 Initialize attribute_use::loc.
19224 (md_reader::record_potential_iterator_use): Take a file_location
19225 parameter. Update call to record_attribute_use.
19226 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19227 (rtx_reader::read_rtx_code): Likewise.
19228 (rtx_reader::read_rtx_operand): Likewise. Record a location
19229 for implicitly-expanded empty strings.
19230
19231 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19232
19233 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19234 Use file_location instead of separate fields.
19235 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19236 separate filename and line number.
19237 * read-md.c (ptr_loc): As above.
19238 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19239 (md_reader::fprint_md_ptr_loc): Likewise.
19240 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19241 instead of a separate filename and line number.
19242 (md_reader::read_string): Update call accordingly.
19243
19244 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19245
19246 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19247 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19248 leaving the choice between SFDF and P implicit.
19249 (*mov<mode>_update2): Likewise.
19250 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19251 rather than leaving the choice betweem IBM128 and GPR implicit.
19252 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19253 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19254 QHSI implicit.
19255 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19256 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19257 * config/rs6000/vsx.md
19258 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19259 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19260 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19261 and VSX_EXTRACT_I implicit.
19262
19263 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19264
19265 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19266 Explicitly use <MOVEP1:MODE> for the mode attribute.
19267
19268 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19269
19270 PR bootstrap/91176
19271 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19272
19273 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19274
19275 PR target/91050
19276 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19277 .machine directive.
19278
19279 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19280
19281 * config/i386/i386.md (@test<mode>_ccno_1):
19282 Rename from test<mode>_ccno_1.
19283 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19284 (*testqi_1_maybe_si): Remove modrm attribute.
19285 (*test<mode>_1): Ditto.
19286 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19287 gen_test_ccno_1 and gen_extend_insn.
19288
19289 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19290
19291 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19292 to 0.
19293
19294 2019-07-15 Richard Biener <rguenther@suse.de>
19295
19296 PR middle-end/91162
19297 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19298 node make sure to replace all uses with something valid.
19299
19300 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19301
19302 PR tree-optimization/88497
19303 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19304 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19305 function undistribute_bitref_for_vector.
19306 (undistribute_bitref_for_vector): New function.
19307 (cleanup_vinfo_map): Likewise.
19308 (sort_by_mach_mode): Likewise.
19309
19310 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19311
19312 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19313 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19314 and testdi_ccno_1 using SWI48 mode attribute.
19315 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19316 x86_64_szext_general_operand.
19317 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19318 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19319 instead of genera_operand mode attribute.
19320
19321 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19322
19323 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19324 fopen and fclose to their respective types.
19325 (DotFn.invoke): Ditto.
19326
19327 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19328
19329 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19330 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19331 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19332 (array_index_predicate): Remove.
19333 (analyze_function_body): Account cost for variable ofsetted array
19334 indexing.
19335 (estimate_node_size_and_time): Do not compute array index hint.
19336 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19337 (inline_read_section): Do not read array index hint.
19338 (ipa_fn_summary_write): Do not write array index hint.
19339 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19340 * ipa-cp.c (hint_time_bonus): Remove.
19341 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19342 (ipa_fnsummary): Remove array_index.
19343 * ipa-inline.c (want_inline_small_function_p): Do not use
19344 array_index.
19345 (edge_badness): Likewise.
19346 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19347
19348 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19349
19350 PR target/91148
19351 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19352 superfluous "builtin function" phrasing.
19353
19354 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19355
19356 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19357 Break out from ...
19358 (aliasing_component_refs_walk): Break out from ...
19359 (aliasing_component_refs_p): ... here.
19360
19361 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19362
19363 PR target/91148
19364 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19365 "builtin function" phrasing.
19366
19367 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19368
19369 PR target/90723
19370 * recog.h (temporary_volatile_ok): New class.
19371 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19372 volatile_ok temporarily to true using temporary_volatile_ok.
19373 * expr.c (emit_block_move_via_cpymem): Likewise.
19374 * optabs.c (maybe_legitimize_operand): Likewise.
19375
19376 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19377
19378 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19379 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19380 uses inside of order(concurrent) constructs.
19381 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19382 OMP_CLAUSE_ORDER is seen.
19383 * omp-low.c (struct omp_context): Add order_concurrent member.
19384 (scan_sharing_clauses): Set ctx->order_concurrent if
19385 OMP_CLAUSE_ORDER is seen.
19386 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19387 of simd order(concurrent). Diagnose constructs not allowed inside of
19388 for order(concurrent).
19389 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19390 complaining about static double setjmp (double); or class static
19391 methods or non-global namespace setjmps.
19392 (omp_runtime_api_call): New function.
19393 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19394 order(concurrent) loops.
19395
19396 2019-07-12 Martin Sebor <msebor@redhat.com>
19397
19398 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19399 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19400 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19401 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19402
19403 2019-07-12 Jan Hubicka <jh@suse.cz>
19404
19405 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19406 (indirect_refs_may_alias_p): ... here.
19407 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19408 mem refs in the access paths.
19409
19410 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19411
19412 PR tree-optimization/89430
19413 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19414 store elimination for local variable without address escape.
19415
19416 2019-07-12 Jeff Law <law@redhat.com>
19417
19418 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19419 for the ".far" section.
19420
19421 2019-07-12 Richard Biener <rguenther@suse.de>
19422
19423 PR tree-optimization/91145
19424 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19425 chain check.
19426
19427 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19428
19429 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19430 rather than this_state as the lowering context for the ELSE
19431 seq in a GIMPLE_EH_ELSE.
19432
19433 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19434
19435 * vector-builder.h (vector_builder::elt): Allow already-supplied
19436 elements to be read back before building is complete.
19437
19438 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19439
19440 PR rtl-optimization/91136
19441 * df-core.c (ACCESSING REFS): Fix typos in comment.
19442 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19443 the beginning of the block to the initial set of live registers.
19444
19445 2019-07-12 Richard Biener <rguenther@suse.de>
19446
19447 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19448 * fold-const.c (get_array_ctor_element_at_index): Add
19449 ctor_idx output parameter informing the caller where in
19450 the constructor the element was (not) found. Add early exit
19451 for when the ctor is sorted.
19452 * gimple-fold.c (fold_array_ctor_reference): Support constant
19453 folding across multiple array elements.
19454
19455 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19456
19457 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19458 doesn't have location, set the current location to the function's end.
19459
19460 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19461
19462 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19463 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19464 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19465 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19466 * config/aarch64/aarch64-simd.md
19467 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19468 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19469 * config/aarch64/aarch64-sve.md
19470 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19471 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19472
19473 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19474
19475 * doc/md.texi: Document that @ patterns can have different
19476 numbers of operands.
19477 * genemit.c (handle_overloaded_gen): Handle this case.
19478 * genopinit.c (handle_overloaded_gen): Likewise.
19479 * gensupport.c (replace_operands_with_dups): Iterate over
19480 the new rtx's format rather than the old one's.
19481
19482 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19483
19484 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19485 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19486 order clause entries.
19487 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19488 * tree-pretty-print.c (dump_omp_clause): Likewise.
19489 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19490 Likewise.
19491 * omp-low.c (scan_sharing_clauses): Likewise.
19492 * tree-nested.c (convert_nonlocal_omp_clauses,
19493 convert_local_omp_clauses): Likewise.
19494
19495 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19496
19497 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19498 fallthrough target of current basic block isn't the placed
19499 right next.
19500
19501 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19502
19503 PR target/90980
19504 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19505 (_mm512_storeu_epi64): Likewise.
19506 (_mm512_loadu_epi32): Likewise.
19507 (_mm512_storeu_epi32): Likewise.
19508 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19509 (_mm_storeu_epi64): Likewise.
19510 (_mm256_storeu_epi32): Likewise.
19511 (_mm_storeu_epi32): Likewise.
19512
19513 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19514
19515 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19516
19517 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19518
19519 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19520 Handle Modula-2.
19521
19522 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19523
19524 PR target/91124
19525 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19526 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19527 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19528 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19529 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19530 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19531 define_insns.
19532 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19533 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19534 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19535 define_insns.
19536 (sse2_cvttpd2dq<mask_name>): Change into ...
19537 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19538 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19539 (*sse2_cvtpd2dq<mask_name>): Change into ...
19540 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19541 Add "C" constraint to const0_operand.
19542 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19543 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19544 changes.
19545
19546 PR target/91124
19547 * config/i386/i386-builtin-types.def
19548 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19549 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19550 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19551 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19552 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19553 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19554 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19555 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19556 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19557 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19558 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19559 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19560 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19561 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19562 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19563 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19564 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19565 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19566 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19567 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19568 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19569 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19570 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19571 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19572 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19573 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19574 __builtin_ia32_vpdpbusd_v4si_maskz,
19575 __builtin_ia32_vpdpbusds_v16si_mask,
19576 __builtin_ia32_vpdpbusds_v16si_maskz,
19577 __builtin_ia32_vpdpbusds_v8si_mask,
19578 __builtin_ia32_vpdpbusds_v8si_maskz,
19579 __builtin_ia32_vpdpbusds_v4si_mask,
19580 __builtin_ia32_vpdpbusds_v4si_maskz,
19581 __builtin_ia32_vpdpwssd_v16si_mask,
19582 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19583 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19584 __builtin_ia32_vpdpwssd_v4si_maskz,
19585 __builtin_ia32_vpdpwssds_v16si_mask,
19586 __builtin_ia32_vpdpwssds_v16si_maskz,
19587 __builtin_ia32_vpdpwssds_v8si_mask,
19588 __builtin_ia32_vpdpwssds_v8si_maskz,
19589 __builtin_ia32_vpdpwssds_v4si_mask,
19590 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19591 suffixed types rather than *_INT.
19592 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19593 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19594 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19595 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19596 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19597 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19598
19599 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19600
19601 * tree-vrp.c (intersect_ranges): If we know the intersection is
19602 empty, there is no need to conservatively add anything else to
19603 the set.
19604
19605 2019-07-11 Richard Biener <rguenther@suse.de>
19606
19607 PR middle-end/91131
19608 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19609 when the object is volatile and we have not cleared it even though
19610 there are no nonzero elements.
19611
19612 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19613
19614 * config/rs6000/predicates.md (cint34_operand): Update
19615 SIGNED_34BIT_OFFSET_P call.
19616 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19617 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19618 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19619 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19620 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19621 argument.
19622 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19623 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19624 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19625 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19626 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19627
19628 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19629
19630 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19631 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19632 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19633 (DEF_MIN_OSX_VERSION): New.
19634
19635 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19636
19637 * fold-const.c (fold_relational_const): Fix folding of
19638 vector-to-scalar NE_EXPRs.
19639 (test_vector_folding): Add more tests.
19640
19641 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19642
19643 PR target/91060
19644 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19645 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19646 (vec_setv2di_internal): Reexpress as...
19647 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19648 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19649 rather than gen_neon_vset_lane<mode>.
19650
19651 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19652
19653 PR target/91102
19654 * lra-constraints.c (process_alt_operands): Don't match user
19655 defined regs only if they are early clobbers.
19656
19657 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19658
19659 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19660
19661 2019-07-10 Richard Biener <rguenther@suse.de>
19662
19663 PR tree-optimization/91126
19664 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19665 native encoding offset for BYTES_BIG_ENDIAN.
19666 (vn_reference_lookup_3): Likewise.
19667
19668 2019-07-10 Richard Biener <rguenther@suse.de>
19669
19670 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19671 LHS whenever possible.
19672
19673 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19674
19675 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19676 from ...; work also on duplicated types.
19677 (nonoverlapping_component_refs_since_match): ... here
19678 (ncr_type_uid): Break out from ...
19679 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19680 available.
19681 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19682 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19683
19684 2019-07-09 Martin Sebor <msebor@redhat.com>
19685
19686 PR tree-optimization/90989
19687 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19688 optimization to just single character stores.
19689
19690 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19691
19692 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19693 Swap operands only once.
19694
19695 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19696
19697 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19698 for both call instructions.
19699
19700 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19701
19702 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19703 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19704
19705 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19706
19707 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19708 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19709 function from rs6000-logue.c back to rs6000.c.
19710 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19711
19712 2019-07-09 Martin Sebor <msebor@redhat.com>
19713
19714 PR c++/61339
19715 * auto-profile.c: Change class-key of PODs to struct and others
19716 to class.
19717 * basic-block.h: Same.
19718 * bitmap.c (bitmap_alloc): Same.
19719 * bitmap.h: Same.
19720 * builtins.c (expand_builtin_prefetch): Same.
19721 (expand_builtin_interclass_mathfn): Same.
19722 (expand_builtin_strlen): Same.
19723 (expand_builtin_mempcpy_args): Same.
19724 (expand_cmpstr): Same.
19725 (expand_builtin___clear_cache): Same.
19726 (expand_ifn_atomic_bit_test_and): Same.
19727 (expand_builtin_thread_pointer): Same.
19728 (expand_builtin_set_thread_pointer): Same.
19729 * caller-save.c (setup_save_areas): Same.
19730 (replace_reg_with_saved_mem): Same.
19731 (insert_restore): Same.
19732 (insert_save): Same.
19733 (add_used_regs): Same.
19734 * cfg.c (get_bb_copy): Same.
19735 (set_loop_copy): Same.
19736 * cfg.h: Same.
19737 * cfganal.h: Same.
19738 * cfgexpand.c (alloc_stack_frame_space): Same.
19739 (add_stack_var): Same.
19740 (add_stack_var_conflict): Same.
19741 (add_scope_conflicts_1): Same.
19742 (update_alias_info_with_stack_vars): Same.
19743 (expand_used_vars): Same.
19744 * cfghooks.c (redirect_edge_and_branch_force): Same.
19745 (delete_basic_block): Same.
19746 (split_edge): Same.
19747 (make_forwarder_block): Same.
19748 (force_nonfallthru): Same.
19749 (duplicate_block): Same.
19750 (lv_flush_pending_stmts): Same.
19751 * cfghooks.h: Same.
19752 * cfgloop.c (flow_loops_cfg_dump): Same.
19753 (flow_loop_nested_p): Same.
19754 (superloop_at_depth): Same.
19755 (get_loop_latch_edges): Same.
19756 (flow_loop_dump): Same.
19757 (flow_loops_dump): Same.
19758 (flow_loops_free): Same.
19759 (flow_loop_nodes_find): Same.
19760 (establish_preds): Same.
19761 (flow_loop_tree_node_add): Same.
19762 (flow_loop_tree_node_remove): Same.
19763 (flow_loops_find): Same.
19764 (find_subloop_latch_edge_by_profile): Same.
19765 (find_subloop_latch_edge_by_ivs): Same.
19766 (mfb_redirect_edges_in_set): Same.
19767 (form_subloop): Same.
19768 (merge_latch_edges): Same.
19769 (disambiguate_multiple_latches): Same.
19770 (disambiguate_loops_with_multiple_latches): Same.
19771 (flow_bb_inside_loop_p): Same.
19772 (glb_enum_p): Same.
19773 (get_loop_body_with_size): Same.
19774 (get_loop_body): Same.
19775 (fill_sons_in_loop): Same.
19776 (get_loop_body_in_dom_order): Same.
19777 (get_loop_body_in_custom_order): Same.
19778 (release_recorded_exits): Same.
19779 (get_loop_exit_edges): Same.
19780 (num_loop_branches): Same.
19781 (remove_bb_from_loops): Same.
19782 (find_common_loop): Same.
19783 (delete_loop): Same.
19784 (cancel_loop): Same.
19785 (verify_loop_structure): Same.
19786 (loop_preheader_edge): Same.
19787 (loop_exit_edge_p): Same.
19788 (single_exit): Same.
19789 (loop_exits_to_bb_p): Same.
19790 (loop_exits_from_bb_p): Same.
19791 (get_loop_location): Same.
19792 (record_niter_bound): Same.
19793 (get_estimated_loop_iterations_int): Same.
19794 (max_stmt_executions_int): Same.
19795 (likely_max_stmt_executions_int): Same.
19796 (get_estimated_loop_iterations): Same.
19797 (get_max_loop_iterations): Same.
19798 (get_max_loop_iterations_int): Same.
19799 (get_likely_max_loop_iterations): Same.
19800 * cfgloop.h (simple_loop_desc): Same.
19801 (get_loop): Same.
19802 (loop_depth): Same.
19803 (loop_outer): Same.
19804 (loop_iterator::next): Same.
19805 (loop_outermost): Same.
19806 * cfgloopanal.c (mark_irreducible_loops): Same.
19807 (num_loop_insns): Same.
19808 (average_num_loop_insns): Same.
19809 (expected_loop_iterations_unbounded): Same.
19810 (expected_loop_iterations): Same.
19811 (mark_loop_exit_edges): Same.
19812 (single_likely_exit): Same.
19813 * cfgloopmanip.c (fix_bb_placement): Same.
19814 (fix_bb_placements): Same.
19815 (remove_path): Same.
19816 (place_new_loop): Same.
19817 (add_loop): Same.
19818 (scale_loop_frequencies): Same.
19819 (scale_loop_profile): Same.
19820 (create_empty_if_region_on_edge): Same.
19821 (create_empty_loop_on_edge): Same.
19822 (loopify): Same.
19823 (unloop): Same.
19824 (fix_loop_placements): Same.
19825 (copy_loop_info): Same.
19826 (duplicate_loop): Same.
19827 (duplicate_subloops): Same.
19828 (loop_redirect_edge): Same.
19829 (can_duplicate_loop_p): Same.
19830 (duplicate_loop_to_header_edge): Same.
19831 (mfb_keep_just): Same.
19832 (has_preds_from_loop): Same.
19833 (create_preheader): Same.
19834 (create_preheaders): Same.
19835 (lv_adjust_loop_entry_edge): Same.
19836 (loop_version): Same.
19837 * cfgloopmanip.h: Same.
19838 * cgraph.h: Same.
19839 * cgraphbuild.c: Same.
19840 * combine.c (make_extraction): Same.
19841 * config/i386/i386-features.c: Same.
19842 * config/i386/i386-features.h: Same.
19843 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19844 (ix86_emit_outlined_ms2sysv_restore): Same.
19845 (ix86_noce_conversion_profitable_p): Same.
19846 (ix86_init_cost): Same.
19847 (ix86_simd_clone_usable): Same.
19848 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19849 Wstruct-not-pod.
19850 * coretypes.h: Same.
19851 * data-streamer-in.c (string_for_index): Change class-key of PODs
19852 to struct and others to class.
19853 (streamer_read_indexed_string): Same.
19854 (streamer_read_string): Same.
19855 (bp_unpack_indexed_string): Same.
19856 (bp_unpack_string): Same.
19857 (streamer_read_uhwi): Same.
19858 (streamer_read_hwi): Same.
19859 (streamer_read_gcov_count): Same.
19860 (streamer_read_wide_int): Same.
19861 * data-streamer.h (streamer_write_bitpack): Same.
19862 (bp_unpack_value): Same.
19863 (streamer_write_char_stream): Same.
19864 (streamer_write_hwi_in_range): Same.
19865 (streamer_write_record_start): Same.
19866 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19867 (add_cross_iteration_register_deps): Same.
19868 (build_intra_loop_deps): Same.
19869 * df-core.c (df_analyze): Same.
19870 (loop_post_order_compute): Same.
19871 (loop_inverted_post_order_compute): Same.
19872 * df-problems.c (df_rd_alloc): Same.
19873 (df_rd_simulate_one_insn): Same.
19874 (df_rd_local_compute): Same.
19875 (df_rd_init_solution): Same.
19876 (df_rd_confluence_n): Same.
19877 (df_rd_transfer_function): Same.
19878 (df_rd_free): Same.
19879 (df_rd_dump_defs_set): Same.
19880 (df_rd_top_dump): Same.
19881 (df_lr_alloc): Same.
19882 (df_lr_reset): Same.
19883 (df_lr_local_compute): Same.
19884 (df_lr_init): Same.
19885 (df_lr_confluence_n): Same.
19886 (df_lr_free): Same.
19887 (df_lr_top_dump): Same.
19888 (df_lr_verify_transfer_functions): Same.
19889 (df_live_alloc): Same.
19890 (df_live_reset): Same.
19891 (df_live_init): Same.
19892 (df_live_confluence_n): Same.
19893 (df_live_finalize): Same.
19894 (df_live_free): Same.
19895 (df_live_top_dump): Same.
19896 (df_live_verify_transfer_functions): Same.
19897 (df_mir_alloc): Same.
19898 (df_mir_reset): Same.
19899 (df_mir_init): Same.
19900 (df_mir_confluence_n): Same.
19901 (df_mir_free): Same.
19902 (df_mir_top_dump): Same.
19903 (df_word_lr_alloc): Same.
19904 (df_word_lr_reset): Same.
19905 (df_word_lr_init): Same.
19906 (df_word_lr_confluence_n): Same.
19907 (df_word_lr_free): Same.
19908 (df_word_lr_top_dump): Same.
19909 (df_md_alloc): Same.
19910 (df_md_simulate_one_insn): Same.
19911 (df_md_reset): Same.
19912 (df_md_init): Same.
19913 (df_md_free): Same.
19914 (df_md_top_dump): Same.
19915 * df-scan.c (df_insn_delete): Same.
19916 (df_insn_rescan): Same.
19917 (df_notes_rescan): Same.
19918 (df_sort_and_compress_mws): Same.
19919 (df_install_mws): Same.
19920 (df_refs_add_to_chains): Same.
19921 (df_ref_create_structure): Same.
19922 (df_ref_record): Same.
19923 (df_def_record_1): Same.
19924 (df_find_hard_reg_defs): Same.
19925 (df_uses_record): Same.
19926 (df_get_conditional_uses): Same.
19927 (df_get_call_refs): Same.
19928 (df_recompute_luids): Same.
19929 (df_get_entry_block_def_set): Same.
19930 (df_entry_block_defs_collect): Same.
19931 (df_get_exit_block_use_set): Same.
19932 (df_exit_block_uses_collect): Same.
19933 (df_mws_verify): Same.
19934 (df_bb_verify): Same.
19935 * df.h (df_scan_get_bb_info): Same.
19936 * doc/tm.texi: Same.
19937 * dse.c (record_store): Same.
19938 * dumpfile.h: Same.
19939 * emit-rtl.c (const_fixed_hasher::equal): Same.
19940 (set_mem_attributes_minus_bitpos): Same.
19941 (change_address): Same.
19942 (adjust_address_1): Same.
19943 (offset_address): Same.
19944 * emit-rtl.h: Same.
19945 * except.c (dw2_build_landing_pads): Same.
19946 (sjlj_emit_dispatch_table): Same.
19947 * explow.c (allocate_dynamic_stack_space): Same.
19948 (emit_stack_probe): Same.
19949 (probe_stack_range): Same.
19950 * expmed.c (store_bit_field_using_insv): Same.
19951 (store_bit_field_1): Same.
19952 (store_integral_bit_field): Same.
19953 (extract_bit_field_using_extv): Same.
19954 (extract_bit_field_1): Same.
19955 (emit_cstore): Same.
19956 * expr.c (emit_block_move_via_cpymem): Same.
19957 (expand_cmpstrn_or_cmpmem): Same.
19958 (set_storage_via_setmem): Same.
19959 (emit_single_push_insn_1): Same.
19960 (expand_assignment): Same.
19961 (store_constructor): Same.
19962 (expand_expr_real_2): Same.
19963 (expand_expr_real_1): Same.
19964 (try_casesi): Same.
19965 * flags.h: Same.
19966 * function.c (try_fit_stack_local): Same.
19967 (assign_stack_local_1): Same.
19968 (assign_stack_local): Same.
19969 (cut_slot_from_list): Same.
19970 (insert_slot_to_list): Same.
19971 (max_slot_level): Same.
19972 (move_slot_to_level): Same.
19973 (temp_address_hasher::equal): Same.
19974 (remove_unused_temp_slot_addresses): Same.
19975 (assign_temp): Same.
19976 (combine_temp_slots): Same.
19977 (update_temp_slot_address): Same.
19978 (preserve_temp_slots): Same.
19979 * function.h: Same.
19980 * fwprop.c: Same.
19981 * gcc-rich-location.h: Same.
19982 * gcov.c: Same.
19983 * genattrtab.c (check_attr_test): Same.
19984 (check_attr_value): Same.
19985 (convert_set_attr_alternative): Same.
19986 (convert_set_attr): Same.
19987 (check_defs): Same.
19988 (copy_boolean): Same.
19989 (get_attr_value): Same.
19990 (expand_delays): Same.
19991 (make_length_attrs): Same.
19992 (min_fn): Same.
19993 (make_alternative_compare): Same.
19994 (simplify_test_exp): Same.
19995 (tests_attr_p): Same.
19996 (get_attr_order): Same.
19997 (clear_struct_flag): Same.
19998 (gen_attr): Same.
19999 (compares_alternatives_p): Same.
20000 (gen_insn): Same.
20001 (gen_delay): Same.
20002 (find_attrs_to_cache): Same.
20003 (write_test_expr): Same.
20004 (walk_attr_value): Same.
20005 (write_attr_get): Same.
20006 (eliminate_known_true): Same.
20007 (write_insn_cases): Same.
20008 (write_attr_case): Same.
20009 (write_attr_valueq): Same.
20010 (write_attr_value): Same.
20011 (write_dummy_eligible_delay): Same.
20012 (next_comma_elt): Same.
20013 (find_attr): Same.
20014 (make_internal_attr): Same.
20015 (copy_rtx_unchanging): Same.
20016 (gen_insn_reserv): Same.
20017 (check_tune_attr): Same.
20018 (make_automaton_attrs): Same.
20019 (handle_arg): Same.
20020 * genextract.c (gen_insn): Same.
20021 (VEC_char_to_string): Same.
20022 * genmatch.c (print_operand): Same.
20023 (lower): Same.
20024 (parser::parse_operation): Same.
20025 (parser::parse_capture): Same.
20026 (parser::parse_c_expr): Same.
20027 (parser::parse_simplify): Same.
20028 (main): Same.
20029 * genoutput.c (output_operand_data): Same.
20030 (output_get_insn_name): Same.
20031 (compare_operands): Same.
20032 (place_operands): Same.
20033 (process_template): Same.
20034 (validate_insn_alternatives): Same.
20035 (validate_insn_operands): Same.
20036 (gen_expand): Same.
20037 (note_constraint): Same.
20038 * genpreds.c (write_one_predicate_function): Same.
20039 (add_constraint): Same.
20040 (process_define_register_constraint): Same.
20041 (write_lookup_constraint_1): Same.
20042 (write_lookup_constraint_array): Same.
20043 (write_insn_constraint_len): Same.
20044 (write_reg_class_for_constraint_1): Same.
20045 (write_constraint_satisfied_p_array): Same.
20046 * genrecog.c (optimize_subroutine_group): Same.
20047 * gensupport.c (process_define_predicate): Same.
20048 (queue_pattern): Same.
20049 (remove_from_queue): Same.
20050 (process_rtx): Same.
20051 (is_predicable): Same.
20052 (change_subst_attribute): Same.
20053 (subst_pattern_match): Same.
20054 (alter_constraints): Same.
20055 (alter_attrs_for_insn): Same.
20056 (shift_output_template): Same.
20057 (alter_output_for_subst_insn): Same.
20058 (process_one_cond_exec): Same.
20059 (subst_dup): Same.
20060 (process_define_cond_exec): Same.
20061 (mnemonic_htab_callback): Same.
20062 (gen_mnemonic_attr): Same.
20063 (read_md_rtx): Same.
20064 * ggc-page.c: Same.
20065 * gimple-loop-interchange.cc (dump_reduction): Same.
20066 (dump_induction): Same.
20067 (loop_cand::~loop_cand): Same.
20068 (free_data_refs_with_aux): Same.
20069 (tree_loop_interchange::interchange_loops): Same.
20070 (tree_loop_interchange::map_inductions_to_loop): Same.
20071 (tree_loop_interchange::move_code_to_inner_loop): Same.
20072 (compute_access_stride): Same.
20073 (compute_access_strides): Same.
20074 (proper_loop_form_for_interchange): Same.
20075 (tree_loop_interchange_compute_ddrs): Same.
20076 (prune_datarefs_not_in_loop): Same.
20077 (prepare_data_references): Same.
20078 (pass_linterchange::execute): Same.
20079 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20080 (unroll_jam_possible_p): Same.
20081 (fuse_loops): Same.
20082 (adjust_unroll_factor): Same.
20083 (tree_loop_unroll_and_jam): Same.
20084 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20085 (loop_versioning::expensive_stmt_p): Same.
20086 (loop_versioning::version_for_unity): Same.
20087 (loop_versioning::dump_inner_likelihood): Same.
20088 (loop_versioning::find_per_loop_multiplication): Same.
20089 (loop_versioning::analyze_term_using_scevs): Same.
20090 (loop_versioning::record_address_fragment): Same.
20091 (loop_versioning::analyze_expr): Same.
20092 (loop_versioning::analyze_blocks): Same.
20093 (loop_versioning::prune_conditions): Same.
20094 (loop_versioning::merge_loop_info): Same.
20095 (loop_versioning::add_loop_to_queue): Same.
20096 (loop_versioning::decide_whether_loop_is_versionable): Same.
20097 (loop_versioning::make_versioning_decisions): Same.
20098 (loop_versioning::implement_versioning_decisions): Same.
20099 * gimple-ssa-evrp-analyze.c
20100 (evrp_range_analyzer::record_ranges_from_phis): Same.
20101 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20102 (count_multiple_uses): Same.
20103 (split_group): Same.
20104 (imm_store_chain_info::output_merged_store): Same.
20105 (pass_store_merging::process_store): Same.
20106 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20107 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20108 (is_max): Same.
20109 (alloca_call_type): Same.
20110 (pass_walloca::execute): Same.
20111 * gimple-streamer-in.c (input_phi): Same.
20112 (input_gimple_stmt): Same.
20113 * gimple-streamer.h: Same.
20114 * godump.c (go_force_record_alignment): Same.
20115 (go_format_type): Same.
20116 (go_output_type): Same.
20117 (go_output_fndecl): Same.
20118 (go_output_typedef): Same.
20119 (keyword_hash_init): Same.
20120 (find_dummy_types): Same.
20121 * graph.c (draw_cfg_nodes_no_loops): Same.
20122 (draw_cfg_nodes_for_loop): Same.
20123 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20124 * hsa-brig.c: Same.
20125 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20126 * hsa-dump.c (dump_hsa_cfun): Same.
20127 * hsa-gen.c (gen_function_def_parameters): Same.
20128 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20129 * input.c (dump_line_table_statistics): Same.
20130 (test_lexer): Same.
20131 * input.h: Same.
20132 * internal-fn.c (get_multi_vector_move): Same.
20133 (expand_load_lanes_optab_fn): Same.
20134 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20135 (expand_GOMP_SIMT_EXIT): Same.
20136 (expand_GOMP_SIMT_LAST_LANE): Same.
20137 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20138 (expand_GOMP_SIMT_VOTE_ANY): Same.
20139 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20140 (expand_GOMP_SIMT_XCHG_IDX): Same.
20141 (expand_addsub_overflow): Same.
20142 (expand_neg_overflow): Same.
20143 (expand_mul_overflow): Same.
20144 (expand_call_mem_ref): Same.
20145 (expand_mask_load_optab_fn): Same.
20146 (expand_scatter_store_optab_fn): Same.
20147 (expand_gather_load_optab_fn): Same.
20148 * ipa-cp.c (ipa_get_parm_lattices): Same.
20149 (print_all_lattices): Same.
20150 (ignore_edge_p): Same.
20151 (build_toporder_info): Same.
20152 (free_toporder_info): Same.
20153 (push_node_to_stack): Same.
20154 (ipcp_lattice<valtype>::set_contains_variable): Same.
20155 (set_agg_lats_to_bottom): Same.
20156 (ipcp_bits_lattice::meet_with): Same.
20157 (set_single_call_flag): Same.
20158 (initialize_node_lattices): Same.
20159 (ipa_get_jf_ancestor_result): Same.
20160 (ipcp_verify_propagated_values): Same.
20161 (propagate_scalar_across_jump_function): Same.
20162 (propagate_context_across_jump_function): Same.
20163 (propagate_bits_across_jump_function): Same.
20164 (ipa_vr_operation_and_type_effects): Same.
20165 (propagate_vr_across_jump_function): Same.
20166 (set_check_aggs_by_ref): Same.
20167 (set_chain_of_aglats_contains_variable): Same.
20168 (merge_aggregate_lattices): Same.
20169 (agg_pass_through_permissible_p): Same.
20170 (propagate_aggs_across_jump_function): Same.
20171 (call_passes_through_thunk_p): Same.
20172 (propagate_constants_across_call): Same.
20173 (devirtualization_time_bonus): Same.
20174 (good_cloning_opportunity_p): Same.
20175 (context_independent_aggregate_values): Same.
20176 (gather_context_independent_values): Same.
20177 (perform_estimation_of_a_value): Same.
20178 (estimate_local_effects): Same.
20179 (value_topo_info<valtype>::add_val): Same.
20180 (add_all_node_vals_to_toposort): Same.
20181 (value_topo_info<valtype>::propagate_effects): Same.
20182 (ipcp_propagate_stage): Same.
20183 (ipcp_discover_new_direct_edges): Same.
20184 (same_node_or_its_all_contexts_clone_p): Same.
20185 (cgraph_edge_brings_value_p): Same.
20186 (gather_edges_for_value): Same.
20187 (create_specialized_node): Same.
20188 (find_more_scalar_values_for_callers_subset): Same.
20189 (find_more_contexts_for_caller_subset): Same.
20190 (copy_plats_to_inter): Same.
20191 (intersect_aggregates_with_edge): Same.
20192 (find_aggregate_values_for_callers_subset): Same.
20193 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20194 (decide_about_value): Same.
20195 (decide_whether_version_node): Same.
20196 (spread_undeadness): Same.
20197 (identify_dead_nodes): Same.
20198 (ipcp_store_vr_results): Same.
20199 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20200 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20201 (redirect_to_unreachable): Same.
20202 (edge_set_predicate): Same.
20203 (evaluate_conditions_for_known_args): Same.
20204 (evaluate_properties_for_edge): Same.
20205 (ipa_fn_summary_t::duplicate): Same.
20206 (ipa_call_summary_t::duplicate): Same.
20207 (dump_ipa_call_summary): Same.
20208 (ipa_dump_fn_summary): Same.
20209 (eliminated_by_inlining_prob): Same.
20210 (set_cond_stmt_execution_predicate): Same.
20211 (set_switch_stmt_execution_predicate): Same.
20212 (compute_bb_predicates): Same.
20213 (will_be_nonconstant_expr_predicate): Same.
20214 (phi_result_unknown_predicate): Same.
20215 (analyze_function_body): Same.
20216 (compute_fn_summary): Same.
20217 (estimate_edge_devirt_benefit): Same.
20218 (estimate_edge_size_and_time): Same.
20219 (estimate_calls_size_and_time): Same.
20220 (estimate_node_size_and_time): Same.
20221 (remap_edge_change_prob): Same.
20222 (remap_edge_summaries): Same.
20223 (ipa_merge_fn_summary_after_inlining): Same.
20224 (ipa_fn_summary_generate): Same.
20225 (inline_read_section): Same.
20226 (ipa_fn_summary_read): Same.
20227 (ipa_fn_summary_write): Same.
20228 * ipa-fnsummary.h: Same.
20229 * ipa-hsa.c (ipa_hsa_read_section): Same.
20230 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20231 * ipa-icf.c (sem_function::param_used_p): Same.
20232 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20233 * ipa-inline.c (edge_badness): Same.
20234 (inline_small_functions): Same.
20235 * ipa-polymorphic-call.c
20236 (ipa_polymorphic_call_context::stream_out): Same.
20237 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20238 (predicate::remap_after_inlining): Same.
20239 (predicate::stream_out): Same.
20240 * ipa-predicate.h: Same.
20241 * ipa-profile.c (ipa_profile_read_summary): Same.
20242 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20243 (count_formal_params): Same.
20244 (ipa_dump_param): Same.
20245 (ipa_alloc_node_params): Same.
20246 (ipa_print_node_jump_functions_for_edge): Same.
20247 (ipa_print_node_jump_functions): Same.
20248 (ipa_load_from_parm_agg): Same.
20249 (get_ancestor_addr_info): Same.
20250 (ipa_compute_jump_functions_for_edge): Same.
20251 (ipa_analyze_virtual_call_uses): Same.
20252 (ipa_analyze_stmt_uses): Same.
20253 (ipa_analyze_params_uses_in_bb): Same.
20254 (update_jump_functions_after_inlining): Same.
20255 (try_decrement_rdesc_refcount): Same.
20256 (ipa_impossible_devirt_target): Same.
20257 (update_indirect_edges_after_inlining): Same.
20258 (combine_controlled_uses_counters): Same.
20259 (ipa_edge_args_sum_t::duplicate): Same.
20260 (ipa_write_jump_function): Same.
20261 (ipa_write_indirect_edge_info): Same.
20262 (ipa_write_node_info): Same.
20263 (ipa_read_edge_info): Same.
20264 (ipa_prop_read_section): Same.
20265 (read_replacements_section): Same.
20266 * ipa-prop.h (ipa_get_param_count): Same.
20267 (ipa_get_param): Same.
20268 (ipa_get_type): Same.
20269 (ipa_get_param_move_cost): Same.
20270 (ipa_set_param_used): Same.
20271 (ipa_get_controlled_uses): Same.
20272 (ipa_set_controlled_uses): Same.
20273 (ipa_get_cs_argument_count): Same.
20274 * ipa-pure-const.c (analyze_function): Same.
20275 (pure_const_read_summary): Same.
20276 * ipa-ref.h: Same.
20277 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20278 * ipa-split.c (test_nonssa_use): Same.
20279 (dump_split_point): Same.
20280 (dominated_by_forbidden): Same.
20281 (split_part_set_ssa_name_p): Same.
20282 (find_split_points): Same.
20283 * ira-build.c (finish_loop_tree_nodes): Same.
20284 (low_pressure_loop_node_p): Same.
20285 * ira-color.c (ira_reuse_stack_slot): Same.
20286 * ira-int.h: Same.
20287 * ira.c (setup_reg_equiv): Same.
20288 (print_insn_chain): Same.
20289 (ira): Same.
20290 * loop-doloop.c (doloop_condition_get): Same.
20291 (add_test): Same.
20292 (record_reg_sets): Same.
20293 (doloop_optimize): Same.
20294 * loop-init.c (loop_optimizer_init): Same.
20295 (fix_loop_structure): Same.
20296 * loop-invariant.c (merge_identical_invariants): Same.
20297 (compute_always_reached): Same.
20298 (find_exits): Same.
20299 (may_assign_reg_p): Same.
20300 (find_invariants_bb): Same.
20301 (find_invariants_body): Same.
20302 (replace_uses): Same.
20303 (can_move_invariant_reg): Same.
20304 (free_inv_motion_data): Same.
20305 (move_single_loop_invariants): Same.
20306 (change_pressure): Same.
20307 (mark_ref_regs): Same.
20308 (calculate_loop_reg_pressure): Same.
20309 * loop-iv.c (biv_entry_hasher::equal): Same.
20310 (iv_extend_to_rtx_code): Same.
20311 (check_iv_ref_table_size): Same.
20312 (clear_iv_info): Same.
20313 (latch_dominating_def): Same.
20314 (iv_get_reaching_def): Same.
20315 (iv_constant): Same.
20316 (iv_subreg): Same.
20317 (iv_extend): Same.
20318 (iv_neg): Same.
20319 (iv_add): Same.
20320 (iv_mult): Same.
20321 (get_biv_step): Same.
20322 (record_iv): Same.
20323 (analyzed_for_bivness_p): Same.
20324 (record_biv): Same.
20325 (iv_analyze_biv): Same.
20326 (iv_analyze_expr): Same.
20327 (iv_analyze_def): Same.
20328 (iv_analyze_op): Same.
20329 (iv_analyze): Same.
20330 (iv_analyze_result): Same.
20331 (biv_p): Same.
20332 (eliminate_implied_conditions): Same.
20333 (simplify_using_initial_values): Same.
20334 (shorten_into_mode): Same.
20335 (canonicalize_iv_subregs): Same.
20336 (determine_max_iter): Same.
20337 (check_simple_exit): Same.
20338 (find_simple_exit): Same.
20339 (get_simple_loop_desc): Same.
20340 * loop-unroll.c (report_unroll): Same.
20341 (decide_unrolling): Same.
20342 (unroll_loops): Same.
20343 (loop_exit_at_end_p): Same.
20344 (decide_unroll_constant_iterations): Same.
20345 (unroll_loop_constant_iterations): Same.
20346 (compare_and_jump_seq): Same.
20347 (unroll_loop_runtime_iterations): Same.
20348 (decide_unroll_stupid): Same.
20349 (unroll_loop_stupid): Same.
20350 (referenced_in_one_insn_in_loop_p): Same.
20351 (reset_debug_uses_in_loop): Same.
20352 (analyze_iv_to_split_insn): Same.
20353 * lra-eliminations.c (lra_debug_elim_table): Same.
20354 (setup_can_eliminate): Same.
20355 (form_sum): Same.
20356 (lra_get_elimination_hard_regno): Same.
20357 (lra_eliminate_regs_1): Same.
20358 (eliminate_regs_in_insn): Same.
20359 (update_reg_eliminate): Same.
20360 (init_elimination): Same.
20361 (lra_eliminate): Same.
20362 * lra-int.h: Same.
20363 * lra-lives.c (initiate_live_solver): Same.
20364 * lra-remat.c (create_remat_bb_data): Same.
20365 * lra-spills.c (lra_spill): Same.
20366 * lra.c (lra_set_insn_recog_data): Same.
20367 (lra_set_used_insn_alternative_by_uid): Same.
20368 (init_reg_info): Same.
20369 (expand_reg_info): Same.
20370 * lto-cgraph.c (output_symtab): Same.
20371 (read_identifier): Same.
20372 (get_alias_symbol): Same.
20373 (input_node): Same.
20374 (input_varpool_node): Same.
20375 (input_ref): Same.
20376 (input_edge): Same.
20377 (input_cgraph_1): Same.
20378 (input_refs): Same.
20379 (input_symtab): Same.
20380 (input_offload_tables): Same.
20381 (output_cgraph_opt_summary): Same.
20382 (input_edge_opt_summary): Same.
20383 (input_cgraph_opt_section): Same.
20384 * lto-section-in.c (lto_free_raw_section_data): Same.
20385 (lto_create_simple_input_block): Same.
20386 (lto_free_function_in_decl_state_for_node): Same.
20387 * lto-streamer-in.c (lto_tag_check_set): Same.
20388 (lto_location_cache::revert_location_cache): Same.
20389 (lto_location_cache::input_location): Same.
20390 (lto_input_location): Same.
20391 (stream_input_location_now): Same.
20392 (lto_input_tree_ref): Same.
20393 (lto_input_eh_catch_list): Same.
20394 (input_eh_region): Same.
20395 (lto_init_eh): Same.
20396 (make_new_block): Same.
20397 (input_cfg): Same.
20398 (fixup_call_stmt_edges): Same.
20399 (input_struct_function_base): Same.
20400 (input_function): Same.
20401 (lto_read_body_or_constructor): Same.
20402 (lto_read_tree_1): Same.
20403 (lto_read_tree): Same.
20404 (lto_input_scc): Same.
20405 (lto_input_tree_1): Same.
20406 (lto_input_toplevel_asms): Same.
20407 (lto_input_mode_table): Same.
20408 (lto_reader_init): Same.
20409 (lto_data_in_create): Same.
20410 * lto-streamer-out.c (output_cfg): Same.
20411 * lto-streamer.h: Same.
20412 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20413 (generate_prolog_epilog): Same.
20414 (mark_loop_unsched): Same.
20415 (dump_insn_location): Same.
20416 (loop_canon_p): Same.
20417 (sms_schedule): Same.
20418 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20419 (expand_omp_for_generic): Same.
20420 (expand_omp_for_static_nochunk): Same.
20421 (expand_omp_for_static_chunk): Same.
20422 (expand_omp_simd): Same.
20423 (expand_omp_taskloop_for_inner): Same.
20424 (expand_oacc_for): Same.
20425 (expand_omp_atomic_pipeline): Same.
20426 (mark_loops_in_oacc_kernels_region): Same.
20427 * omp-offload.c (oacc_xform_loop): Same.
20428 * omp-simd-clone.c (simd_clone_adjust): Same.
20429 * optabs-query.c (get_traditional_extraction_insn): Same.
20430 * optabs.c (expand_vector_broadcast): Same.
20431 (expand_binop_directly): Same.
20432 (expand_twoval_unop): Same.
20433 (expand_twoval_binop): Same.
20434 (expand_unop_direct): Same.
20435 (emit_indirect_jump): Same.
20436 (emit_conditional_move): Same.
20437 (emit_conditional_neg_or_complement): Same.
20438 (emit_conditional_add): Same.
20439 (vector_compare_rtx): Same.
20440 (expand_vec_perm_1): Same.
20441 (expand_vec_perm_const): Same.
20442 (expand_vec_cond_expr): Same.
20443 (expand_vec_series_expr): Same.
20444 (maybe_emit_atomic_exchange): Same.
20445 (maybe_emit_sync_lock_test_and_set): Same.
20446 (expand_atomic_compare_and_swap): Same.
20447 (expand_atomic_load): Same.
20448 (expand_atomic_store): Same.
20449 (maybe_emit_op): Same.
20450 (valid_multiword_target_p): Same.
20451 (create_integer_operand): Same.
20452 (maybe_legitimize_operand_same_code): Same.
20453 (maybe_legitimize_operand): Same.
20454 (create_convert_operand_from_type): Same.
20455 (can_reuse_operands_p): Same.
20456 (maybe_legitimize_operands): Same.
20457 (maybe_gen_insn): Same.
20458 (maybe_expand_insn): Same.
20459 (maybe_expand_jump_insn): Same.
20460 (expand_insn): Same.
20461 * optabs.h (create_expand_operand): Same.
20462 (create_fixed_operand): Same.
20463 (create_output_operand): Same.
20464 (create_input_operand): Same.
20465 (create_convert_operand_to): Same.
20466 (create_convert_operand_from): Same.
20467 * optinfo.h: Same.
20468 * poly-int.h: Same.
20469 * predict.c (optimize_insn_for_speed_p): Same.
20470 (optimize_loop_for_size_p): Same.
20471 (optimize_loop_for_speed_p): Same.
20472 (optimize_loop_nest_for_speed_p): Same.
20473 (get_base_value): Same.
20474 (predicted_by_loop_heuristics_p): Same.
20475 (predict_extra_loop_exits): Same.
20476 (predict_loops): Same.
20477 (predict_paths_for_bb): Same.
20478 (predict_paths_leading_to): Same.
20479 (propagate_freq): Same.
20480 (pass_profile::execute): Same.
20481 * predict.h: Same.
20482 * profile-count.c (profile_count::differs_from_p): Same.
20483 (profile_probability::differs_lot_from_p): Same.
20484 * profile-count.h: Same.
20485 * profile.c (branch_prob): Same.
20486 * regrename.c (free_chain_data): Same.
20487 (mark_conflict): Same.
20488 (create_new_chain): Same.
20489 (merge_overlapping_regs): Same.
20490 (init_rename_info): Same.
20491 (merge_chains): Same.
20492 (regrename_analyze): Same.
20493 (regrename_do_replace): Same.
20494 (scan_rtx_reg): Same.
20495 (record_out_operands): Same.
20496 (build_def_use): Same.
20497 * regrename.h: Same.
20498 * reload.h: Same.
20499 * reload1.c (init_reload): Same.
20500 (maybe_fix_stack_asms): Same.
20501 (copy_reloads): Same.
20502 (count_pseudo): Same.
20503 (count_spilled_pseudo): Same.
20504 (find_reg): Same.
20505 (find_reload_regs): Same.
20506 (select_reload_regs): Same.
20507 (spill_hard_reg): Same.
20508 (fixup_eh_region_note): Same.
20509 (set_reload_reg): Same.
20510 (allocate_reload_reg): Same.
20511 (compute_reload_subreg_offset): Same.
20512 (reload_adjust_reg_for_icode): Same.
20513 (emit_input_reload_insns): Same.
20514 (emit_output_reload_insns): Same.
20515 (do_input_reload): Same.
20516 (inherit_piecemeal_p): Same.
20517 * rtl.h: Same.
20518 * sanopt.c (maybe_get_dominating_check): Same.
20519 (maybe_optimize_ubsan_ptr_ifn): Same.
20520 (can_remove_asan_check): Same.
20521 (maybe_optimize_asan_check_ifn): Same.
20522 (sanopt_optimize_walker): Same.
20523 * sched-deps.c (add_dependence_list): Same.
20524 (chain_to_prev_insn): Same.
20525 (add_insn_mem_dependence): Same.
20526 (create_insn_reg_set): Same.
20527 (maybe_extend_reg_info_p): Same.
20528 (sched_analyze_reg): Same.
20529 (sched_analyze_1): Same.
20530 (get_implicit_reg_pending_clobbers): Same.
20531 (chain_to_prev_insn_p): Same.
20532 (deps_analyze_insn): Same.
20533 (deps_start_bb): Same.
20534 (sched_free_deps): Same.
20535 (init_deps): Same.
20536 (init_deps_reg_last): Same.
20537 (free_deps): Same.
20538 * sched-ebb.c: Same.
20539 * sched-int.h: Same.
20540 * sched-rgn.c (add_branch_dependences): Same.
20541 (concat_insn_mem_list): Same.
20542 (deps_join): Same.
20543 (sched_rgn_compute_dependencies): Same.
20544 * sel-sched-ir.c (reset_target_context): Same.
20545 (copy_deps_context): Same.
20546 (init_id_from_df): Same.
20547 (has_dependence_p): Same.
20548 (change_loops_latches): Same.
20549 (bb_top_order_comparator): Same.
20550 (make_region_from_loop_preheader): Same.
20551 (sel_init_pipelining): Same.
20552 (get_loop_nest_for_rgn): Same.
20553 (make_regions_from_the_rest): Same.
20554 (sel_is_loop_preheader_p): Same.
20555 * sel-sched-ir.h (inner_loop_header_p): Same.
20556 (get_all_loop_exits): Same.
20557 * selftest.h: Same.
20558 * sese.c (sese_build_liveouts): Same.
20559 (sese_insert_phis_for_liveouts): Same.
20560 * sese.h (defined_in_sese_p): Same.
20561 * sreal.c (sreal::stream_out): Same.
20562 * sreal.h: Same.
20563 * streamer-hooks.h: Same.
20564 * target-globals.c (save_target_globals): Same.
20565 * target-globals.h: Same.
20566 * target.def: Same.
20567 * target.h: Same.
20568 * targhooks.c (default_has_ifunc_p): Same.
20569 (default_empty_mask_is_expensive): Same.
20570 (default_init_cost): Same.
20571 * targhooks.h: Same.
20572 * toplev.c: Same.
20573 * tree-affine.c (aff_combination_mult): Same.
20574 (aff_combination_expand): Same.
20575 (aff_combination_constant_multiple_p): Same.
20576 * tree-affine.h: Same.
20577 * tree-cfg.c (build_gimple_cfg): Same.
20578 (replace_loop_annotate_in_block): Same.
20579 (replace_uses_by): Same.
20580 (remove_bb): Same.
20581 (dump_cfg_stats): Same.
20582 (gimple_duplicate_sese_region): Same.
20583 (gimple_duplicate_sese_tail): Same.
20584 (move_block_to_fn): Same.
20585 (replace_block_vars_by_duplicates): Same.
20586 (move_sese_region_to_fn): Same.
20587 (print_loops_bb): Same.
20588 (print_loop): Same.
20589 (print_loops): Same.
20590 (debug): Same.
20591 (debug_loops): Same.
20592 * tree-cfg.h: Same.
20593 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20594 (chrec_fold_multiply_poly_poly): Same.
20595 (chrec_evaluate): Same.
20596 (chrec_component_in_loop_num): Same.
20597 (reset_evolution_in_loop): Same.
20598 (is_multivariate_chrec): Same.
20599 (chrec_contains_symbols): Same.
20600 (nb_vars_in_chrec): Same.
20601 (chrec_convert_1): Same.
20602 (chrec_convert_aggressive): Same.
20603 * tree-chrec.h: Same.
20604 * tree-core.h: Same.
20605 * tree-data-ref.c (dump_data_dependence_relation): Same.
20606 (canonicalize_base_object_address): Same.
20607 (data_ref_compare_tree): Same.
20608 (prune_runtime_alias_test_list): Same.
20609 (get_segment_min_max): Same.
20610 (create_intersect_range_checks): Same.
20611 (conflict_fn_no_dependence): Same.
20612 (object_address_invariant_in_loop_p): Same.
20613 (analyze_ziv_subscript): Same.
20614 (analyze_siv_subscript_cst_affine): Same.
20615 (analyze_miv_subscript): Same.
20616 (analyze_overlapping_iterations): Same.
20617 (build_classic_dist_vector_1): Same.
20618 (add_other_self_distances): Same.
20619 (same_access_functions): Same.
20620 (build_classic_dir_vector): Same.
20621 (subscript_dependence_tester_1): Same.
20622 (subscript_dependence_tester): Same.
20623 (access_functions_are_affine_or_constant_p): Same.
20624 (get_references_in_stmt): Same.
20625 (loop_nest_has_data_refs): Same.
20626 (graphite_find_data_references_in_stmt): Same.
20627 (find_data_references_in_bb): Same.
20628 (get_base_for_alignment): Same.
20629 (find_loop_nest_1): Same.
20630 (find_loop_nest): Same.
20631 * tree-data-ref.h (dr_alignment): Same.
20632 (ddr_dependence_level): Same.
20633 * tree-if-conv.c (fold_build_cond_expr): Same.
20634 (add_to_predicate_list): Same.
20635 (add_to_dst_predicate_list): Same.
20636 (phi_convertible_by_degenerating_args): Same.
20637 (idx_within_array_bound): Same.
20638 (all_preds_critical_p): Same.
20639 (pred_blocks_visited_p): Same.
20640 (predicate_bbs): Same.
20641 (build_region): Same.
20642 (if_convertible_loop_p_1): Same.
20643 (is_cond_scalar_reduction): Same.
20644 (predicate_scalar_phi): Same.
20645 (remove_conditions_and_labels): Same.
20646 (combine_blocks): Same.
20647 (version_loop_for_if_conversion): Same.
20648 (versionable_outer_loop_p): Same.
20649 (ifcvt_local_dce): Same.
20650 (tree_if_conversion): Same.
20651 (pass_if_conversion::gate): Same.
20652 * tree-if-conv.h: Same.
20653 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20654 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20655 (free_rdg): Same.
20656 (stmt_has_scalar_dependences_outside_loop): Same.
20657 (copy_loop_before): Same.
20658 (create_bb_after_loop): Same.
20659 (const_with_all_bytes_same): Same.
20660 (generate_memset_builtin): Same.
20661 (generate_memcpy_builtin): Same.
20662 (destroy_loop): Same.
20663 (build_rdg_partition_for_vertex): Same.
20664 (compute_access_range): Same.
20665 (data_ref_segment_size): Same.
20666 (latch_dominated_by_data_ref): Same.
20667 (compute_alias_check_pairs): Same.
20668 (fuse_memset_builtins): Same.
20669 (finalize_partitions): Same.
20670 (find_seed_stmts_for_distribution): Same.
20671 (prepare_perfect_loop_nest): Same.
20672 * tree-parloops.c (lambda_transform_legal_p): Same.
20673 (loop_parallel_p): Same.
20674 (reduc_stmt_res): Same.
20675 (add_field_for_name): Same.
20676 (create_call_for_reduction_1): Same.
20677 (replace_uses_in_bb_by): Same.
20678 (transform_to_exit_first_loop_alt): Same.
20679 (try_transform_to_exit_first_loop_alt): Same.
20680 (transform_to_exit_first_loop): Same.
20681 (num_phis): Same.
20682 (gen_parallel_loop): Same.
20683 (gather_scalar_reductions): Same.
20684 (get_omp_data_i_param): Same.
20685 (try_create_reduction_list): Same.
20686 (oacc_entry_exit_single_gang): Same.
20687 (parallelize_loops): Same.
20688 * tree-pass.h: Same.
20689 * tree-predcom.c (determine_offset): Same.
20690 (last_always_executed_block): Same.
20691 (split_data_refs_to_components): Same.
20692 (suitable_component_p): Same.
20693 (valid_initializer_p): Same.
20694 (find_looparound_phi): Same.
20695 (insert_looparound_copy): Same.
20696 (add_looparound_copies): Same.
20697 (determine_roots_comp): Same.
20698 (predcom_tmp_var): Same.
20699 (initialize_root_vars): Same.
20700 (initialize_root_vars_store_elim_1): Same.
20701 (initialize_root_vars_store_elim_2): Same.
20702 (finalize_eliminated_stores): Same.
20703 (initialize_root_vars_lm): Same.
20704 (remove_stmt): Same.
20705 (determine_unroll_factor): Same.
20706 (execute_pred_commoning_cbck): Same.
20707 (base_names_in_chain_on): Same.
20708 (combine_chains): Same.
20709 (pcom_stmt_dominates_stmt_p): Same.
20710 (try_combine_chains): Same.
20711 (prepare_initializers_chain_store_elim): Same.
20712 (prepare_initializers_chain): Same.
20713 (prepare_initializers): Same.
20714 (prepare_finalizers_chain): Same.
20715 (prepare_finalizers): Same.
20716 (insert_init_seqs): Same.
20717 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20718 (compute_overall_effect_of_inner_loop): Same.
20719 (add_to_evolution_1): Same.
20720 (add_to_evolution): Same.
20721 (follow_ssa_edge_binary): Same.
20722 (follow_ssa_edge_expr): Same.
20723 (backedge_phi_arg_p): Same.
20724 (follow_ssa_edge_in_condition_phi_branch): Same.
20725 (follow_ssa_edge_in_condition_phi): Same.
20726 (follow_ssa_edge_inner_loop_phi): Same.
20727 (follow_ssa_edge): Same.
20728 (analyze_evolution_in_loop): Same.
20729 (analyze_initial_condition): Same.
20730 (interpret_loop_phi): Same.
20731 (interpret_condition_phi): Same.
20732 (interpret_rhs_expr): Same.
20733 (interpret_expr): Same.
20734 (interpret_gimple_assign): Same.
20735 (analyze_scalar_evolution_1): Same.
20736 (analyze_scalar_evolution): Same.
20737 (analyze_scalar_evolution_for_address_of): Same.
20738 (get_instantiated_value_entry): Same.
20739 (loop_closed_phi_def): Same.
20740 (instantiate_scev_name): Same.
20741 (instantiate_scev_poly): Same.
20742 (instantiate_scev_binary): Same.
20743 (instantiate_scev_convert): Same.
20744 (instantiate_scev_not): Same.
20745 (instantiate_scev_r): Same.
20746 (instantiate_scev): Same.
20747 (resolve_mixers): Same.
20748 (initialize_scalar_evolutions_analyzer): Same.
20749 (scev_reset_htab): Same.
20750 (scev_reset): Same.
20751 (derive_simple_iv_with_niters): Same.
20752 (simple_iv_with_niters): Same.
20753 (expression_expensive_p): Same.
20754 (final_value_replacement_loop): Same.
20755 * tree-scalar-evolution.h (block_before_loop): Same.
20756 * tree-ssa-address.h: Same.
20757 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20758 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20759 (record_edge_info): Same.
20760 * tree-ssa-live.c (var_map_base_fini): Same.
20761 (remove_unused_locals): Same.
20762 * tree-ssa-live.h: Same.
20763 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20764 (pass_ch_vect::execute): Same.
20765 (pass_ch::process_loop_p): Same.
20766 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20767 (movement_possibility): Same.
20768 (outermost_invariant_loop): Same.
20769 (stmt_cost): Same.
20770 (determine_max_movement): Same.
20771 (invariantness_dom_walker::before_dom_children): Same.
20772 (move_computations): Same.
20773 (may_move_till): Same.
20774 (force_move_till_op): Same.
20775 (force_move_till): Same.
20776 (memref_free): Same.
20777 (record_mem_ref_loc): Same.
20778 (set_ref_stored_in_loop): Same.
20779 (mark_ref_stored): Same.
20780 (sort_bbs_in_loop_postorder_cmp): Same.
20781 (sort_locs_in_loop_postorder_cmp): Same.
20782 (analyze_memory_references): Same.
20783 (mem_refs_may_alias_p): Same.
20784 (find_ref_loc_in_loop_cmp): Same.
20785 (rewrite_mem_ref_loc::operator): Same.
20786 (first_mem_ref_loc_1::operator): Same.
20787 (sm_set_flag_if_changed::operator): Same.
20788 (execute_sm_if_changed_flag_set): Same.
20789 (execute_sm): Same.
20790 (hoist_memory_references): Same.
20791 (ref_always_accessed::operator): Same.
20792 (refs_independent_p): Same.
20793 (record_dep_loop): Same.
20794 (ref_indep_loop_p_1): Same.
20795 (ref_indep_loop_p): Same.
20796 (can_sm_ref_p): Same.
20797 (find_refs_for_sm): Same.
20798 (loop_suitable_for_sm): Same.
20799 (store_motion_loop): Same.
20800 (store_motion): Same.
20801 (fill_always_executed_in): Same.
20802 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20803 (estimated_unrolled_size): Same.
20804 (loop_edge_to_cancel): Same.
20805 (remove_exits_and_undefined_stmts): Same.
20806 (remove_redundant_iv_tests): Same.
20807 (unloop_loops): Same.
20808 (estimated_peeled_sequence_size): Same.
20809 (try_peel_loop): Same.
20810 (canonicalize_loop_induction_variables): Same.
20811 (canonicalize_induction_variables): Same.
20812 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20813 (name_info): Same.
20814 (stmt_after_inc_pos): Same.
20815 (contains_abnormal_ssa_name_p): Same.
20816 (niter_for_exit): Same.
20817 (find_bivs): Same.
20818 (mark_bivs): Same.
20819 (find_givs_in_bb): Same.
20820 (find_induction_variables): Same.
20821 (find_interesting_uses_cond): Same.
20822 (outermost_invariant_loop_for_expr): Same.
20823 (idx_find_step): Same.
20824 (add_candidate_1): Same.
20825 (add_iv_candidate_derived_from_uses): Same.
20826 (alloc_use_cost_map): Same.
20827 (prepare_decl_rtl): Same.
20828 (generic_predict_doloop_p): Same.
20829 (computation_cost): Same.
20830 (determine_common_wider_type): Same.
20831 (get_computation_aff_1): Same.
20832 (get_use_type): Same.
20833 (determine_group_iv_cost_address): Same.
20834 (iv_period): Same.
20835 (difference_cannot_overflow_p): Same.
20836 (may_eliminate_iv): Same.
20837 (determine_set_costs): Same.
20838 (cheaper_cost_pair): Same.
20839 (compare_cost_pair): Same.
20840 (iv_ca_cand_for_group): Same.
20841 (iv_ca_recount_cost): Same.
20842 (iv_ca_set_remove_invs): Same.
20843 (iv_ca_set_no_cp): Same.
20844 (iv_ca_set_add_invs): Same.
20845 (iv_ca_set_cp): Same.
20846 (iv_ca_add_group): Same.
20847 (iv_ca_cost): Same.
20848 (iv_ca_compare_deps): Same.
20849 (iv_ca_delta_reverse): Same.
20850 (iv_ca_delta_commit): Same.
20851 (iv_ca_cand_used_p): Same.
20852 (iv_ca_delta_free): Same.
20853 (iv_ca_new): Same.
20854 (iv_ca_free): Same.
20855 (iv_ca_dump): Same.
20856 (iv_ca_extend): Same.
20857 (iv_ca_narrow): Same.
20858 (iv_ca_prune): Same.
20859 (cheaper_cost_with_cand): Same.
20860 (iv_ca_replace): Same.
20861 (try_add_cand_for): Same.
20862 (get_initial_solution): Same.
20863 (try_improve_iv_set): Same.
20864 (find_optimal_iv_set_1): Same.
20865 (create_new_iv): Same.
20866 (rewrite_use_compare): Same.
20867 (remove_unused_ivs): Same.
20868 (determine_scaling_factor): Same.
20869 * tree-ssa-loop-ivopts.h: Same.
20870 * tree-ssa-loop-manip.c (create_iv): Same.
20871 (compute_live_loop_exits): Same.
20872 (add_exit_phi): Same.
20873 (add_exit_phis): Same.
20874 (find_uses_to_rename_use): Same.
20875 (find_uses_to_rename_def): Same.
20876 (find_uses_to_rename_in_loop): Same.
20877 (rewrite_into_loop_closed_ssa): Same.
20878 (check_loop_closed_ssa_bb): Same.
20879 (split_loop_exit_edge): Same.
20880 (ip_end_pos): Same.
20881 (ip_normal_pos): Same.
20882 (copy_phi_node_args): Same.
20883 (gimple_duplicate_loop_to_header_edge): Same.
20884 (can_unroll_loop_p): Same.
20885 (determine_exit_conditions): Same.
20886 (scale_dominated_blocks_in_loop): Same.
20887 (niter_for_unrolled_loop): Same.
20888 (tree_transform_and_unroll_loop): Same.
20889 (rewrite_all_phi_nodes_with_iv): Same.
20890 * tree-ssa-loop-manip.h: Same.
20891 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20892 (number_of_iterations_ne): Same.
20893 (assert_no_overflow_lt): Same.
20894 (assert_loop_rolls_lt): Same.
20895 (number_of_iterations_lt): Same.
20896 (adjust_cond_for_loop_until_wrap): Same.
20897 (tree_simplify_using_condition): Same.
20898 (simplify_using_initial_conditions): Same.
20899 (simplify_using_outer_evolutions): Same.
20900 (loop_only_exit_p): Same.
20901 (ssa_defined_by_minus_one_stmt_p): Same.
20902 (number_of_iterations_popcount): Same.
20903 (number_of_iterations_exit): Same.
20904 (find_loop_niter): Same.
20905 (finite_loop_p): Same.
20906 (chain_of_csts_start): Same.
20907 (get_val_for): Same.
20908 (loop_niter_by_eval): Same.
20909 (derive_constant_upper_bound_ops): Same.
20910 (do_warn_aggressive_loop_optimizations): Same.
20911 (record_estimate): Same.
20912 (get_cst_init_from_scev): Same.
20913 (record_nonwrapping_iv): Same.
20914 (idx_infer_loop_bounds): Same.
20915 (infer_loop_bounds_from_ref): Same.
20916 (infer_loop_bounds_from_array): Same.
20917 (infer_loop_bounds_from_pointer_arith): Same.
20918 (infer_loop_bounds_from_signedness): Same.
20919 (bound_index): Same.
20920 (discover_iteration_bound_by_body_walk): Same.
20921 (maybe_lower_iteration_bound): Same.
20922 (estimate_numbers_of_iterations): Same.
20923 (estimated_loop_iterations): Same.
20924 (estimated_loop_iterations_int): Same.
20925 (max_loop_iterations): Same.
20926 (max_loop_iterations_int): Same.
20927 (likely_max_loop_iterations): Same.
20928 (likely_max_loop_iterations_int): Same.
20929 (estimated_stmt_executions_int): Same.
20930 (max_stmt_executions): Same.
20931 (likely_max_stmt_executions): Same.
20932 (estimated_stmt_executions): Same.
20933 (stmt_dominates_stmt_p): Same.
20934 (nowrap_type_p): Same.
20935 (loop_exits_before_overflow): Same.
20936 (scev_var_range_cant_overflow): Same.
20937 (scev_probably_wraps_p): Same.
20938 (free_numbers_of_iterations_estimates): Same.
20939 * tree-ssa-loop-niter.h: Same.
20940 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20941 (idx_analyze_ref): Same.
20942 (analyze_ref): Same.
20943 (gather_memory_references_ref): Same.
20944 (mark_nontemporal_store): Same.
20945 (emit_mfence_after_loop): Same.
20946 (may_use_storent_in_loop_p): Same.
20947 (mark_nontemporal_stores): Same.
20948 (should_unroll_loop_p): Same.
20949 (volume_of_dist_vector): Same.
20950 (add_subscript_strides): Same.
20951 (self_reuse_distance): Same.
20952 (insn_to_prefetch_ratio_too_small_p): Same.
20953 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20954 (patch_loop_exit): Same.
20955 (find_or_create_guard_phi): Same.
20956 (easy_exit_values): Same.
20957 (connect_loop_phis): Same.
20958 (connect_loops): Same.
20959 (compute_new_first_bound): Same.
20960 (split_loop): Same.
20961 (tree_ssa_split_loops): Same.
20962 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20963 (is_maybe_undefined): Same.
20964 (tree_may_unswitch_on): Same.
20965 (simplify_using_entry_checks): Same.
20966 (tree_unswitch_single_loop): Same.
20967 (tree_unswitch_loop): Same.
20968 (tree_unswitch_outer_loop): Same.
20969 (empty_bb_without_guard_p): Same.
20970 (used_outside_loop_p): Same.
20971 (get_vop_from_header): Same.
20972 (hoist_guard): Same.
20973 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20974 (get_lsm_tmp_name): Same.
20975 * tree-ssa-loop.h: Same.
20976 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20977 (build_and_add_sum): Same.
20978 (no_side_effect_bb): Same.
20979 (get_ops): Same.
20980 (linearize_expr): Same.
20981 (should_break_up_subtract): Same.
20982 (linearize_expr_tree): Same.
20983 * tree-ssa-scopedtables.c: Same.
20984 * tree-ssa-scopedtables.h: Same.
20985 * tree-ssa-structalias.c (condense_visit): Same.
20986 (label_visit): Same.
20987 (dump_pred_graph): Same.
20988 (perform_var_substitution): Same.
20989 (move_complex_constraints): Same.
20990 (remove_preds_and_fake_succs): Same.
20991 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20992 (determine_bb_domination_status): Same.
20993 (duplicate_thread_path): Same.
20994 (thread_through_all_blocks): Same.
20995 * tree-ssa-threadupdate.h: Same.
20996 * tree-streamer-in.c (streamer_read_string_cst): Same.
20997 (input_identifier): Same.
20998 (unpack_ts_type_common_value_fields): Same.
20999 (unpack_ts_block_value_fields): Same.
21000 (unpack_ts_translation_unit_decl_value_fields): Same.
21001 (unpack_ts_omp_clause_value_fields): Same.
21002 (streamer_read_tree_bitfields): Same.
21003 (streamer_alloc_tree): Same.
21004 (lto_input_ts_common_tree_pointers): Same.
21005 (lto_input_ts_vector_tree_pointers): Same.
21006 (lto_input_ts_poly_tree_pointers): Same.
21007 (lto_input_ts_complex_tree_pointers): Same.
21008 (lto_input_ts_decl_minimal_tree_pointers): Same.
21009 (lto_input_ts_decl_common_tree_pointers): Same.
21010 (lto_input_ts_decl_non_common_tree_pointers): Same.
21011 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21012 (lto_input_ts_field_decl_tree_pointers): Same.
21013 (lto_input_ts_function_decl_tree_pointers): Same.
21014 (lto_input_ts_type_common_tree_pointers): Same.
21015 (lto_input_ts_type_non_common_tree_pointers): Same.
21016 (lto_input_ts_list_tree_pointers): Same.
21017 (lto_input_ts_vec_tree_pointers): Same.
21018 (lto_input_ts_exp_tree_pointers): Same.
21019 (lto_input_ts_block_tree_pointers): Same.
21020 (lto_input_ts_binfo_tree_pointers): Same.
21021 (lto_input_ts_constructor_tree_pointers): Same.
21022 (lto_input_ts_omp_clause_tree_pointers): Same.
21023 (streamer_read_tree_body): Same.
21024 * tree-streamer.h: Same.
21025 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21026 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21027 (vect_analyze_possibly_independent_ddr): Same.
21028 (vect_analyze_data_ref_dependence): Same.
21029 (vect_compute_data_ref_alignment): Same.
21030 (vect_enhance_data_refs_alignment): Same.
21031 (vect_analyze_data_ref_access): Same.
21032 (vect_check_gather_scatter): Same.
21033 (vect_find_stmt_data_reference): Same.
21034 (vect_create_addr_base_for_vector_ref): Same.
21035 (vect_setup_realignment): Same.
21036 (vect_supportable_dr_alignment): Same.
21037 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21038 (adjust_phi_and_debug_stmts): Same.
21039 (vect_set_loop_mask): Same.
21040 (add_preheader_seq): Same.
21041 (vect_maybe_permute_loop_masks): Same.
21042 (vect_set_loop_masks_directly): Same.
21043 (vect_set_loop_condition_masked): Same.
21044 (vect_set_loop_condition_unmasked): Same.
21045 (slpeel_duplicate_current_defs_from_edges): Same.
21046 (slpeel_add_loop_guard): Same.
21047 (slpeel_can_duplicate_loop_p): Same.
21048 (create_lcssa_for_virtual_phi): Same.
21049 (iv_phi_p): Same.
21050 (vect_update_ivs_after_vectorizer): Same.
21051 (vect_gen_vector_loop_niters_mult_vf): Same.
21052 (slpeel_update_phi_nodes_for_loops): Same.
21053 (slpeel_update_phi_nodes_for_guard1): Same.
21054 (find_guard_arg): Same.
21055 (slpeel_update_phi_nodes_for_guard2): Same.
21056 (slpeel_update_phi_nodes_for_lcssa): Same.
21057 (vect_do_peeling): Same.
21058 (vect_create_cond_for_alias_checks): Same.
21059 (vect_loop_versioning): Same.
21060 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21061 (vect_inner_phi_in_double_reduction_p): Same.
21062 (vect_analyze_scalar_cycles_1): Same.
21063 (vect_fixup_scalar_cycles_with_patterns): Same.
21064 (vect_get_loop_niters): Same.
21065 (bb_in_loop_p): Same.
21066 (vect_get_max_nscalars_per_iter): Same.
21067 (vect_verify_full_masking): Same.
21068 (vect_compute_single_scalar_iteration_cost): Same.
21069 (vect_analyze_loop_form_1): Same.
21070 (vect_analyze_loop_form): Same.
21071 (vect_active_double_reduction_p): Same.
21072 (vect_analyze_loop_operations): Same.
21073 (neutral_op_for_slp_reduction): Same.
21074 (vect_is_simple_reduction): Same.
21075 (vect_model_reduction_cost): Same.
21076 (get_initial_def_for_reduction): Same.
21077 (get_initial_defs_for_reduction): Same.
21078 (vect_create_epilog_for_reduction): Same.
21079 (vectorize_fold_left_reduction): Same.
21080 (vectorizable_reduction): Same.
21081 (vectorizable_induction): Same.
21082 (vectorizable_live_operation): Same.
21083 (loop_niters_no_overflow): Same.
21084 (vect_get_loop_mask): Same.
21085 (vect_transform_loop_stmt): Same.
21086 (vect_transform_loop): Same.
21087 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21088 (vect_determine_precisions): Same.
21089 (vect_pattern_recog_1): Same.
21090 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21091 * tree-vect-stmts.c (stmt_vectype): Same.
21092 (process_use): Same.
21093 (vect_init_vector_1): Same.
21094 (vect_truncate_gather_scatter_offset): Same.
21095 (get_group_load_store_type): Same.
21096 (vect_build_gather_load_calls): Same.
21097 (vect_get_strided_load_store_ops): Same.
21098 (vectorizable_simd_clone_call): Same.
21099 (vectorizable_store): Same.
21100 (permute_vec_elements): Same.
21101 (vectorizable_load): Same.
21102 (vect_transform_stmt): Same.
21103 (supportable_widening_operation): Same.
21104 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21105 (vec_info::free_stmt_vec_info): Same.
21106 (vect_free_loop_info_assumptions): Same.
21107 (vect_loop_vectorized_call): Same.
21108 (set_uid_loop_bbs): Same.
21109 (vectorize_loops): Same.
21110 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21111 * tree.c (add_tree_to_fld_list): Same.
21112 (fld_type_variant_equal_p): Same.
21113 (fld_decl_context): Same.
21114 (fld_incomplete_type_of): Same.
21115 (free_lang_data_in_binfo): Same.
21116 (need_assembler_name_p): Same.
21117 (find_decls_types_r): Same.
21118 (get_eh_types_for_runtime): Same.
21119 (find_decls_types_in_eh_region): Same.
21120 (find_decls_types_in_node): Same.
21121 (assign_assembler_name_if_needed): Same.
21122 * value-prof.c (stream_out_histogram_value): Same.
21123 * value-prof.h: Same.
21124 * var-tracking.c (use_narrower_mode): Same.
21125 (prepare_call_arguments): Same.
21126 (vt_expand_loc_callback): Same.
21127 (resolve_expansions_pending_recursion): Same.
21128 (vt_expand_loc): Same.
21129 * varasm.c (const_hash_1): Same.
21130 (compare_constant): Same.
21131 (tree_output_constant_def): Same.
21132 (simplify_subtraction): Same.
21133 (get_pool_constant): Same.
21134 (output_constant_pool_2): Same.
21135 (output_constant_pool_1): Same.
21136 (mark_constants_in_pattern): Same.
21137 (mark_constant_pool): Same.
21138 (get_section_anchor): Same.
21139 * vr-values.c (compare_range_with_value): Same.
21140 (vr_values::extract_range_from_phi_node): Same.
21141 * vr-values.h: Same.
21142 * web.c (unionfind_union): Same.
21143 * wide-int.h: Same.
21144
21145 2019-07-09 Martin Sebor <msebor@redhat.com>
21146
21147 PR c++/61339
21148 * align.h: Change class-key from class to struct and vice versa
21149 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21150 * alloc-pool.h: Same.
21151 * asan.c (shadow_mem_size): Same.
21152 * auto-profile.c: Same.
21153 * basic-block.h: Same.
21154 * bitmap.h: Same.
21155 * cfgexpand.c (set_rtl): Same.
21156 (expand_one_stack_var_at): Same.
21157 * cfghooks.h: Same.
21158 * cfgloop.h: Same.
21159 * cgraph.h: Same.
21160 * config/i386/i386.h: Same.
21161 * df-problems.c (df_print_bb_index): Same.
21162 * df-scan.c: Same.
21163 * df.h (df_single_use): Same.
21164 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21165 (layout::annotation_line_showed_range_p): Same.
21166 (get_printed_columns): Same.
21167 (correction::ensure_terminated): Same.
21168 (line_corrections::~line_corrections): Same.
21169 * dojump.h: Same.
21170 * dse.c: Same.
21171 * dump-context.h: Same.
21172 * dumpfile.h: Same.
21173 * dwarf2out.c: Same.
21174 * edit-context.c: Same.
21175 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21176 * flags.h: Same.
21177 * function.c (assign_stack_local): Same.
21178 * function.h: Same.
21179 * gcc.c: Same.
21180 * gcov.c (block_info::block_info): Same.
21181 * genattrtab.c: Same.
21182 * genextract.c: Same.
21183 * genmatch.c (comparison_code_p): Same.
21184 (id_base::id_base): Same.
21185 (decision_tree::print): Same.
21186 * genoutput.c: Same.
21187 * genpreds.c (write_one_predicate_function): Same.
21188 * genrecog.c (validate_pattern): Same.
21189 (find_operand_positions): Same.
21190 (optimize_subroutine_group): Same.
21191 (merge_pattern_transition::merge_pattern_transition): Same.
21192 (merge_pattern_info::merge_pattern_info): Same.
21193 (merge_state_result::merge_state_result): Same.
21194 (merge_into_state): Same.
21195 * gensupport.c: Same.
21196 * gensupport.h: Same.
21197 * ggc-common.c (init_ggc_heuristics): Same.
21198 * ggc-tests.c (test_union): Same.
21199 * gimple-loop-interchange.cc (dump_induction): Same.
21200 * gimple-loop-versioning.cc: Same.
21201 * gimple-match.h (gimple_match_cond::any_else): Same.
21202 * gimple-ssa-backprop.c: Same.
21203 * gimple-ssa-sprintf.c: Same.
21204 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21205 Same.
21206 (store_immediate_info::store_immediate_info): Same.
21207 (merged_store_group::apply_stores): Same.
21208 (get_location_for_stmts): Same.
21209 * gimple-ssa-strength-reduction.c: Same.
21210 * gimple-ssa-warn-alloca.c: Same.
21211 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21212 * godump.c (go_type_decl): Same.
21213 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21214 * hash-map.h: Same.
21215 * hash-set-tests.c (test_set_of_strings): Same.
21216 * hsa-brig.c: Same.
21217 * hsa-common.h: Same.
21218 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21219 * input.c (assert_loceq): Same.
21220 * input.h: Same.
21221 * ipa-cp.c: Same.
21222 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21223 * ipa-fnsummary.h: Same.
21224 * ipa-inline.h: Same.
21225 * ipa-prop.h: Same.
21226 * ipa-split.c (visit_bb): Same.
21227 * ira-int.h (minmax_set_iter_next): Same.
21228 * loop-invariant.c: Same.
21229 * loop-iv.c: Same.
21230 * lra-eliminations.c: Same.
21231 * lra-int.h: Same.
21232 * lra-lives.c (mark_regno_dead): Same.
21233 * lra-remat.c: Same.
21234 * lra-spills.c: Same.
21235 * lto-streamer.h: Same.
21236 * mem-stats.h: Same.
21237 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21238 * omp-low.c (omp_clause_aligned_alignment): Same.
21239 * optabs-query.h (get_vcond_eq_icode): Same.
21240 * optabs.h: Same.
21241 * opts.c (wrap_help): Same.
21242 * poly-int.h: Same.
21243 * predict.c (predict_paths_leading_to_edge): Same.
21244 * pretty-print.h: Same.
21245 * profile-count.h: Same.
21246 * read-md.h: Same.
21247 * read-rtl-function.c: Same.
21248 * ree.c: Same.
21249 * reginfo.c: Same.
21250 * regrename.c: Same.
21251 * regrename.h: Same.
21252 * reload.h: Same.
21253 * rtl-iter.h: Same.
21254 * rtl.h (costs_add_n_insns): Same.
21255 * sanopt.c: Same.
21256 * sched-int.h: Same.
21257 * sel-sched-ir.h: Same.
21258 * selftest.h: Same.
21259 * sese.h (vec_find): Same.
21260 * stmt.c: Same.
21261 * target-globals.h: Same.
21262 * tree-affine.c (aff_combination_find_elt): Same.
21263 * tree-affine.h: Same.
21264 * tree-data-ref.h: Same.
21265 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21266 * tree-predcom.c: Same.
21267 * tree-scalar-evolution.c (find_var_scev_info): Same.
21268 * tree-ssa-alias.h: Same.
21269 * tree-ssa-ccp.c: Same.
21270 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21271 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21272 (rewrite_mem_refs): Same.
21273 (execute_sm_if_changed): Same.
21274 (hoist_memory_references): Same.
21275 * tree-ssa-loop-ivopts.c (operator<=): Same.
21276 * tree-ssa-loop.h: Same.
21277 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21278 * tree-ssa-structalias.c: Same.
21279 * tree-switch-conversion.h (cluster::cluster): Same.
21280 (simple_cluster::simple_cluster): Same.
21281 * tree-vect-patterns.c (type_conversion_p): Same.
21282 * tree-vectorizer.c (dump_stmt_cost): Same.
21283 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21284 * tree.c (protected_set_expr_location): Same.
21285 * tree.h (desired_pro_or_demotion_p): Same.
21286 (fndecl_built_in_p): Same.
21287 * unique-ptr-tests.cc: Same.
21288 * var-tracking.c (delete_variable_part): Same.
21289 * varasm.c (assemble_real): Same.
21290 (tree_output_constant_def): Same.
21291 * vec.c: Same.
21292 * wide-int-bitmask.h: Same.
21293 * wide-int.h (decompose): Same.
21294
21295 2019-07-09 Richard Biener <rguenther@suse.de>
21296
21297 PR tree-optimization/91114
21298 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21299 find a vector type isn't fatal.
21300
21301 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21302
21303 * config/aarch64/aarch64-simd.md
21304 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21305 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21306 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21307 (*aarch64_crypto_aese_fused,
21308 *aarch64_crypto_aesd_fused): Update to new definition.
21309 * config/aarch64/aarch64.c
21310 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21311
21312 2019-07-09 Richard Biener <rguenther@suse.de>
21313
21314 * gimple-match.h (gimple_match_op::resimplify): New.
21315 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21316 gimple_resimplify4, gimple_resimplify5): Remove.
21317 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21318 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21319 Make static.
21320 (gimple_match_op::resimplify): New.
21321 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21322 according to availability. Use gimple_match_op::resimplify.
21323
21324 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21325
21326 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21327
21328 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21329
21330 * config/arm/crypto.md:
21331 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21332 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21333 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21334 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21335 * config/arm/arm.c
21336 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21337 * config/arm/aarch-common-protos.h
21338 (aarch_crypto_can_dual_issue): Remove.
21339 * config/arm/aarch-common.c
21340 (aarch_crypto_can_dual_issue): Likewise.
21341 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21342 * config/arm/cortex-a53.md: Likewise.
21343 * config/arm/cortex-a57.md: Likewise.
21344 * config/arm/iterators.md:
21345 (CRYPTO_BINARY): Redefine.
21346 (CRYPTO_UNARY): Removed.
21347 (CRYPTO_AES, CRYPTO_AESMC): New.
21348
21349 2019-07-09 Richard Biener <rguenther@suse.de>
21350
21351 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21352 (vn_reference_lookup_3): If the main ref has no access path recorded
21353 but orig_ref has use it to do access-path based disambiguation.
21354 (vn_reference_lookup_pieces): Adjust.
21355 (vn_reference_lookup): Pass down original ref if we valueized.
21356
21357 2019-07-09 Martin Liska <mliska@suse.cz>
21358
21359 * doc/extend.texi: Document influence on loop
21360 optimizers.
21361
21362 2019-07-09 Martin Liska <mliska@suse.cz>
21363
21364 * lto-compress.c (lto_normalized_zstd_level): Do not use
21365 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21366 of libzstd. One can use 0 as a default compression level.
21367
21368 2019-07-09 Martin Liska <mliska@suse.cz>
21369
21370 * doc/invoke.texi: Add link from -fprofile-dir option.
21371 Use better wording for 'gcno filename'.
21372
21373 2019-07-08 Martin Sebor <msebor@redhat.com>
21374
21375 PR middle-end/71924
21376 PR middle-end/90549
21377 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21378 comment.
21379 (args_loc_t): New type.
21380 (args_loc_t, locmap_t): same.
21381 (diag_returned_locals): New function.
21382 (is_addr_local): Same.
21383 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21384 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21385 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21386
21387 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21388
21389 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21390 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21391 and casts in offset when different, both through gimple stmts
21392 and through trees. Rewritten using loops to minimize code duplication
21393 for each operand.
21394
21395 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21396
21397 * emit-rtl.c (set_insn_locations): New function moved from...
21398 * function.c (set_insn_locations): ...here.
21399 * ira-emit.c (emit_moves): Propagate location of the first instruction
21400 to the inserted move instructions.
21401 * reg-stack.c (compensate_edge): Set the location if the sequence is
21402 inserted on the edge.
21403 * rtl.h (set_insn_locations): Declare.
21404
21405 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21406
21407 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21408 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21409 .machine string.
21410
21411 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21412
21413 PR rtl-optimization/88233
21414 * common.opt (fsplit-wide-types-early): New option.
21415 * common/config/rs6000/rs6000-common.c
21416 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21417 OPT_LEVELS_ALL.
21418 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21419 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21420 flag_split_wide_types_early.
21421 (pass_data_lower_subreg3): New.
21422 (pass_lower_subreg3): New.
21423 (make_pass_lower_subreg3): New.
21424 * passes.def (pass_lower_subreg2): Move after the loop passes.
21425 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21426 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21427 the pass pipeline; its previous place is taken by ...
21428 (make_pass_lower_subreg3): ... this.
21429
21430 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21431
21432 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21433 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21434
21435 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21436
21437 * config/s390/constraints.md: Add new jsc constraint.
21438 * config/s390/predicates.md: New predicates.
21439 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21440 * config/s390/s390.c (s390_valid_shift_count): New function.
21441 (print_shift_count_operand): Use s390_valid_shift_count.
21442 (print_operand): Likewise.
21443 * config/s390/s390.md: Use new predicate.
21444 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21445 * config/s390/vector.md: Use new predicate.
21446
21447 2019-07-08 Andrew Waterman <andrew@sifive.com>
21448 Jim Wilson <jimw@sifive.com>
21449
21450 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21451 bitsize instead of BITS_PER_WORD.
21452
21453 2019-07-08 Martin Liska <mliska@suse.cz>
21454
21455 * collect2.c (defined): Revert to before r254460.
21456 (scan_prog_file): Revert to before r254460.
21457
21458 2019-07-08 Richard Biener <rguenther@suse.de>
21459
21460 PR tree-optimization/83518
21461 * tree-ssa-sccvn.c: Include splay-tree.h.
21462 (struct pd_range, struct pd_data): New.
21463 (struct vn_walk_cb_data): Add data to track partial definitions.
21464 (vn_walk_cb_data::~vn_walk_cb_data): New.
21465 (vn_walk_cb_data::push_partial_def): New.
21466 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21467 (vn_reference_lookup_2): When partial defs are registered give up.
21468 (vn_reference_lookup_3): Track partial defs for memset and
21469 constructor zeroing and for defs from constants.
21470
21471 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21472
21473 * doc/install.texi (bootstrap-Og): Document.
21474
21475 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21476
21477 * config/riscv/pic.md (*local_pic_load_s<mode>)
21478 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21479 referenced by <mode>, giving...
21480 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21481 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21482 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21483 use <X:MODE> for the mode attribute.
21484
21485 2019-07-07 Jeff Law <law@redhat.com>
21486
21487 PR tree-optimization/91090
21488 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21489 in handling of ranges to simplify switch statements.
21490
21491 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21492
21493 * config/darwin.c (darwin_override_options): Make a final check on PIC
21494 options.
21495
21496 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21497
21498 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21499 on for kernel code.
21500
21501 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21502
21503 PR target/91068
21504 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21505 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21506 instead of matching them to "l" output operands.
21507
21508 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21509
21510 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21511 and check whether addr.reg is nonnull before using it.
21512
21513 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21514
21515 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21516 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21517 variable(s). For conditional lastprivate look through outer
21518 GIMPLE_OMP_SCAN context.
21519 (lower_omp_1): For conditional lastprivate look through outer
21520 GIMPLE_OMP_SCAN context.
21521
21522 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21523 member to combined_into_simd_safelen1.
21524 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21525 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21526 clauses if ctx->combined_into_simd_safelen1 put statements after the
21527 predicate conditionalized block rather than into it.
21528
21529 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21530
21531 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21532 operand 1.
21533 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21534 Make the choice of <mode> explicit, giving...
21535 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21536
21537 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21538
21539 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21540 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21541 of .md attributes.
21542 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21543 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21544 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21545 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21546 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21547 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21548 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21549 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21550 (*avx512f_scatterdi<mode>): Likewise.
21551 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21552
21553 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21554
21555 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21556 specify the mode iterator referenced by <mode>, giving...
21557 (*push1_h8300hs_<QHI:mode>): ...this.
21558
21559 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21560
21561 * config/gcn/gcn-valu.md
21562 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21563 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21564 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21565 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21566 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21567 but using the _exec comparison patterns.
21568 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21569 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21570 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21571 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21572 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21573 but using the _exec comparison patterns.
21574
21575 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21576
21577 * config/arm/sync.md
21578 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21579 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21580 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21581 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21582 <SIDI:cas_cmp_str>.
21583
21584 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21585
21586 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21587 (maybe_lookup_ctx): Add forward declaration.
21588 (omp_find_scan): Likewise. Walk into body of simd if composited
21589 with worksharing loop.
21590 (scan_omp_simd_scan): New function.
21591 (scan_omp_1_stmt): Call it.
21592 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21593 ctx->for_simd_scan_phase.
21594 (lower_rec_input_clauses): Do much less work for inscan reductions
21595 in ctx->for_simd_scan_phase is_simd regions.
21596 (lower_omp_scan): Set is_simd also on simd constructs composited
21597 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21598 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21599 emit their body after in simd constructs composited with worksharing
21600 loop.
21601 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21602
21603 * omp-low.c (omp_find_scan): Make static.
21604 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21605 the second loop, var2 represents the first partial sum and so needs
21606 to go before rprivb[ivar].
21607
21608 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21609
21610 * config/rs6000/rs6000-logue.c: Remove unused code.
21611
21612 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21613
21614 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21615
21616 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21617
21618 PR target/90712
21619 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21620 check with a frame laid out check.
21621
21622 2019-07-05 Richard Biener <rguenther@suse.de>
21623
21624 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21625 when comparing against a store with possibly the same value.
21626
21627 2019-07-05 Richard Biener <rguenther@suse.de>
21628
21629 PR tree-optimization/91091
21630 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21631 (walk_non_aliased_vuses): Likewise.
21632 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21633 (get_continuation_for_phi): New tbaa_p parameter and pass
21634 it down.
21635 (walk_non_aliased_vuses): Likewise.
21636 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21637 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21638 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21639 Likewise.
21640 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21641 (adjust_offsets_for_equal_base_address): New function.
21642 (vn_reference_lookup_3): Use it to catch more base equivalences.
21643 Handle and pass down tbaa_p flag.
21644 (vn_reference_lookup_pieces): Adjust.
21645 (vn_reference_lookup): Remove alias-set altering, instead pass
21646 down false as tbaa_p.
21647
21648 2019-07-05 Richard Biener <rguenther@suse.de>
21649
21650 PR tree-optimization/91091
21651 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21652 accesses can happen with -fno-strict-aliasing.
21653
21654 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21655
21656 * tree-ssa-alias.c (alias_stats): Add
21657 nonoverlapping_component_refs_since_match_p_must_overlap.
21658 (dump_alias_stats): Print it.
21659 (nonoverlapping_component_refs_since_match_p): Add early exit.
21660 (nonoverlapping_component_refs_p): Do not account early exit.
21661
21662 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21663
21664 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21665 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21666 (emit_eh_dispatch): Delete.
21667 (lower_catch): Emit the eh_dispatch manually and set the location of
21668 the first catch statement onto it.
21669 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21670 (lower_eh_dispatch): Propagate location.
21671 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21672 (eliminate_build): Likewise.
21673
21674 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21675
21676 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21677 phi nodes if possible.
21678 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21679 location info on the newly created statement.
21680 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21681 newly created increment if needed.
21682
21683 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21684
21685 PR middle-end/78884
21686 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21687 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21688 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21689 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21690 ctx->add_safelen1 is set.
21691
21692 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21693 GOMP_loop_start at the start of second worksharing loop in a scan.
21694 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21695 worksharing loop in a scan even if there are conditional lastprivates,
21696 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21697
21698 2019-07-04 Jan Hubicka <jh@suse.cz>
21699
21700 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21701 Fix check for match in the ref walk.
21702
21703 2019-07-04 Martin Liska <mliska@suse.cz>
21704
21705 * tree-ssa-loop-niter.c
21706 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21707 (estimate_numbers_of_iterations):
21708 Support __builtin_expect_with_probability for analysis
21709 of # of loop iterations.
21710
21711 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21712
21713 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21714 * except.c: Likewise.
21715 * expr.c (expand_expr_real_1): Reject it.
21716 * gimplify.c (gimplify_expr): Gimplify it, within
21717 TRY_FINALLY_EXPR.
21718 * tree-dump.c (dequeue_and_dump): Dump it.
21719 * tree-pretty-print.c (dump_generic_node): Likewise.
21720 * tree.c (block_may_fallthru): Handle it.
21721 * tree.def (EH_ELSE_EXPR): Introduce it.
21722 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21723 with GIMPLE_EH_ELSE as try/finally/else.
21724
21725 2019-07-04 Richard Biener <rguenther@suse.de>
21726
21727 PR ipa/91062
21728 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21729 parameter whether to disable GC collection.
21730 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21731 honor it.
21732 (execute_all_ipa_transforms): Likewise and pass it down.
21733 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21734 collection from applying IPA transforms.
21735 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21736 from applying IPA transforms.
21737
21738 2019-07-04 Richard Biener <rguenther@suse.de>
21739
21740 PR tree-optimization/90911
21741 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21742 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21743 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21744 scalar_loop_scaling.
21745 (vect_transform_loop): Scale scalar loop profile if needed.
21746 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21747 the loop copy from if-conversion adjust edge probabilities
21748 and scale the vectorized loop body profile, queue the scalar
21749 profile for updating after peeling.
21750
21751 2019-07-04 Jan Hubicka <jh@suse.cz>
21752
21753 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21754 parameters; return early for must-alias.
21755 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21756 outer types match, try nonoverlapping_component_refs
21757 if must-alias is not obvious.
21758 (indirect_refs_may_alias_p): Likewise.
21759 (refs_may_alias_p_2): Likewise.
21760
21761 2019-07-04 Richard Biener <rguenther@suse.de>
21762
21763 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21764 argument.
21765 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21766 globals into...
21767 (struct vn_walk_cb_data): New callback data struct.
21768 (vn_reference_lookup_2): Adjust.
21769 (vn_reference_lookup_3): Likewise.
21770 (vn_reference_lookup_pieces): Likewise.
21771 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21772 (visit_reference_op_load): Adjust.
21773
21774 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21775
21776 PR tree-optimization/91063
21777 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21778 stmt from stmts sequence before calling vect_init_vector_1.
21779 Formatting fix.
21780
21781 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21782
21783 PR target/88833
21784 * fwprop.c (reg_single_def_p): New function.
21785 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21786 (forward_propagate_into): New parameter reg_prop_only
21787 with default value false.
21788 Propagate def's src into loop only if SET_SRC and SET_DEST
21789 of def_set have single definitions.
21790 Likewise if reg_prop_only is set to true.
21791 (fwprop): New param fwprop_addr_p.
21792 Integrate fwprop_addr into fwprop.
21793 (fwprop_addr): Remove.
21794 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21795 to true.
21796 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21797 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21798 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21799
21800 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21801
21802 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21803 in worksharing loop scans.
21804
21805 PR tree-optimization/91074
21806 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21807 temporary.
21808
21809 PR rtl-optimization/90756
21810 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21811 for VECTOR_TYPE_P.
21812
21813 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21814
21815 * config/aarch64/aarch64.md: Remove redundant constraints from
21816 define_expand but keep some patterns untouched if they are
21817 specially selected by TARGET_SECONDARY_RELOAD hook.
21818 * config/aarch64/aarch64-sve.md: Likewise.
21819 * config/aarch64/atomics.md: Remove redundant constraints from
21820 define_expand.
21821 * config/aarch64/aarch64-simd.md: Likewise.
21822
21823 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21824
21825 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21826 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21827 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21828 clauses.
21829 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21830 DARWIN_NOPIE_SPEC.
21831
21832 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21833
21834 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21835 (STARTFILE_SPEC): Split crt3 into a separate spec.
21836 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21837 (DARWIN_CRT2_SPEC): New.
21838 (DARWIN_CRT3_SPEC): New.
21839 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21840 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21841 (DARWIN_CRT3_SPEC): New.
21842
21843 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21844
21845 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21846 Change the RTL attribute "length" from "4" to "*" to allow the
21847 length attribute to be adjusted automatically for prefixed load,
21848 store, and add immediate instructions.
21849 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21850 Likewise.
21851 (extendsi<mode>2, EXTSI iterator): Likewise.
21852 (movsi_internal1): Likewise.
21853 (movsi_from_sf): Likewise.
21854 (movdi_from_sf_zero_ext): Likewise.
21855 (mov<mode>_internal): Likewise.
21856 (movcc_internal1, QHI iterator): Likewise.
21857 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21858 (movsf_from_si): Likewise.
21859 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21860 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21861 (mov<mode>, FMOVE128 iterator): Likewise.
21862 (movdi_internal64): Likewise.
21863 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21864 Likewise.
21865 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21866 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21867 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21868 (vsx_splat_v4sf): Likewise.
21869
21870 2019-07-03 Mark Wielaard <mark@klomp.org>
21871
21872 PR debug/90981
21873 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21874 DW_AT_addr_base if there is actually a .debug_addr section with
21875 addresses.
21876 (output_addr_table): Add DWARF5 table header generation here after
21877 checking there are actually any addresses from...
21878 (dwarf2out_finish): ...here.
21879
21880 2019-07-03 Richard Biener <rguenther@suse.de>
21881
21882 PR middle-end/91069
21883 * match.pd (vec_perm -> bit_insert): Fix element read from
21884 first vector.
21885
21886 2019-07-03 Martin Liska <mliska@suse.cz>
21887
21888 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21889 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21890 condition.
21891 * generic-match-head.c: Include dbgcnt.h.
21892 * gimple-match-head.c: Likewise.
21893
21894 2019-07-03 Martin Liska <mliska@suse.cz>
21895
21896 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21897 (GCOV_COUNTER_V_TOPN): New.
21898 (GCOV_COUNTER_V_INDIR): Use _topn.
21899 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21900 (GCOV_TOPN_VALUES): New.
21901 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21902 (GCOV_TOPN_VALUES_COUNTERS): New.
21903 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21904 * tree-profile.c:
21905 (gimple_init_gcov_profiler): Rename variables from one_value
21906 to topn_values.
21907 (gimple_gen_one_value_profiler): Remove.
21908 (gimple_gen_topn_values_profiler): New function.
21909 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21910 names instead of SINGLE_VALUE.
21911 (stream_out_histogram_value): Likewise.
21912 (stream_in_histogram_value): Likewise.
21913 (get_most_common_single_value): Likewise.
21914 (gimple_divmod_fixed_value_transform): Likewise.
21915 (gimple_stringops_transform): Likewise.
21916 (gimple_divmod_values_to_profile): Likewise.
21917 (gimple_stringops_values_to_profile): Likewise.
21918 (gimple_find_values_to_profile): Likewise.
21919 * value-prof.h (enum hist_type): Rename to TOPN.
21920 (gimple_gen_one_value_profiler): Remove.
21921 (gimple_gen_topn_values_profiler): New.
21922
21923 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21924
21925 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21926 if it has the DW_AT_data_member_location attribute.
21927
21928 2019-07-03 Richard Biener <rguenther@suse.de>
21929
21930 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21931 dumping.
21932
21933 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21934
21935 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21936 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21937 (tlsdesc_small_sve_<mode>): Likewise.
21938
21939 2019-07-03 Martin Liska <mliska@suse.cz>
21940
21941 * Makefile.in: Define ZSTD_LIB.
21942 * common.opt: Adjust compression level
21943 to support also zstd levels.
21944 * config.in: Regenerate.
21945 * configure: Likewise.
21946 * configure.ac: Add --with-zstd and --with-zstd-include options
21947 and detect ZSTD.
21948 * doc/install.texi: Mention zstd dependency.
21949 * gcc.c: Print supported LTO compression algorithms.
21950 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21951 (lto_compression_zstd): Likewise.
21952 (lto_uncompression_zstd): Likewise.
21953 (lto_end_compression): Dispatch in between zlib and zstd.
21954 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21955 (lto_uncompression_zlib): Make it static.
21956 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21957 * lto-section-in.c (lto_get_section_data): Pass info
21958 about used compression.
21959 * lto-streamer-out.c: By default use zstd when possible.
21960 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21961 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21962
21963 2019-07-03 Martin Liska <mliska@suse.cz>
21964
21965 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21966 * lto-section-out.c (lto_destroy_simple_output_block): Never
21967 compress LTO_section_lto section.
21968 * lto-streamer-out.c (produce_asm): Do not set major_version
21969 and minor_version.
21970 (lto_output_toplevel_asms): Likewise.
21971 (produce_lto_section): New function.
21972 (lto_output): Call produce_lto_section.
21973 (lto_write_mode_table): Do not set major_version and
21974 minor_version.
21975 (produce_asm_for_decls): Likewise.
21976 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21977 type.
21978 (struct lto_header): Remove.
21979 (struct lto_section): New struct.
21980 (struct lto_simple_header): Do not inherit from lto_header.
21981 (struct lto_file_decl_data): Add lto_section_header field.
21982
21983 2019-07-03 Martin Liska <mliska@suse.cz>
21984
21985 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21986 dead assignemts.
21987 * reg-stack.c (check_asm_stack_operands): Likewise.
21988 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21989 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21990 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21991 force_expand_binop.
21992
21993 2019-07-03 Martin Liska <mliska@suse.cz>
21994
21995 PR tree-optimization/90892
21996 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21997 in string constants.
21998
21999 2019-07-03 Martin Liska <mliska@suse.cz>
22000
22001 PR middle-end/90899
22002 * multiple_target.c (create_dispatcher_calls): Add to comdat
22003 group only if set for ifunc.
22004
22005 2019-07-03 Martin Liska <mliska@suse.cz>
22006
22007 PR target/88056
22008 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22009 Define local_object_name in outer scope in order to handle
22010 use-after-scope issue.
22011
22012 2019-07-03 Martin Liska <mliska@suse.cz>
22013
22014 * common.opt: Add fprofile-note.
22015 * coverage.c (coverage_init): Append the option
22016 to bbg_file_name.
22017 * doc/invoke.texi: Document -fprofile-note.
22018
22019 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22020
22021 PR tree-optimization/91033
22022 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22023 vect_analyze_data_refs): Add bool * arguments.
22024 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22025 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22026 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22027 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22028 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22029 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22030 vect_analyze_data_refs caller.
22031
22032 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22033 clause.
22034 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22035 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22036 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22037 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22038 OMP_CLAUSE__SCANTEMP_ entry.
22039 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22040 * tree-pretty-print.c (dump_omp_clause): Likewise.
22041 * tree-nested.c (convert_nonlocal_omp_clauses,
22042 convert_local_omp_clauses): Likewise.
22043 * omp-general.h (struct omp_for_data): Add have_scantemp and
22044 have_nonctrl_scantemp members.
22045 * omp-general.c (omp_extract_for_data): Initialize them.
22046 * omp-low.c (struct omp_context): Add scan_exclusive member.
22047 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22048 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22049 ctx->scan_exclusive.
22050 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22051 of !ctx->scan_inclusive.
22052 (lower_rec_input_clauses): Simplify gimplification of dtors using
22053 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22054 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22055 loops. Don't add barrier for reduction_omp_orig_ref if
22056 ctx->scan_??xclusive.
22057 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22058 (lower_omp_scan): Use ctx->scan_exclusive instead
22059 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22060 reductions. Use new_vard != new_var instead of repeated
22061 omp_is_reference calls.
22062 (omp_find_scan, lower_omp_for_scan): New functions.
22063 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22064 inscan reductions.
22065 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22066 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22067 and fd->have_scantemp.
22068
22069 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22070 on worksharing loop propagate it as shared clause to containing
22071 combined parallel.
22072
22073 * omp-expand.c (expand_omp_for_static_nochunk,
22074 expand_omp_for_static_chunk): For nowait worksharing loop with
22075 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22076 at the end.
22077
22078 2019-07-02 qing zhao <qing.zhao@oracle.com>
22079
22080 PR preprocessor/90581
22081 * doc/cppopts.texi: Add document for -fmax-include-depth.
22082 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22083
22084 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22085
22086 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22087 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22088 (mmx_packssdw): Ditto.
22089 (mmx_punpckhbw): Ditto.
22090 (mmx_punpcklbw): Ditto.
22091 (mmx_punpckhwd): Ditto.
22092 (mmx_punpcklwd): Ditto.
22093 (mmx_punpckhdq): Ditto.
22094 (mmx_punpckldq): Ditto.
22095 (*vec_dupv4hi): Ditto.
22096 (*vec_dupv2si): Ditto.
22097 (mmx_pmovmskb): Ditto.
22098 * config/i386/sse.md (sse_cvtpi2ps): Use
22099 TARGET_SSE2 && SSE_REG_P in split condition.
22100 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22101 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22102 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22103 (ssse3_pshufbv8qi3): Ditto.
22104 (ssse3_palignrdi): Ditto.
22105
22106 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22107
22108 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22109 with inlined save and restore.
22110
22111 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22112
22113 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22114 to be inserted on single successor edge of the entry block. Then call
22115 commit_edge_insertions instead of inserting the instructions manually.
22116 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22117 RTL expansion and rebuild jump labels chain.
22118
22119 2019-07-02 Richard Biener <rguenther@suse.de>
22120
22121 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22122 TI_CHREC_KNOWN.
22123 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22124 Define here.
22125 * tree.c (build_common_tree_nodes): Initialize them.
22126 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22127 Make declarations comments.
22128 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22129 chrec_known): Remove definitions.
22130 (initialize_scalar_evolutions_analyzer): Remove.
22131 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22132 * tree-streamer.c (preload_common_nodes): Do not preload
22133 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22134
22135 2019-07-02 Jan Hubicka <jh@suse.cz>
22136
22137 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22138 sanity check.
22139
22140 2019-07-02 Jan Hubicka <jh@suse.cz>
22141
22142 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22143 to ..
22144 (nonoverlapping_component_refs_since_match_p): ... this one;
22145 handle also non-decl bases; return -1 if search gave up.
22146 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22147 nonoverlapping_component_refs_of_decl_p_no_alias to
22148 nonoverlapping_component_refs_since_match_p_may_alias,
22149 nonoverlapping_component_refs_since_match_p_no_alias.
22150 (dump_alias_stats): Update dumping.
22151 (aliasing_matching_component_refs_p): Break out from ...;
22152 dispatch to nonoverlapping_component_refs_for_decl_p
22153 and nonoverlapping_component_refs_since_match_p.
22154 (aliasing_component_refs_p): ... here; call
22155 nonoverlapping_component_refs_p in scenarios where we can not
22156 precisely determine base match.
22157 (decl_refs_may_alias_p): Use
22158 nonoverlapping_component_refs_since_match_p.
22159 (indirect_ref_may_alias_decl_p): Do not call
22160 nonoverlapping_component_refs_p.
22161 (indirect_refs_may_alias_p): Likewise.
22162
22163 2019-07-02 Jan Hubicka <jh@suse.cz>
22164
22165 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22166 to clobber of return value.
22167
22168 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22169
22170 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22171 for is_neon_type instructions that have not already been categorized.
22172
22173 2019-07-02 Richard Biener <rguenther@suse.de>
22174
22175 PR tree-optimization/58483
22176 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22177 for MEM_REF base hashing.
22178 (equal_mem_array_ref_p): Likewise for base comparison.
22179
22180 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22181
22182 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22183 parameterized name.
22184 (signbit<mode>2): Use that name. Simplify.
22185
22186 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22187
22188 PR middle-end/66726
22189 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22190 Tune heuristic from PR71016 to allow MIN / MAX.
22191
22192 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22193
22194 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22195 parameterized name.
22196 (abs<mode>2): Use that name. Simplify.
22197
22198 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22199
22200 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22201 parameterized name.
22202 (neg<mode>2): Use that name. Simplify.
22203
22204 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22205
22206 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22207 name.
22208 (abs<mode>2): Use that name. Simplify.
22209
22210 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22211
22212 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22213 name.
22214 (neg<mode>2): Use that name. Simplify.
22215
22216 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22217
22218 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22219 ("enabled" attribute): Handle sse_noavx isa attribute.
22220 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22221 Use TARGET_SSE && SSE_REGNO_P in split condition.
22222 (*vec_dupv2sf): Ditto.
22223
22224 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22225
22226 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22227 name.
22228 (floatsi<mode>2): Use that name. Simplify.
22229
22230 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22231
22232 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22233 parameterized name.
22234 (extenddf<mode>2_vsx): Make this a parameterized name.
22235 (extenddf<mode>2): Use those names. Simplify.
22236
22237 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22238
22239 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22240 name.
22241 (eh_return): Use that name. Simplify.
22242
22243 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22244
22245 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22246 (doloop_end): Use that name. Simplify.
22247
22248 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22249
22250 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22251 parameterized name.
22252 (indirect_jump): Use that name. Simplify.
22253
22254 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22255
22256 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22257 parameterized name.
22258 (abs<mode>2): Use that name. Simplify.
22259
22260 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22261
22262 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22263 parameterized name.
22264 (fix_trunc<mode>si2): Use that name. Simplify.
22265
22266 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22267
22268 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22269 (allocate_stack): Use that name. Simplify.
22270
22271 2019-07-01 Martin Sebor <msebor@redhat.com>
22272
22273 PR middle-end/90923
22274 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22275 (hash_map::get_or_insert): Same. Reformat comment.
22276 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22277 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22278 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22279 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22280 (hash_table::hash_table (const hash_table&)): Use copy ctor
22281 instead of assignment to copy elements.
22282
22283 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22284 John David Anglin <danglin@gcc.gnu.org>
22285
22286 PR target/90963
22287 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22288 using saved frame pointer.
22289
22290 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22291
22292 PR middle-end/64242
22293 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22294 Add frame clobber and schedule blockage.
22295
22296 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22297
22298 * doc/invoke.texi (Link Options): Further editorial changes to
22299 -flinker-output docs.
22300
22301 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22302
22303 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22304 Load both operands of a PLUS into registers separately.
22305
22306 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22307
22308 * config/s390/vector.md: Fix shift count operand printing.
22309
22310 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22311
22312 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22313
22314 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22315
22316 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22317 Use recog_data to test for an output operand.
22318
22319 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22320
22321 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22322 exclude any others that are disparaged or that are bound to need
22323 a reload or spill.
22324 (ira_get_dup_out_num): Expand comment.
22325
22326 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22327
22328 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22329 constraint string for each operand/alternative combo. Only handle
22330 '%' at the start of constraint strings, and look for it outside
22331 the main loop.
22332
22333 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22334
22335 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22336 alternative_mask instead of HARD_REG_SET to represent a
22337 bitmask of alternatives.
22338 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22339 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22340
22341 2019-07-01 Martin Liska <mliska@suse.cz>
22342
22343 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22344 use () for a constructor call.
22345 (test_applying_fixits_line_out_of_range): Likewise.
22346 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22347 argument.
22348 (free_page): Likewise.
22349
22350 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22351
22352 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22353 parameter names to match usage (no functional change).
22354 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22355
22356 2019-07-01 Richard Biener <rguenther@suse.de>
22357
22358 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22359 pass parameter.
22360 (pass_fre::execute): Honor it.
22361 * passes.def: Adjust pass_fre invocations to allow iterating,
22362 add non-iterating pass_fre before late threading/dom.
22363
22364 2019-07-01 Richard Biener <rguenther@suse.de>
22365
22366 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22367 TARGET_MEM_REF handling to also handle address-taken ones.
22368
22369 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22370
22371 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22372 hardware attributes): Document avx512vp2intersect.
22373
22374 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22375
22376 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22377 (abs<mode>2): New expander.
22378 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22379 Use CODE_FOR_ssse3_absv8qi2.
22380 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22381 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22382
22383 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22384
22385 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22386 to sse, sse_noavx and avx. Update all uses.
22387
22388 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22389
22390 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22391 (*mmx_<plusminus_insn><mode>3): Ditto.
22392 (*mmx_mulv4hi3"): Ditto.
22393 (*mmx_smulv4hi3_highpart): Ditto.
22394 (*mmx_umulv4hi3_highpart): Ditto.
22395 (*mmx_pmaddwd): Ditto.
22396 (*sse2_umulv1siv1di3): Ditto.
22397 (*mmx_<code>v4hi3): Ditto.
22398 (*mmx_<code>v8qi3): Ditto.
22399 (mmx_ashr<mode>3): Ditto.
22400 ("mmx_<shift_insn><mode>3): Ditto.
22401 (*mmx_eq<mode>3): Ditto.
22402 (mmx_gt<mode>3): Ditto.
22403 (mmx_andnot<mode>3): Ditto.
22404 (*mmx_<code><mode>3): Ditto.
22405 (*mmx_pinsrw): Ditto.
22406 (*mmx_pextrw): Ditto.
22407 (mmx_pshufw_1): Ditto.
22408 (*mmx_uavgv8qi3): Ditto.
22409 (*mmx_uavgv4hi3): Ditto.
22410 ("mmx_psadbw): Ditto.
22411 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22412 (sse_cvttps2pi): Ditto.
22413 (ssse3_pmaddubsw): Ditto.
22414 (*ssse3_pmulhrswv4hi3): Ditto.
22415 (ssse3_psign<mode>3): Ditto.
22416
22417 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22418
22419 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22420 adjustment for bit-fields to all aggregate types.
22421
22422 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22423
22424 * config/rs6000/predicates.md (pcrel_address): Use
22425 SYMBOL_REF_LOCAL_P to determine if a label is local.
22426 (pcrel_external_address): New predicate.
22427 (non_prefixed_mem_operand): Delete, predicate not used.
22428 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22429 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22430 addressing.
22431 (SYMBOL_REF_PCREL_P): Likewise.
22432
22433 PR target/91009
22434 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22435 alternative.
22436 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22437 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22438 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22439
22440 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22441
22442 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22443 override on extra_headers.
22444
22445 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22446
22447 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22448 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22449 from warning.
22450 (darwin_driver_init): Likewise.
22451
22452 2019-06-28 Jan Beulich <jbeulich@suse.com>
22453
22454 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22455 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22456 Eliminate redundant alternative.
22457
22458 2019-06-28 Jan Beulich <jbeulich@suse.com>
22459
22460 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22461 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22462 Use vector_operand.
22463
22464 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22465
22466 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22467 having a lower cost regardless of the speed option.
22468
22469 2019-06-28 Jan Beulich <jbeulich@suse.com>
22470
22471 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22472 vector_operand plus, on both alternatives, "Bm" constraint.
22473
22474 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22475
22476 * config/arm/arm.md: Remove redundant constraints from
22477 define_expand but leave reload_inm and reload_outm patterns
22478 untouched since they need special constraints to work.
22479 * config/arm/arm-fixed.md: Remove redundant constraints from
22480 define_expand.
22481 * config/arm/iwmmxt.md: Likewise.
22482 * config/arm/neon.md: Likewise.
22483 * config/arm/sync.md: Likewise.
22484 * config/arm/thumb1.md: Likewise.
22485 * config/arm/vec-common.md: Likewise.
22486
22487 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22488
22489 * doc/install.texi: Document --disable-tm-clone-registry.
22490
22491 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22492
22493 PR c++/91024
22494 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22495 statements.
22496
22497 PR tree-optimization/91010
22498 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22499 return true. Otherwise, don't call operand_equal_p if offset1 or
22500 offset2 is NULL and just return false.
22501
22502 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22503
22504 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22505 user-specified float mode choice for kernel mode code.
22506
22507 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22508
22509 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22510 spec.
22511
22512 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22513
22514 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22515 use longcall for 64b code.
22516
22517 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22518
22519 * builtins.c (get_memory_rtx): Fix comment.
22520 * optabs.def (movmem_optab): Change to cpymem_optab.
22521 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22522 (emit_block_move_hints): Change movmem to cpymem.
22523 * defaults.h: Change movmem to cpymem.
22524 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22525 (default_use_by_pieces_infrastructure_p): Ditto.
22526 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22527 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22528 to cpymem.
22529 * config/aarch64/aarch64.h: Change movmem to cpymem.
22530 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22531 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22532 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22533 movmem to cpymem.
22534 * config/arc/arc-protos.h: Change movmem to cpymem.
22535 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22536 * config/arc/arc.h: Change movmem to cpymem in comment.
22537 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22538 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22539 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22540 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22541 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22542 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22543 * config/avr/avr-protos.h: Change movmem to cpymem.
22544 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22545 avr_out_movmem): Change movmem to cpymem.
22546 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22547 Change movmem to cpymem.
22548 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22549 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22550 Change movmem to cpymem.
22551 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22552 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22553 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22554 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22555 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22556 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22557 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22558 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22559 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22560 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22561 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22562 expand_small_cpymem_or_setmem,
22563 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22564 expand_set_or_cpymem_constant_prologue,
22565 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22566 * config/i386/i386-protos.h: Change movmem to cpymem.
22567 * config/i386/i386.h: Change movmem to cpymem in comment.
22568 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22569 (setmem<mode>): Change expansion function name.
22570 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22571 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22572 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22573 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22574 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22575 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22576 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22577 to cpymem.
22578 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22579 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22580 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22581 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22582 Change movmem to cpymem.
22583 * config/mips/mips.h: Change movmem to cpymem.
22584 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22585 * config/nds32/nds32-memory-manipulation.c
22586 (nds32_expand_movmemsi_loop_unknown_size,
22587 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22588 nds32_expand_movmemsi_unroll,
22589 nds32_expand_movmemsi): Change movmem to cpymem.
22590 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22591 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22592 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22593 (pa_adjust_insn_length): Change call to compute_movmem_length.
22594 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22595 movmemdi, movmemdi_prereload,
22596 movmemdi_postreload): Change movmem to cpymem.
22597 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22598 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22599 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22600 * config/riscv/riscv.h: Change movmem to cpymem.
22601 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22602 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22603 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22604 movmem to cpymem.
22605 * config/s390/s390-protos.h: Change movmem to cpymem.
22606 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22607 s390_expand_insv): Change movmem to cpymem.
22608 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22609 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22610 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22611 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22612 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22613 for nonexistent function.
22614 * config/vax/vax.h: Change movmem to cpymem in comment.
22615 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22616 * config/visium/visium.h: Change movmem to cpymem in comment.
22617 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22618 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22619 * doc/md.texi: Change movmem to cpymem and update description to match.
22620 * doc/rtl.texi: Change movmem to cpymem.
22621 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22622 * doc/tm.texi: Regenerate.
22623
22624 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22625
22626 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22627 -fvariable-expansion-in-unroller by default.
22628 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22629 default for Power.
22630
22631 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22632
22633 Revert
22634 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22635 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22636
22637 * config.gcc(rs6000-*-*): Define target_gtfiles.
22638
22639 2019-06-27 Jan Hubicka <jh@suse.cz>
22640
22641 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22642 (add_type_duplicate): When odr hash is not allocated, to nothing.
22643 (odr_based_tbaa_p): New function.
22644 (set_type_canonical_for_odr_type): New function.
22645 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22646 set_type_canonical_for_odr_type): New.
22647 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22648 ODR based TBAA are not equivalent to non-ODR types.
22649
22650 2019-06-27 Martin Liska <mliska@suse.cz>
22651
22652 PR tree-optimization/90974
22653 PR rtl-optimization/90975
22654 PR rtl-optimization/90976
22655 PR target/91016
22656 PR tree-optimization/91017
22657 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22658 unused tmp.
22659 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22660 initial commit of IRA.
22661 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22662 of op0 and op1.
22663 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22664 Remove unused mode1.
22665 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22666 to new_stmt_info.
22667
22668 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22669
22670 PR target/90991
22671 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22672 instead of register_operand for operands[1], add m to its constraints
22673 if operands[2] uses "C" constraint. Ensure in condition that if
22674 operands[2] is not 0, then operands[1] is not a MEM. For last two
22675 alternatives, use unaligned loads instead of aligned if operands[1] is
22676 misaligned_operand.
22677
22678 2019-06-27 Martin Liska <mliska@suse.cz>
22679
22680 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22681 dead assignments.
22682 * bt-load.c (move_btr_def): Likewise.
22683 * builtins.c (expand_builtin_apply_args_1): Likewise.
22684 (expand_builtin_apply): Likewise.
22685 * cfgexpand.c (expand_asm_stmt): Likewise.
22686 (construct_init_block): Likewise.
22687 * cfghooks.c (verify_flow_info): Likewise.
22688 * cfgloopmanip.c (remove_path): Likewise.
22689 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22690 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22691 * combine.c (simplify_if_then_else): Likewise.
22692 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22693 (choose_basereg): Likewise.
22694 (ix86_expand_prologue): Likewise.
22695 (ix86_preferred_output_reload_class): Likewise.
22696 * cselib.c (cselib_record_sets): Likewise.
22697 * df-scan.c (df_scan_alloc): Likewise.
22698 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22699 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22700 * emit-rtl.c (try_split): Likewise.
22701 * graphite-scop-detection.c (assign_parameter_index_in_region):
22702 Likewise.
22703 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22704 * ira-color.c (setup_profitable_hard_regs): Likewise.
22705 * ira.c (rtx_moveable_p): Likewise.
22706 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22707 * read-rtl.c (read_subst_mapping): Likewise.
22708 * regrename.c (scan_rtx): Likewise.
22709 * reorg.c (fill_slots_from_thread): Likewise.
22710 * tree-inline.c (tree_function_versioning): Likewise.
22711 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22712 * tree-ssa-sink.c (statement_sink_location): Likewise.
22713 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22714 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22715 (vect_create_epilog_for_reduction): Likewise.
22716 * tree.c (build_nonstandard_integer_type): Likewise.
22717
22718 2019-06-27 Richard Biener <rguenther@suse.de>
22719
22720 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22721
22722 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22723
22724 PR tree-optimization/89772
22725 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22726 out-of-bound accesses checking.
22727
22728 2019-06-27 Martin Liska <mliska@suse.cz>
22729
22730 PR tree-optimization/91014
22731 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22732 when LHS is NULL_TREE.
22733
22734 2019-06-27 Martin Liska <mliska@suse.cz>
22735
22736 * symbol-summary.h (traverse): Pass
22737 argument a to the call of callback.
22738 (gt_ggc_mx): Mark arguments as unused.
22739 (gt_pch_nx): Likewise.
22740
22741 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22742
22743 PR target/62147
22744 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22745 finiteness.
22746
22747 2019-06-26 Jeff Law <law@redhat.com>
22748
22749 PR tree-optimization/90883
22750 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22751 (delete_dead_or_redundant_assignment): Likewise.
22752
22753 PR tree-optimization/90883
22754 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22755 * tree-ssa-dse.c: Update various comments to distinguish between
22756 dead and redundant stores.
22757 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22758 (dse_optimize_redundant_stores): New function.
22759 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22760 Distinguish between dead and redundant calls in dump output. All
22761 callers updated.
22762 (delete_dead_or_redundant_assignment): Similarly for assignments.
22763 (dse_optimize_stmt): Handle _CHK variants. For statements which
22764 store 0 into multiple memory locations, try to prove a subsequent
22765 store is redundant.
22766
22767 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22768
22769 PR target/89021
22770 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22771 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22772
22773 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22774
22775 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22776 (branch_islands): New extern.
22777 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22778 * config/rs6000/rs6000.c: .. here.
22779
22780 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22781
22782 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22783 (powerpc*-*-*) ... to here.
22784
22785 2019-06-26 Jeff Law <law@redhat.com>
22786
22787 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22788 memcpy, memmove and memset builtins.
22789 (maybe_trim_memstar_call): Likewise.
22790
22791 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22792
22793 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22794
22795 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22796
22797 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22798
22799 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22800
22801 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22802 declaration.
22803 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22804 "static".
22805 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22806 declaration.
22807
22808 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22809
22810 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22811
22812 2019-06-26 Richard Biener <rguenther@suse.de>
22813
22814 PR ipa/90982
22815 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22816
22817 2019-06-26 Richard Biener <rguenther@suse.de>
22818
22819 * lto-streamer.h (lto_bitmap_alloc): Remove.
22820 (lto_bitmap_free): Likewise.
22821 * lto-streamer.c (lto_bitmap_alloc): Remove.
22822 (lto_bitmap_free): Likewise.
22823 (lto_obstack): Likewise.
22824 (lto_obstack_initialized): Likewise.
22825 * lto-streamer-out.c (lto_output): Use own obstack for local
22826 bitmap, free it consistently.
22827
22828 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22829
22830 PR target/90991
22831 * config/i386/sse.md
22832 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22833 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22834 insns if operands[2] is misaligned_operand.
22835
22836 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22837
22838 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22839 TARGET_POWERPC64.
22840 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22841 to GPR.
22842
22843 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22844
22845 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22846
22847 2019-06-26 Martin Liska <mliska@suse.cz>
22848
22849 PR tree-optimization/90973
22850 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22851 epilogue_cost_vec instead of prologue_cost_vec for
22852 a epilogue cost.
22853
22854 2019-06-26 Martin Liska <mliska@suse.cz>
22855
22856 * bb-reorder.c (connect_better_edge_p): Add missing else
22857 statement in the middle of if-else statements.
22858
22859 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22860 H.J. Lu <hongjiu.lu@intel.com>
22861 Olga Makhotina <olga.makhotina@intel.com>
22862
22863 * common/config/i386/i386-common.c
22864 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22865 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22866 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22867 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22868 (ix86_handle_option): Handle -mavx512vp2intersect.
22869 * config/i386/avx512vp2intersectintrin.h: New.
22870 * config/i386/avx512vp2intersectvlintrin.h: New.
22871 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22872 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22873 AVX512VP2INTERSECT.
22874 * config/i386/i386-builtin-types.def: Add new types.
22875 * config/i386/i386-builtin.def: Add new builtins.
22876 * config/i386/i386-builtins.c: (enum processor_features): Add
22877 F_AVX512VP2INTERSECT.
22878 (static const _isa_names_table isa_names_table): Ditto.
22879 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22880 __AVX512VP2INTERSECT__.
22881 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22882 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22883 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22884 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22885 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22886 * config/i386/i386-options.c (ix86_target_string): Add
22887 -mavx512vp2intersect.
22888 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22889 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22890 P2HImode and P2QImode.
22891 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22892 number for P2QImode and P2HImode.
22893 (ix86_regmode_natural_size): New function.
22894 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22895 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22896 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22897 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22898 * config/i386/i386.opt: Add -mavx512vp2intersect.
22899 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22900 avx512vp2intersectvlintrin.h.
22901 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22902 (define_mode_iterator VI48_AVX512VP2VL): New.
22903 (avx512vp2intersect_2intersect<mode>,
22904 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22905 * config.gcc: Add avx512vp2intersectvlintrin.h and
22906 avx512vp2intersectintrin.h to extra_headers.
22907 * doc/invoke.texi: Document -mavx512vp2intersect.
22908
22909 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22910
22911 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22912
22913 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22914
22915 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22916 savres_routine_syms, savres_routine_name, morestack_ref,
22917 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22918 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22919 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22920 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22921 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22922 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22923 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22924 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22925 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22926 get_stack_clash_protection_probe_interval,
22927 get_stack_clash_protection_guard_size,
22928 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22929 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22930 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22931 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22932 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22933 gen_frame_mem_offset, rs6000_savres_routine_name,
22934 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22935 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22936 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22937 rs6000_global_entry_point_prologue_needed_p,
22938 rs6000_get_separate_components, rs6000_components_for_bb,
22939 rs6000_disqualify_components, rs6000_emit_prologue_components,
22940 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22941 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22942 rs6000_output_savres_externs, rs6000_output_function_prologue,
22943 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22944 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22945 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22946 rs6000_output_function_epilogue, gen_add3_const,
22947 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22948 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22949 to rs6000-logue.c.
22950 (machine_function): Moved to rs6000.h.
22951 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22952 rs6000-internal.h.
22953 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22954 savres_routine_syms, savres_routine_name, morestack_ref,
22955 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22956 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22957 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22958 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22959 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22960 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22961 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22962 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22963 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22964 get_stack_clash_protection_probe_interval,
22965 get_stack_clash_protection_guard_size,
22966 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22967 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22968 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22969 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22970 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22971 gen_frame_mem_offset, rs6000_savres_routine_name,
22972 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22973 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22974 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22975 rs6000_global_entry_point_prologue_needed_p,
22976 rs6000_get_separate_components, rs6000_components_for_bb,
22977 rs6000_disqualify_components, rs6000_emit_prologue_components,
22978 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22979 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22980 rs6000_output_savres_externs, rs6000_output_function_prologue,
22981 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22982 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22983 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22984 rs6000_output_function_epilogue, gen_add3_const,
22985 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22986 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22987 to here from rs6000.c.
22988 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22989 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22990 quad_address_offset_p) Moved to here from rs6000.c.
22991 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22992 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22993 collector.
22994
22995 2019-06-25 Martin Liska <mliska@suse.cz>
22996
22997 * hash-table.c (hashtab_chk_error): Move here from ...
22998 * hash-table.h (hashtab_chk_error): ... here.
22999
23000 2019-06-25 Martin Liska <mliska@suse.cz>
23001
23002 PR tree-optimization/90978
23003 * df-scan.c (df_update_entry_block_defs): Remove dead else
23004 branch.
23005 (df_update_exit_block_uses): Likewise.
23006
23007 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23008 Andrew Stubbs <ams@codesourcery.com>
23009
23010 * config.gcc (thread_file): Set to gcn for AMD GCN.
23011 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23012 (TARGET_EMUTLS_VAR_INIT): New hook.
23013
23014 2019-06-25 Martin Jambor <mjambor@suse.cz>
23015
23016 PR ipa/90939
23017 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23018
23019 2019-06-25 Richard Biener <rguenther@suse.de>
23020
23021 PR tree-optimization/90930
23022 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23023 into parallel form in the last pass instance.
23024
23025 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23026
23027 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23028 (arc_legitimize_pic_address): Simplify and cleanup the function.
23029 (SYMBOLIC_CONST): Remove.
23030 (prepare_pic_move): Likewise.
23031 (prepare_move_operands): Handle complex mov cases here.
23032 (arc_legitimize_address_0): Remove call to
23033 arc_legitimize_pic_address.
23034 (arc_legitimize_address): Remove call to
23035 arc_legitimize_tls_address.
23036 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23037 (movhi_insn): Likewise.
23038
23039 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23040
23041 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23042 PTRDIFF_TYPE.
23043 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23044 format of "__intN" types for UINTMAX_TYPE.
23045 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23046 format of "__intN" types for SIZETYPE.
23047 * tree.c (build_common_tree_nodes): Accept "__intN__"
23048 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23049 * doc/invoke.texi: Document that __intN__ disables pedantic
23050 warnings.
23051
23052 2019-06-25 Jan Hubicka <jh@suse.cz>
23053
23054 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23055 base2_alias_set is non-zero before doing TBAA based disambiguation.
23056
23057 2019-06-25 Martin Liska <mliska@suse.cz>
23058
23059 PR tree-optimization/90973
23060 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23061 of prologue and epilogue.
23062
23063 2019-06-24 Jan Hubicka <jh@suse.cz>
23064
23065 * ipa-utils.h (type_with_linkage_p): Verify that type is
23066 CXX_ODR_P.
23067 (odr_type_p): Remove extra return.
23068 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23069 hash STRING_FLAG only for arrays and integers.
23070 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23071 Update analogously.
23072 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23073 Likewise.
23074 * print-tree.c (print_node): Print cxx-odr-p
23075 and string-flag.
23076 * tree.c (need_assembler_name_p): Also check that type
23077 is CXX_ODR_TYPE_P
23078 (verify_type_variant): Update verification of SRING_FLAG;
23079 also check CXX_ODR_P.
23080 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23081 (TYPE_STRING_FLAG): Use it.
23082 (TYPE_CXX_ODR_P): New macro.
23083 * dwarf2out.c (gen_array_type_die): First check that type
23084 is an array and then test string flag.
23085
23086 2019-06-24 Richard Biener <rguenther@suse.de>
23087
23088 PR tree-optimization/90972
23089 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23090 in common code, dealing with STRING_CST properly.
23091
23092 2019-06-24 Richard Biener <rguenther@suse.de>
23093
23094 PR tree-optimization/90930
23095 PR tree-optimization/90316
23096 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23097 decrement of limit.
23098
23099 2019-06-24 Martin Sebor <msebor@redhat.com>
23100
23101 * tree-pretty-print.h: Remove unnecessary punctuation characters
23102 from a diagnostic.
23103 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23104
23105 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23106
23107 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23108 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23109 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23110
23111 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23112
23113 * config/rs6000/darwin.h: Handle GCC target pragma.
23114
23115 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23116
23117 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23118
23119 2019-06-22 Jeff Law <law@redhat.com>
23120
23121 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23122
23123 2019-06-22 Jan Hubicka <jh@suse.cz>
23124
23125 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23126 give up on bitfields; continue searching for different refs
23127 appearing later.
23128
23129 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23130
23131 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23132 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23133 containing the offset as possible simd lane access. Look through
23134 widening conversion. Move the
23135 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23136
23137 2019-06-21 Richard Biener <rguenther@suse.de>
23138
23139 PR tree-optimization/90930
23140 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23141 flag on new stmts to avoid re-processing them.
23142
23143 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23144
23145 PR c++/90875 - added -Wswitch-outside-range option
23146 * doc/invoke.texi (Wswitch-outside-range): Document.
23147
23148 2019-06-21 Jeff Law <law@redhat.com>
23149
23150 PR tree-optimization/90949
23151 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23152 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23153
23154 2019-06-21 Richard Biener <rguenther@suse.de>
23155
23156 PR debug/90914
23157 * dwarf2out.c (prune_unused_types_walk): Always consider
23158 function-local extern declarations as used.
23159
23160 2019-06-21 Richard Biener <rguenther@suse.de>
23161
23162 PR tree-optimization/90913
23163 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23164 the scalar variant of if-conversion versioning.
23165
23166 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23167
23168 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23169 create another "omp scan inscan exclusive" array if
23170 !ctx->scan_inclusive.
23171 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23172 (lower_omp_scan): Likewise.
23173 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23174 2-bit bitfield for simd_lane_access_p member.
23175 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23176 aux == (void *)-4 as simd lane access.
23177 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23178 comment with permutations to show the canonical permutation order.
23179 (vectorizable_scan_store): Handle exclusive scan.
23180 (vectorizable_store): Call vectorizable_scan_store even for
23181 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23182
23183 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23184 "omp simd array" arrays with one byte elements.
23185
23186 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23187
23188 * config/alpha/alpha.md (@unaligned_store<mode>):
23189 Rename from unaligned_store<mode>.
23190 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23191 * config/alpha/sync.md (@load_locked_<mode>): Rename
23192 from load_locked_<mode>.
23193 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23194 (@atomic_compare_and_swap<mode>_1): Rename
23195 from atomic_compare_and_swap<mode>_1.
23196 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23197 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23198 Use gen_reload_in_aligned and gen_unaligned_store.
23199 (emit_load_locked): Remove.
23200 (emit_store_conditional): Ditto.
23201 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23202 (alpha_split_compare_and_swap): Ditto.
23203 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23204 (alpha_split_compare_and_swap_12): Use gen_load_locked
23205 and gen_store_conditional.
23206 (alpha_split_atomic_exchange): Ditto.
23207 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23208 (alpha_split_atomic_exchange_12): Use gen_load_locked
23209 and gen_store_conditional.
23210
23211 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23212
23213 * config/aarch64/aarch64-errata.h: New file.
23214 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23215 (CA53_ERR_843419_SPEC): Delete.
23216 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23217 * config/aarch64/aarch64-linux.h: Likewise.
23218 * config/aarch64/aarch64-netbsd.h: Likewise.
23219 * config/aarch64/aarch64-freebsd.h: Likewise.
23220
23221 2019-06-20 Marek Polacek <polacek@redhat.com>
23222
23223 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23224
23225 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23226
23227 * config/rs6000/rs6000.md (isa attribute): Add support for
23228 for a future processor.
23229
23230 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23231
23232 PR target/54855
23233 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23234 standard scalar operation pattern for V2DF.
23235 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23236 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23237 (*ieee_<ieee_maxmin><mode>3): Likewise.
23238 (vec_setv2df_0): Likewise.
23239
23240 2019-06-20 Jan Hubicka <jh@suse.cz>
23241
23242 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23243 parameter; it has no use in gimple memory model.
23244 (indirect_ref_may_alias_decl_p): Update.
23245
23246 2019-06-20 Martin Liska <mliska@suse.cz>
23247
23248 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23249 to 10.
23250
23251 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23252
23253 * tree-vect-stmts.c (enum scan_store_kind): New type.
23254 (scan_store_can_perm_p): Change last argument from int * to
23255 vec<enum scan_store_kind> *, record precisely which permutations
23256 need whole vector left shift or that plus VEC_COND_EXPR.
23257 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23258 and additional VEC_COND_EXPR only for those iterations that need it.
23259
23260 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23261
23262 * config.gcc: Fix ARM --with-fpu checking and error message.
23263
23264 2019-06-19 Marek Polacek <polacek@redhat.com>
23265
23266 PR c++/60364 - noreturn after first decl not diagnosed.
23267 * attribs.c (get_attribute_namespace): No longer static.
23268 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23269 attributes.
23270 (attr_noreturn_exclusions): Make it extern.
23271 * attribs.h (get_attribute_namespace): Declare.
23272 * tree-inline.c (function_attribute_inlinable_p): Use
23273 get_attribute_name.
23274
23275 2019-06-19 Martin Sebor <msebor@redhat.com>
23276
23277 PR tree-optimization/90626
23278 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23279
23280 PR tree-optimization/90626
23281 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23282 (handle_builtin_string_cmp): Call it.
23283
23284 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23285
23286 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23287 and DARWIN_NOPIE_SPEC.
23288 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23289 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23290 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23291 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23292 (DARWIN_EXPORT_DYNAMIC): Delete.
23293 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23294 and pie options processing to darwin.h.
23295 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23296
23297 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23298
23299 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23300 in computing the number of options to be moved.
23301
23302 2019-06-19 Maya Rashish <coypu@sdf.org>
23303
23304 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23305 (CLEAR_INSN_CACHE) Use it.
23306
23307 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23308
23309 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23310
23311 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23312
23313 PR middle-end/84521
23314 * builtins.c (expand_builtin_setjmp_setup): Save
23315 hard_frame_pointer_rtx.
23316 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23317 restore fp.
23318 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23319 non-local goto.
23320 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23321 elimination code.
23322 (remove_reg_equal_offset_note): Remove unused function.
23323 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23324 code.
23325 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23326 (arc_builtin_setjmp_frame_value): Remove function.
23327 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23328 (avr_builtin_setjmp_frame_value): Remove function.
23329 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23330 (ix86_builtin_setjmp_frame_value): Remove function.
23331 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23332 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23333 (sparc_builtin_setjmp_frame_value): Remove function.
23334 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23335 (vax_builtin_setjmp_frame_value): Remove function.
23336 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23337 pointer if has_nonlocal_label.
23338
23339 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23340
23341 * doc/md.texi: Document vec_shl_<mode> pattern.
23342 * optabs.def (vec_shl_optab): New optab.
23343 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23344 argument, if == vec_shl_optab, check for left whole vector shift
23345 pattern rather than right shift.
23346 (expand_vec_perm_const): Add vec_shl_optab support.
23347 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23348 in the comment.
23349 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23350 can be handled by vec_shl_optab.
23351 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23352 (check_scan_store): Use it.
23353 (vectorizable_scan_store): If target can't do normal permutations,
23354 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23355 after it.
23356 * config/i386/sse.md (vec_shl_<mode>): New expander.
23357
23358 * omp-low.c (lower_rec_input_clauses): Handle references properly
23359 in inscan clauses.
23360 (lower_omp_scan): Likewise.
23361
23362 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23363
23364 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23365 mem_mode is BLKmode.
23366
23367 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23368
23369 PR target/90922
23370 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23371 pointer adjustment for the case of no callee-saved registers and
23372 stack frame bigger than 128 bytes.
23373
23374 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23375
23376 PR middle-end/90862
23377 * omp-low.c (check_omp_nesting_restrictions): Handle
23378 GF_OMP_TARGET_KIND_OACC_DECLARE.
23379
23380 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23381
23382 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23383 (@add<mode>3_carry): Rename from add<mode>3_carry.
23384 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23385 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23386 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23387 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23388 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23389 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23390 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23391 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23392 (cmpstrnsi): Use gen_cmp_1.
23393 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23394 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23395 (@umonitor_<mode>): Rename from umonitor_<mode>.
23396 * config/i386/i386-expand.c (ix86_expand_copysign):
23397 Use gen_copysign3_const and gen_copysign3_var.
23398 (ix86_expand_xorsign): Use gen_xorsign3_1.
23399 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23400 gen_sub3_carry_ccgz and gen_cmp1.
23401 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23402 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23403 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23404 (ix86_split_lshr): Ditto.
23405 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23406
23407 2019-06-18 Jason Merrill <jason@redhat.com>
23408
23409 * tree.c (build_constructor): Add MEM_STAT_DECL.
23410
23411 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23412
23413 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23414 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23415 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23416 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23417 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23418 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23419 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23420 Use CC_NZC instead of CC.
23421 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23422 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23423 (aarch64_print_operand): Handle E_CC_NZCmode.
23424 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23425 of gen_set_clobber_cc.
23426
23427 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23428
23429 * config/aarch64/aarch64-sve.md: Tabify file.
23430
23431 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23432
23433 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23434 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23435 * config/aarch64/aarch64-sve.md: Use it.
23436
23437 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23438
23439 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23440 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23441 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23442 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23443 (aarch64_expand_sve_vec_cmp_int): Use it.
23444 (aarch64_expand_sve_vec_cmp_float): Likewise.
23445 * config/aarch64/aarch64-sve.md: Likewise throughout.
23446
23447 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23448 Kugan Vivekanandarajah <kuganv@linaro.org>
23449
23450 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23451 (*cond_<optab><mode>_z): Fold into...
23452 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23453 operand 4 can be tied to operand 0 (either inherently or via RA).
23454
23455 2019-06-18 Richard Biener <rguenther@suse.de>
23456
23457 PR debug/90900
23458 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23459 as if optimized away.
23460
23461 2019-06-18 Tom de Vries <tdevries@suse.de>
23462
23463 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23464 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23465 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23466 Rename to ...
23467 (define_insn "@set_softstack_<mode>"): ... this.
23468 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23469 (define_insn "@omp_simt_enter_<mode>"): ... this.
23470 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23471 (define_insn "@omp_simt_exit_<mode>"): ... this.
23472
23473 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23474
23475 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23476 vf parameter. Restore the previous iv step of nscalars_step,
23477 but give it iv_type rather than compare_type. Tweak code order
23478 to match the comments.
23479 (vect_set_loop_condition_masked): Update accordingly.
23480 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23481 for iv_precision. Tweak comment formatting.
23482
23483 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23484
23485 * config/darwin.c: Strip trailing whitespace.
23486
23487 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23488
23489 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23490 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23491
23492 2019-06-18 Martin Jambor <mjambor@suse.cz>
23493
23494 PR ipa/90889
23495 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23496 caller does not have flag_ipa_cp set.
23497
23498 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23499
23500 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23501 from "*fold_left_plus_<mode>", updated operands order.
23502 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23503 * internal-fn.c (mask_fold_left_direct): New define.
23504 (expand_mask_fold_left_optab_fn): Likewise.
23505 (direct_mask_fold_left_optab_supported_p): Likewise.
23506 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23507 * optabs.def (mask_fold_left_plus_optab): New optab.
23508 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23509 masked internal_fn for a reduction ifn.
23510 (vectorize_fold_left_reduction): Add support for masking reductions.
23511
23512 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23513
23514 PR middle-end/80791
23515 * target.def (predict_doloop_p): New hook.
23516 * targhooks.h (default_predict_doloop_p): New declaration.
23517 * targhooks.c (default_predict_doloop_p): New function.
23518 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23519 * doc/tm.texi: Regenerate.
23520 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23521 (TARGET_PREDICT_DOLOOP_P): New macro.
23522 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23523
23524 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23525
23526 * omp-low.c (struct omp_context): Add scan_inclusive field.
23527 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23528 if inclusive scan.
23529 (struct omplow_simd_context): Add lastlane member.
23530 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23531 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23532 1 or 2 argument.
23533 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23534 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23535 (lower_omp_scan): New function.
23536 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23537 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23538 check 3rd argument if present rather than 2nd.
23539 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23540 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23541 2-bit bitfield.
23542 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23543 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23544 than 2nd.
23545 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23546 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23547 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23548 init.
23549 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23550 IFN_GOMP_SIMD_LANE argument.
23551 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23552 encoded ->aux value.
23553 * tree-vect-stmts.c: Include attribs.h.
23554 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23555 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23556 functions.
23557 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23558 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23559
23560 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23561
23562 PR target/62055
23563 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23564 (*nabs<mode>2_1): Ditto.
23565 (nabs sse-reg splitter): New splitter.
23566 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23567
23568 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23569
23570 PR bootstrap/90873.
23571 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23572 TMR index check.
23573
23574 2019-06-17 Tom de Vries <tdevries@suse.de>
23575
23576 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23577 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23578 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23579 ...
23580 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23581 match_operand 0.
23582 (define_insn "omp_simt_enter_insn"): Rename to ...
23583 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23584 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23585 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23586 gen_omp_simt_enter_si.
23587 (define_expand "omp_simt_exit"): New.
23588 (define_insn "omp_simt_exit"): Rename to ...
23589 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23590 match_operand 0.
23591
23592 2019-06-17 Matthew Green <mrg@eterna.com.au>
23593 Maya Rashish <coypu@sdf.org>
23594
23595 * config.gcc (aarch64*-*-netbsd*): New target.
23596 * config/aarch64/aarch64-netbsd.h: New file.
23597 * config/aarch64/t-aarch64-netbsd: Likewise.
23598
23599 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23600
23601 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23602 the access path from base to first VIEW_CONVERT_EXPR or
23603 BIT_FIELD_REF.
23604
23605 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23606
23607 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23608 access path on BIT_FIELD_REFs.
23609
23610 2019-06-17 Martin Liska <mliska@suse.cz>
23611
23612 PR ipa/90874
23613 * ipa-utils.h (odr_type_p): Remove dead code.
23614
23615 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23616
23617 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23618 alternative Solaris 11.4 format.
23619 * configure: Regenerate.
23620
23621 2019-06-17 Tom de Vries <tdevries@suse.de>
23622
23623 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23624 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23625 match_operand 0.
23626 (define_insn "call_value_insn"): Rename to ...
23627 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23628 match_operand 0.
23629 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23630 DI.
23631
23632 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23633
23634 PR middle-end/64242
23635 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23636 frame clobbers and schedule block.
23637 (builtin_longjmp): Likewise.
23638
23639 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23640
23641 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23642 describe how to perform MSPABI compliant 64-bit shift.
23643 * config/msp430/msp430.md (ashldi3): New define_expand.
23644 (ashrdi3): New define_expand.
23645 (lshrdi3): New define_expand.
23646
23647 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23648
23649 * doc/sourcebuild.texi: Document new effective target keyword
23650 longlong64.
23651
23652 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23653
23654 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23655 indirect_refs_may_alias_p): Revert accidental commits.
23656
23657 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23658 at the end of structures.
23659
23660 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23661
23662 * config/darwin.c (machopic_indirect_call_target): Use renamed
23663 darwin_picsymbol_stubs to decide on output.
23664 (darwin_override_options): Handle darwin_picsymbol_stubs.
23665 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23666 (LD64_VERSION): Revise default.
23667 * config/darwin.opt: (mpic-symbol-stubs): New option.
23668 (darwin_picsymbol_stubs): New variable.
23669 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23670 rename to TARGET_MACHO_PICSYM_STUBS.
23671 * config/i386/i386.c (output_pic_addr_const): Likewise.
23672 * config/i386/i386.h Likewise.
23673 * config/rs6000/darwin.h: Likewise.
23674 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23675 darwin_picsymbol_stubs.
23676
23677 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23678
23679 * config/darwin.opt (prebind, noprebind, seglinkedit,
23680 noseglinkedit): Add RejectNegative.
23681
23682 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23683
23684 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23685 in my previous patch.
23686
23687 2019-06-16 Tom de Vries <tdevries@suse.de>
23688
23689 PR tree-optimization/89376
23690 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23691
23692 2019-06-15 Maya Rashish <coypu@sdf.org>
23693
23694 * doc/invoke.texi (Spec Files): Update location of the
23695 Fortran spec file.
23696
23697 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23698
23699 * doc/extend.texi (Common Function Attributes): Clarify
23700 no_sanitize. Fix grammar.
23701
23702 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23703
23704 * tree-ssa-alias.c (alias_stats): Add
23705 nonoverlapping_component_refs_p_may_alias,
23706 nonoverlapping_component_refs_p_no_alias,
23707 nonoverlapping_component_refs_of_decl_p_may_alias,
23708 nonoverlapping_component_refs_of_decl_p_no_alias.
23709 (dump_alias_stats): Dump them.
23710 (nonoverlapping_component_refs_of_decl_p): Add stats.
23711 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23712 ARRAY_REF.
23713
23714 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23715
23716 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23717 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23718 only.
23719 (*anddi3_doubleword): Split before reload. Merge with
23720 anddi->zext pre-reload splitter.
23721 (*andndi3_doubleword): Split before reload.
23722 (*<code>di3_doubleword): Ditto.
23723 (*one_cmpldi2_doubleword): Ditto.
23724
23725 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23726
23727 PR middle-end/90779
23728 * gimplify.c: Include omp-offload.h and context.h.
23729 (gimplify_bind_expr): Add "omp declare target" attributes
23730 to static block scope variables inside of target region or target
23731 functions.
23732
23733 2019-06-15 Tom de Vries <tdevries@suse.de>
23734
23735 PR tree-optimization/90009
23736 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23737 Return NULL if bb contains IFN_UNIQUE.
23738
23739 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23740
23741 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23742 (un): New define_mode_attr.
23743 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23744 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23745 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23746 merge into ...
23747 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23748
23749 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23750
23751 * config/darwin.opt: Add RejectNegative where needed, reorder
23752 and add minimal functional descriptions.
23753
23754 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23755
23756 PR rtl-optimization/90765
23757 * calls.c (update_stack_alignment_for_call): New function.
23758 (expand_call): Call update_stack_alignment_for_call when
23759 outgoing parameter is passed in the stack.
23760 (emit_library_call_value_1): Likewise.
23761 * function.c (locate_and_pad_parm): Don't update
23762 stack_alignment_needed and preferred_stack_boundary.
23763
23764 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23765
23766 PR target/90877
23767 * config/i386/i386-features.c
23768 (dimode_scalar_chain::compute_convert_gain): Replace
23769 mmxsse_to_integer with sse_to_integer.
23770 * config/i386/i386.c (ix86_register_move_cost): Verify that
23771 moves between MMX and non-MMX units require secondary memory.
23772 Correct costs of moves between SSE and integer units.
23773 * config/i386/i386.h (processor_costs): Rename cost of moving
23774 SSE register to integer to sse_to_integer. Rename cost of
23775
23776 2019-06-14 Matt Thomas <matt@3am-software.com>
23777 Matthew Green <mrg@eterna.com.au>
23778 Nick Hudson <skrll@netbsd.org>
23779 Maya Rashish <coypu@sdf.org>
23780 Richard Earnshaw <rearnsha@arm.com>
23781
23782 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23783 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23784 * config/arm/netbsd-eabi.h: New file.
23785 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23786 redefining.
23787 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23788 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23789 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23790 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23791
23792 2019-06-14 Richard Biener <rguenther@suse.de>
23793
23794 * tree-loop-distribution.c (classify_partition): Return
23795 whether a reduction appeared in all partitions and do not
23796 stop builtin detection because of this.
23797 (distribute_loop): Sort a non-builtin partition last if
23798 there's a reduction in all partitions and make sure the
23799 partition prevailing as last is not a builtin.
23800
23801 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23802
23803 PR ipa/90401
23804 * ipa-prop.c (add_to_agg_contents_list): New function.
23805 (clobber_by_agg_contents_list_p): Likewise.
23806 (extract_mem_content): Likewise.
23807 (get_place_in_agg_contents_list): Delete.
23808 (determine_known_aggregate_parts): Renamed from
23809 determine_locally_known_aggregate_parts. New parameter
23810 aa_walk_budget_p.
23811
23812 2019-06-13 Martin Sebor <msebor@redhat.com>
23813
23814 PR tree-optimization/90662
23815 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23816 to the same type.
23817
23818 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23819
23820 PR bootstrap/90873
23821 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23822 dbase is not TARGET_MEM_REF.
23823
23824 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23825
23826 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23827 Update all uses.
23828 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23829 Do not generate DImode extends for 32bit targets.
23830 (and->zext post-reload splitter): Use gen_extend_insn
23831 instead of indirect functions.
23832 (anddi->zext pre-reload splitter): New.
23833 (*zext<mode>_doubleword_and): Remove.
23834 (*zext<mode>_doubleword): Ditto.
23835 (*zextsi_doubleword): Dittto.
23836
23837 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23838
23839 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23840 Use gen_sub3_insn instead of indirect function.
23841 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23842 indirect function.
23843 (ix86_adjust_counter): Ditto.
23844
23845 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23846 Lijia He <helijia@linux.ibm.com>
23847
23848 PR tree-optimization/77820
23849 * tree-ssa-threadedge.c
23850 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23851 function.
23852 (thread_across_edge): Add call to
23853 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23854
23855 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23856
23857 * config/darwin-driver.c (validate_macosx_version_min): New.
23858 (darwin_default_min_version): Cleanup and validate supplied version.
23859 (darwin_driver_init): Likewise and push cleaned version into opts.
23860
23861 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23862
23863 PR tree-optimization/90869
23864 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23865 converts in MEM_REF referencing decl rather than view converts
23866 from decl type to MEM_REF type.
23867
23868 2019-06-13 Richard Biener <rguenther@suse.de>
23869
23870 PR tree-optimization/90856
23871 * tree-sra.c (build_ref_for_model): Only use
23872 build_reconstructed_reference when address-spaces are the same.
23873
23874 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23875
23876 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23877 wrap ei variable name in the declaration in ()s.
23878 (nvptx_single): Actually use mode_label variable. Formatting fix.
23879
23880 2019-06-13 Richard Biener <rguenther@suse.de>
23881
23882 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23883 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23884 also return the condition stmt.
23885 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23886 loop we can version and version that, reusing the loop version
23887 created by if-conversion instead of versioning again.
23888
23889 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23890
23891 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23892 may_contain_p.
23893 * tree-vrp (value_range_base::may_contain_p): Call into
23894 value_inside_range.
23895 (value_inside_range): Make private inside value_range_base class.
23896 Take min/max from *this.
23897 (range_includes_p): Remove.
23898 * tree-vrp.h (value_range_base): Add value_inside_range.
23899 (range_includes_p): Remove.
23900 (range_includes_zero_p): Call may_contain_p.
23901 * vr-values.c (compare_range_with_value): Same.
23902
23903 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23904
23905 * doc/extend.texi (ARC Function Attributes): Update info.
23906
23907 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23908
23909 PR tree-optimization/89713
23910 * doc/invoke.texi (-ffinite-loops): Document new option.
23911 * common.opt (-ffinite-loops): New option.
23912 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23913 IFN_GOACC_LOOP calls as necessary.
23914 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23915 is finite.
23916 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23917 IFN_GOACC_LOOP call is not used.
23918 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23919
23920 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23921
23922 PR target/88838
23923 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23924 compare_type is not with Pmode size, we will create an IV with
23925 Pmode size with truncated use (i.e. converted to the correct type).
23926 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23927 (vect_iv_limit_for_full_masking): New. Factored out of
23928 vect_set_loop_condition_masked.
23929 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23930 (vect_iv_limit_for_full_masking): Declare.
23931
23932 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23933
23934 PR target/88834
23935 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23936 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23937 (get_alias_ptr_type_for_ptr_address): Likewise.
23938 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23939 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23940 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23941 allow_reg_index_p.
23942
23943 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23944
23945 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23946
23947 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23948
23949 * common/config/pru/pru-common.c: New file.
23950 * config.gcc: Add PRU target.
23951 * config/pru/alu-zext.md: New file.
23952 * config/pru/constraints.md: New file.
23953 * config/pru/predicates.md: New file.
23954 * config/pru/pru-opts.h: New file.
23955 * config/pru/pru-passes.c: New file.
23956 * config/pru/pru-pragma.c: New file.
23957 * config/pru/pru-protos.h: New file.
23958 * config/pru/pru.c: New file.
23959 * config/pru/pru.h: New file.
23960 * config/pru/pru.md: New file.
23961 * config/pru/pru.opt: New file.
23962 * config/pru/t-pru: New file.
23963 * doc/extend.texi: Document PRU pragmas.
23964 * doc/invoke.texi: Document PRU-specific options.
23965 * doc/md.texi: Document PRU asm constraints.
23966
23967 2019-06-12 Martin Sebor <msebor@redhat.com>
23968
23969 PR middle-end/90676
23970 * tree-pretty-print.c (dump_mem_ref): New function. Include
23971 MEM_REF type in output when different size than operand.
23972 (dump_generic_node): Move code to dump_mem_ref and call it.
23973
23974 2019-06-12 Martin Sebor <msebor@redhat.com>
23975
23976 PR tree-optimization/90662
23977 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23978 to arrays.
23979
23980 2019-06-12 Tom de Vries <tdevries@suse.de>
23981
23982 PR tree-optimization/90009
23983 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23984
23985 2019-06-12 Martin Liska <mliska@suse.cz>
23986
23987 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23988 the created map.
23989 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23990 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23991 Do not sanitize created maps.
23992
23993 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23994
23995 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23996 value_range::singleton_p.
23997 * tree-vrp.c (value_range_constant_singleton): Remove.
23998 * tree-vrp.h (value_range_constant_singleton): Remove.
23999 * vr-values.c (vr_values::singleton): Use
24000 value_range::singleton_p.
24001
24002 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24003
24004 PR target/90811
24005 * cfgexpand.c (align_local_variable): Add really_expand argument,
24006 don't SET_DECL_ALIGN if it is false.
24007 (add_stack_var): Add really_expand argument, pass it through to
24008 align_local_variable.
24009 (expand_one_stack_var_1): Pass true as really_expand to
24010 align_local_variable.
24011 (expand_one_ssa_partition): Pass true as really_expand to
24012 add_stack_var.
24013 (expand_one_var): Pass really_expand through to add_stack_var.
24014
24015 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24016
24017 * config/arm/iterators.md (VABAL): New int iterator.
24018 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24019 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24020 UNSPEC_VABAL_U values.
24021
24022 2019-06-12 Martin Liska <mliska@suse.cz>
24023
24024 * value-prof.c (stream_out_histogram_value): Only first value
24025 can't be negative.
24026
24027 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24028
24029 PR c/90760
24030 * symtab.c (symtab_node::set_section): Allow being called on aliases
24031 as long as they aren't analyzed yet.
24032
24033 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24034
24035 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24036 to `mips_set_text_contents_type' to indicate whether a
24037 non-debug insn follows.
24038
24039 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24040
24041 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24042 enabling -mpcrel by default.
24043 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24044 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24045 that the test against -mcpu=future is done first. Then test if
24046 -mprefixed-addr is on for -mpcrel.
24047 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24048
24049 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24050
24051 PR target/90811
24052 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24053 instead of and.u%d.
24054
24055 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24056
24057 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24058
24059 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24060
24061 PR c++/90449 - add -Winaccessible-base option.
24062 * doc/invoke.texi (Winaccessible-base): Document.
24063
24064 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24065
24066 PR tree-optimization/62041
24067 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24068
24069 2019-06-11 Jason Merrill <jason@redhat.com>
24070
24071 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24072 * tree.c (get_tree_code_name): Likewise.
24073 * print-tree.c (print_node): Only briefly print a node with an
24074 invalid code.
24075
24076 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24077
24078 PR bootstrap/90819
24079 * trans-mem.c (tm_memopt_compute_available): Add assertion
24080 that blocks is not empty. Formatting fix.
24081
24082 2019-06-11 Martin Liska <mliska@suse.cz>
24083
24084 PR c++/87847
24085 * hash-table.h: Extend create_gcc, add one parameter
24086 that is passed into hash_table::hash_table.
24087
24088 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24089
24090 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24091 New prototype.
24092 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24093 Emit clobber also for non-sse operations.
24094 (ix86_split_fp_absneg_operator): New function.
24095 * config/i386/i386.md (SSEMODEF): New mode iterator.
24096 (ssevecmodef): New mode attribute.
24097 (<code>tf2): Use absneg code iterator.
24098 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24099 Add three-operand AVX alternatives.
24100 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24101 Use absneg code iterator and X87MODEF mode iterator.
24102 (absneg fp_reg non-sse splitter): Call absneg code iterator
24103 and X87MODEF mode iterator.
24104 (absneg general_reg non-sse splitter): Use absneg code iterator
24105 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24106 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24107 code iterator. Add three-operand AVX alternative.
24108 (absneg sse_reg splitter): Use absneg code iterator
24109 and SSEMODEF mode iterator. Handle AVX operands.
24110 (absneg fp_reg splitter): Use absneg code iterator
24111 and MODEF mode iterator.
24112 (absneg general_reg splitter): Merge splitters using MODEF mode
24113 iterator. Use absneg code iterator. Call
24114 ix86_split_fp_absneg_operator.
24115 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24116 Do not enable for non-sse modes before reload.
24117 (CSGNMODE): Remove.
24118 (CSGNVMODE): Ditto.
24119 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24120 ssevecmodef mode attribute instaed of CSGNVMODE.
24121 (copysign<mode>3_const): Ditto.
24122 (copysign<mode>3_var): Ditto.
24123 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24124 Use absneg code iterator. Simplify code using std::swap.
24125 * config/i386/predicates.md (absneg_operator): Remove.
24126
24127 2019-06-10 Martin Sebor <msebor@redhat.com>
24128
24129 * gimple-fold.c (get_range_strlen): Update comment that didn't
24130 make it into r267503 or related commits.
24131
24132 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24133
24134 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24135 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24136
24137 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24138
24139 * tree.def (OMP_SCAN): New tree code.
24140 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24141 OMP_CLAUSE_EXCLUSIVE.
24142 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24143 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24144 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24145 OMP_CLAUSE_{IN,EX}CLUSIVE.
24146 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24147 * tree-nested.c (convert_nonlocal_reference_stmt,
24148 convert_local_reference_stmt, convert_gimple_call): Handle
24149 GIMPLE_OMP_SCAN.
24150 * tree-pretty-print.c (dump_omp_clause): Handle
24151 OMP_CLAUSE_{IN,EX}CLUSIVE.
24152 (dump_generic_node): Handle OMP_SCAN.
24153 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24154 * gimple.h (gomp_scan): New type.
24155 (is_a_helper <gomp_scan *>::test,
24156 is_a_helper <const gomp_scan *>::test): New templates.
24157 (gimple_build_omp_scan): Declare.
24158 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24159 gimple_omp_scan_set_clauses): New inline functions.
24160 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24161 * gimple.c (gimple_build_omp_scan): New function.
24162 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24163 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24164 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24165 GIMPLE_OMP_TASKGROUP.
24166 (dump_gimple_omp_scan): New function.
24167 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24168 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24169 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24170 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24171 (is_gimple_stmt): Handle OMP_SCAN.
24172 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24173 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24174 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24175 mentioned in nested #pragma omp scan. Handle
24176 OMP_CLAUSE_{IN,EX}CLUSIVE.
24177 (gimplify_expr): Handle OMP_SCAN.
24178 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24179 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24180 simd constructs.
24181 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24182 GIMPLE_OMP_SCAN.
24183
24184 2019-06-10 Martin Liska <mliska@suse.cz>
24185
24186 * ipa-cp.c (ignore_edge_p): New function.
24187 (build_toporder_info): Use it.
24188 * ipa-inline.c (ignore_edge_p): New function.
24189 (inline_small_functions): Use it.
24190 * ipa-pure-const.c (ignore_edge_for_nothrow):
24191 Verify opt_for_fn for caller and callee.
24192 (ignore_edge_for_pure_const): Likewise.
24193 * ipa-reference.c (ignore_edge_p): Extend to check
24194 for opt_for_fn.
24195 * ipa-utils.c (searchc): Refactor.
24196 * ipa-utils.h: Fix coding style.
24197
24198 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24199
24200 * config/arc/arc.c (arc_rtx_costs): Update costs.
24201
24202 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24203
24204 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24205 (arc_split_ior): Likewise.
24206 (arc_check_mov_const): Likewise.
24207 (arc_split_mov_const): Likewise.
24208 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24209 (arc_rtx_costs): Replace check Crr with Cax constraint.
24210 (prepare_move_operands): Cleanup, remove unused code.
24211 (arc_split_ior): New function.
24212 (arc_check_ior_const): Likewise.
24213 (arc_split_mov_const): Likewise.
24214 (arc_check_mov_const): Likewise.
24215 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24216 in define_insn_and_split pattern.
24217 (iorsi3): Likewise.
24218 (mulsi3_v2): Add new matching variant.
24219 (andsi3_i): Cleanup pattern.
24220 (rotrsi3_cnt1): Update pattern.
24221 (rotrsi3_cnt8): New pattern.
24222 (ashlsi2_cnt8): Likewise.
24223 (ashlsi2_cnt16): Likewise.
24224 * config/arc/constraints.md (C0p): Update constraint.
24225 (Crr): Remove it.
24226 (C0x): New pattern.
24227 (Cax): New pattern.
24228
24229 2019-06-10 Martin Liska <mliska@suse.cz>
24230
24231 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24232 Update coding style.
24233 (sem_item_optimizer::dump_cong_classes):
24234 Print how many items are in a non-singular class. Improve
24235 coding style.
24236
24237 2019-06-10 Martin Liska <mliska@suse.cz>
24238
24239 * value-prof.c (dump_histogram_value): Change dump format.
24240 (gimple_mod_subtract_transform): Remove legacy comment.
24241
24242 2019-06-10 Martin Liska <mliska@suse.cz>
24243
24244 * value-prof.c (dump_histogram_value): Print histogram values
24245 only if present.
24246
24247 2019-06-10 Martin Liska <mliska@suse.cz>
24248
24249 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24250 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24251 * ipa-profile.c (ipa_profile_generate_summary):
24252 Use get_most_common_single_value.
24253 * tree-profile.c (gimple_init_gcov_profiler):
24254 Instrument with __gcov_one_value_profiler_v2
24255 and __gcov_indirect_call_profiler_v4.
24256 * value-prof.c (dump_histogram_value):
24257 Print all values for HIST_TYPE_SINGLE_VALUE.
24258 (stream_out_histogram_value): Update assert for
24259 N values.
24260 (stream_in_histogram_value): Set number of
24261 counters for HIST_TYPE_SINGLE_VALUE.
24262 (get_most_common_single_value): New.
24263 (gimple_divmod_fixed_value_transform):
24264 Use get_most_common_single_value.
24265 (gimple_ic_transform): Likewise.
24266 (gimple_stringops_transform): Likewise.
24267 (gimple_find_values_to_profile): Set number
24268 of counters for HIST_TYPE_SINGLE_VALUE.
24269 * value-prof.h (get_most_common_single_value): New.
24270
24271 2019-06-10 Martin Liska <mliska@suse.cz>
24272
24273 * hash-map.h: Pass default value to hash_table ctor.
24274 * hash-table.h: Add default value to call of a ctor.
24275
24276 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24277
24278 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24279 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24280
24281 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24282
24283 PR target/90751
24284 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24285 Call pa_output_function_label.
24286 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24287 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24288 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24289 to declaration.
24290 (pa_linux_output_function_prologue): Declare.
24291 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24292 (pa_output_function_label): New.
24293 (pa_output_function_prologue): Revise to use pa_output_function_label.
24294 (pa_linux_output_function_prologue): New.
24295 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24296
24297 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24298
24299 * tree-vrp.h (value_range_base::intersect): New.
24300 (value_range::intersect_helper): Move from here...
24301 (value_range_base::intersect_helper): ...to here.
24302 * tree-vrp.c (value_range::intersect_helper): Rename to...
24303 (value_range_base::intersect_helper): ...this, and rewrite to
24304 return a value instead of modifying THIS in place.
24305 Also, move equivalence handling...
24306 (value_range::intersect): ...here, while calling intersect_helper.
24307 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24308 calling intersect.
24309 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24310 Same.
24311 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24312
24313 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24314
24315 * Makefile.in (genprogerr): Add condmd.
24316 (genprog): Remove it here.
24317
24318 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24319
24320 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24321
24322 2019-06-07 Richard Biener <rguenther@suse.de>
24323
24324 PR debug/90574
24325 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24326 that appear after user labels.
24327
24328 2019-06-07 Martin Liska <mliska@suse.cz>
24329
24330 * cselib.c (cselib_init): Disable hash table
24331 sanitization.
24332 * hash-set.h: Pass new default argument to m_table.
24333 * hash-table.c: Add global variable with hash table
24334 sanitization limit.
24335 * hash-table.h (Allocator>::hash_table): Add new argument
24336 to ctor.
24337 (hashtab_chk_error): New.
24338 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24339 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24340 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24341
24342 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24343
24344 * common.opt (flto-odr-type-merging): Ignore.
24345 * invoke.texi (-flto-odr-type-merging): Remove.
24346 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24347 (can_be_vtable_hashed_p): Remove.
24348 (hash_odr_vtable): Remove.
24349 (odr_vtable_hasher::hash): Remove.
24350 (types_same_for_odr): Remove.
24351 (types_odr_comparable): Remove.
24352 (odr_vtable_hasher::equal): Remove.
24353 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24354 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24355 (get_odr_type): Do not use vtable hash.
24356 (dump_odr_type): Remove commented out code.
24357 (build_type_inheritance_graph): Do not allocate vtable hash.
24358 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24359 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24360 (odr_type_p): Likewise.
24361 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24362 test.
24363
24364 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24365
24366 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24367 immediately after same_types_for_tbaa_p returns -1 and continue
24368 looking for possible exact match; if matching types are arrays
24369 watch for partial overlaps.
24370 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24371 (indirect_refs_may_alias_p): Do type based disambiguation first;
24372 update comment.
24373
24374 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24375
24376 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24377
24378 2019-06-07 Martin Liska <mliska@suse.cz>
24379
24380 * doc/invoke.texi: Remove param.
24381 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24382 Remove.
24383 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24384 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24385 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24386 * profile.c (instrument_values): Remove
24387 HIST_TYPE_INDIR_CALL_TOPN.
24388 * tree-profile.c (init_ic_make_global_vars):
24389 Always build __gcov_indirect_call only.
24390 (gimple_init_gcov_profiler): Remove usage
24391 of PARAM_INDIR_CALL_TOPN_PROFILE.
24392 (gimple_gen_ic_profiler): Likewise.
24393 * value-prof.c (dump_histogram_value): Likewise.
24394 (stream_in_histogram_value): Likewise.
24395 (gimple_indirect_call_to_profile): Likewise.
24396 (gimple_find_values_to_profile): Likewise.
24397 * value-prof.h (enum hist_type): Likewise.
24398
24399 2019-06-07 Martin Liska <mliska@suse.cz>
24400
24401 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24402 function.
24403
24404 2019-06-07 Martin Liska <mliska@suse.cz>
24405
24406 PR tree-optimization/78902
24407 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24408 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24409 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24410 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24411 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24412 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24413 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24414 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24415 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24416 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24417 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24418 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24419 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24420 New.
24421 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24422 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24423 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24424 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24425 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24426 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24427 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24428 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24429 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24430 warn_unused_result attribute.
24431 (BUILT_IN_STRDUP): Likewise.
24432 (BUILT_IN_STRNDUP): Likewise.
24433 (BUILT_IN_ALLOCA): Likewise.
24434 (BUILT_IN_CALLOC): Likewise.
24435 (BUILT_IN_MALLOC): Likewise.
24436 (BUILT_IN_REALLOC): Likewise.
24437
24438 2019-06-06 Jim Wilson <jimw@sifive.com>
24439
24440 PR target/89955
24441 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24442 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24443 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24444
24445 2019-06-06 Martin Sebor <msebor@redhat.com>
24446
24447 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24448 (handle_builtin_malloc): Remove trailing spaces.
24449 (handle_builtin_memset): Same.
24450 (handle_builtin_memcmp): Same.
24451 (compute_string_length): Same.
24452 (determine_min_objsize): Same.
24453 (handle_builtin_string_cmp): Same.
24454 (handle_char_store): Same. Break up excessively long line.
24455
24456 2019-06-06 Martin Jambor <mjambor@suse.cz>
24457
24458 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24459 check.
24460
24461 2019-06-06 Martin Jambor <mjambor@suse.cz>
24462
24463 * tree-sra.c (struct access): New field grp_same_access_path.
24464 (dump_access): Dump it.
24465 (build_reconstructed_reference): New function.
24466 (build_ref_for_model): Use it if possible.
24467 (path_comparable_for_same_access): New function.
24468 (same_access_path_p): Likewise.
24469 (sort_and_splice_var_accesses): Set the new flag.
24470 (analyze_access_subtree): Likewise.
24471 (propagate_subaccesses_across_link): Propagate zero value of the new
24472 flag down the access tree.
24473
24474 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24475
24476 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24477 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24478 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24479 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24480 Add gfx906.
24481
24482 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24483
24484 PR tree-optimization/90332
24485 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24486 Handle VALS containing two vectors.
24487 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24488 to...
24489 (@aarch64_combinez<mode>): ... This.
24490 (*aarch64_combinez_be<mode>): Rename to...
24491 (@aarch64_combinez_be<mode>): ... This.
24492 (vec_init<mode><Vhalf>): New define_expand.
24493 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24494
24495 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24496
24497 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24498 library functions only when not optimizing for size.
24499 (ashlsi3): Likewise.
24500 (ashrhi3): Likewise.
24501 (ashrsi3): Likewise.
24502 (lshrhi3): Likewise.
24503 (lshrsi3): Likewise.
24504
24505 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24506
24507 PR rtl-optimization/88751
24508 * ira.c (ira): Use the number of the actually referenced registers
24509 when calculating the threshold.
24510
24511 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24512
24513 * configure: Regenerate.
24514
24515 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24516
24517 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24518 register if it is in memory, so the shift can be emulated with a rotate
24519 instruction.
24520 (ashrhi3): Likewise.
24521 (lshrhi3): Likewise.
24522
24523 2019-06-06 Martin Liska <mliska@suse.cz>
24524
24525 PR tree-optimization/87954
24526 * match.pd: Simplify mult where both arguments are 0 or 1.
24527
24528 2019-06-06 Richard Biener <rguenther@suse.de>
24529
24530 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24531 put equivalences on UNDEFINED ranges.
24532 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24533 Make sure to drop defs of stmts added during simplification
24534 to VARYING.
24535
24536 2019-06-06 Richard Biener <rguenther@suse.de>
24537
24538 * tree-ssa-structalias.c: Include tree-cfg.h.
24539 (make_heapvar): Do not make heap vars artificial.
24540 (find_func_aliases_for_builtin_call): Handle stack allocation
24541 functions.
24542 (find_func_aliases): Delay processing of simple enough returns
24543 in non-IPA mode.
24544 (set_uids_in_ptset): Adjust.
24545 (find_what_var_points_to): Likewise.
24546 (solve_constraints): Do not dump points-to sets here.
24547 (compute_points_to_sets): Post-process return statements,
24548 amending the escaped solution. Dump points-to sets afterwards.
24549 (ipa_pta_execute): Dump points-to sets.
24550
24551 2019-06-06 Martin Liska <mliska@suse.cz>
24552
24553 PR web/87933
24554 * doc/install.texi: Fix HTML headers and
24555 titles for 'Installing GCC' pages.
24556
24557 2019-06-06 Martin Liska <mliska@suse.cz>
24558
24559 * ipa-icf-gimple.h (dump_message_1): Remove.
24560 (dump_message): Likewise.
24561 (return_false_with_message_1): Print also file.
24562 (return_false_with_msg): Likewise.
24563 (return_with_result): Likewise.
24564 (return_with_debug): Likewise.
24565 * ipa-icf.c (sem_function::equals_private): Remove call
24566 to dump_message.
24567
24568 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24569
24570 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24571 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24572 memory operand for it.
24573 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24574
24575 2019-06-05 Martin Sebor <msebor@redhat.com>
24576
24577 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24578 Adjust quoting and hyphenation.
24579 * convert.c (convert_to_real_1): Same.
24580 * gcc.c (driver_wrong_lang_callback): Same.
24581 (driver::handle_unrecognized_options): Same.
24582 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24583 * opts-common.c (cmdline_handle_error): Same.
24584 (read_cmdline_option): Same.
24585 * opts-global.c (complain_wrong_lang): Same.
24586 (print_ignored_options): Same.
24587 (handle_common_deferred_options): Same.
24588 * pretty-print.h: Same.
24589 * print-rtl.c (debug_bb_n_slim): Same.
24590 * sched-rgn.c (make_pass_sched_fusion): Same.
24591 * tree-cfg.c (verify_gimple_assign_unary): Same.
24592 (verify_gimple_label): Same.
24593 * tree-ssa-operands.c (verify_ssa_operands): Same.
24594 * varasm.c (do_assemble_alias): Same.
24595 (assemble_alias): Same.
24596
24597 2019-06-05 Richard Henderson <rth@twiddle.net>
24598
24599 * config/alpha/alpha.c (direct_return): Move down after
24600 struct machine_function definition; use saved frame_size;
24601 return bool.
24602 (struct machine_function): Add sa_mask, sa_size, frame_size.
24603 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24604 (alpha_compute_frame_layout): ... new function.
24605 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24606 (alpha_initial_elimination_offset): Use saved sa_size.
24607 (alpha_vms_initial_elimination_offset): Likewise.
24608 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24609 (alpha_expand_prologue): Use saved frame data. Merge integer
24610 and fp register save loops.
24611 (alpha_expand_epilogue): Likewise.
24612 (alpha_start_function): Use saved frame data.
24613 * config/alpha/alpha-protos.h (direct_return): Update.
24614 (alpha_sa_size): Remove.
24615
24616 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24617
24618 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24619 multiplication by a power-of-two value.
24620 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24621 and turn the modulo operation into a masking operation.
24622
24623 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24624
24625 PR debug/90733
24626 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24627 with VOIDmode inner operands.
24628
24629 2019-06-05 Richard Biener <rguenther@suse.de>
24630
24631 PR middle-end/90726
24632 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24633 turn an expression graph into a tree.
24634
24635 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24636
24637 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24638 member.
24639 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24640 treat it like explicit monotonic schedule modifier.
24641 (expand_omp_for): Initialize has_lastprivate_conditional.
24642 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24643 schedule modifier.
24644
24645 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24646 references, lookup in in hash map MEM_REF operand instead of the
24647 MEM_REF itself.
24648 (lower_omp_1): When looking for lastprivate conditional assignments,
24649 handle MEM_REFs with REFERENCE_TYPE operands.
24650
24651 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24652 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24653 and references a VLA. Handle references to non-VLAs if is_simd
24654 all privatization clauses like reductions.
24655 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24656 If omp_is_reference, use always omp simd arrays and set
24657 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24658 fails, emit reference initialization.
24659
24660 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24661
24662 PR target/89803
24663 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24664 _mm_mask_fpclass_sd_mask): New intrinsics.
24665 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24666 * config/i386/i386-builtin.def
24667 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24668 New builtins.
24669 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24670 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24671 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24672 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24673 case QI_FTYPE_V2SF_INT): Ditto.
24674 * config/i386/sse.md
24675 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24676 Extended to insnstructions with mask operands.
24677
24678 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24679
24680 * config/rs6000/constraints.md (define_register_constraint "wp"):
24681 Delete.
24682 (define_register_constraint "wq"): Delete.
24683 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24684 (rs6000_init_hard_regno_mode_ok): Adjust.
24685 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24686 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24687 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24688 (define_mode_attr VSa): Delete.
24689 (define_mode_attr VSisa): New.
24690 (rest of file): Adjust.
24691 * doc/md.texi (Machine Constraints): Adjust.
24692
24693 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24694
24695 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24696 (define_attr "enabled"): Handle those new isa values.
24697
24698 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24699
24700 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24701 (define_mode_attr VSr5): Delete.
24702 (define_mode_attr VStype_sqrt): Delete.
24703 (define_mode_iterator VSX_SPDP): Delete.
24704 (define_mode_attr VS_spdp_res): Delete.
24705 (define_mode_attr VS_spdp_insn): Delete.
24706 (define_mode_attr VS_spdp_type): Delete.
24707 (*vsx_sqrt<mode>2): Adjust.
24708 (vsx_<VS_spdp_insn>): Delete, split to...
24709 (vsx_xscvdpsp): ... this. New. And...
24710 (vsx_xvcvspdp): ... this. New. And...
24711 (vsx_xvcvdpsp): ... this. New.
24712
24713 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24714
24715 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24716 and V2DF.
24717 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24718 (rest of file): Adjust.
24719
24720 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24721
24722 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24723 (vsx_extract_<mode>_var): Ditto.
24724
24725 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24726
24727 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24728 with just "wa".
24729
24730 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24731
24732 * config/rs6000/constraints.md (define_register_constraint "ww"):
24733 Delete.
24734 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24735 (rs6000_init_hard_regno_mode_ok): Adjust.
24736 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24737 RS6000_CONSTRAINT_ww.
24738 * config/rs6000/rs6000.md: Adjust.
24739 * config/rs6000/vsx.md: Adjust.
24740 * doc/md.texi (Machine Constraints): Adjust.
24741
24742 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24743
24744 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24745 (define_mode_attr sd): New.
24746 (define_mode_attr s): New.
24747 (define_mode_attr Ftrad): Delete.
24748 (define_mode_attr Fvsx): Delete.
24749 (define_mode_attr Fs): Delete.
24750 (rest of file): Use the new mode attributes.
24751 * config.rs6000/vsx.md: Use the new mode attributes.
24752
24753 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24754
24755 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24756 with just "wa".
24757
24758 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24759
24760 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24761 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24762 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24763
24764 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24765
24766 PR target/78263
24767 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24768 C++ with strict ANSI requirements.
24769
24770 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24771
24772 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24773 computations when step is 1.
24774
24775 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24776
24777 * config/rs6000/constraints.md (define_register_constraint "wf"):
24778 Delete.
24779 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24780 (rs6000_init_hard_regno_mode_ok): Adjust.
24781 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24782 RS6000_CONSTRAINT_wf.
24783 * config/rs6000/rs6000.md: Adjust.
24784 * config/rs6000/vsx.md: Adjust.
24785 * doc/md.texi (Machine Constraints): Adjust.
24786
24787 2019-06-04 Andrew Pinski <apinski@marvell.com>
24788
24789 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24790 Fix ILP32 value.
24791
24792 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24793
24794 * config/rs6000/constraints.md (define_register_constraint "wd"):
24795 Delete.
24796 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24797 (rs6000_init_hard_regno_mode_ok): Adjust.
24798 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24799 RS6000_CONSTRAINT_wd.
24800 * config/rs6000/rs6000.md: Adjust.
24801 * config/rs6000/vsx.md: Adjust.
24802 * doc/md.texi (Machine Constraints): Adjust.
24803
24804 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24805
24806 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24807 (rest of file): Adjust.
24808
24809 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24810
24811 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24812 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24813 (vsx_splat_<mode>_reg): Adjust.
24814
24815 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24816
24817 * config/rs6000/constraints.md (define_register_constraint "ws"):
24818 Delete.
24819 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24820 (rs6000_init_hard_regno_mode_ok): Adjust.
24821 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24822 RS6000_CONSTRAINT_ws.
24823 * config/rs6000/rs6000.md: Adjust.
24824 * config/rs6000/vsx.md: Adjust.
24825 * doc/md.texi (Machine Constraints): Adjust.
24826
24827 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24828
24829 * config/rs6000/constraints.md (define_register_constraint "wv"):
24830 Delete.
24831 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24832 (rs6000_init_hard_regno_mode_ok): Adjust.
24833 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24834 RS6000_CONSTRAINT_wv.
24835 * config/rs6000/rs6000.md: Adjust.
24836 * config/rs6000/vsx.md: Adjust.
24837 * doc/md.texi (Machine Constraints): Adjust.
24838
24839 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24840
24841 * config/rs6000/constraints.md (define_register_constraint "wi"):
24842 Delete.
24843 (define_register_constraint "wt"): Delete.
24844 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24845 (rs6000_init_hard_regno_mode_ok): Adjust.
24846 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24847 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24848 * config/rs6000/rs6000.md: Adjust.
24849 * config/rs6000/vsx.md: Adjust.
24850 * doc/md.texi (Machine Constraints): Adjust.
24851
24852 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24853
24854 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24855 const.
24856 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24857 default_elf_asm_output_external.
24858
24859 2019-06-04 Martin Liska <mliska@suse.cz>
24860
24861 * ipa-icf.c (INCLUDE_LIST): Remove.
24862 (sem_item_optimizer::execute): Remove call to init_wpa.
24863 * ipa-icf.h (init_wpa): Remove.
24864
24865 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24866
24867 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24868 conditional on combined for simd.
24869 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24870 member.
24871 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24872 constructs, don't remove lastprivate_conditional_map, but instead set
24873 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24874 to parent construct temporaries.
24875 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24876 like !ctx->lastprivate_conditional_map.
24877 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24878 use up->outer context instead of up.
24879 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24880 gimple_omp_for_combined_p.
24881 (expand_omp_for_static_nochunk): Likewise.
24882 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24883 probably moved over into expand_omp_for_generic rather than being copied
24884 there.
24885
24886 2019-06-04 Martin Liska <mliska@suse.cz>
24887
24888 * value-prof.c (dump_histogram_value): Fix typo.
24889 (gimple_mod_subtract_transform): Likewise.
24890
24891 2019-06-04 Richard Biener <rguenther@suse.de>
24892
24893 PR middle-end/90726
24894 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24895 (tree_contains_chrecs): Likewise.
24896 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24897 exponential behaivor from ...
24898 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24899 ... here.
24900 (expression_expensive_p): Avoid exponential behavior and compute
24901 expanded size, rejecting any expansion.
24902 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24903 (idx_contains_abnormal_ssa_name_p): Likewise.
24904 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24905 (contains_abnormal_ssa_name_p): Simplify and use
24906 walk_tree_without_duplicates.
24907
24908 2019-06-04 Richard Biener <rguenther@suse.de>
24909
24910 PR tree-optimization/90738
24911 Revert
24912 2019-06-03 Richard Biener <rguenther@suse.de>
24913
24914 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24915 full reference tree and record in ref->ref.
24916 (vn_reference_lookup_3): Pass in original ref to
24917 ao_ref_init_from_vn_reference.
24918 (vn_reference_lookup): Likewise.
24919 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24920 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24921 Handle non-decl bases in the original reference.
24922
24923 2019-06-04 Martin Liska <mliska@suse.cz>
24924
24925 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24926 number of references.
24927 (sem_item_optimizer::do_congruence_step):
24928 (sem_item_optimizer::worklist_push): Dump how references
24929 a class has.
24930 (sem_item_optimizer::worklist_pop): Use heap.
24931 (sem_item_optimizer::process_cong_reduction): Likewise.
24932 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24933
24934 2019-06-04 Martin Liska <mliska@suse.cz>
24935
24936 * ipa-icf.h (struct sem_usage_pair_hash): New.
24937 (sem_usage_pair_hash::hash): Likewise.
24938 (sem_usage_pair_hash::equal): Likewise.
24939 (struct sem_usage_hash): Likewise.
24940 * ipa-icf.c (sem_item::sem_item): Initialize
24941 referenced_by_count.
24942 (sem_item::add_reference): Register a reference
24943 in ref_map and not in target->usages.
24944 (sem_item::setup): Remove initialization of
24945 dead vectors.
24946 (sem_item::~sem_item): Remove usage of dead vectors.
24947 (sem_item::dump): Remove dump of references.
24948 (sem_item_optimizer::sem_item_optimizer): Initialize
24949 m_references.
24950 (sem_item_optimizer::read_section): Remove useless
24951 dump.
24952 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24953 (sem_item_optimizer::build_graph): Pass m_references
24954 to ::add_reference.
24955 (sem_item_optimizer::verify_classes): Remove usage of dead
24956 vectors.
24957 (sem_item_optimizer::traverse_congruence_split): Return true
24958 when a class is split.
24959 (sem_item_optimizer::do_congruence_step_for_index): Use
24960 hash_map for look up of (sem_item *, index). That brings
24961 significant speed up.
24962 (sem_item_optimizer::do_congruence_step): Return true
24963 when a split is done.
24964 (congruence_class::is_class_used): Use referenced_by_count.
24965
24966 2019-06-04 Alan Modra <amodra@gmail.com>
24967
24968 PR target/90689
24969 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24970 error.
24971
24972 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24973
24974 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24975 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24976 (rs6000_secondary_reload_simple_move): Adjust.
24977 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24978 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24979 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24980 comment.
24981 (power6x): Adjust.
24982 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24983 (floatunssi<mode>2_lfiwzx): Adjust.
24984 (fix_trunc<mode>si2_stfiwx): Adjust.
24985 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24986 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24987 (mfpgpr): Mark as deprecated.
24988 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24989 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24990 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24991
24992 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24993
24994 * config/rs6000/constraints.md (define_register_constraint "wg"):
24995 Delete.
24996 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24997 RS6000_CONSTRAINT_wg.
24998 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24999 (rs6000_init_hard_regno_mode_ok): Adjust.
25000 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25001 Delete "wg" alternatives.
25002 * doc/md.texi (Machine Constraints): Adjust.
25003
25004 2019-06-03 Alan Modra <amodra@gmail.com>
25005
25006 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25007 (get_uncond_jump_length): Assert length less than INT_MAX and
25008 non-negative.
25009
25010 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25011
25012 PR middle-end/64242
25013 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25014 block.
25015 (expand_builtin_nonlocal_goto): Likewise.
25016
25017 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25018
25019 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25020 (aarch64_asm_output_external): Declare.
25021 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25022 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25023 (aarch64_asm_output_alias): New.
25024 (aarch64_asm_output_external): New.
25025 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25026 (ASM_OUTPUT_EXTERNAL): Define.
25027
25028 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25029 * tree-vrp.h (value_range_base::nonzero_p): New.
25030 (value_range_base::set_nonnull): Rename to...
25031 (value_range_base::set_nonzero): ...this.
25032 (value_range_base::set_null): Rename to...
25033 (value_range_base::set_zero): ...this.
25034 (value_range::set_nonnull): Remove.
25035 (value_range::set_null): Remove.
25036 * tree-vrp.c (range_is_null): Remove.
25037 (range_is_nonnull): Remove.
25038 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25039 instead of range_is_*null.
25040 (extract_range_from_unary_expr): Same.
25041 (value_range_base::set_nonnull): Rename to...
25042 (value_range_base::set_nonzero): ...this.
25043 (value_range::set_nonnull): Remove.
25044 (value_range_base::set_null): Rename to...
25045 (value_range_base::set_zero): ...this.
25046 (value_range::set_null): Remove.
25047 (extract_range_from_binary_expr): Rename set_*null uses to
25048 set_*zero.
25049 (extract_range_from_unary_expr): Same.
25050 (union_helper): Same.
25051 * vr-values.c (get_value_range): Use set_*zero instead of
25052 set_*null.
25053 (vr_values::extract_range_from_binary_expr): Same.
25054 (vr_values::extract_range_basic): Same.
25055
25056 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25057
25058 PR driver/90684
25059 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25060
25061 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25062
25063 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25064 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25065 Rename to...
25066 (aarch64_<su>abd<mode>_3): ... This.
25067 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25068
25069 2019-06-03 Richard Biener <rguenther@suse.de>
25070
25071 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25072 full reference tree and record in ref->ref.
25073 (vn_reference_lookup_3): Pass in original ref to
25074 ao_ref_init_from_vn_reference.
25075 (vn_reference_lookup): Likewise.
25076 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25077 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25078 Handle non-decl bases in the original reference.
25079
25080 2019-06-03 Martin Liska <mliska@suse.cz>
25081
25082 * doc/generic.texi: Remove Java Trees.
25083
25084 2019-06-03 Martin Liska <mliska@suse.cz>
25085
25086 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25087 returns 0 when operands are equal.
25088
25089 2019-06-03 Richard Biener <rguenther@suse.de>
25090
25091 PR tree-optimization/90716
25092 * tree-loop-distribution.c (destroy_loop): Process blocks in
25093 correct order.
25094
25095 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25096
25097 PR target/88837
25098 * vector-builder.h (vector_builder::count_dups): New method.
25099 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25100 Declare prototype.
25101 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25102 (vec_init<mode><Vel>): New pattern.
25103 * config/aarch64/aarch64.c (emit_insr): New function.
25104 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25105 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25106 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25107 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25108
25109 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25110
25111 PR tree-optimization/90681
25112 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25113 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25114 special case for SLP, but fail on non-groupped loads.
25115
25116 2019-06-03 Martin Liska <mliska@suse.cz>
25117
25118 * cfg.c (debug): Use TDF_DETAILS for debug and
25119 print edge info only once.
25120
25121 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25122
25123 PR fortran/90539
25124 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25125
25126 2019-06-01 Martin Sebor <msebor@redhat.com>
25127
25128 PR middle-end/90694
25129 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25130
25131 2019-05-31 Jan Hubicka <jh@suse.cz>
25132
25133 * alias.c: Include ipa-utils.h.
25134 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25135 * ipa-devirt.c (prevailing_odr_type): New.
25136 * ipa-utils.h (previaling_odr_type): Declare.
25137
25138 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25139 Hongtao Liu <hongtao.liu@intel.com>
25140
25141 PR target/89355
25142 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25143 NOTE_INSN_DELETED_LABEL check.
25144
25145 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25146 Robert Suchanek <robert.suchanek@mips.com>
25147
25148 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25149 and 3rd operands of the fmadd/fmsub/maddv builtin.
25150
25151 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25152
25153 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25154 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25155 on OMP_SIMD if not nested inside of worksharing loop that also has
25156 lastprivate conditional clause for the same decl.
25157 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25158 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25159 on simd.
25160 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25161 on simd construct.
25162 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25163 on simd construct.
25164 (lower_lastprivate_clauses): Likewise.
25165 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25166 calling lower_rec_input_clauses.
25167 (lower_omp_for): Likewise.
25168 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25169 clause on simd construct.
25170 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25171 OMP_CLAUSE__CONDTEMP_ clause is present.
25172
25173 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25174 ivar and lvar.
25175
25176 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25177
25178 PR c/43673
25179 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25180 TEX_D32, TEX_D64 or TEX_D128.
25181
25182 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25183
25184 * match.pd (~(vec?cst1:cst2)): New transformation.
25185
25186 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25187
25188 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25189 ((size_t)(A /[ex] B) CMP C): New transformation.
25190
25191 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25192
25193 * doc/md.texi: Document define_insn_and_rewrite.
25194 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25195 * gensupport.c (queue_elem): Update comment.
25196 (replace_operands_with_dups): New function.
25197 (gen_rewrite_sequence): Likewise.
25198 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25199 * read-rtl.c (apply_subst_iterator): Likewise.
25200 (add_condition_to_rtx, named_rtx_p): Likewise.
25201 (rtx_reader::read_rtx_operand): Likewise.
25202 * config/aarch64/aarch64-sve.md
25203 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25204 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25205 define_insn_and_rewrite.
25206 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25207 Remove separate define_split.
25208
25209 2019-05-31 Jan Hubicka <jh@suse.cz>
25210
25211 * tree-ssa-alias.c (type_has_components_p): New function.
25212 (aliasing_component_refs_p): Use it.
25213
25214 2019-05-31 Martin Liska <mliska@suse.cz>
25215
25216 * gdbhooks.py: Add const_tree to TreePrinter.
25217
25218 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25219
25220 PR debug/86964
25221 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25222 * doc/invoke.texi (Debugging Options): Document new default of
25223 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25224
25225 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25226
25227 PR tree-optimization/90671
25228 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25229 template_block used to be empty on the first call, don't use
25230 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25231 seq with bb_seq and set it with set_bb_seq.
25232
25233 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25234
25235 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25236
25237 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25238 Michael Meissner <meissner@linux.ibm.com>
25239
25240 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25241 (prefixed_mem_operand): Likewise.
25242 (non_prefixed_mem_operand): Likewise.
25243 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25244 prototype.
25245 * config/rs6000/rs6000.c (print_operand_address): Handle
25246 PC-relative addresses.
25247 (mode_supports_prefixed_address_p): New function.
25248 (rs6000_prefixed_address): New function.
25249 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25250 (SYMBOL_REF_PCREL_P): Likewise.
25251
25252 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25253
25254 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25255 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25256 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25257 is nested inside of parallel region, add _condtemp_ clause to both.
25258 * tree-nested.c (convert_nonlocal_omp_clauses,
25259 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25260 assertion failure.
25261 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25262 member.
25263 * omp-general.c (omp_extract_for_data): Compute it.
25264 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25265 (lower_rec_input_clauses): Likewise.
25266 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25267 clause is already present, just add one further one after it.
25268 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25269 (lower_send_shared_vars): Clear _condtemp_ vars.
25270 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25271 or section or taskgroup.
25272 * omp-expand.c (determine_parallel_type): Disallow combining only if
25273 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25274 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25275 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25276 expand_omp_for_static_chunk, expand_omp_for): Use
25277 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25278 determine if a special set of API routines are needed and if condtemp
25279 needs to be initialized, while always initialize cond_var if
25280 fd->lastprivate_conditional is non-zero.
25281
25282 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25283 Michael Meissner <meissner@linux.ibm.com>
25284
25285 * config/rs6000/constraints.md (eI): New constraint.
25286 * config/rs6000/predicates.md (cint34_operand): New predicate.
25287 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25288 (SIGNED_34BIT_OFFSET_P): Likewise.
25289 * doc/md.texi (eI): Document constraint.
25290
25291 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25292
25293 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25294
25295 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25296 Michael Meissner <meissner@linux.ibm.com>
25297
25298 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25299 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25300 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25301 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25302 (OTHER_FUTURE_MASKS): Likewise.
25303 (POWERPC_MASKS): Likewise.
25304 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25305 specified without -mprefixed-addr or -mcpu=future. Error if
25306 -mprefixed-addr is specified without -mcpu=future.
25307 (rs6000_opt_masks): Add entry for prefixed-addr.
25308 * rs6000.opt (mprefixed-addr): New option.
25309
25310 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25311
25312 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25313 cfun->is_thunk check.
25314
25315 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25316
25317 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25318 to length.
25319
25320 2019-05-30 Martin Liska <mliska@suse.cz>
25321
25322 * gdbinit.in: Fix 'ptc' command. Add trt
25323 that prints TREE_TYPE($).
25324
25325 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25326 Alan Modra <amodra@gmail.com>
25327
25328 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25329 calls here...
25330 (rs6000_indirect_call_template_1): ...and here.
25331 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25332 plt16_ha, plt16_lo, mtctr indirect calls. Use
25333 rs6000_pltseq_enum.
25334 (rs6000_decl_ok_for_sibcall): New function.
25335 (rs6000_function_ok_for_sibcall): Refactor.
25336 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25337 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25338 when pcrel. Reorganize.
25339 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25340 * rs6000.h (rs6000_pltseq_enum): New enum.
25341 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25342 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25343 (*pltseq_plt16_ha): Likewise.
25344 (*pltseq_plt16_lo): Likewise.
25345 (*pltseq_mtctr): Likewise.
25346 (*pltseq_plt_pcrel): New insn.
25347 (*call_local_aix): Handle @notoc calls.
25348 (*call_value_local_aix): Likewise.
25349 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25350 (*call_value_nonlocal_aix): Likewise.
25351 (*call_indirect_pcrel): New insn.
25352 (*call_value_indirect_pcrel): Likewise.
25353
25354 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25355
25356 * config/i386/sse.md (*save_multiple<mode>): Rename from
25357 save_multiple<mode>.
25358 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25359 (*restore_multiple_and_return<mode>): Rename from
25360 restore_multiple_and_return<mode>.
25361 (*restore_multiple_leave_return<mode>): Rename from
25362 restore_multiple_leave_return<mode>.
25363
25364 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25365
25366 * config.gcc (rx-*-linux*): New target.
25367 * config/rx/elf.opt: New file.
25368 * config/rx/linux.h: Likewise.
25369 * config/rx/t-linux: Likewise.
25370 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25371 make it zero.
25372 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25373 (ASM_APP_OFF): Likewise.
25374 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25375 moved elsewhere.
25376
25377 2019-05-29 Jan Hubicka <jh@suse.cz>
25378
25379 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25380 variants are pointer equivalent.
25381
25382 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25383
25384 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25385 * config/aarch64/aarch64-sve2.md: New file.
25386 (<u>avg<mode>3_floor): New pattern.
25387 (<u>avg<mode>3_ceil): Likewise.
25388 (*<sur>h<addsub><mode>): Likewise.
25389 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25390 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25391
25392 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25393
25394 PR bootstrap/90543
25395 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25396 for var_opt_string printing. In cl_optimization_print_diff, print
25397 (null) instead of invoking undefined behavior if one of the
25398 var_opt_string pointers is NULL and use && instead of first || in the
25399 guarding condition. For var_target_other options, handle const char *
25400 target variables similarly to const char * optimize node variables.
25401
25402 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25403
25404 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25405 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25406 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25407 Add autib1716 and pacib1716 initialisation.
25408 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25409 for autib1716 and pacib1716.
25410 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25411 aarch64_post_cfi_startproc): Define.
25412 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25413 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25414 aarch64_handle_pac_ret_protection): Set default sign key to A.
25415 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25416 aarch64_expand_prologue): Add check for b-key.
25417 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25418 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25419 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25420 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25421 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25422 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25423 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25424 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25425 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25426 pauth_hint_num_a with pauth_hint_num.
25427 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25428 pauth_hint_num_a with pauth_hint_num.
25429 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25430 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25431 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25432 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25433 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25434 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25435 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25436 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25437 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25438 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25439 UNSPEC_AUTIA1716 respectively.
25440 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25441 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25442 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25443 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25444 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25445 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25446
25447 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25448
25449 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25450 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25451 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25452 explicit clause on combined parallel into implicit shared clause.
25453 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25454 and firstprivate if the decl has one too from combined parallel to
25455 the worksharing construct.
25456
25457 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25458 Michael Meissner <meissner@linux.ibm.com>
25459
25460 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25461
25462 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25463
25464 * rtl.h (LABEL_REF_P): New #define.
25465
25466 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25467
25468 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25469
25470 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25471
25472 * internal-fn.c: Marked mask_load_direct as vectorizable.
25473 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25474 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25475 combined even if masks different with allow_slp_p param.
25476 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25477 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25478 dissolve SLP-only vectorizable groups when SLP has been discarded.
25479 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25480 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25481 masks.
25482 (vect_build_slp_tree_1): Fixed comment typo.
25483 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25484 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25485 loads for SLP only.
25486 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25487 vectorizable.
25488 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25489
25490 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25491
25492 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25493 Remove obsolete use_thunk reference.
25494 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25495 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25496 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25497 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25498 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25499 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25500 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25501 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25502 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25503
25504 2019-05-28 Nathan Sidwell <nathan@acm.org>
25505
25506 * tree.h (IDENTIFIER_ANON_P): New.
25507 (anon_aggrname_format, anon_aggname_p): Don't declare.
25508 (make_anon_name): Declare.
25509 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25510 (hash_tree): Likewise.
25511 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25512 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25513 (anon_cnt, make_anon_name): New.
25514
25515 2019-05-28 Martin Liska <mliska@suse.cz>
25516
25517 PR other/90315
25518 * opts-global.c (decode_options): Print help for all
25519 help_option_arguments.
25520 * opts.c (print_help): Add new argument.
25521 (common_handle_option): Remember all values into
25522 help_option_arguments.
25523 * opts.h (print_help): Add new argument.
25524
25525 2019-05-28 Martin Liska <mliska@suse.cz>
25526
25527 PR ipa/90555
25528 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25529 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25530 (func_checker::compare_bb): Call compare_loops.
25531
25532 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25533
25534 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25535 on sections construct.
25536 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25537 construct.
25538 (lower_omp_sections): Handle lastprivate conditional.
25539 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25540 lastprivate_conditional_map.
25541 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25542
25543 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25544 critical, taskgroup and section regions when looking for a region
25545 with non-NULL lastprivate_conditional_map.
25546
25547 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25548
25549 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25550 (*ix86_gen_sub3): Ditto.
25551 (*ix86_gen_sub3_carry): Ditto.
25552 (*ix86_gen_one_cmpl2): Ditto.
25553 (*ix86_gen_andsp): Ditto.
25554 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25555 (gen_and2_insn): New static function.
25556 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25557 Use gen_add3_insn instead of ix86_gen_add3.
25558 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25559 instead of ix86_gen_add3.
25560 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25561 Use gen_sub3_insn instead of ix86_gen_sub3.
25562 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25563 instead of ix86_gen_add3.
25564 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25565 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25566 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25567 * config/i386/i386-options.c (ix86_option_override_internal):
25568 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25569 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25570
25571 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25572
25573 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25574 and DW_OP_GNU_const_index opcodes.
25575
25576 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25577
25578 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25579
25580 2019-05-27 Richard Biener <rguenther@suse.de>
25581
25582 PR tree-optimization/90637
25583 * tree-ssa-sink.c (statement_sink_location): Honor the
25584 computed sink location for single-uses.
25585
25586 2019-05-27 Richard Biener <rguenther@suse.de>
25587
25588 PR middle-end/90610
25589 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25590 a bit-insert.
25591
25592 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25593
25594 * config/i386/i386.md (@sub<mode>3_carry): Rename
25595 from sub<mode>3_carry.
25596 (@leave_<mode>): New expander.
25597 (*leave): Rename from leave.
25598 (*leave_rex64): Rename from leave_rex64.
25599 (@monitorx_<mode>): Rename from monitorx_<mode>.
25600 (@clzero_<mode>): Rename from clzero_<mode>.
25601 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25602 from sse3_monitor_<mode>.
25603 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25604 (*ix86_gen_leave): Ditto.
25605 (*ix86_gen_monitor): Ditto.
25606 (*ix86_gen_monitorx): Ditto.
25607 (*ix86_gen_clzero): Ditto.
25608 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25609 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25610 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25611 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25612 Use gen_sse3_monitor instead of ix86_gen_monitor.
25613 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25614 instead of ix86_gen_monitorx.
25615 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25616 instead of ix86_gen_clzero.
25617 * config/i386/i386-options.c (ix86_option_override_internal):
25618 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25619 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25620
25621 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25622
25623 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25624 Rename from tls_global_dynamic_64_<mode>.
25625 (@tls_local_dynamic_base_64_<mode>): Rename from
25626 tls_local_dynamic_base_64_<mode>.
25627 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25628 Remove indirect function.
25629 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25630 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25631 instead of ix86_gen_tls_global_dynamic_64.
25632 Use gen_tls_local_dynamic_base_64 instead of
25633 ix86_gen_tls_local_dynamic_base_64.
25634 * config/i386/i386-options.c (ix86_option_override_internal):
25635 Do not initialize ix86_gen_tls_global_dynamic_64 and
25636 ix86_gen_tls_local_dynamic_base_64.
25637
25638 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25639
25640 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25641 Rename from pro_epilogue_adjust_stack_<mode>_add.
25642 (@pro_epilogue_adjust_stack_sub_<mode>)
25643 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25644 (@allocate_stack_worker_probe_<mode>):
25645 Rename from allocate_stack_worker_probe_<mode>.
25646 (allocate_stack): Use gen_allocate_stack_worker_probe.
25647 (probe_stack): Use gen_probe_stack_1.
25648 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25649 (@adjust_stack_and_probe_<mode>): Rename from
25650 adjust_stack_and_probe<mode>.
25651 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25652 (stack_protect_set): Use gen_stack_protect_set_1.
25653 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25654 (stack_protect_test): Use gen_stack_protect_test_1.
25655 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25656 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25657 Remove indirect function.
25658 (*ix86_gen_adjust_stack_and_probe): Ditto.
25659 (*ix86_gen_probe_stack_range): Ditto.
25660 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25661 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25662 (ix86_adjust_stack_and_probe_stack_clash): Use
25663 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25664 (ix86_adjust_stack_and_probe): Ditto.
25665 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25666 of ix86_gen_probe_stack_range.
25667 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25668 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25669 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25670 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25671 CODE_FOR_stack_protect_test_{si,di}.
25672 * config/i386/i386-options.c (ix86_option_override_internal):
25673 Do not initialize ix86_gen_allocate_stack_worker,
25674 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25675
25676 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25677
25678 * doc/invoke.texi (Link Options): Many editorial changes around
25679 -flinker-output.
25680
25681 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25682
25683 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25684 pre-Solaris 11 referene and most Studio compiler details.
25685
25686 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25687
25688 PR target/90530
25689 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25690 DImode to SImode in floating-point registers on 64-bit target.
25691 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25692 register_operand in xmpyu patterns.
25693
25694 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25695
25696 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25697 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25698 OMP_CLAUSE__REDUCTEMP_.
25699 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25700 OMP_CLAUSE__CONDTEMP_.
25701 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25702 * tree-pretty-print.c (dump_omp_clause): Likewise.
25703 * tree-nested.c (convert_nonlocal_omp_clauses,
25704 convert_local_omp_clauses): Likewise.
25705 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25706 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25707 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25708 on OMP_FOR.
25709 (gimplify_omp_for): Warn and disable conditional modifier from
25710 lastprivate on loop iterators.
25711 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25712 member.
25713 * omp-general.c (omp_extract_for_data): Initialize it.
25714 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25715 member.
25716 (delete_omp_context): Delete it.
25717 (lower_lastprivate_conditional_clauses): New function.
25718 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25719 handle lastprivate conditional clauses.
25720 (lower_reduction_clauses): Add CLIST argument, emit it into
25721 the critical section if any.
25722 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25723 lower_reduction_clauses callers.
25724 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25725 to lower_lastprivate_clauses.
25726 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25727 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25728 clist into a critical section if not emitted there already by
25729 lower_reduction_clauses.
25730 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25731 callers.
25732 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25733 conditional variables.
25734 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25735 clause is present.
25736 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25737 expand_omp_for_static_chunk): Handle lastprivate conditional.
25738 (expand_omp_for): Handle fd.lastprivate_conditional like
25739 fd.have_reductemp.
25740
25741 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25742
25743 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25744 kernel does not exit cleanly.
25745 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25746
25747 2019-05-24 Jason Merrill <jason@redhat.com>
25748
25749 Revert:
25750 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25751
25752 2019-05-24 Richard Biener <rguenther@suse.de>
25753
25754 PR testsuite/90607
25755 * tree-loop-distribution.c (struct partition): Add location
25756 member.
25757 (partition_alloc): Initialize all fields.
25758 (generate_memset_builtin): Use the location recorded in the
25759 partition for the generated call.
25760 (generate_memcpy_builtin): Likewise.
25761 (classify_partition): Record the location of a single store
25762 as location for the partition.
25763
25764 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25765
25766 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25767 for lo-part.
25768
25769 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25770
25771 PR target/90588
25772 * common/config/aarch64/aarch64-common.c
25773 (aarch64_rewrite_selected_cpu): Change local temporary variable
25774 type from unsigned long to uint64_t.
25775 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25776 aarch64_get_extension_string_for_isa_flags): Change declaration to
25777 match new definition by replacing unsigned long with uint64_t.
25778
25779 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25780
25781 PR target/90568
25782 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25783 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25784 Handle stack_protect_test_<mode> codegen similarly to corresponding
25785 sub instruction.
25786
25787 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25788
25789 * config/i386/darwin.h: Reject -mfentry*.
25790 * doc/sourcebuild.texi: Document mfentry target support.
25791
25792 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25793
25794 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25795 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25796 false for PC-relative functions.
25797 (rs6000_output_function_prologue): Change called function name to
25798 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25799 name,1" for PC-relative functions.
25800 (rs6000_elf_declare_function_name): Change called function name to
25801 rs6000_global_entry_point_prologue_needed_p.
25802
25803 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25804
25805 PR target/90552
25806 * config/i386/i386.c (gen_rtx_cost):
25807 Use ix86_tune_cost instead of ix86_cost.
25808
25809 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25810 Michael Meissner <meissner@linux.ibm.com>
25811 Segher Boessenkool <segher@kernel.crashing.org>
25812
25813 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25814 OPTION_MASK_PCREL.
25815 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25816 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25817 (rs6000_fndecl_pcrel_p): Likewise.
25818 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25819 error if -mpcrel is requested without -mcpu=future.
25820 (rs6000_opt_masks): Add entry for pcrel.
25821 (rs6000_fndecl_pcrel_p): New function.
25822 (rs6000_pcrel_p): Likewise.
25823 * config/rs6000/rs6000.opt (mpcrel): New option.
25824 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25825
25826 2019-05-23 Jan Hubicka <jh@suse.cz>
25827 Martin Liska <mliska@suse.cz>
25828
25829 PR tree-optimization/90576
25830 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25831 poly_int_tree_p.
25832 (aliasing_component_refs_p): Fix three way size compare conditional;
25833 give up earlier in case we can not decide on equivalence.
25834
25835 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25836 Michael Meissner <meissner@linux.ibm.com>
25837 Segher Boessenkool <segher@kernel.crashing.org>
25838
25839 * config.gcc: Add future cpu.
25840 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25841 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25842 #define.
25843 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25844 (RS6000_CPU): New instantiation for future cpu.
25845 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25846 PROCESSOR_FUTURE.
25847 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25848 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25849 * config/rs6000/rs6000-tables.opt: Regenerate.
25850 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25851 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25852 (rs6000_machine_from_flags): Handle future cpu.
25853 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25854 PROCESSOR_POWER9 for now.
25855 (rs6000_adjust_cost): Likewise.
25856 (rs6000_issue_rate): Likewise.
25857 (rs6000_register_move_cost): Likewise.
25858 (rs6000_opt_masks): Add entry for future.
25859 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25860 (MASK_FUTURE): New #define.
25861 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25862 * config/rs6000/rs6000.opt (mfuture): New target option.
25863 * doc/invoke.texi (mcpu): Add future cpu.
25864
25865 2019-05-23 Martin Liska <mliska@suse.cz>
25866
25867 PR c++/90587
25868 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25869 operation points to a temporary (pointed via tree_to_wide_ref)
25870 that is out of scope after the &.
25871
25872 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25873
25874 PR c++/90592
25875 * doc/extend.texi (Function Names): Add missing word.
25876
25877 2019-05-23 Richard Biener <rguenther@suse.de>
25878
25879 PR tree-optimization/88440
25880 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25881 at -O[2s]+.
25882 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25883 generated call.
25884 (generate_memcpy_builtin): Likewise.
25885 (distribute_loop): Pass in whether to only distribute patterns.
25886 (prepare_perfect_loop_nest): Also allow size optimization.
25887 (pass_loop_distribution::execute): When optimizing a loop
25888 nest for size allow pattern replacement.
25889
25890 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25891
25892 PR target/90568
25893 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25894 of xor.
25895
25896 2019-05-23 Martin Liska <mliska@suse.cz>
25897
25898 PR sanitizer/90570
25899 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25900 expression similarly to gimplify_decl_expr.
25901
25902 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25903
25904 * cse.c (cse_dump_path): s/dump_file/f.
25905
25906 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25907
25908 PR c++/90462
25909 * diagnostic-format-json.cc: Include "selftest.h".
25910 (json_from_expanded_location): Only add "file" key for non-NULL
25911 file strings.
25912 (json_from_location_range): Don't add "start" and "finish"
25913 children if they are UNKNOWN_LOCATION.
25914 (selftest::test_unknown_location): New selftest.
25915 (selftest::test_bad_endpoints): New selftest.
25916 (selftest::diagnostic_format_json_cc_tests): New function.
25917 * json.cc (json::object::get): New function.
25918 (selftest::test_object_get): New selftest.
25919 (selftest::json_cc_tests): Call it.
25920 * json.h (json::object::get): New decl.
25921 * selftest-run-tests.c (selftest::run_tests): Call
25922 selftest::diagnostic_format_json_cc_tests.
25923 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25924 decl.
25925
25926 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25927 Andrew Stubbs <amd@codesourcery.com>
25928
25929 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25930 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25931 (kernel): Rename to...
25932 (main_kernel): ... this.
25933 (load_image): Load _init_array and _fini_array kernels.
25934 (run): Add argument for kernel to run.
25935 (main): Run init_array_kernel before main_kernel, and
25936 fini_array_kernel after.
25937 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25938 amdgpu_hsa_kernel attribute on functions.
25939 (gcn_disable_constructors): Delete.
25940 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25941 * config/gcn/crt0.c (size_t): Define.
25942 (_init_array, _fini_array): New.
25943 (__preinit_array_start, __preinit_array_end,
25944 __init_array_start, __init_array_end,
25945 __fini_array_start, __fini_array_end): Declare weak references.
25946
25947 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25948
25949 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25950
25951 2019-05-22 Jason Merrill <jason@redhat.com>
25952
25953 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25954
25955 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25956
25957 PR target/88483
25958 * config/i386/i386-options.c (ix86_init_machine_status): Set
25959 stack_frame_required to true.
25960 * config/i386/i386.c (ix86_get_frame_size): New function.
25961 (ix86_frame_pointer_required): Replace get_frame_size with
25962 ix86_get_frame_size.
25963 (ix86_compute_frame_layout): Likewise.
25964 (ix86_find_max_used_stack_alignment): Changed to void. Set
25965 stack_frame_required.
25966 (ix86_finalize_stack_frame_flags): Always call
25967 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25968 ix86_get_frame_size.
25969 * config/i386/i386.h (machine_function): Add stack_frame_required.
25970
25971 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25972
25973 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25974
25975 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25976
25977 * common/config/aarch64/aarch64-common.c
25978 (struct aarch64_option_extension, struct processor_name_to_arch,
25979 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25980 aarch64_contains_opt,
25981 aarch64_get_extension_string_for_isa_flags): Change type of
25982 variables storing flags to uint64_t.
25983 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25984 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25985 * config/aarch64/aarch64.c (struct processor,
25986 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25987 aarch64_validate_march, aarch64_override_options,
25988 aarch64_option_print, aarch64_handle_attr_isa_flags,
25989 aarch64_declare_function_name, aarch64_start_file): Make flag
25990 variables uint64_t.
25991 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25992 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25993 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25994 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25995 * config/aarch64/driver-aarch64.c
25996 (struct aarch64_arch_extension, struct aarch64_core_data,
25997 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25998 flag variables uint64_t.
25999 * doc/invoke.texi: Add documentation for new arguments.
26000
26001 2019-05-22 Richard Biener <rguenther@suse.de>
26002
26003 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26004 rewrite ...
26005 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26006
26007 2019-05-22 Martin Liska <mliska@suse.cz>
26008
26009 PR lto/90500
26010 * doc/extend.texi: Document the change.
26011
26012 2019-05-22 Richard Biener <rguenther@suse.de>
26013
26014 PR tree-optimization/90450
26015 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26016 (mem_ref_hasher::equal): Check it.
26017 (mem_ref_alloc): Initialize it.
26018 (gather_mem_refs_stmt): Set it.
26019
26020 2019-05-22 Richard Biener <rguenther@suse.de>
26021
26022 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26023 Add ABS_EXPR.
26024 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26025 as ABSU_EXPR.
26026
26027 2019-05-22 Alan Modra <amodra@gmail.com>
26028
26029 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26030 (ASM_CPU_SPEC): Conditionally add -many.
26031 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26032 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26033 (rs6000_file_start): ..extracted from here, and modified to
26034 test all ISA bits.
26035 (rs6000_output_function_prologue): Emit .machine as necessary.
26036
26037 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26038
26039 PR middle-end/90553
26040 * ira-lives.c (process_bb_node_lives): Consider defs
26041 for a call insn to be die before the call, not after.
26042
26043 * function.c (assign_parm_setup_block): Raise alignment of
26044 stacked parameter only for STRICT_ALIGNMENT targets.
26045
26046 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26047
26048 * config/rs6000/constraints.md (define_register_constraint "wz"):
26049 Delete.
26050 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26051 RS6000_CONSTRAINT_wz.
26052 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26053 (rs6000_init_hard_regno_mode_ok): Adjust.
26054 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26055 * doc/md.texi (Machine Constraints): Adjust.
26056
26057 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26058
26059 * config/rs6000/constraints.md (define_register_constraint "wl"):
26060 Delete.
26061 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26062 RS6000_CONSTRAINT_wl.
26063 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26064 (rs6000_init_hard_regno_mode_ok): Adjust.
26065 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26066 * doc/md.texi (Machine Constraints): Adjust.
26067
26068 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26069
26070 * config/rs6000/constraints.md (define_register_constraint "wm"):
26071 Delete.
26072 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26073 RS6000_CONSTRAINT_wm.
26074 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26075 (rs6000_init_hard_regno_mode_ok): Adjust.
26076 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26077 * doc/md.texi (Machine Constraints): Adjust.
26078
26079 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26080
26081 * config/rs6000/constraints.md (define_register_constraint "wk"):
26082 Delete.
26083 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26084 RS6000_CONSTRAINT_wk.
26085 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26086 (rs6000_init_hard_regno_mode_ok): Adjust.
26087 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26088 * doc/md.texi (Machine Constraints): Adjust.
26089
26090 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26091
26092 * config/rs6000/constraints.md (define_register_constraint "wj"):
26093 Delete.
26094 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26095 RS6000_CONSTRAINT_wj.
26096 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26097 (rs6000_init_hard_regno_mode_ok): Adjust.
26098 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26099 (VS_64dm): Delete.
26100 * config/rs6000/vsx.md: Ditto.
26101 * doc/md.texi (Machine Constraints): Adjust.
26102
26103 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26104
26105 * config/rs6000/constraints.md (define_register_constraint "wh"):
26106 Delete.
26107 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26108 RS6000_CONSTRAINT_wh.
26109 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26110 (rs6000_init_hard_regno_mode_ok): Adjust.
26111 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26112 * doc/md.texi (Machine Constraints): Adjust.
26113
26114 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26115
26116 PR target/90547
26117 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26118 Avoid calling gen_lowpart with CONST operand.
26119
26120 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26121
26122 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26123 field template_last_to_copy.
26124 (ssa_create_duplicates): Set it, and use it. Attempt to
26125 preserve more debug stmts.
26126
26127 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26128
26129 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26130 (signbit<mode>2): New expander
26131
26132 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26133
26134 PR bootstrap/87338
26135 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26136 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26137
26138 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26139
26140 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26141 %ebx and %ecx bafore calling cpuid with leaf 1 or
26142 non-constant leaf argument.
26143
26144 2019-05-21 Alan Modra <amodra@gmail.com>
26145
26146 PR target/90545
26147 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26148 power9 direct move cost.
26149
26150 2019-05-21 Richard Biener <rguenther@suse.de>
26151
26152 PR middle-end/90510
26153 * fold-const.c (fold_read_from_vector): New function.
26154 * fold-const.h (fold_read_from_vector): Declare.
26155 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26156 single-element insert permutations. Canonicalize selector
26157 further and fix issue with last commit.
26158
26159 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26160
26161 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26162 parameter with default value false to declaration.
26163 (split_edges_for_insertion): New inline function. Wrapper for
26164 split_critical_edges with for_edge_insertion_p = true.
26165 * tree-cfg.c (split_critical_edges): Don't split non-critical
26166 edges if for_edge_insertion_p is false. Fix whitespace.
26167 * tree-ssa-pre.c (pass_pre::execute): Call
26168 split_edges_for_insertion instead of split_critical_edges.
26169 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26170 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26171 (pass_data_sink_code): Update function name in the comment.
26172
26173 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26174
26175 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26176 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26177 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26178 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26179 positives.
26180
26181 2019-05-21 Martin Liska <mliska@suse.cz>
26182
26183 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26184 an extra newline.
26185 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26186 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26187 vec_lvsr.
26188 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26189 Quote a C type.
26190 (rs6000_function_arg): Likewise.
26191 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26192 (rs6000_expand_ternop_builtin): Use interval syntax.
26193 (get_element_number): Likewise.
26194 (altivec_expand_builtin): Likewise.
26195 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26196
26197 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26198
26199 PR c++/59813
26200 PR target/90418
26201 * function.h (struct function): Add calls_eh_return member.
26202 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26203 gimplifying __builtin_eh_return call.
26204 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26205 to cfun.
26206 (expand_call_inline): Or in src_cfun->calls_eh_return into
26207 dst_cfun->calls_eh_return.
26208 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26209 cfun->calls_eh_return.
26210 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26211 * lto-streamer-out.c (output_struct_function_base): Write
26212 calls_eh_return.
26213
26214 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26215
26216 PR rtl-optimization/43147
26217 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26218 IX86_BUILTIN_SHUFPD.
26219
26220 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26221
26222 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26223 (refs_may_alias_p_1): ... here; update stats.
26224 (refs_may_alias_p): Do not update stats here.
26225
26226 2019-05-20 Richard Biener <rguenther@suse.de>
26227
26228 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26229 doesn't produce pointers.
26230 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26231 the first operand points to.
26232
26233 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26234
26235 * tree-ssa-alias.c (compare_sizes): New function.
26236 (sompare_type_sizes): New function
26237 (aliasing_component_refs_p): Use it.
26238 (indirect_ref_may_alias_decl_p): Likewise.
26239
26240 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26241
26242 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26243
26244 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26245
26246 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26247 (LIBLSAN_EARLY_SPEC): Likewise.
26248 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26249
26250 2019-05-20 Martin Liska <mliska@suse.cz>
26251
26252 * config/i386/i386.c (ix86_libc_has_fast_function):
26253 Add ATTRIBUTE_UNUSED for the argument.
26254
26255 2019-05-20 Richard Biener <rguenther@suse.de>
26256
26257 * gimple-match-head.c: Include vec-perm-indices.h.
26258 * generic-match-head.c: Likewise.
26259 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26260 is included.
26261 * fold-const.c (fold_vec_perm): Export.
26262 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26263 (match.pd): ...here.
26264
26265 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26266
26267 * cfgloop.h (struct loop): Add simdlen member.
26268 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26269 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26270 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26271 as new argument to autovectorize_vector_sizes target hook. If
26272 loop->simdlen, pick up vector size where the vectorization factor
26273 is equal to loop->simd, and if there is none, fall back to the first
26274 successful one.
26275 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26276 caller.
26277 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26278 * omp-general.c (omp_max_vf): Likewise.
26279 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26280 * tree-vect-slp.c (vect_slp_bb): Likewise.
26281 * target.def (autovectorize_vector_sizes): Add ALL argument and
26282 document it.
26283 * doc/tm.texi: Adjust documentation.
26284 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26285 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26286 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26287 bool argument.
26288 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26289 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26290 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26291 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26292 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26293 preferred vector size is not 512-bit or 256-bit, just put those
26294 unpreferred ones last.
26295
26296 2019-05-20 Martin Liska <mliska@suse.cz>
26297
26298 * targhooks.c (default_libc_has_fast_function): New function.
26299 * targhooks.h (default_libc_has_fast_function): Likewise.
26300
26301 2019-05-20 Martin Liska <mliska@suse.cz>
26302
26303 PR middle-end/90263
26304 * builtins.c (expand_builtin_memory_copy_args): When having a
26305 target with fast mempcpy implementation do now use memcpy.
26306 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26307 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26308 * doc/tm.texi: Likewise.
26309 * doc/tm.texi.in: Likewise.
26310 * target.def:
26311 * expr.c (emit_block_move_hints): Add 2 new arguments.
26312 * expr.h (emit_block_move_hints): Bail out when libcall
26313 to memcpy would be used.
26314
26315 2019-05-20 Martin Liska <mliska@suse.cz>
26316
26317 * profile-count.c: Add vertical spacing in order
26318 to separate functions.
26319 * profile-count.h: Likewise.
26320
26321 2019-05-20 Martin Liska <mliska@suse.cz>
26322
26323 * profile-count.h: Do not use full qualified
26324 names if possible.
26325 * profile-count.c (profile_count::to_frequency): Likewise.
26326
26327 2019-05-20 Martin Liska <mliska@suse.cz>
26328
26329 * profile-count.h (enum profile_quality): Use capital letters
26330 for enum value names. Use the adjusted names.
26331 * profile-count.c: Use the adjusted names.
26332
26333 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26334
26335 * config/rs6000/constraints.md (define_register_constraint "wH"):
26336 Delete.
26337 (define_register_constraint "wI"): Delete.
26338 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26339 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26340 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26341 (rs6000_init_hard_regno_mode_ok): Adjust.
26342 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26343 resp. "d", or with "wa" as appropriate, all with "p8v".
26344 * config/rs6000/vsx.md: Ditto.
26345 * doc/md.texi (Machine Constraints): Adjust.
26346
26347 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26348
26349 * config/rs6000/constraints.md (define_register_constraint "wy"):
26350 Delete.
26351 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26352 RS6000_CONSTRAINT_wy.
26353 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26354 (rs6000_init_hard_regno_mode_ok): Adjust.
26355 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26356 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26357 (define_mode_attr Fisa): New.
26358 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26359 * doc/md.texi (Machine Constraints): Adjust.
26360
26361 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26362
26363 * config/rs6000/constraints.md (define_register_constraint "wu"):
26364 Delete.
26365 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26366 RS6000_CONSTRAINT_wu.
26367 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26368 (rs6000_init_hard_regno_mode_ok): Adjust.
26369 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26370 both with "p8v".
26371 (define_mode_attr Fa): Delete.
26372 * config/rs6000/vsx.md: Ditto.
26373 * doc/md.texi (Machine Constraints): Adjust.
26374
26375 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26376
26377 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26378 Delete.
26379 (define_register_constraint "wK"): Delete.
26380 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26381 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26382 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26383 (rs6000_init_hard_regno_mode_ok): Adjust.
26384 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26385 Replace "wK" constraint by "wH" with "p9v".
26386 * config/rs6000/vsx.md: Ditto.
26387 * doc/md.texi (Machine Constraints): Adjust.
26388
26389 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26390
26391 * config/rs6000/constraints.md (define_register_constraint "wb"):
26392 Delete.
26393 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26394 RS6000_CONSTRAINT_wb.
26395 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26396 (rs6000_init_hard_regno_mode_ok): Adjust.
26397 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26398 * config/rs6000/vsx.md: Ditto.
26399 * doc/md.texi (Machine Constraints): Adjust.
26400
26401 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26402
26403 * config/rs6000/constraints.md (define_register_constraint "wo"):
26404 Delete.
26405 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26406 RS6000_CONSTRAINT_wo.
26407 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26408 (rs6000_init_hard_regno_mode_ok): Adjust.
26409 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26410 * config/rs6000/altivec.md: Ditto.
26411 * doc/md.texi (Machine Constraints): Adjust.
26412
26413 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26414
26415 * config/darwin-c.c (darwin_register_objc_includes): Do not
26416 prepend the sysroot when building gnu-runtime header search
26417 paths.
26418
26419 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26420
26421 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26422 instead of direct output of the asm.
26423
26424 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26425
26426 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26427 argument to be type bool (was int before).
26428 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26429 at first use. Use type bool for some variables. Fix a theoretical
26430 eh_return bug for svr4.
26431
26432 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26433
26434 * config/rs6000/rs6000.md (isa): New attribute.
26435 (enabled): New attribute.
26436
26437 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26438
26439 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26440 assemble_start_function and assemble_end_function.
26441
26442 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26443
26444 PR middle-end/89433
26445 * omp-general.c (oacc_verify_routine_clauses): Change formal
26446 parameters. Add checking if already marked with an OpenACC
26447 'routine' directive. Adjust all users.
26448
26449 PR middle-end/89433
26450 * omp-general.c (oacc_build_routine_dims): Move some of its
26451 processing into...
26452 (oacc_verify_routine_clauses): ... this new function.
26453 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26454
26455 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26456
26457 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26458 formating of picbase labels to match other ports.
26459
26460 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26461
26462 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26463 in the generated code.
26464
26465 2019-05-16 Martin Sebor <msebor@redhat.com>
26466
26467 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26468 identifiers, keywords, operators, and types in diagnostics. Correct
26469 quoting, spelling, and sentence capitalization issues.
26470 (expand_builtin_atomic_is_lock_free): Same.
26471 (fold_builtin_next_arg): Same.
26472 * cfgexpand.c (expand_one_var): Same.
26473 (tree_conflicts_with_clobbers_p): Same.
26474 (expand_asm_stmt): Same.
26475 (verify_loop_structure): Same.
26476 * cgraphunit.c (process_function_and_variable_attributes): Same.
26477 * collect-utils.c (collect_execute): Same.
26478 * collect2.c (maybe_run_lto_and_relink): Same.
26479 (is_lto_object_file): Same.
26480 (scan_prog_file): Same.
26481 * convert.c (convert_to_real_1): Same.
26482 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26483 * except.c (verify_eh_tree): Same.
26484 * gcc.c (execute): Same.
26485 (eval_spec_function): Same.
26486 (run_attempt): Same.
26487 (driver::set_up_specs): Same.
26488 (compare_debug_auxbase_opt_spec_function): Same.
26489 * gcov-tool.c (unlink_gcda_file): Same.
26490 (do_merge): Same.
26491 (do_rewrite): Same.
26492 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26493 * gimplify.c (gimplify_asm_expr): Same.
26494 (gimplify_adjust_omp_clauses): Same.
26495 * hsa-gen.c (gen_hsa_addr_insns): Same.
26496 (gen_hsa_insns_for_load): Same.
26497 (gen_hsa_cmp_insn_from_gimple): Same.
26498 (gen_hsa_insns_for_operation_assignment): Same.
26499 (gen_get_level): Same.
26500 (gen_hsa_alloca): Same.
26501 (omp_simple_builtin::generate): Same.
26502 (gen_hsa_atomic_for_builtin): Same.
26503 (gen_hsa_insns_for_call): Same.
26504 * input.c (dump_location_info): Same.
26505 * ipa-devirt.c (compare_virtual_tables): Same.
26506 * ira.c (ira_setup_eliminable_regset): Same.
26507 * lra-assigns.c (lra_assign): Same.
26508 * lra-constraints.c (lra_constraints): Same.
26509 * lto-streamer-in.c (lto_input_mode_table): Same.
26510 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26511 (merge_and_complain): Same.
26512 (compile_offload_image): Same.
26513 (compile_images_for_offload_targets): Same.
26514 (debug_objcopy): Same.
26515 (run_gcc): Same.
26516 (main): Same.
26517 * opts.c (print_specific_help): Same.
26518 (parse_no_sanitize_attribute): Same.
26519 (print_help): Same.
26520 (handle_param): Same.
26521 * plugin.c (add_new_plugin): Same.
26522 (parse_plugin_arg_opt): Same.
26523 (try_init_one_plugin): Same.
26524 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26525 operators, and types in diagnostics. Correct quoting and spelling
26526 issues.
26527 * read-rtl-function.c (parse_edge_flag_token): Same.
26528 (function_reader::parse_enum_value): Same.
26529 * reg-stack.c (check_asm_stack_operands): Same.
26530 * regcprop.c (validate_value_data): Same.
26531 * sched-rgn.c (make_pass_sched_fusion): Same.
26532 * stmt.c (check_unique_operand_names): Same.
26533 * targhooks.c (default_target_option_pragma_parse): Same.
26534 * tlink.c (recompile_files): Same.
26535 * toplev.c (process_options): Same.
26536 (do_compile): Same.
26537 * trans-mem.c (diagnose_tm_1): Same.
26538 (ipa_tm_scan_irr_block): Same.
26539 (ipa_tm_diagnose_transaction): Same.
26540 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26541 format a tree code name in a diagnostic.
26542 (verify_types_in_gimple_min_lval): Same.
26543 (verify_types_in_gimple_reference): Same.
26544 (verify_gimple_call): Same.
26545 (verify_gimple_assign_unary): Same.
26546 (verify_gimple_assign_binary): Same.
26547 (verify_gimple_assign_ternary): Same.
26548 (verify_gimple_assign_single): Same.
26549 (verify_gimple_switch): Same.
26550 (verify_gimple_label): Same.
26551 (verify_gimple_phi): Same.
26552 (verify_gimple_in_seq): Same.
26553 (verify_eh_throw_stmt_node): Same.
26554 (collect_subblocks): Same.
26555 (gimple_verify_flow_info): Same.
26556 (do_warn_unused_result): Same.
26557 * tree-inline.c (expand_call_inline): Same.
26558 * tree-into-ssa.c (update_ssa): Same.
26559 * tree.c (tree_int_cst_elt_check_failed): Same.
26560 (tree_vec_elt_check_failed): Same.
26561 (omp_clause_operand_check_failed): Same.
26562 (verify_type_variant): Same.
26563 (verify_type): Same.
26564 * value-prof.c (verify_histograms): Same.
26565 * varasm.c (assemble_start_function): Same.
26566
26567 2019-05-16 Martin Sebor <msebor@redhat.com>
26568
26569 * config/i386/i386-expand.c (get_element_number): Quote keywords
26570 and other internal names in diagnostics. Adjust other diagnostic
26571 formatting issues noted by -Wformat-diag.
26572 * config/i386/i386-features.c
26573 (ix86_mangle_function_version_assembler_name): Same.
26574 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26575 * config/i386/i386.c (ix86_function_type_abi): Same.
26576 (ix86_function_ms_hook_prologue): Same.
26577 (classify_argument): Same.
26578 (ix86_expand_prologue): Same.
26579 (ix86_md_asm_adjust): Same.
26580 (ix86_memmodel_check): Same.
26581
26582 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26583
26584 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26585 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26586 and fpxx modes.
26587
26588 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26589
26590 PR target/90497
26591 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26592 intrinsics without SSE/SSE2/SSSE3.
26593 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26594 check.
26595 (*mmx_uavgv8qi3): Likewise.
26596
26597 2019-05-17 Richard Biener <rguenther@suse.de>
26598
26599 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26600 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26601
26602 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26603
26604 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26605 vec_sldw insn pattern.
26606
26607 2019-05-17 Richard Biener <rguenther@suse.de>
26608
26609 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26610
26611 2019-05-17 Martin Liska <mliska@suse.cz>
26612
26613 PR driver/90496
26614 * toplev.c (output_stack_usage): With LTO and sanitizer it
26615 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26616 has no file location.
26617
26618 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26619
26620 PR c++/90484
26621 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26622 sz0 is equal to sz1, instead return false in that case.
26623
26624 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26625 has non-constant expression, force sctx.lane and use two
26626 argument IFN_GOMP_SIMD_LANE instead of single argument.
26627 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26628 two argument IFN_GOMP_SIMD_LANE without lhs.
26629 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26630 member.
26631 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26632 Define.
26633 (LOOP_REQUIRES_VERSIONING): Or in
26634 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26635 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26636 simd_if_cond.
26637 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26638 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26639 from simd if clause if needed.
26640
26641 2019-05-16 Richard Biener <rguenther@suse.de>
26642
26643 * tree-affine.c (expr_to_aff_combination): New function split
26644 out from...
26645 (tree_to_aff_combination): ... here.
26646 (aff_combination_expand): Avoid building a GENERIC tree.
26647
26648 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26649
26650 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26651 assemble_start_function and assemble_end_function calls.
26652 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26653 assemble_start_function and assemble_end_function.
26654 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26655 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26656 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26657 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26658 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26659 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26660 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26661 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26662 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26663 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26664 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26665 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26666 Likewise.
26667 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26668 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26669 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26670 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26671 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26672 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26673 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26674 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26675 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26676 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26677 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26678 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26679 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26680 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26681 Likewise.
26682 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26683 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26684 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26685
26686 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26687
26688 * tree-ssa-alias.c (alias_stats): Add
26689 aliasing_component_refs_p_may_alias and
26690 aliasing_component_refs_p_no_alias.
26691 (dump_alias_stats): Print aliasing_component_refs_p stats.
26692 (aliasing_component_refs_p): Update stats.
26693
26694 2019-05-16 Martin Liska <mliska@suse.cz>
26695
26696 PR lto/90500
26697 * multiple_target.c (expand_target_clones): Do not allow
26698 target_clones being used with a symbol that is an alias.
26699
26700 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26701
26702 PR tree-optimization/90394
26703 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26704 positives rather than ICE for cases where (code2 == NE_EXPR
26705 && code1 == BIT_AND_EXPR).
26706
26707 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26708
26709 PR fortran/90329
26710 * tree-core.h (struct tree_decl_common): Document
26711 decl_nonshareable_flag for PARM_DECLs.
26712 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26713 * calls.c (expand_call): Don't try tail call if caller
26714 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26715 passed on the stack and callee needs to pass any arguments on the
26716 stack.
26717 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26718 else if instead of series of mutually exclusive ifs. Handle
26719 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26720 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26721
26722 * lto-streamer.h (LTO_major_version): Bump to 9.
26723
26724 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26725
26726 PR tree-optimization/90106
26727 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26728 new parameter as new internal function call, also move it to new
26729 basic block.
26730 (use_internal_fn): Pass internal function call to
26731 shrink_wrap_one_built_in_call_with_conds.
26732
26733 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26734
26735 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26736 max_vf to 1.
26737 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26738 safelen_int and set loop->dont_vectorize.
26739
26740 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26741
26742 PR target/89021
26743 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26744 SSE/SSE2/SSSE3.
26745 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26746 Likewise.
26747 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26748 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26749 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26750 is defined.
26751
26752 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26753
26754 PR target/89021
26755 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26756 define_insn_and_split to support SSE emulation.
26757 (*vec_extractv2sf_0): Likewise.
26758 (*vec_extractv2sf_1): Likewise.
26759 (*vec_extractv2si_0): Likewise.
26760 (*vec_extractv2si_1): Likewise.
26761 (*vec_extractv2si_zext_mem): Likewise.
26762 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26763 (vec_extractv2sf_1 splitter): Likewise.
26764 (vec_extractv2sfsf): Likewise.
26765 (vec_setv2si): Likewise.
26766 (vec_extractv2si_1 splitter): Likewise.
26767 (vec_extractv2sisi): Likewise.
26768 (vec_setv4hi): Likewise.
26769 (vec_extractv4hihi): Likewise.
26770 (vec_setv8qi): Likewise.
26771 (vec_extractv8qiqi): Likewise.
26772 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26773 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26774 (vec_extractv2sisi): Likewise.
26775 (vec_extractv4hihi): Likewise.
26776 (vec_extractv8qiqi): Likewise.
26777 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26778 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26779 (vec_initv2sisi): Likewise.
26780 (vec_initv4hihi): Likewise.
26781 (vec_initv8qiqi): Likewise.
26782 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26783 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26784 (vec_setv4hi): Likewise.
26785 (vec_setv8qi): Likewise.
26786
26787 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26788
26789 PR target/89021
26790 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26791 TARGET_MMX_WITH_SSE.
26792 (MMXMODE:*mov<mode>_internal): Likewise.
26793 (MMXMODE:movmisalign<mode>): Likewise.
26794
26795 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26796
26797 PR target/89021
26798 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26799 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26800 (sse2_cvtpd2pi): Ditto.
26801 (sse2_cvttpd2pi): Ditto.
26802 (*vec_concatv2sf_sse4_1): Ditto.
26803 (*vec_concatv2sf_sse): Ditto.
26804 (*vec_concatv2si_sse4_1): Ditto.
26805 (*vec_concatv2si): Ditto.
26806 (*vec_concatv4si_0): Ditto.
26807 (*vec_concatv2di_0): Ditto.
26808
26809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26810
26811 PR target/89021
26812 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26813
26814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26815
26816 PR target/89021
26817 * config/i386/sse.md (ssse3_palignrdi): Changed to
26818 define_insn_and_split to support SSE emulation.
26819
26820 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26821
26822 PR target/89021
26823 * config/i386/sse.md (ssse3_psign<mode>3): Add 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_pshufbv8qi3): Changed to
26829 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26830 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_pmulhrswv4hi3): Require TARGET_MMX
26836 or TARGET_MMX_WITH_SSE.
26837 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26838
26839 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26840
26841 PR target/89021
26842 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26843
26844 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26845
26846 PR target/89021
26847 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26848 Changed to define_insn_and_split to support SSE emulation.
26849
26850 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26851
26852 PR target/89021
26853 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26854 Changed to define_insn_and_split to support SSE emulation.
26855
26856 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26857
26858 PR target/89021
26859 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26860 (*mmx_<emms>): This.
26861 (mmx_<emms>): New expander.
26862
26863 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26864
26865 PR target/89021
26866 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26867 support.
26868 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26869
26870 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26871
26872 PR target/89021
26873 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26874
26875 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26876
26877 PR target/89021
26878 * config/i386/mmx.md (mmx_psadbw): 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_uavgv4hi3): Also check TARGET_MMX and
26884 TARGET_MMX_WITH_SSE.
26885 (*mmx_uavgv4hi3): Add SSE emulation.
26886
26887 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26888
26889 PR target/89021
26890 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26891 and TARGET_MMX_WITH_SSE.
26892 (*mmx_uavgv8qi3): Add SSE emulation.
26893
26894 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26895
26896 PR target/89021
26897 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26898 maskmovdqu for __MMX_WITH_SSE__.
26899
26900 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26901
26902 PR target/89021
26903 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26904 TARGET_MMX and TARGET_MMX_WITH_SSE.
26905 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26906
26907 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26908
26909 PR target/89021
26910 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26911 define_insn_and_split to support SSE emulation.
26912
26913 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26914
26915 PR target/89021
26916 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26917 and TARGET_MMX_WITH_SSE.
26918 (mmx_<code>v8qi3): Likewise.
26919 (smaxmin:<code>v4hi3): New.
26920 (umaxmin:<code>v8qi3): Likewise.
26921 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26922 (umaxmin:*mmx_<code>v8qi3): Likewise.
26923
26924 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26925
26926 PR target/89021
26927 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26928 TARGET_MMX_WITH_SSE.
26929 (*mmx_pinsrw): Add SSE emulation.
26930
26931 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26932
26933 PR target/89021
26934 * config/i386/mmx.md (mmx_pextrw): Add 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_cvtpi2ps): Changed to
26940 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26941 SSE emulation.
26942
26943 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26944
26945 PR target/89021
26946 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26947 (sse_cvttps2pi): Likewise.
26948
26949 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26950
26951 PR target/89021
26952 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26953 TARGET_MMX_WITH_SSE.
26954 (mmx_pshufw_1): Add SSE emulation.
26955 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26956 TARGET_MMX_WITH_SSE to support SSE emulation.
26957
26958 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26959
26960 PR target/89021
26961 * config/i386/constraints.md (Yw): New constraint.
26962 * config/i386/mmx.md (*vec_dupv2si): Changed to
26963 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26964 support SSE emulation.
26965
26966 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26967
26968 PR target/89021
26969 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26970 TARGET_MMX_WITH_SSE.
26971 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26972 support.
26973 (mmx_gt<mode>3): Likewise.
26974
26975 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26976
26977 PR target/89021
26978 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26979 TARGET_MMX_WITH_SSE. Add SSE support.
26980
26981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26982
26983 PR target/89021
26984 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26985 TARGET_MMX_WITH_SSE.
26986 (any_logic:<code><mode>3): New.
26987 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26988 Add SSE support.
26989
26990 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26991
26992 PR target/89021
26993 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26994 TARGET_MMX_WITH_SSE. Add SSE emulation.
26995 (mmx_<shift_insn><mode>3): Likewise.
26996 (ashr<mode>3): New.
26997 (<shift_insn><mode>3): Likewise.
26998
26999 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27000
27001 PR target/89021
27002 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27003 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27004
27005 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27006
27007 PR target/89021
27008 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27009 TARGET_MMX_WITH_SSE.
27010 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27011 SSE support.
27012
27013 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27014
27015 PR target/89021
27016 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27017 TARGET_MMX_WITH_SSE.
27018 (mulv4hi3): New.
27019 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27020 support.
27021
27022 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27023
27024 PR target/89021
27025 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27026 (plusminus:mmx_<plusminus_insn><mode>3): Check
27027 TARGET_MMX_WITH_SSE.
27028 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27029 (<plusminus_insn><mode>3): New.
27030 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27031 (*mmx_<plusminus_insn><mode>3): Likewise.
27032
27033 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27034
27035 PR target/89021
27036 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27037 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27038 prototype.
27039 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27040 define_insn_and_split to support SSE emulation.
27041 (mmx_punpcklbw): Likewise.
27042 (mmx_punpckhwd): Likewise.
27043 (mmx_punpcklwd): Likewise.
27044 (mmx_punpckhdq): Likewise.
27045 (mmx_punpckldq): Likewise.
27046
27047 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27048 Uros Bizjak <ubizjak@gmail.com>
27049
27050 PR target/89021
27051 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27052 New function.
27053 (ix86_split_mmx_pack): Likewise.
27054 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27055 New prototype.
27056 (ix86_split_mmx_pack): Likewise.
27057 * config/i386/i386.md (mmx_isa): New.
27058 (enabled): Also check mmx_isa.
27059 * config/i386/mmx.md (any_s_truncate): New code iterator.
27060 (s_trunsuffix): New code attr.
27061 (mmx_packsswb): Removed.
27062 (mmx_packssdw): Likewise.
27063 (mmx_packuswb): Likewise.
27064 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27065 MMX packsswb/packuswb with SSE2.
27066 (mmx_packssdw): Likewise.
27067 * config/i386/predicates.md (register_mmxmem_operand): New.
27068
27069 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27070
27071 PR target/89021
27072 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27073 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27074 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27075 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27076 (ix86_vector_mode_supported_p): Likewise.
27077 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27078
27079 2019-05-15 Martin Liska <mliska@suse.cz>
27080
27081 PR middle-end/90478
27082 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27083 Check for overflow.
27084
27085 2019-05-15 Richard Biener <rguenther@suse.de>
27086
27087 * tree-into-ssa.c (pass_build_ssa::execute): Run
27088 update_address_taken before going into SSA.
27089
27090 2019-05-15 Richard Biener <rguenther@suse.de>
27091
27092 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27093 as __BIT_FIELD_REF with type with -gimple.
27094
27095 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27096
27097 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27098 semantically equivalent branches (left over after prior refactorings).
27099
27100 2019-05-15 Richard Biener <rguenther@suse.de>
27101
27102 PR tree-optimization/88828
27103 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27104 bogus check.
27105
27106 2019-05-14 Richard Biener <rguenther@suse.de>
27107
27108 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27109 as __VIEW_CONVERT with -gimple.
27110
27111 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27112
27113 PR target/82920
27114 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27115 Darwin.
27116
27117 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27118
27119 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27120 define_split to become a define_insn_and_split.
27121
27122 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27123
27124 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27125 arguments.
27126 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27127 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27128 (sibcall_epilogue): Adjust.
27129 (epilogue): Adjust.
27130
27131 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27132
27133 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27134 to unsupported ones.
27135 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27136 * config.host: Likewise.
27137 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27138 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27139 __svr4__]: Remove "brand" fallback.
27140 [!KSTAT_DATA_STRING]: Remove.
27141 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27142 to *-*-solaris2*.
27143 (comdat_group): Likewise.
27144 (set_have_as_tls): Likewise.
27145 (gcc_cv_target_dl_iterate_phdr): Likewise.
27146 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27147 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27148 * configure: Regenerate.
27149 * doc/install.texi: Simplify Solaris target triplets.
27150 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27151 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27152 Remove Solaris 10 references.
27153 Remove obsolete Solaris bug reference.
27154 (Specific, sparc-sun-solaris2.10): Remove.
27155
27156 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27157
27158 * config/i386/i386.md (any_div): New code iterator.
27159 (paired_mod): New code attribute.
27160 (sgnprefix): Handle DIV and UDIV RTXes.
27161 (u): Ditto.
27162 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27163 and udivmod<mode>4 patterns using any_div code iterator.
27164 (divmod splitters): Macroize splitters using any_div code iterator.
27165 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27166 (*udivmodsi4_pow2_zext_2): Ditto.
27167 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27168 and *udivmod<mode>4_noext patterns using any_div code iterator.
27169 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27170 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27171 patterns using any_div code iterator.
27172 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27173 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27174 patterns using any_div code iterator.
27175 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27176 udivmodhiqi3 patterns using any_extend code iterator.
27177
27178 2019-05-14 Richard Biener <rguenther@suse.de>
27179 H.J. Lu <hongjiu.lu@intel.com>
27180
27181 PR tree-optimization/88828
27182 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27183 permuting in a single non-constant element not extracted
27184 from a vector.
27185
27186 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27187
27188 * internal-fn.def (SIGNBIT): New.
27189 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27190 defined.
27191 (signbitv4sf2): Likewise.
27192
27193 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27194
27195 PR target/90357
27196 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27197 next insn when the SRC reg is dead.
27198
27199 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27200
27201 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27202 (alloc_cand_and_find_basis): Ditto.
27203 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27204 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27205 (create_add_imm_cand, slsr_process_cast): Ditto.
27206 (slsr_process_copy, replace_mult_candidate): Ditto.
27207 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27208 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27209 (pass_strength_reduction::execute): Init the first NULL element.
27210
27211 2019-05-13 Nathan Sidwell <nathan@acm.org>
27212
27213 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27214 (run_attempt): Reformat line break.
27215
27216 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27217
27218 PR target/90418
27219 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27220 data registers in sibcall epilogues.
27221 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27222
27223 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27224
27225 PR target/89221
27226 * configure.ac (--enable-frame-pointer):
27227 Disable by default for cygwin and mingw.
27228 * configure: Regenerate.
27229
27230 2019-05-13 Nathan Sidwell <nathan@acm.org>
27231
27232 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27233 piece of code.
27234 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27235 (gen_member_die): Move abstract origin check earlier. Only VARs
27236 can be static_inline_p. Simplify splicing control flow.
27237
27238 2019-05-13 Richard Biener <rguenther@suse.de>
27239
27240 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27241 VIEW_CONVERT_EXPR.
27242 (vect_build_slp_tree_1): Likewise.
27243
27244 2019-05-13 Richard Biener <rguenther@suse.de>
27245
27246 PR tree-optimization/90402
27247 * tree-if-conv.c (tree_if_conversion): Value number only
27248 the loop body by making the latch an exit of the region
27249 as well.
27250 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27251 processing PHIs.
27252 (do_rpo_vn): Deal with multiple edges into the entry block
27253 that are not backedges inside the region by skipping PHIs
27254 of the entry block.
27255
27256 2019-05-13 Richard Biener <rguenther@suse.de>
27257
27258 PR tree-optimization/90316
27259 * tree-ssa-pre.c (insert_aux): Fold into ...
27260 (insert): ... this function. Use a RPO walk to reduce the
27261 number of required iterations.
27262
27263 2019-05-13 Martin Liska <mliska@suse.cz>
27264
27265 PR tree-optimization/90416
27266 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27267 string instead of passing the second part as va_arg argument.
27268
27269 2019-05-13 Martin Liska <mliska@suse.cz>
27270
27271 PR gcov-profile/90380
27272 * gcov.c (handle_cycle): Do not support zero cycle count,
27273 it should not be possible.
27274 (path_contains_zero_cycle_arc): New function.
27275 (circuit): Ignore zero cycle arc counts.
27276
27277 2019-05-13 Martin Liska <mliska@suse.cz>
27278
27279 PR gcov-profile/90380
27280 * gcov.c (enum loop_type): Remove the enum and
27281 the operator.
27282 (handle_cycle): Assert that we should not reach
27283 a negative count.
27284 (circuit): Use loop_found instead of a tri-state loop_type.
27285 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27286 happen.
27287
27288 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27289
27290 PR target/82920
27291 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27292 (ix86_output_indirect_branch_via_reg): Use output mechanism
27293 accounting for __USER_LABEL_PREFIX__.
27294 (ix86_output_indirect_branch_via_push): Likewise.
27295 (ix86_output_function_return): Likewise.
27296 (ix86_output_indirect_function_return): Likewise.
27297
27298 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27299
27300 * doc/md.texi: Document use of code attributes in rtx patterns.
27301 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27302 * read-rtl.c (find_code): Split out search loops into...
27303 (maybe_find_code): ...this new function.
27304 (check_code_iterator): Make the error message more informative.
27305 (check_code_attribute): New function.
27306 (rtx_reader::rtx_alloc_for_name): Likewise.
27307 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27308 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27309 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27310 <max_opp> directly as an rtx code instead of via a match_operator.
27311 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27312 (<su>abd<mode>_3): Update accordingly.
27313
27314 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27315
27316 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27317 is given, print the state of the EH "save world" computation for
27318 Darwin.
27319
27320 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27321
27322 PR c++/59813
27323 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27324 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27325
27326 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27327
27328 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27329 Use pinsrd for TARGET_SSE4_1.
27330 * config/i386/sse.md (movdi_to_sse): Ditto.
27331
27332 2019-05-10 Richard Biener <rguenther@suse.de>
27333
27334 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27335 (do_rpo_vn): Initialize next_value_id.
27336
27337 2019-05-10 Martin Liska <mliska@suse.cz>
27338
27339 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27340 Fix plural form.
27341
27342 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27343
27344 PR tree-optimization/90385
27345 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27346 arguments of the exit phis.
27347
27348 PR c++/90383
27349 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27350 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27351 id->do_not_fold.
27352 (copy_tree_body_r): Likewise.
27353 (copy_fn): Set id.do_not_fold to true.
27354
27355 2019-05-10 Martin Liska <mliska@suse.cz>
27356
27357 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27358 Reapply changes from r269790.
27359
27360 2019-05-10 Martin Liska <mliska@suse.cz>
27361
27362 PR middle-end/90340
27363 * doc/invoke.texi: New params.
27364 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27365 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27366 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27367 Use it.
27368 * tree-switch-conversion.h (struct jump_table_cluster):
27369 Likewise.
27370
27371 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27372
27373 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27374
27375 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27376
27377 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27378
27379 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27380
27381 PR rtl-optimization/88879
27382 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27383
27384 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27385
27386 PR target/90405
27387 * config/arm/arm.c (callee_saved_reg_p): Move before
27388 thumb_find_work_register.
27389 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27390 thumb_find_work_register. Only call df_get_live_out once.
27391 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27392 (thumb_find_work_register): Use
27393 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27394 algorithms to locate a spare call clobbered reg.
27395
27396 2019-05-09 Martin Liska <mliska@suse.cz>
27397
27398 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27399 and MAX_EXPR in GIMPLE FE format.
27400
27401 2019-05-09 Martin Liska <mliska@suse.cz>
27402
27403 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27404 * gimple-pretty-print.c (dump_gimple_bb_header):
27405 Dump BB count.
27406 (pp_cfg_jump): Dump edge probability.
27407 * profile-count.c (profile_quality_as_string): Simplify
27408 with a static array.
27409 (parse_profile_quality): New function.
27410 (profile_count::dump): Simplify with a static array.
27411 (profile_count::from_gcov_type): Add new argument.
27412 * profile-count.h (parse_profile_quality): Likewise.
27413 * predict.h (set_hot_bb_threshold): New.
27414 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27415 New param.
27416 * predict.c (get_hot_bb_threshold): Set from the new param.
27417 (set_hot_bb_threshold): New.
27418
27419 2019-05-09 Richard Biener <rguenther@suse.de>
27420
27421 PR tree-optimization/90395
27422 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27423 rewrite vector stores that throw internally.
27424
27425 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27426
27427 * cif-code.def (CHKP): Remove.
27428
27429 PR target/89221
27430 * configure.ac (--enable-frame-pointer): Disable by default for
27431 GNU systems.
27432 * configure: Regenerate.
27433
27434 2019-05-09 Alan Modra <amodra@gmail.com>
27435
27436 PR target/89271
27437 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27438 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27439 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27440 cost for general <-> vsx when direct moves are available.
27441 Cost union classes at minimal cost for any reg in the class.
27442 Correct calculation for moves between vsx, float, and altivec.
27443 Don't return a low cost for moves between special regs. Don't
27444 use hard coded register numbers.
27445 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27446 (rs6000_ira_change_pseudo_allocno_class): New function.
27447 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27448 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27449 alternatives.
27450 (movsi_internal1): Don't disparage vector alternatives.
27451 (mov<mode>_internal): Likewise, excepting alternative that
27452 will be split.
27453 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27454 we <- b alternative.
27455
27456 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27457
27458 PR c++/59813
27459 PR tree-optimization/89060
27460 * tree-ssa-live.h (live_vars_map): New typedef.
27461 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27462 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27463 (struct compute_live_vars_data): New type.
27464 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27465 live_vars_at_stmt, destroy_live_vars): New functions.
27466 * tree-tailcall.c: Include tree-ssa-live.h.
27467 (live_vars, live_vars_vec): New global variables.
27468 (find_tail_calls): Perform variable life analysis before punting.
27469 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27470 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27471 member.
27472 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27473 Perform variable life analysis to select variables that really need
27474 clobbers added.
27475 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27476 instead set id->eh_landing_pad_dest and assert it is the same.
27477 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27478
27479 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27480 Richard Earnshaw <rearnsha@arm.com>
27481
27482 PR target/88167
27483 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27484 function.
27485 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27486 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27487 register if both the epilogue and prologue can use call-clobbered
27488 regs.
27489 (thumb1_unexpanded_epilogue): Use
27490 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27491 picking temporaries for restoring high regs to match that of the
27492 prologue where possible.
27493 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27494 the list of work registers. Detect if the return address is still live
27495 at the end of the prologue and avoid using it for a work register if so.
27496 If the return address is not live, add LR to the list of pushable regs
27497 after the first pass.
27498
27499 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27500
27501 PR tree-optimization/90078
27502 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27503 (INFTY): Increase the value for infinite cost.
27504 (struct comp_cost): Promote type of members to int64_t.
27505 (infinite_cost): Don't set complexity in initialization.
27506 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27507 overflows to infinite_cost.
27508 (adjust_setup_cost): Promote type of parameter and cost computation
27509 to int64_t.
27510 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27511 int64_t.
27512 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27513 cost computation to int64_t.
27514 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27515 int64_t's format specifier in dump.
27516
27517 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27518
27519 PR tree-optimization/90240
27520 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27521 with respect to scaling factor pre-computed for each basic block.
27522 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27523 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27524 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27525 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27526 live range for array of loop's basic blocks. Cleanup aux field of
27527 loop's basic blocks.
27528
27529 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27530
27531 PR tree-optimization/90356
27532 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27533
27534 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27535
27536 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27537 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27538 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27539 (ix86_handle_option): Handle -mavx512bf16.
27540 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27541 to extra_headers.
27542 * config/i386/avx512bf16vlintrin.h: New.
27543 * config/i386/avx512bf16intrin.h: New.
27544 * config/i386/cpuid.h (bit_AVX512BF16): New.
27545 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27546 * config/i386/i386-builtin-types.def: Add new types.
27547 * config/i386/i386-builtin.def: Add new builtins.
27548 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27549 __AVX512BF16__.
27550 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27551 (ix86_option_override_internal): Handle BF16.
27552 (ix86_valid_target_attribute_inner_p): Ditto.
27553 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27554 * config/i386/i386-builtin.c (enum processor_features): Add
27555 F_AVX512BF16.
27556 (static const _isa_names_table isa_names_table): Ditto.
27557 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27558 (PTA_AVX512BF16): Ditto.
27559 * config/i386/i386.opt: Add -mavx512bf16.
27560 * config/i386/immintrin.h: Include avx512bf16intrin.h
27561 and avx512bf16vlintrin.h.
27562 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27563 avx512f_cvtneps2bf16_<mode><mask_name>,
27564 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27565 * config/i386/subst.md (mask_half): Add new subst.
27566 * doc/invoke.texi: Document -mavx512bf16.
27567
27568 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27569
27570 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27571 Delete declaration.
27572 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27573 (rs6000_debug_legitimize_reload_address): Delete.
27574 (rs6000_legitimize_reload_address_ptr): Delete.
27575 (rs6000_option_override_internal): Adjust.
27576 (mem_operand_gpr): Adjust comment.
27577 (legitimate_lo_sum_address_p): Ditto.
27578 (rs6000_legitimize_reload_address): Delete.
27579 (rs6000_debug_legitimize_reload_address): Delete.
27580 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27581
27582 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27583
27584 PR target/89765
27585 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27586 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27587 to compute vector element selector for both constant and variable
27588 operands.
27589
27590 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27591
27592 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27593 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27594 ashrdi3_cvt using SWI48 mode iterator.
27595
27596 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27597
27598 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27599 (aarch64_<su>abd<mode>_3): Likewise.
27600 (*aarch64_<su>abd<mode>_3): New define_insn.
27601 (<sur>sad<vsi2qi>): New define_expand.
27602 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27603 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27604 (build_vect_cond_expr): Likewise.
27605
27606 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27607
27608 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27609 clobbers outside of accessible_reg_set.
27610 * config/i386/i386.c (ix86_conditional_register_usage):
27611 Disable register sets by clearing corresponding bits in
27612 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27613 call_used_regs and don't clear corresponding reg_names array members.
27614
27615 2019-05-07 Richard Biener <rguenther@suse.de>
27616
27617 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27618 not specified still compute a comp_vectype for invariant
27619 compares.
27620
27621 2019-05-07 Richard Biener <rguenther@suse.de>
27622
27623 PR tree-optimization/90316
27624 * tree-ssa-pre.c (translate_vuse_through_block): When
27625 same_valid is NULL do not bother to search for a virtual
27626 PHI continuation.
27627 (phi_translate_1): When operands changed we cannot keep
27628 the same value-number so do not bother to ask whether
27629 that's possible from translate_vuse_through_block.
27630
27631 2019-05-07 Martin Liska <mliska@suse.cz>
27632
27633 * bitmap.c (bitmap_register): Come up with
27634 alloc_descriptor_max_uid and assign it for
27635 a new bitmap.
27636 (register_overhead): Use get_descriptor as
27637 a descriptor.
27638 (release_overhead): New.
27639 (bitmap_elem_to_freelist): Call it.
27640 (bitmap_elt_clear_from): Likewise.
27641 (bitmap_obstack_free): Likewise.
27642 (bitmap_move): Sensitively release memory.
27643 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27644 (bitmap_initialize): Initialize alloc_descriptor to zero.
27645 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27646
27647 2019-05-07 Richard Biener <rguenther@suse.de>
27648
27649 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27650 we build a SLP node. Remove max_size and limiting.
27651 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27652
27653 2019-05-07 Richard Biener <rguenther@suse.de>
27654
27655 PR tree-optimization/90316
27656 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27657 limit by reference.
27658 (walk_non_aliased_vuses): Take walking limit argument.
27659 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27660 walking if it is reached instead of just counting.
27661 (get_continuation_for_phi): Likewise.
27662 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27663 limiting to the callback.
27664 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27665 (vn_reference_lookup_3): Likewise.
27666 (vn_reference_lookup_pieces): Likewise.
27667 (vn_reference_lookup): Likewise.
27668 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27669 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27670 (avail_exprs_stack::lookup_avail_expr): Likewise.
27671
27672 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27673
27674 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27675 for comparaible types in the second direction even if first one
27676 hits incomparable type.
27677
27678 2019-05-07 Richard Biener <rguenther@suse.de>
27679
27680 PR lto/90369
27681 * lto-wrapper.c (debug_objcopy): Use the original filename
27682 including archive offset for the filename used for -save-temps.
27683
27684 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27685
27686 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27687 detection.
27688
27689 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27690 Hongtao Liu <hongtao.liu@intel.com>
27691
27692 PR target/89750
27693 PR target/86444
27694 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27695 Modified, original implementation isn't correct.
27696
27697 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27698
27699 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27700 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27701 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27702 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27703 (FRAME_POINTER_REGNUM): Change numbering.
27704 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27705 (alt_reg_names): Adjust.
27706 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27707 fixed.
27708 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27709 (DWARF_FRAME_REGISTERS): Delete.
27710 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27711 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27712 Adjust.
27713 (REG_ALLOC_ORDER): Adjust.
27714 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27715 (REG_CLASS_CONTENTS): Adjust.
27716 (RETURN_ADDR_RTX): Change comment.
27717 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27718 instead of 67.
27719 (REGISTER_NAMES): Adjust.
27720 (ADDITIONAL_REGISTER_NAMES): Adjust.
27721 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27722
27723 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27724
27725 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27726 Delete.
27727 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27728 (DWARF_FRAME_REGISTERS): Adjust.
27729 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27730 Adjust.
27731 (REG_ALLOC_ORDER): Adjust.
27732 (enum reg_class): Delete SPR_REGS.
27733 (REG_CLASS_NAMES): Delete SPR_REGS.
27734 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27735 (REGISTER_NAMES): Adjust.
27736 (ADDITIONAL_REGISTER_NAMES): Adjust.
27737 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27738 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27739 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27740 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27741 (htm_spr_regno): Delete.
27742 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27743 argument.
27744 (rs6000_dbx_register_number): Adjust.
27745
27746 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27747
27748 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27749
27750 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27751
27752 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27753 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27754
27755 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27756
27757 PR tree-optimization/88709
27758 PR tree-optimization/90271
27759 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27760 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27761 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27762 variable.
27763 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27764 of the store merging group is larger than
27765 PARAM_STORE_MERGING_MAX_SIZE parameter.
27766 (split_group): Add bzero_first argument. If set, always emit first
27767 the first store which must be = {} of the whole area and then for the
27768 rest of the stores consider all zero bytes as paddings.
27769 (imm_store_chain_info::output_merged_store): Check if first store
27770 is = {} of the whole area and if yes, determine which setting of
27771 bzero_first for split_group gives smaller number of stores. Adjust
27772 split_group callers.
27773 (lhs_valid_for_store_merging_p): Allow decls.
27774 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27775 no elts.
27776 (pass_store_merging::process_store): Likewise.
27777
27778 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27779
27780 PR target/89424
27781 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27782 handling of V1TImode.
27783
27784 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27785
27786 PR target/89221
27787 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27788 and enable_frame_pointer ...
27789 * configure.ac: ... here. Update help strings for
27790 --enable-frame-pointer.
27791 * configure: Regenerate.
27792 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27793 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27794 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27795 (USE_X86_64_FRAME_POINTER): Ditto.
27796
27797 2019-05-06 Martin Liska <mliska@suse.cz>
27798
27799 * config.gcc: Append to target_gtfiles and fix indentation.
27800
27801 2019-05-06 Richard Biener <rguenther@suse.de>
27802
27803 PR tree-optimization/90358
27804 * tree-vect-stmts.c (get_group_load_store_type): Properly
27805 detect unused upper half of load.
27806 (vectorizable_load): Likewise.
27807
27808 2019-05-06 Richard Biener <rguenther@suse.de>
27809
27810 PR tree-optimization/88828
27811 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27812 (simplify_vector_constructor): ...here. Handle constants in
27813 the constructor.
27814
27815 2019-05-06 Richard Biener <rguenther@suse.de>
27816
27817 PR tree-optimization/90328
27818 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27819 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27820 is valid in the loop nest before using it.
27821 (initialize_data_dependence_relation): Adjust.
27822 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27823 loop as loop-nest to dr_may_alias_p.
27824
27825 2019-05-06 Richard Biener <rguenther@suse.de>
27826
27827 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27828
27829 2019-05-06 Richard Biener <rguenther@suse.de>
27830
27831 PR tree-optimization/90316
27832 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27833 compute target on demand.
27834 (get_continuation_for_phi): Remove code walking stmts to
27835 get to a target virtual operand which could end up being
27836 quadratic.
27837
27838 2019-05-06 Martin Liska <mliska@suse.cz>
27839
27840 PR sanitizer/90312
27841 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27842 when -mabi is selected to a non-default version.
27843
27844 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27845 Martin Liska <mliska@suse.cz>
27846
27847 * Makefile.in: Add lto-dump.texi.
27848 * cgraph.h: Add new functions get_visibility_string and
27849 get_symtab_type_string.
27850 * doc/gcc.texi: Include lto-dump section.
27851 * doc/lto-dump.texi: New file.
27852 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27853 (parse_dump_option): Factor out this function.
27854 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27855 (parse_dump_option): Export the function.
27856 * symtab.c (symtab_node::get_visibility_string): New function.
27857 (symtab_node::get_symtab_type_string): Likewise.
27858
27859 2019-05-06 Martin Liska <mliska@suse.cz>
27860
27861 * config/i386/i386-builtins.c: New file.
27862 * config/i386/i386-builtins.h: New file.
27863 * config/i386/i386-expand.c: New file.
27864 * config/i386/i386-expand.h: New file.
27865 * config/i386/i386-features.c: New file.
27866 * config/i386/i386-features.h: New file.
27867 * config/i386/i386-options.c: New file.
27868 * config/i386/i386-options.h: New file.
27869 * config.gcc: Add new files into extra_objs and
27870 target_gtfiles.
27871 * config/i386/i386.c: Split content of the file
27872 into newly introduced files.
27873 * config/i386/i386.h: Declare common variables
27874 and macros.
27875 * config/i386/t-i386: Define dependencies for new files.
27876
27877 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27878
27879 PR target/89400
27880 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27881 Restrict 'all' variant to 32-bit configurations.
27882 (unaligned_loadhiu): Likewise.
27883 (unaligned_storehi): Likewise.
27884 (unaligned_storesi): Likewise.
27885 (unaligned_loadhis): Disable when compiling for thumb1.
27886
27887 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27888
27889 PR tree-optimization/90269
27890 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27891 Ignore clobbers.
27892
27893 2019-05-03 Martin Liska <mliska@suse.cz>
27894
27895 * hash-map.h: Add is_empty function.
27896 * hash-set.h: Likewise.
27897 * hash-table.h: Likewise.
27898 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27899 elements () == 0 (and similar usages).
27900 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27901 * gimplify.c (gimplify_bind_expr): Likewise.
27902 (gimplify_switch_expr): Likewise.
27903 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27904 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27905 * postreload-gcse.c (dump_hash_table): Likewise.
27906 (gcse_after_reload_main): Likewise.
27907 * predict.c (combine_predictions_for_bb): Likewise.
27908 * tree-parloops.c (reduction_phi): Likewise.
27909 (separate_decls_in_region): Likewise.
27910 (transform_to_exit_first_loop): Likewise.
27911 (gen_parallel_loop): Likewise.
27912 (gather_scalar_reductions): Likewise.
27913 (try_create_reduction_list): Likewise.
27914 * var-tracking.c (dump_vars): Likewise.
27915 (emit_notes_for_changes): Likewise.
27916 (vt_emit_notes): Likewise.
27917
27918 2019-05-03 Richard Biener <rguenther@suse.de>
27919
27920 PR tree-optimization/90316
27921 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27922 before running VN.
27923
27924 2019-05-03 Richard Biener <rguenther@suse.de>
27925
27926 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27927 peeling for gaps by loading only lower halves of vectors
27928 if possible.
27929 (vectorizable_load): Likewise.
27930
27931 2019-05-03 Richard Biener <rguenther@suse.de>
27932
27933 PR middle-end/89518
27934 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27935
27936 2019-05-03 Richard Biener <rguenther@suse.de>
27937
27938 PR middle-end/87314
27939 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27940 Handle STRING_CST vs DECL or STRING_CST.
27941
27942 2019-05-03 Richard Biener <rguenther@suse.de>
27943
27944 PR tree-optimization/88963
27945 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27946 vector loads feeding only BIT_FIELD_REFs to component
27947 loads. Rewrite stores fed by CONSTRUCTORs to component
27948 stores.
27949
27950 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27951
27952 * opts.h (finish_options): Remove lang_mask argument.
27953 (print_help, help_option_argument): Declare.
27954 * opts.c (print_help): Remove forward declaration, no longer static.
27955 (finish_options): Remove lang_mask argument, don't call print_help
27956 here.
27957 * opts-global.c (decode_options): Adjust finish_option caller, call
27958 print_help here.
27959
27960 PR tree-optimization/90303
27961 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27962 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27963
27964 2019-05-03 Richard Biener <rguenther@suse.de>
27965
27966 PR tree-optimization/89698
27967 * gimple-fold.c (canonicalize_constructor_val): Early out
27968 for constants, handle unfolded INTEGER_CSTs as they appear in
27969 C++ virtual table ctors.
27970
27971 2019-05-03 Richard Biener <rguenther@suse.de>
27972
27973 * passes.c (execute_function_todo): Remove dead code.
27974
27975 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27976
27977 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27978 the internal register number, for any "real" register.
27979
27980 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27981
27982 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27983 correct numbers for TFHAR, TFIAR, TEXASR.
27984
27985 2019-05-02 Richard Biener <rguenther@suse.de>
27986
27987 PR tree-optimization/89653
27988 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27989 update-address-taken before the pass.
27990 * passes.def (pass_tree_loop_init): Put comment before it.
27991
27992 2019-05-02 Richard Biener <rguenther@suse.de>
27993
27994 PR tree-optimization/89509
27995 * tree-ssa-structalias.c (compute_dependence_clique): Look
27996 at the first subvar when determining whether it is restrict.
27997
27998 2019-05-02 Richard Biener <rguenther@suse.de>
27999
28000 PR tree-optimization/90273
28001 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28002 useless debug stmts.
28003
28004 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28005
28006 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28007 ACLE branch.
28008 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28009 SVE ACLE branch.
28010 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28011 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28012 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28013 (vectorizable_reduction): Use the functions above to vectorize in a
28014 fully masked loop codes that don't have a conditional internal
28015 function.
28016
28017 2019-05-02 Martin Liska <mliska@suse.cz>
28018
28019 * cgraphclones.c: Call valid_attribute_p with 1 for
28020 target_clone.
28021 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28022 it's for target attribute.
28023 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28024 Add new boolean argument.
28025 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28026 Likewise.
28027 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28028 to ix86_valid_target_attribute_inner_p.
28029 (ix86_valid_target_attribute_p): Pass flags argument to
28030 ix86_valid_target_attribute_inner_p.
28031 (get_builtin_code_for_version): Use 0 as it's target attribute.
28032
28033 2019-05-02 Martin Liska <mliska@suse.cz>
28034
28035 * gcc.c (process_command): Add dummy file only
28036 if n_infiles == 0.
28037 * opts-global.c (decode_options): Pass lang_mask.
28038 * opts.c (print_help): New function.
28039 (finish_options): Print --help if help_option_argument
28040 is set.
28041 (common_handle_option): Factor out content of OPT__help_
28042 into print_help.
28043 * opts.h (finish_options): Add new argument.
28044
28045 2019-05-02 Martin Liska <mliska@suse.cz>
28046
28047 PR target/88809
28048 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28049 With -minline-all-stringops use inline expansion using 4B loop.
28050 * doc/invoke.texi: Document the change of
28051 -minline-all-stringops.
28052
28053 2019-05-01 Jeff Law <law@redhat.com>
28054
28055 PR tree-optimization/88797
28056 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28057 PHI feeds a conditional on the RHS of an assignment.
28058
28059 2019-04-30 Andrew Waterman <andrew@sifive.com>
28060 Jim Wilson <jimw@sifive.com>
28061
28062 * config/riscv/constraints.md (L): New.
28063 * config/riscv/predicates.md (lui_operand): New.
28064 (sfb_alu_operand): New.
28065 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28066 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28067 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28068 * config/riscv/risc.md (type): Add sfb_alu.
28069 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28070 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28071 (branch_zero<mode>): Delete.
28072 (mov<mode>cc): New.
28073 (mov<GPR:mode><X:mode>cc): Likewise.
28074 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28075
28076 2019-04-30 Nathan Sidwell <nathan@acm.org>
28077
28078 * tree.h (MARK_TS_EXP): New.
28079
28080 2019-04-30 Martin Liska <mliska@suse.cz>
28081
28082 * opts.c (enable_warning_as_error): Provide hints
28083 for unknown options.
28084
28085 2019-04-30 Martin Liska <mliska@suse.cz>
28086
28087 PR debug/90288
28088 * doc/invoke.texi: Add missing dash for gas-locview-support
28089 and gno-as-locview-support.
28090
28091 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28092
28093 PR target/89093
28094 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28095 whitespace at the start of target attribute string.
28096
28097 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28098
28099 PR target/86538
28100 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28101 Define __ARM_FEATURE_ATOMICS.
28102
28103 2019-04-30 Martin Liska <mliska@suse.cz>
28104
28105 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28106 into built_in_function enum. Remove code for endp == 2 and
28107 use BUILT_IN_* constants.
28108 (gimple_fold_builtin): Call the function with fcode.
28109
28110 2019-04-30 Martin Liska <mliska@suse.cz>
28111
28112 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28113 DECL_FUNCTION_CODE into ix86_builtins enum before
28114 the switch statement.
28115
28116 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28117
28118 PR tree-optimization/89475
28119 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28120 calls.
28121
28122 2019-04-30 Martin Liska <mliska@suse.cz>
28123
28124 PR translation/90274
28125 * opts.c (print_filtered_help): Wrap string in _(...).
28126
28127 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28128
28129 PR tree-optimization/90240
28130 Revert:
28131 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28132
28133 PR tree-optimization/90078
28134 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28135 checks for infinite_cost overflow.
28136
28137 2019-04-29 Jeff Law <law@redhat.com>
28138
28139 * passes.def: Move -Wrestrict pass after copy propagation.
28140
28141 2019-04-29 Maya Rashish <coypu@sdf.org>
28142
28143 * config.gcc (default_gnu_indirect_function): Default to yes
28144 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28145 sparc*-*-netbsd*, x86_64-*-netbsd*.
28146
28147 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28148
28149 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28150 where cond2 is NE_EXPR.
28151 (is_value_included_in): Update comment.
28152
28153 2019-04-29 Richard Biener <rguenther@suse.de>
28154
28155 PR tree-optimization/90278
28156 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28157 EH on comparison simplification.
28158
28159 2019-04-29 Jason Merrill <jason@redhat.com>
28160
28161 PR c++/82081 - tail call optimization breaks noexcept
28162 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28163 nothrow function to a might-throw function into a tail call.
28164
28165 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28166
28167 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28168 (DDR_INNER_LOOP): Likewise.
28169 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28170 (initialize_data_dependence_relation): Likewise.
28171 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28172
28173 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28174
28175 PR rtl-optimization/90257
28176 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28177 return value.
28178
28179 Revert the revert:
28180 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28181
28182 PR target/90178
28183 Revert:
28184 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28185
28186 Revert the revert:
28187 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28188
28189 Revert:
28190 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28191
28192 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28193
28194 2019-04-29 Richard Biener <rguenther@suse.de>
28195
28196 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28197 rhs issue a reset.
28198
28199 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28200
28201 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28202 varasm.h, and netbsd-protos.h.
28203
28204 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28205
28206 PR target/89261
28207 * config/i386/i386-protos.h (ix86_data_alignment): Change
28208 the second argument type to unsigned int.
28209 * config/i386/i386.c (ix86_data_alignment): Change "align"
28210 argument type to unsigned int.
28211
28212 2019-04-27 Martin Liska <mliska@suse.cz>
28213
28214 PR middle-end/90258
28215 * opt-suggestions.c (option_proposer::build_option_suggestions):
28216 When get_valid_option_values returns empty values, add the
28217 misspelling candidate.
28218
28219 2019-04-26 Jim Wilson <jimw@sifive.com>
28220
28221 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28222 parameter.
28223 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28224 Pass orig_mode to riscv_build_integer.
28225 (riscv_split_integer): Pass mode to riscv_move_integer.
28226 (riscv_legitimize_const_move): Likewise.
28227 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28228 promoted_mode. Replace force_reg call with code to load constant into
28229 promoted reg and then subreg it for the store.
28230 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28231 riscv_move_integer.
28232
28233 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28234
28235 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28236 corrupt codes.
28237
28238 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28239
28240 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28241 commentary about the encoding of precision.
28242
28243 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28244
28245 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28246 * config/i386/t-freebsd64: New file.
28247 * config.gcc: Add the t-freebsd64 for multilib support.
28248
28249 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28250
28251 * doc/extend.texi (vector_size): Add missing comma after @xref.
28252
28253 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28254
28255 * BASE-VER: Set to 10.0.0.
28256
28257 2019-04-25 Richard Biener <rguenther@suse.de>
28258
28259 PR middle-end/89765
28260 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28261 VIEW_CONVERT_EXPR into one operating on an rvalue.
28262
28263 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28264
28265 PR target/89929
28266 * config/i386/i386.c (feature_priority): Moved to file scope.
28267 (processor_features): Likewise.
28268 (processor_model): Likewise.
28269 (_arch_names_table): Likewise.
28270 (arch_names_table): Likewise.
28271 (_feature_list): Removed.
28272 (feature_list): Likewise.
28273 (_isa_names_table): Moved to file scope. Add priority.
28274 (isa_names_table): Likewise.
28275 (get_builtin_code_for_version): Replace feature_list with
28276 isa_names_table. Update error message for P_ZERO priority.
28277
28278 2019-04-25 Richard Biener <rguenther@suse.de>
28279
28280 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28281 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28282
28283 2019-04-24 Jeff Law <law@redhat.com>
28284
28285 PR tree-optimization/90037
28286 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28287 * passes.def: Replace all instance of phi-only cprop with the
28288 lattice propagator. Move propagation pass from after erroneous
28289 path isolation to before erroneous path isolation.
28290 * tree-ssa-phionlycprop.c: Remove.
28291
28292 2019-04-24 Richard Biener <rguenther@suse.de>
28293
28294 PR middle-end/90213
28295 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28296 by size and BITS_PER_UNIT on poly-wide-ints.
28297
28298 2019-04-25 Richard Biener <rguenther@suse.de>
28299
28300 PR middle-end/90194
28301 * match.pd: Add pattern to simplify view-conversion of an
28302 empty constructor.
28303
28304 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28305
28306 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28307 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28308 for Go on 32 bit AIX.
28309 * config/rs6000/aix72.h: Likewise.
28310
28311 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28312
28313 PR target/90193
28314 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28315 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28316
28317 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28318
28319 PR target/89952
28320 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28321 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28322 for restored hard frame pointer.
28323 (s390_sched_dependencies_evaluation): Implement new target hook.
28324 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28325
28326 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28327
28328 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28329 * config/arc/arc.c (arc_init): Cleanup warning message.
28330 (arc_override_options): Likewise.
28331
28332 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28333
28334 PR target/90187
28335 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28336 a register if both if_true and if_false are MEMs.
28337
28338 PR tree-optimization/90208
28339 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28340 after labels of new_bb, not before them.
28341
28342 PR tree-optimization/90211
28343 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28344 which are not SSA_NAMEs.
28345
28346 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28347
28348 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28349 AArch64.
28350 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28351
28352 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28353
28354 PR rtl-optimization/87979
28355 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28356 not equal zero.
28357
28358 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28359
28360 PR rtl-optimization/84032
28361 * modulo-sched.c (ps_insn_find_column): Change condition so that
28362 branch will always be the last insn in a row inside partial
28363 schedule.
28364
28365 2019-04-23 Richard Biener <rguenther@suse.de>
28366
28367 PR debug/90131
28368 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28369 dest_single_pred_p argument.
28370 (remove_forwarder_block): Adjust.
28371 (remove_forwarder_block_with_phi): Likewise.
28372
28373 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28374 Bernd Edlinger <bernd.edlinger@hotmail.de>
28375 Jakub Jelinek <jakub@redhat.com>
28376
28377 PR target/89093
28378 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28379 if used with general-regs-only.
28380 (arm_conditional_register_usage): Don't add non-general regs if
28381 general-regs-only.
28382 (arm_valid_target_attribute_rec): Handle general-regs-only.
28383 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28384 general-regs-only.
28385 (TARGET_HARD_FLOAT_SUB): Define.
28386 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28387 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28388 (TARGET_REALLY_IWMMXT2): Likewise.
28389 * config/arm/arm.opt: Add -mgeneral-regs-only.
28390 * doc/extend.texi: Document ARM general-regs-only target.
28391 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28392
28393 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28394
28395 PR tree-optimization/90078
28396 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28397 checks for infinite_cost overflow.
28398
28399 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28400
28401 PR tree-optimization/90021
28402 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28403 and check univariate against it.
28404 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28405 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28406
28407 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28408
28409 PR target/90178
28410 Revert:
28411 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28412
28413 Revert the revert:
28414 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28415
28416 Revert:
28417 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28418
28419 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28420
28421 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28422
28423 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28424 names using operand format, rather than hard-wired.
28425 (speculation_barrier): Likewise.
28426
28427 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28428
28429 PR tree-optimization/88055
28430 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28431 (gen_one_condition): Use it if !HONOR_NANS.
28432
28433 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28434
28435 PR middle-end/90139
28436 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28437 assign_temp instead of gen_reg_rtx.
28438
28439 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28440
28441 PR translation/90118
28442 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28443 Add missing space before %<.
28444
28445 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28446
28447 PR rtl-optimization/87871
28448 * ira-lives.c (make_object_dead): Don't add conflicts to
28449 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28450
28451 2019-04-18 Martin Sebor <msebor@redhat.com>
28452
28453 PR middle-end/89797
28454 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28455 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28456 assuming type size fits in SHWI.
28457
28458 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28459
28460 PR ipa/85051
28461 * ipa-inline.c (flatten_function): New parameter UPDATE.
28462 (ipa_inline, early_inliner): Use it.
28463
28464 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28465
28466 * fold-const.c (int_const_binop): Return early on failure.
28467
28468 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28469
28470 PR middle-end/85164
28471 * combine.c (force_int_to_mode): Cast the argument rather than
28472 the result of known_alignment.
28473 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28474
28475 2019-04-18 Richard Biener <rguenther@suse.de>
28476
28477 PR debug/90131
28478 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28479 out from ...
28480 (remove_forwarder_block): ... here.
28481 (remove_forwarder_block_with_phi): Also move debug stmts here.
28482
28483 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28484
28485 PR translation/79183
28486 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28487 inform where appropriate.
28488
28489 2019-04-18 Richard Biener <rguenther@suse.de>
28490
28491 * tree.c (get_qualified_type): Put found type variants at the
28492 head of the variant list.
28493
28494 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28495
28496 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28497
28498 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28499
28500 PR target/90125
28501 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28502 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28503 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28504 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28505 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28506
28507 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28508
28509 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28510 even for allocno's with no conflicts.
28511 (print_conflicts): Print an extra newline.
28512
28513 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28514
28515 * auto-inc-dec.c (attempt_change): Set the alignment of the
28516 temporary memory to that of the original.
28517
28518 2019-04-17 Joao Moreira <jmoreira@suse.de>
28519
28520 * targhooks.c (default_print_patchable_function_entry): Emit
28521 __patchable_function_entries section with writable flags to allow
28522 relocation resolution.
28523
28524 2019-04-17 Jonny Grant <jg@jguk.org>
28525
28526 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28527
28528 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28529
28530 PR middle-end/90095
28531 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28532 on lowpart SUBREGs.
28533
28534 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28535
28536 * config/arc/arc.c (arc_init): Format diagnostic string.
28537 (arc_override_options): Likewise.
28538 (check_if_valid_regno_const): Likewise.
28539 (arc_reorg): Likewise.
28540
28541 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28542
28543 PR target/17108
28544 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28545 name.
28546 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28547 name.
28548 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28549 (*movdi_update1): Use Pmode.
28550 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28551 (movdi_<mode>_update_stack): Rename to ...
28552 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28553 use Pmode.
28554 (*movsi_update1): Use Pmode.
28555 (*movsi_update2): Use Pmode.
28556 (movsi_update): Rename to ...
28557 (movsi_<mode>_update): ... this. Use Pmode.
28558 (movsi_update_stack): Fix condition.
28559 (*movhi_update1): Use Pmode. Fix argument to
28560 avoiding_indexed_address_p.
28561 (*movhi_update2): Ditto.
28562 (*movhi_update3): Ditto.
28563 (*movhi_update4): Ditto.
28564 (*movqi_update1): Ditto.
28565 (*movqi_update2): Ditto.
28566 (*movqi_update3): Ditto.
28567 (*movsf_update1, *movdf_update1): Merge, rename to...
28568 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28569 avoiding_indexed_address_p. Add "size" attribute.
28570 (*movsf_update2, *movdf_update2): Merge, rename to...
28571 (*mov<mode>_update2): This. Ditto.
28572 (*movsf_update3): Use Pmode. Fix argument to
28573 avoiding_indexed_address_p.
28574 (*movsf_update4): Ditto.
28575 (allocate_stack): Simplify condition. Adjust pattern names.
28576
28577 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28578
28579 PR target/89093
28580 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28581 whitespace at the start of target attribute string.
28582
28583 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28584
28585 PR target/84369
28586 * config/rs6000/power9.md: Add store forwarding bypass.
28587
28588 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28589
28590 PR debug/89528
28591 * valtrack.c (dead_debug_insert_temp): Reset debug references
28592 to the return value of a call being removed.
28593
28594 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28595
28596 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28597 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28598 implement target hook.
28599 (arc_memory_move_cost): New function.
28600 (TARGET_REGISTER_MOVE_COST): Define.
28601 (TARGET_MEMORY_MOVE_COST): Likewise.
28602 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28603 (MEMORY_MOVE_COST): Likewise.
28604
28605 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28606
28607 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28608 (sibcall_value_insn): Likewise.
28609 * config/arc/constraints.md (Rs5): Remove.
28610
28611 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28612
28613 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28614 for last two fake registers.
28615 (arc_conditional_register_usage): Make sure fake frame and arg
28616 pointer regs are in general regs class.
28617 (FRAME_POINTER_MASK): Remove.
28618 (RETURN_ADDR_MASK): Remove.
28619 (arc_must_save_register): Use hard frame regnum.
28620 (frame_restore_reg): Use hard_frame_pointer_rtx.
28621 (arc_save_callee_saves): Likewise.
28622 (arc_restore_callee_saves): Likewise.
28623 (arc_save_callee_enter): Likewise.
28624 (arc_restore_callee_leave): Likewise.
28625 (arc_save_callee_milli): Likewise.
28626 (arc_eh_return_address_location): Likewise.
28627 (arc_check_multi): Use hard frame regnum.
28628 (arc_can_eliminate): Likewise.
28629 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28630 for register allocator.
28631 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28632 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28633 (FRAME_POINTER_REGNUM): Change it to a fake register.
28634 (HARD_FRAME_POINTER_REGNUM): Defined.
28635 (ARG_POINTER_REGNUM): Change it to a new fake register.
28636 (ELIMINABLE_REGS): Update.
28637 (REGISTER_NAMES): Update names.
28638 * config/arc/arc.md (LP_START): Remove.
28639 (LP_END): Likewise.
28640 (shift_si3_loop): Update pattern.
28641
28642 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28643
28644 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28645 to avoid delay slot scheduling.
28646 (arc_must_save_register): Don't save SP.
28647 * config/arc/arc.md (stack_tie): Remove.
28648 (UNSPEC_ARC_STKTIE): Likewise.
28649
28650 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28651 Shiva Chen <shiva0217@gmail.com>
28652
28653 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28654 code gen with large shift amount.
28655
28656 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28657
28658 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28659 subreg.
28660
28661 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28662
28663 PR target/90096
28664 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28665 print -m64/-mx32/-m32 if it is true.
28666 (ix86_debug_options, ix86_function_specific_print): Pass true as
28667 ADD_ABI_P to ix86_target_string.
28668 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28669 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28670 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28671
28672 PR rtl-optimization/90082
28673 * dce.c (can_delete_call): New function.
28674 (deletable_insn_p, mark_insn): Use it.
28675
28676 PR tree-optimization/90090
28677 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28678 throw internally.
28679 (is_division_by_square): Likewise. Formatting fix.
28680
28681 2019-04-16 Richard Biener <rguenther@suse.de>
28682
28683 PR tree-optimization/56049
28684 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28685 equality check if alias-set zero will prevail.
28686
28687 2019-04-15 Jeff Law <law@redhat.com>
28688
28689 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28690 size and alignment as unsigned.
28691
28692 2019-04-15 Richard Biener <rguenther@suse.de>
28693
28694 PR debug/90074
28695 * tree-loop-distribution.c (destroy_loop): Preserve correct
28696 debug info.
28697
28698 2019-04-15 Richard Biener <rguenther@suse.de>
28699
28700 PR tree-optimization/90071
28701 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28702 abnormal operands from def stmts.
28703
28704 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28705
28706 PR rtl-optimization/89794
28707 * combine.c (count_auto_inc): New function.
28708 (try_combine): Count how many auto_inc expressions there were in the
28709 original instructions. Ensure we have the same number in the new
28710 instructions. Remove the code that tried to ensure auto_inc side
28711 effects on i1 and i0 are not lost.
28712
28713 2019-04-15 Richard Biener <rguenther@suse.de>
28714
28715 PR ipa/88936
28716 * tree.h (auto_var_p): Declare.
28717 * tree.c (auto_var_p): New function, split out from ...
28718 (auto_var_in_fn_p): ... here.
28719 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28720 member.
28721 (new_var_info): Initialize it.
28722 (set_uids_in_ptset): Also set the shadow variable uid if required.
28723 (ipa_pta_execute): Postprocess points-to solutions assigning
28724 shadow variable uids for locals that may reach their containing
28725 function recursively.
28726 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28727 assert but instead check whether the points-to solution is
28728 a singleton.
28729
28730 2019-04-15 Martin Jambor <mjambor@suse.cz>
28731
28732 PR ipa/pr89693
28733 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28734 the thunk chain.
28735
28736 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28737
28738 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28739
28740 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28741 Kito Cheng <kito.cheng@gmail.com>
28742 Shiva Chen <shiva0217@gmail.com>
28743
28744 * config/nds32/nds32-md-auxiliary.c
28745 (nds32_legitimize_pic_address): Use new PIC pattern.
28746 (nds32_legitimize_tls_address): Use new TLS pattern.
28747 (nds32_output_symrel): New.
28748 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28749 (nds32_alloc_relax_group_id): Ditto.
28750 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28751 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28752 relax_group_id.
28753 (nds32_group_tls_insn): Ditto.
28754 (nds32_group_float_insns): Ditto.
28755 * config/nds32/nds32.md (tls_le): New.
28756 (sym_got): Ditto.
28757
28758 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28759
28760 * configure: Add nds32 target for dwarf2 debug_line checking.
28761 * configure.ac: Regenerated.
28762
28763 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28764
28765 PR lto/89358
28766 * ipa-devirt.c (skip_in_fields_list_p): New.
28767 (odr_types_equivalent_p): Use it.
28768
28769 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28770
28771 PR target/89093
28772 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28773 instead of strncmp when checking for thumb and arm. Formatting fixes.
28774
28775 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28776
28777 * doc/install.texi: Document --with-target-system-zlib.
28778
28779 2019-04-12 Martin Sebor <msebor@redhat.com>
28780
28781 PR c/88383
28782 PR c/89288
28783 PR c/89798
28784 PR c/89797
28785 * targhooks.c (default_vector_alignment): Avoid assuming
28786 argument fits in SHWI.
28787 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28788 a shift expression.
28789 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28790
28791 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28792
28793 PR rtl-optimization/89965
28794 * dce.c: Include rtl-iter.h.
28795 (struct check_argument_load_data): New type.
28796 (check_argument_load): New function.
28797 (find_call_stack_args): Check for loads from stack slots still tracked
28798 in sp_bytes and punt if any is found.
28799
28800 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28801
28802 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28803
28804 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28805 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28806
28807 2019-04-12 Martin Liska <mliska@suse.cz>
28808
28809 PR middle-end/89970
28810 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28811 in error message.
28812 (separate_attrs): Handle multiple 'default's.
28813 (expand_target_clones): Rework error handling code.
28814
28815 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28816
28817 PR target/87532
28818 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28819 mode of vector rather than mode of destination for move instruction.
28820 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28821 Use QI inner mode with V16QI vector mode.
28822
28823 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28824
28825 PR target/52726
28826 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28827 "invalid %%t operand" in output_operand_lossage message.
28828
28829 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28830
28831 * config/s390/predicates.md (permute_pattern_operand): New
28832 predicate.
28833 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28834 operand for the permute pattern.
28835 ("*vec_perm<mode>"): New insn definition.
28836 ("bswap<mode>"): Generate the permute pattern operand in the
28837 expander and perform the operand reloads for pre arch13 level
28838 already.
28839 ("*bswap<mode>_emu"): Rename to ...
28840 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28841 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28842 Add the USE operand for the permute pattern.
28843 ("*vec_set_bswap_vec<mode>"): Likewise.
28844
28845 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28846
28847 PR c/89946
28848 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28849 and gcc_unreachable if it fails, just call tree_to_uhwi which
28850 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28851 Start warning message with a lower-case letter. Formatting fixes.
28852
28853 PR rtl-optimization/90026
28854 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28855 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28856 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28857 in cfglayout mode, use emit_barrier_after_bb.
28858
28859 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28860
28861 PR rtl-optimization/87763
28862 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28863 New Instruction.
28864
28865 2019-04-11 Tom de Vries <tdevries@suse.de>
28866
28867 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28868 max macro using statement expression.
28869
28870 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28871
28872 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28873 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28874 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28875 read_only_private_data_section using xcoff_private_rodata_section_name.
28876 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28877
28878 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28879
28880 PR target/90016
28881 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28882
28883 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28884
28885 PR rtl-optimization/89965
28886 * dce.c (sp_based_mem_offset): New function.
28887 (find_call_stack_args): Use sp_based_mem_offset.
28888
28889 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28890
28891 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28892
28893 2019-04-11 Richard Biener <rguenther@suse.de>
28894
28895 PR tree-optimization/90020
28896 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28897 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28898 * tree-ssa-pre.c (compute_avail): Use it to not put
28899 possibly trapping references after a call that might not
28900 return into EXP_GEN.
28901 * gcse.c (compute_hash_table_work): Do not elide
28902 marking a block containing a call if the call might not
28903 return.
28904
28905 2019-04-11 Richard Biener <rguenther@suse.de>
28906
28907 PR tree-optimization/90018
28908 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28909 Test both SLP and interleaving variants.
28910
28911 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28912
28913 * config/s390/8561.md: New file.
28914 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28915 Add arch13 cpu model.
28916 * config/s390/s390-opts.h (enum processor_type): Likewise.
28917 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28918 (s390_get_unit_mask): Likewise.
28919 (s390_is_fpd): Likewise.
28920 (s390_is_fxd): Likewise.
28921 * config/s390/s390.h (s390_tune_attr): Likewise.
28922 * config/s390/s390.md: Include arch13 pipeline description.
28923 * config/s390/s390.opt: Add arch13.
28924
28925 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28926
28927 PR rtl-optimization/87763
28928 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28929 New prototype.
28930 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28931 New function.
28932 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28933 New instruction.
28934 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28935 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28936 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28937 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28938
28939 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28940
28941 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28942 "Although" in -fipa-icf documentation.
28943
28944 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28945 of using multiple -g options.
28946
28947 2019-04-10 Martin Liska <mliska@suse.cz>
28948
28949 PR gcov-profile/89959
28950 * doc/gcov.texi: Make documentation of -x option
28951 more precise.
28952
28953 2019-04-10 Richard Biener <rguenther@suse.de>
28954
28955 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28956 member.
28957 (DR_GROUP_SAME_DR_STMT): Remove.
28958 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28959 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28960 replace with assert.
28961 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28962 (vect_record_grouped_load_vectors): Remove unreachable code.
28963
28964 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28965
28966 PR target/90016
28967 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28968 obsolete reference to N.
28969
28970 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28971
28972 PR middle-end/90025
28973 * expr.c (store_expr): Set properly size on the MEM passed to
28974 clear_storage.
28975
28976 PR c++/90010
28977 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28978 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28979 translation is needed, and when translation is needed, only append
28980 ... if the string length is hostsz or more bytes long. Avoid using
28981 strncpy or strcat.
28982
28983 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28984
28985 PR target/90024
28986 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28987 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28988 into three.
28989 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28990 differences directly.
28991 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28992
28993 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28994
28995 PR translation/90011
28996 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28997 from diagnostics.
28998 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28999 diagnostics.
29000 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29001 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29002 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29003 trailing space from -gsplit-dwarf diagnostics.
29004
29005 PR tree-optimization/89998
29006 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29007 instead of integer_type_node if possible, don't add ranges if return
29008 type is not compatible with int.
29009 * gimple-fold.c (gimple_fold_builtin_sprintf,
29010 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29011 integer_type_node.
29012
29013 2019-04-09 Martin Liska <mliska@suse.cz>
29014
29015 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29016 * doc/install.texi: Document the new config.
29017
29018 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29019
29020 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29021 use gimple_expr_type for load and store calls. Skip over the
29022 condition argument in a conditional internal function.
29023 Protect use of TREE_INT_CST_LOW.
29024
29025 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29026
29027 PR target/90015
29028 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29029 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29030 trailing period from it too.
29031
29032 2019-04-08 wu yuan <wuyuan5@huawei.com>
29033
29034 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29035 * config/aarch64/aarch64.md: Add "tsv110.md".
29036 * config/aarch64/tsv110.md: New file.
29037
29038 2019-04-08 Richard Biener <rguenther@suse.de>
29039
29040 PR tree-optimization/90006
29041 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29042 calls like lrint.
29043
29044 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29045
29046 PR target/83033
29047 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29048 construction.
29049 (fma_root_node): Likewise.
29050 (func_fma_steering): Likewise.
29051
29052 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29053
29054 PR rtl-optimization/89865
29055 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29056
29057 PR rtl-optimization/89865
29058 * config/i386/i386.md
29059 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29060 numbers not to clash with the additional operands[4].
29061 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29062 with extra register copy in the middle.
29063
29064 2019-04-08 Martin Liska <mliska@suse.cz>
29065
29066 PR gcov-profile/89961
29067 * doc/gcov.texi: Document data_file.
29068 * gcov.c (generate_results): Add data_info into JSON output.
29069
29070 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29071
29072 PR tree-optimization/89725
29073 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29074 loop's chrec as invariant symbol.
29075 * tree-chrec.h (chrec_contains_symbols): New parameter.
29076 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29077 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29078 function of loops not in DDR's loop_nest.
29079 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29080
29081 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29082
29083 PR target/89623
29084 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29085 Mask.
29086
29087 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29088
29089 PR target/89945
29090 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29091 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29092
29093 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29094
29095 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29096 targetm.fixed_condition_code_regs.
29097
29098 2019-04-05 Richard Biener <rguenther@suse.de>
29099
29100 PR debug/89892
29101 PR debug/89905
29102 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29103 debug bind stmts but reset them if they are not valid at the
29104 destination.
29105
29106 2019-04-05 Martin Liska <mliska@suse.cz>
29107
29108 PR translation/89936
29109 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29110 order to wrap keywords or arguments.
29111 * collect2.c (main): Likewise.
29112 (scan_prog_file): Likewise.
29113 (scan_libraries): Likewise.
29114 * common/config/riscv/riscv-common.c
29115 (riscv_subset_list::parsing_subset_version): Likewise.
29116 (riscv_subset_list::parse_std_ext): Likewise.
29117 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29118 Likewise.
29119 * config/arm/arm.c (arm_option_override): Likewise.
29120 * config/cris/cris.c (cris_print_operand): Likewise.
29121 * config/darwin-c.c (darwin_pragma_options): Likewise.
29122 (darwin_pragma_unused): Likewise.
29123 (darwin_pragma_ms_struct): Likewise.
29124 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29125 * config/i386/i386.c (print_reg): Likewise.
29126 (ix86_print_operand): Likewise.
29127 * config/i386/xm-djgpp.h: Likewise.
29128 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29129 * config/m32c/m32c.c (m32c_option_override): Likewise.
29130 * config/msp430/msp430.c (msp430_option_override): Likewise.
29131 * config/nds32/nds32.c (nds32_option_override): Likewise.
29132 * config/nvptx/mkoffload.c (main): Likewise.
29133 * config/rx/rx.c (rx_print_operand): Likewise.
29134 (valid_psw_flag): Likewise.
29135 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29136 (vms_pragma_nomember_alignment): Likewise.
29137 (vms_pragma_extern_model): Likewise.
29138 * lto-wrapper.c (compile_offload_image): Likewise.
29139 * omp-offload.c (oacc_parse_default_dims): Likewise.
29140 * symtab.c (symtab_node::verify_base): Likewise.
29141 * tlink.c (recompile_files): Likewise.
29142 (start_tweaking): Likewise.
29143 * tree-profile.c (parse_profile_filter): Likewise.
29144
29145 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29146
29147 PR tree-optimization/89956
29148 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29149 multiple negates of the same value.
29150
29151 2019-04-04 Martin Sebor <msebor@redhat.com>
29152
29153 PR middle-end/89957
29154 PR middle-end/89911
29155 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29156 have the same precision since the function crashes otherwise.
29157 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29158 has non-zero arguments.
29159
29160 2019-04-04 Martin Sebor <msebor@redhat.com>
29161
29162 PR middle-end/89934
29163 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29164 out if the number of arguments is less than expected.
29165
29166 2019-04-04 Jeff Law <law@redhat.com>
29167
29168 PR rtl-optimization/89399
29169 * ree.c (combine_set_extension): Use single_set rather than
29170 digging into PATTERN for items on the candidate list.
29171 (combine_reaching_defs): Likewise.
29172
29173 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29174
29175 PR rtl-optimization/46590
29176 * loop-invariant.c (find_defs): Move df_remove_problem and
29177 df_process_deferred_rescans to move_invariants.
29178 Move df_live_add_problem and df_live_set_all_dirty calls
29179 to move_invariants.
29180 (move_invariants): Likewise.
29181 (move_loop_invariants): Likewise, making the df_live calls
29182 conditional on -O. Remove the problem again if we added it
29183 locally.
29184
29185 2019-04-03 qing zhao <qing.zhao@oracle.com>
29186
29187 PR tree-optimization/89730
29188 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29189 -flive-patching=inline-only-static.
29190 (can_inline_edge_by_limits_p): Add the checking for
29191 -flive-patching=inline-only-static and grant always_inline
29192 even when -flive-patching=inline-only-static is specified.
29193
29194 2019-04-03 Jeff Law <law@redhat.com>
29195
29196 PR rtl-optimization/81025
29197 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29198
29199 2019-04-03 Richard Biener <rguenther@suse.de>
29200
29201 PR tree-optimization/84101
29202 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29203 regs.h for hard_regno_nregs.
29204 (cfun_returns): New helper.
29205 (vect_model_store_cost): When vectorizing a store to a decl
29206 we return and the function ABI returns in a multi-reg location
29207 account for the possible spilling that will happen.
29208
29209 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29210
29211 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29212 displacement addresses for vector mode operands.
29213
29214 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29215
29216 * config/arc/arc.c (GMASK_LEN): Define.
29217 (arc_restore_callee_saves): Restore first blink when
29218 !optimize_size.
29219
29220 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29221
29222 * doc/extend.texi: Add deprecated comment on sign-return-address
29223 function attribute and add mbranch-protection.
29224 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29225
29226 2019-04-03 Richard Biener <rguenther@suse.de>
29227
29228 PR lto/89896
29229 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29230 the all target phony.
29231
29232 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29233
29234 PR target/89902
29235 PR target/89903
29236 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29237 Return false for variable DImode shifts.
29238 (dimode_scalar_chain::compute_convert_gain): Do not handle
29239 register count operand in variable DImode shifts.
29240 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29241 count argument of a variable shift instruction to a vector register.
29242 (dimode_scalar_chain::convert_reg): Remove support to convert
29243 count argument of a variable shift instruction.
29244
29245 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29246
29247 PR rtl-optimization/84206
29248 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29249 iterating over loop headers.
29250
29251 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29252
29253 PR rtl-optimization/85876
29254 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29255 beyond the original fence.
29256
29257 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29258
29259 * config.gcc: Mark spu* targets as deprecated/obsolete.
29260
29261 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29262
29263 * config/s390/s390-builtin-types.def: New builtin function type
29264 definitions. Remove unused types.
29265 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29266 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29267 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29268 overloaded builtins.
29269 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29270 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29271 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29272 (vec_double, vec_signed, vec_unsigned): Define to use the new
29273 overloaded builtins.
29274 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29275 Remove expanders.
29276
29277 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29278
29279 * config/s390/s390-builtin-types.def: New builtin function type
29280 definitions.
29281 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29282 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29283 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29284 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29285 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29286 constant definitions.
29287 * config/s390/vecintrin.h (vec_search_string_cc)
29288 (vec_search_string_until_zero_cc): New builtin name definitions.
29289 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29290 expanders.
29291 ("vec_vstrs<mode>"): New insn definition.
29292
29293 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29294
29295 * config/s390/s390-builtin-types.def: Add new builtin function
29296 types.
29297 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29298 New overloaded builtins.
29299 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29300 s390_vsrd.
29301 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29302 (UNSPEC_VEC_SLDBYTE): ... this.
29303 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29304 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29305 definitions.
29306 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29307 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29308 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29309
29310 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29311
29312 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29313 New insn definition.
29314 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29315 * config/s390/vector.md (V_HW_HSD): ... here.
29316
29317 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29318
29319 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29320 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29321 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29322 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29323 New insn definitions.
29324
29325 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29326
29327 * config/s390/s390-builtin-types.def: Add new builtin function type.
29328 * config/s390/s390-builtins.def: Add overloaded builtin
29329 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29330 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29331 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29332 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29333 ("eltswap<mode>"): New expander.
29334 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29335 insn definitions.
29336
29337 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29338
29339 * config/s390/s390-builtin-types.def: Add new builtin function types.
29340 * config/s390/s390-builtins.def: Add overloaded builtin
29341 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29342 instructions.
29343 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29344 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29345 ("bswap<mode>"): New expander.
29346 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29347
29348 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29349
29350 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29351 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29352 vector builtin version number in __VEC__.
29353
29354 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29355
29356 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29357 iterators.
29358 (SFSI): New mode attribute.
29359 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29360 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29361 rename to ...
29362 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29363 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29364 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29365 ("floatsi<mode>2"): Add wcefb instruction.
29366
29367 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29368
29369 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29370 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29371 mode iterators.
29372 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29373 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29374 support 32 bit fp-int conversions. Rename to ...
29375 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29376 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29377 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29378 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29379 ... to these.
29380
29381 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29382
29383 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29384 if-then-else constructs if we can use the select instruction.
29385 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29386
29387 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29388
29389 * config/s390/s390.md ("*popcountdi_arch13_cc")
29390 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29391 definition.
29392 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29393 Append _z196 to make it ...
29394 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29395 ("popcounthi2_z196"): ... this.
29396 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29397 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29398
29399 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29400
29401 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29402 certain compares for arch13 in order to make use of the condition
29403 code result produced by the new instructions.
29404 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29405 nxrk, and nxgrk instruction patterns.
29406 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29407 (inv_no): Add new code iterator together with some attributes.
29408 ("*andc_split_<mode>"): Disable splitter for arch13.
29409 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29410 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29411 ("*<ANDOR:bitops_name>c<GPR:mode>")
29412 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29413 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29414 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29415 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29416
29417 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29418
29419 * common/config/s390/s390-common.c (processor_flags_table): New
29420 entry for arch13.
29421 * config.gcc: Support arch13 with the --with-arch= configure flag.
29422 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29423 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29424 * config/s390/s390.c (s390_get_sched_attrmask)
29425 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29426 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29427 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29428 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29429 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29430 definitions.
29431 * config/s390/s390.opt: Support arch13 as processor type in
29432 command line options.
29433
29434 2019-04-02 Martin Liska <mliska@suse.cz>
29435
29436 PR translation/89912
29437 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29438 Fix param description of graphite-max-arrays-per-scop.
29439
29440 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29441
29442 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29443 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29444 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29445
29446 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29447
29448 PR rtl-optimization/85412
29449 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29450 sel_sched_region_1, not after.
29451
29452 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29453
29454 PR rtl-optimization/86928
29455 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29456 compute_live if necessary.
29457 (sel_redirect_edge_and_branch): Likewise.
29458
29459 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29460
29461 PR rtl-optimization/89865
29462 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29463 register if it is a part of small class.
29464
29465 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29466
29467 PR rtl-optimization/87273
29468 * sel-sched-ir.c (merge_fences): Remove assert.
29469
29470 2019-04-01 Richard Biener <rguenther@suse.de>
29471
29472 PR tree-optimization/46590
29473 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29474 (dom_walker::m_reachability): Add in place of...
29475 (dom_walker::m_skip_unreachable_blocks): ...this.
29476 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29477 Move complex initialization ...
29478 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29479 lazily and initialize edge flags on each invocation.
29480 (dom_walker::bb_reachable): Use m_reachability.
29481
29482 2019-04-01 Martin Liska <mliska@suse.cz>
29483
29484 PR driver/89861
29485 * opt-suggestions.c (option_proposer::build_option_suggestions):
29486 Add variant without any argument in order to provide better
29487 hints.
29488
29489 2019-04-01 Richard Biener <rguenther@suse.de>
29490
29491 PR c/71598
29492 * gimple.c: Include langhooks.h.
29493 (gimple_get_alias_set): Treat enumeral types as the underlying
29494 integer type.
29495
29496 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29497 Eric Botcazou <ebotcazou@adacore.com>
29498
29499 PR rtl-optimization/89862
29500 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29501 that operates on the full registers for WORD_REGISTER_OPERATIONS
29502 architectures.
29503
29504 2019-03-29 Jim Wilson <jimw@sifive.com>
29505
29506 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29507 Clear MASK_RVC and then set if C subset supported.
29508
29509 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29510
29511 PR c/89872
29512 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29513 non-addressable complit into its initializer if it is volatile.
29514
29515 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29516
29517 * opts-common.c (integral_argument): Set errno properly in one case.
29518
29519 2019-03-29 Martin Liska <mliska@suse.cz>
29520
29521 * doc/invoke.texi: Remove -Wchkp from documentation.
29522
29523 2019-03-29 Martin Liska <mliska@suse.cz>
29524
29525 * dbgcnt.c (print_limit_reach): New function.
29526 (dbg_cnt): Use it.
29527
29528 2019-03-29 Martin Liska <mliska@suse.cz>
29529
29530 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29531 (dbg_cnt_process_opt): Parse first tokens aas
29532 dbg_cnt_process_single_pair is also using strtok.
29533
29534 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29535
29536 PR rtl-optimization/87485
29537 * function.c (expand_function_end): Move stack_protect_epilogue
29538 before loading of return value into hard register(s).
29539
29540 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29541
29542 PR middle-end/89621
29543 * tree-inline.h (struct copy_body_data): Add
29544 dont_remap_vla_if_no_change flag.
29545 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29546 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29547 and remap_type_2 returns false.
29548 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29549 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29550 only from where it is copied to nested contexts.
29551
29552 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29553
29554 PR target/89865
29555 * config/i386/i386.md (RMW operation with LEA peephole):
29556 Use LEAMODE mode attribute instead of SWI mode iterator for
29557 LEA pattern.
29558
29559 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29560
29561 PR target/89848
29562 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29563 Also process XEXP (src, 0) of a shift insn.
29564
29565 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29566
29567 PR middle-end/89725
29568 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29569 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29570
29571 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29572
29573 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29574 test.
29575 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29576 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29577 immediately after first one with df_analyze in between, but rather
29578 process all bbs, queueing ones that need second pass in a worklist,
29579 df_analyze, process queued debug insn changes and if second pass is
29580 needed, process bbs from worklist, df_analyze, process queued debug
29581 insns again.
29582
29583 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29584 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29585 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29586
29587 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29588
29589 PR c/79022
29590 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29591 definition.
29592
29593 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29594
29595 PR target/85667
29596 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29597 function for 32-bit MS_ABI.
29598 (function_value_ms_32): New function.
29599
29600 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29601
29602 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29603 (movdi): Call gen_movdi_symbol_save_scc.
29604 (gen_movdi_symbol_save_scc): New insn and split.
29605
29606 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29607
29608 PR rtl-optimization/89313
29609 * function.c (matching_constraint_num): New static function.
29610 (match_asm_constraints_1): Use it. Fixup white space and comment.
29611 Don't replace inputs with non-matching constraints which conflict
29612 with early clobber outputs.
29613
29614 2019-03-27 Jeff Law <law@redhat.com>
29615
29616 PR rtl-optimization/87761
29617 PR rtl-optimization/89826
29618 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29619 slightly later.
29620 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29621 note problem to get REG_DEAD/REG_UNUSED notes updated.
29622
29623 2019-03-27 Richard Biener <rguenther@suse.de>
29624
29625 PR tree-optimization/89463
29626 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29627 queue edges to remove.
29628 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29629 dead stmts. Delay edge removal until PHIs are removed to
29630 make debug-stmt creation not confused by seemingly degenerate
29631 PHIs.
29632
29633 2019-03-27 Alan Modra <amodra@gmail.com>
29634
29635 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29636 throughout file.
29637 * config/rs6000/darwin.h: Likewise.
29638 * config/rs6000/rs6000.c: Likewise.
29639
29640 2019-03-27 Alan Modra <amodra@gmail.com>
29641
29642 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29643 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29644
29645 2019-03-26 Andrew Waterman <andrew@sifive.com>
29646 Jim Wilson <jimw@sifive.com>
29647
29648 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29649 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29650 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29651 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29652 (generic_alu): Add auipc to type list.
29653 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29654 (riscv_microarchitecture): Declare.
29655 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29656 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29657 field.
29658 (riscv_microarchitecture): New.
29659 (sifive_7_tune_info): New.
29660 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29661 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29662 entries.
29663 (riscv_store_data_bypass_p): New.
29664 (riscv_option_override): Set riscv_microarchitecture from
29665 cpu->microarchitecture.
29666 * config/riscv/riscv.md: Include sifive-7.md.
29667 (type): Add auipc.
29668 (tune): New.
29669 (auipc<mode>): Change type to auipc.
29670 (restore_stack_nonlocal): New.
29671 * config/riscv/sifive-7.md: New.
29672 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29673
29674 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29675
29676 PR target/89827
29677 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29678 Also process XEXP (src, 0) of a shift insn.
29679
29680 2019-03-26 Richard Biener <rguenther@suse.de>
29681
29682 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29683 (copy_debug_stmt): Likewise.
29684 (expand_call_inline): Likewise.
29685 (copy_bb): Avoid redundant lookup & set of gimple_block.
29686 * gimple-low.c (lower_gimple_return): Likewise.
29687 (lower_builtin_setjmp): Likewise.
29688
29689 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29690
29691 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29692 is constant 0, turn into static const data member initialized to false.
29693 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29694 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29695
29696 2019-03-26 Jason Merrill <jason@redhat.com>
29697 Jakub Jelinek <jakub@redhat.com>
29698
29699 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29700 method.
29701 (mem_alloc_description::release_object_overhead): Fix comment typos.
29702 * hash-table.h (hash_table::~hash_table): Call
29703 release_instance_overhead only if m_entries is non-NULL, otherwise
29704 call unregister_descriptor.
29705
29706 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29707
29708 PR tree-optimization/81740
29709 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29710 In case of outer loop vectorization, check for backward dependence
29711 at the inner loop if outer loop dependence is reversed.
29712
29713 2019-03-26 Alan Modra <amodra@gmail.com>
29714
29715 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29716 rs6000_vector_mem init. Correct wI and wJ comment.
29717
29718 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29719
29720 PR rtl-optimization/88347
29721 PR rtl-optimization/88423
29722 * sched-deps.c (sched_analyze_insn): Take into account that for
29723 tablejumps the barrier appears after a label and a jump_table_data.
29724
29725 2019-03-25 Martin Sebor <msebor@redhat.com>
29726
29727 PR c/89812
29728 * c-common.c (check_user_alignment): Rename local. Correct maximum
29729 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29730 convert it to UHWI when it fits.
29731
29732 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29733
29734 PR debug/86964
29735 * dwarf2out.c (premark_used_variables): New function.
29736 (prune_unused_types_walk): Do not mark not premarked external
29737 variables.
29738 (prune_unused_types): Call premark_used_variables.
29739
29740 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29741
29742 PR rtl-optimization/89676
29743 * lra-constraints.c (curr_insn_transform): Do match reload for
29744 early clobbers when the match was successful only for different
29745 registers.
29746
29747 2019-03-25 Martin Sebor <msebor@redhat.com>
29748
29749 * doc/extend.texi (Common Type Attributes): Document vector_size.
29750 (Common Variable Attributes): Mention size constraint. Correct
29751 quoting and typos.
29752 (Vector Extensions): Use @dfn when defining bas type. Clarify
29753 base type and size constraints.
29754
29755 2019-03-25 Richard Biener <rguenther@suse.de>
29756
29757 PR tree-optimization/89789
29758 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29759 changes from non-undefined back to undefined.
29760
29761 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29762
29763 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29764 heap string and a gc string, but since this variable is unknown to
29765 ggc the gc string might get reused and corrupted. Fixed by always
29766 using a heap string.
29767
29768 2019-03-25 Richard Biener <rguenther@suse.de>
29769
29770 PR tree-optimization/89779
29771 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29772 to remove IV defs, delay actual removal.
29773 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29774 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29775 very end, properly also reset loop control IV information.
29776
29777 2019-03-25 Richard Biener <rguenther@suse.de>
29778
29779 PR tree-optimization/89802
29780 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29781 move EH data to folded stmt.
29782
29783 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29784
29785 * config/s390/s390-builtin-types.def: Remove few unused types and
29786 fix sort order for others.
29787
29788 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29789
29790 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29791 expected and found types with -mdebug during builtin matching.
29792
29793 2019-03-25 Richard Biener <rguenther@suse.de>
29794
29795 PR middle-end/89790
29796 * fold-const.c (operand_equal_p): Revert last change with
29797 updated comment.
29798
29799 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29800
29801 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29802 notes for the result of the __tls_get_addr calls.
29803 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29804
29805 2019-03-24 Jeff Law <law@redhat.com>
29806
29807 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29808
29809 PR rtl-optimization/87761
29810 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29811 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29812 as needed.
29813 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29814 rescans. Reprocess blocks as needed, calling df_analyze before
29815 reprocessing. Always call df_analyze before fixing up debug bind
29816 insns.
29817
29818 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29819
29820 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29821 big endian.
29822
29823 2019-03-22 Andrew Pinski <apinski@marvell.com>
29824
29825 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29826 attrribute for uxtw.
29827
29828 2019-03-26 Jeff Law <law@redhat.com>
29829
29830 PR rtl-optimization/87761
29831 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29832 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29833 (mips_split_move): Accept new INSN argument. Try to forward SRC
29834 into the next instruction.
29835 (mips_split_move_insn): Pass INSN through to mips_split_move.
29836
29837 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29838
29839 PR rtl-optimization/89676
29840 * lra-constraints.c (curr_insn_transform): Do match reload for
29841 early clobbers even if the match was successful.
29842
29843 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29844
29845 PR c++/87481
29846 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29847
29848 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29849
29850 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29851
29852 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29853
29854 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29855 <avx512>_fmsub_<mode>_mask3<round_name>,
29856 <avx512>_fnmadd_<mode>_mask3<round_name>,
29857 <avx512>_fnmsub_<mode>_mask3<round_name>,
29858 avx512f_vmfmadd_<mode>_mask3<round_name>,
29859 avx512f_vmfmsub_<mode>_mask3<round_name>,
29860 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29861 instead of register_operand and %v instead of v for match_operand 1.
29862 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29863 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29864 <round_nimm_predicate> instead of register_operand and %v instead of v
29865 for match_operand 1.
29866
29867 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29868 <avx512>_fmadd_<mode>_mask3<round_name>,
29869 <avx512>_fmsub_<mode>_mask<round_name>,
29870 <avx512>_fmsub_<mode>_mask3<round_name>,
29871 <avx512>_fnmadd_<mode>_mask<round_name>,
29872 <avx512>_fnmadd_<mode>_mask3<round_name>,
29873 <avx512>_fnmsub_<mode>_mask<round_name>,
29874 <avx512>_fnmsub_<mode>_mask3<round_name>,
29875 <avx512>_fmaddsub_<mode>_mask<round_name>,
29876 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29877 <avx512>_fmsubadd_<mode>_mask<round_name>,
29878 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29879 <round_nimm_predicate> instead of nonimmediate_operand.
29880 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29881 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29882 Use register_operand instead of <round_nimm_predicate> for the
29883 operand that needs to match output.
29884 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29885 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29886 Likewise. Formatting fixes.
29887
29888 PR target/89784
29889 * config/i386/i386.c (enum ix86_builtins): Remove
29890 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29891 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29892 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29893 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29894 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29895 __builtin_ia32_vfmsubss3_mask3): New builtins.
29896 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29897 avx512f_vmfmadd_<mode>_mask3<round_name>,
29898 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29899 *avx512f_vmfmsub_<mode>_mask<round_name>,
29900 avx512f_vmfmsub_<mode>_mask3<round_name>,
29901 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29902 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29903 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29904 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29905 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29906 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29907 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29908 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29909 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29910 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29911 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29912 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29913 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29914 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29915 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29916 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29917 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29918 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29919 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29920 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29921 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29922 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29923 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29924 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29925 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29926 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29927 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29928 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29929
29930 2019-03-21 Martin Sebor <msebor@redhat.com>
29931
29932 PR tree-optimization/89350
29933 * builtins.c (compute_objsize): Also ignore offsets whose upper
29934 bound is negative.
29935 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29936 (builtin_memref::builtin_memref): Initialize new member.
29937 Allow EXPR to be null.
29938 (builtin_memref::extend_offset_range): Replace local with a member.
29939 Avoid assuming pointer offsets are unsigned.
29940 (builtin_memref::set_base_and_offset): Determine base object
29941 before computing offset range.
29942 (builtin_access::builtin_access): Handle memset.
29943 (builtin_access::generic_overlap): Replace local with a member.
29944 (builtin_access::strcat_overlap): Same.
29945 (builtin_access::overlap): Same.
29946 (maybe_diag_overlap): Same.
29947 (maybe_diag_access_bounds): Same.
29948 (wrestrict_dom_walker::check_call): Handle memset.
29949 (check_bounds_or_overlap): Same.
29950
29951 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29952 Jakub Jelinek <jakub@redhat.com>
29953
29954 PR lto/89692
29955 * tree.c (fld_type_variant, fld_incomplete_type_of,
29956 fld_process_array_type): Call fld->pset.add and don't call
29957 add_tree_to_fld_list if it returns true.
29958 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29959 non-marked types from TYPE_NEXT_VARIANT list.
29960 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29961
29962 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29963
29964 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29965 to false, if true, don't alloc_entries during construction, but defer
29966 it to the first method that needs m_entries allocated.
29967 (hash_table::hash_table, hash_table::~hash_table,
29968 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29969 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29970 hash_table::clear_slot, hash_table::traverse_noresize,
29971 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29972 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29973 false.
29974 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29975 NO_INSERT instead of find_with_hash.
29976 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29977 hash_set::m_table): Add Lazy to template params of hash_table.
29978 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29979 * attribs.c (test_attribute_exclusions): Likewise.
29980 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29981 hash_set. Add tests for hash_set with Lazy = true.
29982
29983 2019-03-21 Richard Biener <rguenther@suse.de>
29984
29985 PR tree-optimization/89779
29986 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29987 checks with respect to released SSA names now having error_mark_node
29988 type.
29989 * fold-const.c (operand_equal_p): Likewise.
29990
29991 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29992
29993 PR target/89775
29994 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29995 available to ...
29996 (s390_optimize_register_info): Use global_not_special_regno_p to
29997 check for global regs.
29998
29999 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30000
30001 PR target/89752
30002 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30003 update this_alternative nor this_alternative_set.
30004
30005 2019-03-19 Jim Wilson <jimw@sifive.com>
30006
30007 PR target/89411
30008 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30009 align, size, offset. Use them to handle a BLKmode reference. Update
30010 comment.
30011 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30012
30013 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30014
30015 PR rtl-optimization/89768
30016 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30017 instead of GEN_INT.
30018 (unroll_loop_runtime_iterations): Likewise.
30019
30020 2019-03-19 Martin Sebor <msebor@redhat.com>
30021
30022 PR tree-optimization/89644
30023 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30024 rather than endptr as an indicator of nul-termination.
30025
30026 PR tree-optimization/89644
30027 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30028 arrays in determining sequence sizes in strncpy and stpncpy.
30029
30030 2019-03-19 Martin Liska <mliska@suse.cz>
30031
30032 PR middle-end/89737
30033 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30034 unlikely_edges if there's an edge that belongs to both these sets.
30035
30036 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30037
30038 PR target/89746
30039 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30040 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30041 go via a stack temporary.
30042
30043 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30044
30045 PR target/89378
30046 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30047 instead of gen_rtx_SUBREG.
30048 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30049
30050 2019-03-19 Richard Biener <rguenther@suse.de>
30051
30052 PR debug/88389
30053 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30054
30055 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30056
30057 PR lto/87809
30058 PR lto/89335
30059 * tree.c (free_lang_data_in_decl): Do not free context of C++
30060 destrutors.
30061
30062 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30063
30064 PR target/89506
30065 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30066 subs for the first alternative except when operands[3] is 1.
30067
30068 PR target/89752
30069 * gimplify.c (gimplify_asm_expr): For output argument with
30070 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30071 diagnose error.
30072
30073 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30074
30075 PR rtl-optimization/89753
30076 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30077 explicit unrolling factor even more robust.
30078
30079 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30080
30081 PR target/89726
30082 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30083 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30084 signed zeros, do another copysign after the compensation.
30085
30086 2019-03-18 Martin Sebor <msebor@redhat.com>
30087
30088 PR tree-optimization/89720
30089 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30090 more conservatively, the same as anti-range.
30091
30092 2019-03-18 Richard Biener <rguenther@suse.de>
30093
30094 PR middle-end/88945
30095 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30096 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30097 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30098 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30099
30100 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30101
30102 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30103 Extend queue to 1024 entries.
30104 Add "consumed" field.
30105 (gomp_print_output): Remove print_index parameter.
30106 Add final parameter.
30107 Change limit to unsigned.
30108 Use consumed field to implement circular buffer.
30109 Detect interrupted print in final pass.
30110 Flush output at the end.
30111 (run): Update gomp_print_output usage.
30112 (main): Initialize kernargs->output_data.consumed.
30113
30114 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30115
30116 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30117 calculation of the minimum number of scalar iterations for
30118 fully-predicated loops.
30119
30120 2019-03-18 Martin Jambor <mjambor@suse.cz>
30121
30122 PR tree-optimization/89546
30123 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30124 any propagation to its children took place.
30125
30126 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30127
30128 PR target/89627
30129 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30130 parameter, and make use of it.
30131 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30132
30133 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30134
30135 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30136 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30137 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30138 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30139 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30140 match what the ops is doing.
30141 (push_multi_fp_blink): Likewise.
30142 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30143 compiling for size and elf target.
30144 (arc_save_callee_enter): Adjust note to match what enter/leave
30145 operation does.
30146
30147 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30148
30149 * config/arc/arc.md (tst_movb): Fix constraint.
30150
30151 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30152
30153 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30154
30155 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30156
30157 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30158 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30159 reg_alloc_order references.
30160 (size_alloc_order): Define.
30161 (arc_adjust_reg_alloc_order): New function.
30162 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30163 order.
30164 (ADJUST_REG_ALLOC_ORDER): Define.
30165 (HONOR_REG_ALLOC_ORDER): Likewise.
30166
30167 2019-03-18 Richard Biener <rguenther@suse.de>
30168
30169 PR target/87561
30170 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30171 loads and stores a bit more.
30172
30173 2019-03-18 Richard Biener <rguenther@suse.de>
30174
30175 PR target/87561
30176 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30177 load pessimization to stores as well.
30178
30179 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30180
30181 PR middle-end/86979
30182 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30183 successor, use NULL as its av set.
30184
30185 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30186
30187 PR rtl-optimization/89721
30188 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30189
30190 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30191
30192 PR target/87532
30193 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30194 When handling vec_extract, use modular arithmetic to allow
30195 constant selectors greater than vector length.
30196 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30197 V1TImode vectors to have constant selector values greater than 0.
30198 Use modular arithmetic to compute vector index.
30199 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30200 index for in-memory vectors. Correct code generation for
30201 in-register vectors.
30202 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30203 compute index.
30204
30205 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30206
30207 PR c++/88534
30208 PR c++/88537
30209 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30210 VAR_DECL args.
30211
30212 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30213
30214 PR c++/89709
30215 * tree.c (inchash::add_expr): Strip any location wrappers.
30216 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30217 after hash verification.
30218
30219 PR debug/89704
30220 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30221 SIGN_EXTEND and ZERO_EXTEND.
30222
30223 2019-03-14 Jason Merrill <jason@redhat.com>
30224 Jakub Jelinek <jakub@redhat.com>
30225
30226 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30227 than if is_empty (*slot).
30228 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30229 existing elt and for elt removal.
30230 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30231 of already removed elt.
30232
30233 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30234
30235 PR target/89650
30236 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30237 REG_EH_REGION note.
30238
30239 2019-03-14 Martin Liska <mliska@suse.cz>
30240
30241 PR other/89712
30242 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30243
30244 2019-03-14 Richard Biener <rguenther@suse.de>
30245
30246 PR target/89711
30247 * config/i386/i386.c (make_resolver_func): Properly set
30248 DECL_CONTEXT on the RESULT_DECL.
30249 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30250
30251 2019-03-14 Richard Biener <rguenther@suse.de>
30252
30253 * gimple-pretty-print.c: Include cfgloop.h.
30254 (dump_gimple_phi): Adjust.
30255 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30256 (pp_cfg_jump): Adjust.
30257 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30258 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30259 (lower_phi_internal_fn): Remove.
30260 (verify_gimple_call): Remove IFN_PHI special-casing.
30261 (dump_function_to_file): Dump IL state.
30262 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30263 done to deal with PHI nodes being present in non-SSA state.
30264
30265 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30266
30267 PR ipa/89684
30268 * multiple_target.c (create_dispatcher_calls): Change
30269 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30270 In the node->iterate_referring loop, push *ref rather than ref, call
30271 ref->remove_reference () and always pass 0 to iterate_referring.
30272
30273 PR rtl-optimization/89679
30274 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30275 would contain a paradoxical SUBREG.
30276
30277 2019-03-14 Richard Biener <rguenther@suse.de>
30278
30279 PR tree-optimization/89710
30280 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30281 safe_dyn_cast.
30282
30283 2019-03-14 Martin Liska <mliska@suse.cz>
30284
30285 * coverage.c (coverage_begin_function): Stream also
30286 end_column.
30287 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30288 documentation about function declaration location.
30289 * gcov-dump.c (tag_function): Print whole range
30290 of function declaration.
30291 * gcov.c (struct function_info): Add end_column field.
30292 (function_info::function_info): Initialize it.
30293 (output_json_intermediate_file): Output {start,end}_column
30294 fields.
30295 (read_graph_file): Read end_column.
30296
30297 2019-03-14 Richard Biener <rguenther@suse.de>
30298
30299 PR middle-end/89698
30300 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30301 that the access types are similar.
30302
30303 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30304
30305 PR tree-optimization/89703
30306 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30307 aren't compatible also with builtin_decl_explicit. Check pure
30308 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30309 and BUILT_IN_STPNCPY{,_CHK}.
30310
30311 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30312
30313 PR target/89523
30314 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30315 addr32 prefix to VSIB address for X32.
30316 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30317 "%M2" to opcode.
30318 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30319 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30320 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30321 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30322 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30323 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30324 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30325 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30326 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30327 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30328 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30329 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30330 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30331 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30332 (*avx512f_scatterdi<mode>): Likewise.
30333
30334 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30335
30336 PR target/85860
30337 * lra-constraints.c (inherit_in_ebb): Update
30338 potential_reload_hard_regs along with live_hard_regs.
30339
30340 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30341
30342 PR debug/89498
30343 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30344 DWARF_OFFSET_SIZE.
30345 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30346
30347 2019-03-13 Martin Sebor <msebor@redhat.com>
30348
30349 PR tree-optimization/89662
30350 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30351 has a size.
30352
30353 2019-03-13 Richard Biener <rguenther@suse.de>
30354
30355 PR middle-end/89677
30356 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30357 throw FP expressions at tree-affine.
30358
30359 2019-03-14 Richard Biener <rguenther@suse.de>
30360
30361 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30362 dump negative integer constants using _Literal (type) -num.
30363
30364 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30365
30366 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30367 nonlocal_value member.
30368
30369 PR middle-end/88588
30370 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30371 (ipa_simd_modify_function_body): Handle PHIs.
30372
30373 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30374
30375 * config/s390/s390.c (s390_option_override_internal): Use more
30376 aggressive inlining parameters.
30377
30378 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30379
30380 * config/s390/3906.md: New file.
30381 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30382 (LONGRUNNING_THRESHOLD): Remove.
30383 (MAX_SCHED_MIX_SCORE): Decrease.
30384 (MAX_SCHED_MIX_DISTANCE): Decrease.
30385 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30386 (struct s390_sched_state): New struct to hold scheduling state.
30387 (S390_SCHED_STATE_NORMAL): Remove.
30388 (S390_SCHED_STATE_CRACKED): Remove.
30389 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30390 (s390_get_sched_attrmask): Use new attribute.
30391 (s390_get_unit_mask): Use new units.
30392 (s390_is_fpd): New function.
30393 (s390_is_fxd): New function.
30394 (s390_is_longrunning): New function.
30395 (s390_sched_score): Use new functions.
30396 (s390_sched_reorder): Likewise.
30397 (s390_sched_variable_issue): Rework and use new functions.
30398 (s390_sched_init): Use new functions.
30399 * config/s390/s390.h (s390_tune_attr): Add z14.
30400 * config/s390/s390.md: Add z14.
30401
30402 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30403
30404 * config/s390/2964.md: Update pipeline description.
30405 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30406 (LONGRUNNING_THRESHOLD): Remove.
30407 (LATENCY_FACTOR): Remove.
30408 (s390_get_unit_mask): Add unit.
30409 (s390_sched_score): Use fxd/fpd.
30410 (s390_sched_variable_issue): Use fxd/fpd.
30411
30412 2019-03-12 Martin Liska <mliska@suse.cz>
30413
30414 * config/i386/i386.c: Reword an error message.
30415
30416 2019-03-12 Martin Jambor <mjambor@suse.cz>
30417
30418 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30419 terminate with newline.
30420
30421 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30422
30423 PR target/52726
30424 * config/s390/s390.md (tabort): Use %wd instead of
30425 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30426 letters and periods.
30427 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30428 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30429 's with %< and %>.
30430
30431 PR middle-end/89663
30432 * builtins.c (expand_builtin_int_roundingfn,
30433 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30434 gcc_unreachable if validate_arglist fails.
30435
30436 2019-03-12 Richard Biener <rguenther@suse.de>
30437
30438 PR tree-optimization/89664
30439 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30440 free the occurance tree after the early out.
30441
30442 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30443
30444 PR middle-end/89655
30445 PR bootstrap/89656
30446 * vr-values.c (vr_values::update_value_range): If
30447 old_vr->varying_p (), don't update it, make new_vr also VARYING
30448 and return false.
30449
30450 2019-03-11 Martin Liska <mliska@suse.cz>
30451
30452 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30453 Fix double string quoting.
30454
30455 2019-03-11 Martin Liska <mliska@suse.cz>
30456
30457 * collect-utils.c (collect_wait): Wrap apostrophes
30458 in gcc internal format with %'.
30459 * collect2.c (main): Likewise.
30460 (scan_prog_file): Likewise.
30461 (scan_libraries): Likewise.
30462 * config/i386/i386.c (ix86_expand_call): Likewise.
30463 (ix86_handle_interrupt_attribute): Likewise.
30464 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30465 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30466 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30467 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30468 * symtab.c (symtab_node::verify_base): Likewise.
30469 * tree-cfg.c (verify_gimple_label): Likewise.
30470 * tree.c (verify_type_variant): Likewise.
30471
30472 2019-03-11 Martin Liska <mliska@suse.cz>
30473
30474 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30475 in a string format message and fix GNU coding style.
30476 (expand_builtin_set_thread_pointer): Likewise.
30477 * common/config/aarch64/aarch64-common.c
30478 (aarch64_rewrite_selected_cpu): Likewise.
30479 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30480 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30481 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30482 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30483 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30484 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30485 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30486 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30487 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30488 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30489 Likewise.
30490 * common/config/riscv/riscv-common.c
30491 (riscv_subset_list::parsing_subset_version): Likewise.
30492 (riscv_subset_list::parse_std_ext): Likewise.
30493 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30494 (riscv_subset_list::parse): Likewise.
30495 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30496 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30497 (aarch64_override_options_internal): Likewise.
30498 (aarch64_validate_mcpu): Likewise.
30499 (aarch64_validate_march): Likewise.
30500 (aarch64_validate_mtune): Likewise.
30501 (aarch64_override_options): Likewise.
30502 * config/alpha/alpha.c (alpha_option_override): Likewise.
30503 * config/arc/arc.c (arc_init): Likewise.
30504 (parse_mrgf_banked_regs_option): Likewise.
30505 (arc_override_options): Likewise.
30506 (arc_expand_builtin_aligned): Likewise.
30507 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30508 (arm_expand_builtin): Likewise.
30509 * config/arm/arm.c (arm_option_check_internal): Likewise.
30510 (arm_configure_build_target): Likewise.
30511 (arm_option_override): Likewise.
30512 (arm_options_perform_arch_sanity_checks): Likewise.
30513 (arm_handle_cmse_nonsecure_entry): Likewise.
30514 (arm_handle_cmse_nonsecure_call): Likewise.
30515 (arm_tls_referenced_p): Likewise.
30516 (thumb1_expand_prologue): Likewise.
30517 * config/avr/avr.c (avr_option_override): Likewise.
30518 * config/bfin/bfin.c (bfin_option_override): Likewise.
30519 * config/c6x/c6x.c (c6x_option_override): Likewise.
30520 * config/cr16/cr16.c (cr16_override_options): Likewise.
30521 * config/cris/cris.c (cris_option_override): Likewise.
30522 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30523 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30524 * config/darwin.c (darwin_override_options): Likewise.
30525 * config/frv/frv.c (frv_expand_builtin): Likewise.
30526 * config/h8300/h8300.c (h8300_option_override): Likewise.
30527 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30528 (ix86_option_override_internal): Likewise.
30529 (warn_once_call_ms2sysv_xlogues): Likewise.
30530 (ix86_expand_prologue): Likewise.
30531 (split_stack_prologue_scratch_regno): Likewise.
30532 (ix86_warn_parameter_passing_abi): Likewise.
30533 * config/ia64/ia64.c (fix_range): Likewise.
30534 * config/m68k/m68k.c (m68k_option_override): Likewise.
30535 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30536 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30537 (mips_set_compression_mode): Likewise.
30538 * config/mmix/mmix.c (mmix_option_override): Likewise.
30539 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30540 * config/msp430/msp430.c (msp430_option_override): Likewise.
30541 * config/nds32/nds32.c (nds32_option_override): Likewise.
30542 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30543 (nios2_option_override): Likewise.
30544 (nios2_expand_custom_builtin): Likewise.
30545 * config/nvptx/mkoffload.c (main): Likewise.
30546 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30547 * config/pa/pa.c (fix_range): Likewise.
30548 (pa_option_override): Likewise.
30549 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30550 (riscv_option_override): Likewise.
30551 * config/rl78/rl78.c (rl78_option_override): Likewise.
30552 * config/rs6000/aix61.h: Likewise.
30553 * config/rs6000/aix71.h: Likewise.
30554 * config/rs6000/aix72.h: Likewise.
30555 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30556 * config/rs6000/freebsd64.h: Likewise.
30557 * config/rs6000/linux64.h: Likewise.
30558 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30559 (rs6000_expand_zeroop_builtin): Likewise.
30560 (rs6000_expand_mtfsb_builtin): Likewise.
30561 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30562 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30563 (rs6000_invalid_builtin): Likewise.
30564 (rs6000_expand_split_stack_prologue): Likewise.
30565 * config/rs6000/rtems.h: Likewise.
30566 * config/rx/rx.c (valid_psw_flag): Likewise.
30567 (rx_expand_builtin): Likewise.
30568 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30569 * config/s390/s390.c (s390_expand_builtin): Likewise.
30570 (s390_function_profiler): Likewise.
30571 (s390_option_override_internal): Likewise.
30572 (s390_option_override): Likewise.
30573 * config/sh/sh.c (sh_option_override): Likewise.
30574 (sh_builtin_saveregs): Likewise.
30575 (sh_fix_range): Likewise.
30576 * config/sh/vxworks.h: Likewise.
30577 * config/sparc/sparc.c (sparc_option_override): Likewise.
30578 * config/spu/spu.c (spu_option_override): Likewise.
30579 (fix_range): Likewise.
30580 * config/visium/visium.c (visium_option_override): Likewise.
30581 (visium_handle_interrupt_attr): Likewise.
30582 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30583 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30584 (dbg_cnt_process_opt): Likewise.
30585 * dwarf2out.c (output_dwarf_version): Likewise.
30586 * except.c (expand_eh_return): Likewise.
30587 * gcc.c (defined): Likewise.
30588 (driver_handle_option): Likewise.
30589 (process_command): Likewise.
30590 (compare_files): Likewise.
30591 (driver::prepare_infiles): Likewise.
30592 (driver::do_spec_on_infiles): Likewise.
30593 (driver::maybe_run_linker): Likewise.
30594 * omp-offload.c (oacc_parse_default_dims): Likewise.
30595 * opts-global.c (handle_common_deferred_options): Likewise.
30596 * opts.c (parse_sanitizer_options): Likewise.
30597 (common_handle_option): Likewise.
30598 (enable_warning_as_error): Likewise.
30599 * passes.c (enable_disable_pass): Likewise.
30600 * plugin.c (parse_plugin_arg_opt): Likewise.
30601 (default_plugin_dir_name): Likewise.
30602 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30603 (default_pch_valid_p): Likewise.
30604 * toplev.c (init_asm_output): Likewise.
30605 (process_options): Likewise.
30606 (toplev::run_self_tests): Likewise.
30607 * tree-cfg.c (verify_gimple_call): Likewise.
30608 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30609 (tree_inlinable_function_p): Likewise.
30610 * var-tracking.c (vt_find_locations): Likewise.
30611
30612 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30613
30614 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30615 only on the else branch.
30616
30617 2019-03-11 Martin Liska <mliska@suse.cz>
30618
30619 * gcov.c (output_intermediate_json_line): Print function
30620 name of each line.
30621 (output_json_intermediate_file): Add new argument.
30622 * doc/gcov.texi: Document the change.
30623
30624 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30625
30626 PR rtl-optimization/89588
30627 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30628 explicit unrolling factor more robust.
30629
30630 2019-03-11 Richard Biener <rguenther@suse.de>
30631
30632 PR tree-optimization/89649
30633 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30634 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30635 on the prolog and epilog loops.
30636 (vect_loop_versioning): Return copy of loop.
30637 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30638 on the non-vectorized version of the loop.
30639
30640 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30641
30642 PR target/68924
30643 * config/i386/sse.md (*vec_extractv2di_0_sse):
30644 Add (=r,x) alternative and corresponding splitter.
30645
30646 2019-03-10 Martin Jambor <mjambor@suse.cz>
30647
30648 PR tree-optimization/85762
30649 PR tree-optimization/87008
30650 PR tree-optimization/85459
30651 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30652 it points to if there is a type changing MEM_REF. Adjust all callers.
30653 (build_accesses_from_assign): Disable total scalarization if
30654 contains_vce_or_bfcref_p returns true through the new parameter, for
30655 both rhs and lhs.
30656
30657 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30658
30659 PR c/88568
30660 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30661 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30662
30663 PR target/79645
30664 * common.opt (fdiagnostics-show-labels,
30665 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30666 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30667 gas-locview-support, ginline-points, ginternal-reset-location-views):
30668 Terminate description text with a dot.
30669 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30670 * config/mcore/mcore.opt (m210, m340): Likewise.
30671 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30672 mnops=): Start description text with a capital letter.
30673 * config/arc/arc.opt (msize-level=): Likewise.
30674 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30675 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30676 mnewlib): Likewise.
30677 * config/ft32/ft32.opt (msim): Likewise.
30678 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30679 (mnodiv, mnopm): Terminate description text with a dot.
30680 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30681 a colon.
30682 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30683 Likewise.
30684 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30685 text.
30686
30687 PR rtl-optimization/89634
30688 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30689 are modified in BB_END (e->src) instruction.
30690
30691 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30692
30693 PR target/79926
30694 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30695 messages more amenable to translation, and improve wording.
30696
30697 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30698
30699 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30700 ud- and du-chains between phases.
30701
30702 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30703
30704 PR debug/89631
30705 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30706 instead of POLY_INT_CST.
30707
30708 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30709
30710 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30711 requirement.
30712
30713 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30714
30715 PR target/68924
30716 PR target/78782
30717 PR target/87558
30718 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30719 (_mm_storeu_si64): Ditto.
30720
30721 2019-03-08 Martin Liska <mliska@suse.cz>
30722
30723 PR target/86952
30724 * config/i386/i386.c (ix86_option_override_internal): Disable
30725 jump tables when retpolines are used.
30726
30727 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30728
30729 PR go/63560
30730 * ipa-split.c (execute_split_functions): Do not split
30731 'noinline' or 'section' function.
30732
30733 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30734
30735 PR target/79846
30736 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30737 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30738 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30739
30740 PR ipa/80000
30741 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30742 from diagnostics. Formatting fixes.
30743
30744 PR target/85665
30745 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30746 warn_odr diagnostics.
30747
30748 PR other/80058
30749 * lra-constraints.c (process_alt_operands): Avoid one space before
30750 " at the end of line and another after " on another line in a string
30751 literal.
30752 * attribs.c (handle_dll_attribute): Likewise.
30753 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30754
30755 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30756 warning_at or inform messages in G_() if there is no ?:.
30757
30758 PR tree-optimization/89550
30759 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30760 returned true. Formatting fixes.
30761 (expand_builtin_strnlen): Formatting fixes.
30762 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30763 if warning_at returned true.
30764 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30765
30766 2019-03-08 Richard Biener <rguenther@suse.de>
30767
30768 PR middle-end/89578
30769 * cfgloop.h (struct loop): Add owned_clique field.
30770 * cfgloopmanip.c (copy_loop_info): Copy it.
30771 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30772 cliques.
30773 * tree-inline.c (copy_loops): Remap owned_clique.
30774 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30775 * lto-streamer-out.c (output_cfg): Likewise.
30776
30777 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30778
30779 PR target/80190
30780 * config/darwin.c: Include intl.h.
30781 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30782 composing the message out of two separate parts.
30783
30784 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30785
30786 PR target/80003
30787 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30788 doesn't start with a capital letter and doesn't end with a dot.
30789 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30790 with a capital letter.
30791 (ix86_mangle_function_version_assembler_name): Likewise.
30792 (ix86_generate_version_dispatcher_body): Likewise.
30793 (fold_builtin_cpu): Likewise.
30794 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30795 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30796 translators, wrap full type name in %qs.
30797
30798 PR translation/79999
30799 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30800 depend clause with source (or sink) modifier.
30801 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30802
30803 PR target/89602
30804 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30805 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30806 (avx512f_load<mode>_mask): New define_expand.
30807 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30808 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30809 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30810 __builtin_ia32_movess_mask): New builtins.
30811 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30812 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30813 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30814 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30815
30816 2019-03-07 Martin Jambor <mjambor@suse.cz>
30817
30818 PR lto/87525
30819 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30820 for extern inline functions.
30821
30822 2019-03-07 Martin Jambor <mjambor@suse.cz>
30823
30824 PR ipa/88235
30825 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30826 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30827 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30828 have multiple callees. At the end check if declarations match as
30829 opposed to cgraph_nodes.
30830
30831 2019-03-07 Martin Liska <mliska@suse.cz>
30832
30833 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30834 which is equivalent to searching for this in clones chain.
30835 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30836 names with a neighbour and special case first node in a chain.
30837
30838 2019-01-25 Jason Merrill <jason@redhat.com>
30839
30840 PR c++/80916 - spurious "static but not defined" warning.
30841 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30842 for an internal symbol with DECL_EXTERNAL.
30843
30844 2019-04-07 Richard Biener <rguenther@suse.de>
30845
30846 PR middle-end/89618
30847 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30848 * tree-inline.c (copy_loops): Simplify.
30849
30850 2019-03-07 Martin Liska <mliska@suse.cz>
30851
30852 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30853
30854 2019-03-07 Richard Biener <rguenther@suse.de>
30855
30856 PR tree-optimization/89595
30857 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30858 stmt iterator as reference, take boolean output parameter to
30859 indicate whether the stmt was removed and thus the iterator
30860 already advanced.
30861 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30862 stmts created by folding.
30863
30864 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30865
30866 PR c++/89585
30867 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30868 at toplevel.
30869
30870 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30871
30872 PR rtl-optimization/88845
30873 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30874 LRA.
30875 * lra.c (remove_scratches_1): New function.
30876 (remove_scratches): Use it.
30877 (lra_emit_move): Likewise.
30878
30879 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30880
30881 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30882 unaligned_access variable.
30883 * config/arc/arc.c (arc_override_options): Set unaligned access
30884 default on for HS CPUs.
30885 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30886
30887 2019-03-06 Martin Liska <mliska@suse.cz>
30888
30889 PR gcov-profile/89577
30890 * doc/gcov.texi: Prefer to use --coverage.
30891 * doc/sourcebuild.texi: Likewise.
30892
30893 2019-03-02 Jason Merrill <jason@redhat.com>
30894
30895 PR c++/86485 - -Wmaybe-unused with empty class ?:
30896 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30897
30898 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30899
30900 PR target/89587
30901 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30902 if_multiarch.
30903
30904 PR middle-end/89590
30905 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30906 exactly one argument.
30907
30908 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30909 Richard Sandiford <richard.sandiford@arm.com>
30910
30911 PR tree-optimization/89570
30912 * match.pd (vec_cond into cond_op simplification): Don't use
30913 get_conditional_internal_fn, use as_internal_fn (cond_op).
30914
30915 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30916
30917 PR target/89222
30918 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30919 to decide when to split off a non-zero offset from a symbol.
30920 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30921 in function symbols.
30922
30923 2019-03-05 Richard Biener <rguenther@suse.de>
30924
30925 PR tree-optimization/89594
30926 * tree-if-conv.c (pass_if_conversion::execute): Handle
30927 case where .LOOP_VECTORIZED_FUNCTION was removed.
30928
30929 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30930
30931 PR bootstrap/89560
30932 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30933 instead alloca it only when needed with the needed size.
30934
30935 PR tree-optimization/89570
30936 * match.pd (vec_cond into cond_op simplification): Guard with
30937 vectorized_internal_fn_supported_p test and #if GIMPLE.
30938
30939 PR tree-optimization/89566
30940 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30941 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30942 Punt if get_user_idx_format succeeds, but idx_format argument is
30943 not provided or doesn't have pointer type, or if idx_args is above
30944 number of provided arguments.
30945
30946 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30947
30948 PR tree-optimization/89437
30949 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30950
30951 2019-03-04 Richard Biener <rguenther@suse.de>
30952
30953 PR middle-end/89572
30954 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30955 safe_dyn_cast.
30956
30957 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30958
30959 PR tree-optimization/89487
30960 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30961 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30962 (distribute_loop): Don't do runtime alias check if there is non-
30963 addressable data reference.
30964 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30965 is a register variable.
30966
30967 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30968
30969 PR target/89506
30970 * config/arm/arm.md (cmpsi2_addneg): Use
30971 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30972 If operands[2] is 0 or INT_MIN, force use of subs.
30973 (*compare_scc splitter): Use gen_int_mode.
30974 (*negscc): Likewise.
30975 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30976
30977 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30978 Monk Chiang <sh.chiang04@gmail.com>
30979
30980 * common/config/riscv/riscv-common.c: Include sstream.
30981 (riscv_subset_list::to_string): New.
30982 (riscv_arch_str): Likewise.
30983 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30984 * config.in: Regen.
30985 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30986 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30987 (riscv_emit_attribute): New.
30988 (riscv_file_start): Emit attribute if needed.
30989 (riscv_option_override): Init riscv_emit_attribute_p.
30990 * config/riscv/riscv.opt (mriscv-attribute): New option.
30991 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30992 * configure: Regen.
30993 * doc/install.texi: Document --with-riscv-attribute.
30994 * doc/invoke.texi: Document -mriscv-attribute.
30995
30996 * common/config/riscv/riscv-common.c:
30997 Include config/riscv/riscv-protos.h.
30998 (INCLUDE_STRING): Defined.
30999 (RISCV_DONT_CARE_VERSION): Defined.
31000 (riscv_subset_t): Declare.
31001 (riscv_subset_t::riscv_subset_t): New.
31002 (riscv_subset_list): Declare.
31003 (riscv_subset_list::riscv_subset_list): New.
31004 (riscv_subset_list::~riscv_subset_list): Likewise.
31005 (riscv_subset_list::parsing_subset_version): Likewise.
31006 (riscv_subset_list::parse_std_ext): Likewise.
31007 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31008 (riscv_subset_list::add): Likewise.
31009 (riscv_subset_list::lookup): Likewise.
31010 (riscv_subset_list::xlen): Likewise.
31011 (riscv_subset_list::parse): Likewise.
31012 (riscv_supported_std_ext): Likewise.
31013 (current_subset_list): Likewise.
31014 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31015 parse.
31016
31017 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31018
31019 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31020 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31021 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31022
31023 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31024
31025 PR rtl-optimization/85899
31026 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31027 fallthru edges leading to the exit block.
31028
31029 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31030
31031 PR target/89517
31032 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31033 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31034
31035 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31036
31037 PR tree-optimization/89535
31038 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31039 for each operand. Calculate the fallback choice for mask operands
31040 and pass it to vect_get_vec_def_for_operand.
31041
31042 2019-03-01 Richard Biener <rguenther@suse.de>
31043
31044 PR middle-end/89541
31045 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31046 get virtual operands.
31047 (get_expr_operands): Handle CONST_DECL like other decls.
31048
31049 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31050
31051 PR middle-end/89503
31052 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31053 on DECL_P and EXPR_P.
31054
31055 2019-03-01 Richard Biener <rguenther@suse.de>
31056
31057 PR middle-end/89497
31058 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31059 argument, defaulted to zero.
31060 * passes.c (execute_function_todo): Pass down SSA update flags
31061 to cleanup_tree_cfg.
31062 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31063 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31064 form if requested.
31065 (cleanup_tree_cfg): Get and pass down SSA update flags.
31066
31067 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31068
31069 PR bootstrap/89539
31070 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31071 early_lto_debug argument.
31072
31073 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31074
31075 PR tree-optimization/89536
31076 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31077 only whether bit #0 of the value is 0 instead of the entire value.
31078
31079 2019-02-28 Marek Polacek <polacek@redhat.com>
31080
31081 PR c++/87068 - missing diagnostic with fallthrough statement.
31082 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31083 at the end of a seq, save its location to walk_stmt_info.
31084 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31085 a switch.
31086
31087 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31088
31089 PR lto/88585
31090 * tree.c (find_atomic_core_type): Move ahead in file.
31091 (check_base_type): Correctly compare alignments of atomic types.
31092
31093 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31094
31095 PR target/89455
31096 * config/i386/i386.c (get_builtin_code_for_version): Identify
31097 Westmere from PCLMUL, instead of AES.
31098
31099 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31100
31101 PR target/89434
31102 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31103 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31104 -UINTVAL (...).
31105
31106 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31107
31108 PR target/88530
31109 * config/aarch64/aarch64-option-extensions.def: Document it.
31110 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31111 if empty hwcaps.
31112
31113 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31114
31115 PR c/89520
31116 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31117 builtins if they don't have a single scalar floating point argument.
31118 Formatting fixes.
31119
31120 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31121
31122 PR rtl-optimization/89490
31123 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31124 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31125 block section is not mergeable.
31126
31127 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31128
31129 PR target/70341
31130 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31131 old define_insn to ...
31132 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31133 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31134 Rename old define_insn to ...
31135 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31136 (thumb2_casesi_internal_pic): New define_expand. Rename old
31137 define_insn to ...
31138 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31139 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31140 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31141
31142 2019-02-27 Richard Biener <rguenther@suse.de>
31143
31144 PR debug/88878
31145 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31146
31147 2019-02-27 Richard Biener <rguenther@suse.de>
31148
31149 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31150 building.
31151
31152 2019-02-27 Richard Biener <rguenther@suse.de>
31153
31154 PR debug/88878
31155 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31156 parameter, prefix section name with .gnu.debuglto_ if true.
31157 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31158 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31159
31160 2019-02-27 Richard Biener <rguenther@suse.de>
31161
31162 PR debug/89514
31163 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31164 rather than on use_debug_types, doing what output_die does.
31165 (value_format): Likewise.
31166
31167 2019-02-27 Martin Jambor <mjambor@suse.cz>
31168 Martin Sebor <msebor@redhat.com>
31169
31170 * doc/invoke.texi (Warning Options): Reword description of
31171 -Wno-absolute-value.
31172
31173 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31174
31175 PR tree-optimization/89280
31176 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31177 builtin_setjmp_setup_bb): New functions.
31178 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31179 When visiting __builtin_setjmp_setup block, queue in special
31180 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31181 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31182 from visited after the loop if they don't have any visited successor
31183 blocks.
31184
31185 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31186
31187 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31188 New function.
31189 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31190
31191 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31192
31193 PR c++/89507
31194 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31195 with types other than sizetype/ssizetype.
31196
31197 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31198
31199 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31200 (enum sparc_processor_type): ...this.
31201 (enum sparc_code_model_type): New enumeration type.
31202 (enum sparc_memory_model_type): Tweak comments.
31203 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31204 (mtune): Likewise.
31205 (mcmodel): Use sparc_code_model enumeration and variable.
31206 (sparc_code_model): New enumeration.
31207 (mdebug): Add Undocumented marker.
31208 * config/sparc/sparc.h (enum cmodel): Delete.
31209 (sparc_cmodel): Likewise.
31210 (TARGET_CM_MEDLOW): Adjust to above renaming.
31211 (TARGET_CM_MEDMID): Likewise.
31212 (TARGET_CM_MEDANY): Likewise.
31213 (TARGET_CM_EMBMEDANY): Likewise.
31214 * config/sparc/sparc.c (sparc_cmodel): Delete.
31215 (sparc_option_override): Remove string/value mapping support for the
31216 code model. Move code and memory model support to after the handling
31217 of target flags. Do private machine setup last.
31218 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31219 (sparc_legitimize_reload_address): Likewise.
31220 (sparc_output_mi_thunk): Likewise.
31221 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31222
31223 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31224
31225 PR tree-optimization/89500
31226 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31227 (handle_builtin_strlen): Remove noncst_bound variable. Always
31228 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31229 cst if the first cst bytes starting at x are known to be non-zero,
31230 even if the string is not zero terminated. Don't try to modify
31231 *si for strnlen. Update strlen_to_stridx only for strlen or if
31232 we can prove strnlen returns the same value as strlen would.
31233
31234 2019-02-26 Martin Liska <mliska@suse.cz>
31235
31236 * alloc-pool.h (struct pool_usage): Remove extra
31237 print_dash_line.
31238 * bitmap.h (struct bitmap_usage): Likewise.
31239 * ggc-common.c (struct ggc_usage): Likewise.
31240 * mem-stats.h (struct mem_usage): Likewise.
31241 (mem_alloc_description::dump): Print dash lines
31242 here and repeat header at the end of a table report.
31243 It's then more readable.
31244 * tree-phinodes.c (phinodes_print_statistics): Make
31245 horizontal alignment.
31246 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31247 * vec.c (struct vec_usage): Remove extra print_dash_line.
31248 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31249
31250 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31251
31252 * doc/extend.texi (__builtin_object_size):
31253 Use @pxref instead of @xref inside parenthesis.
31254 (__builtin_has_attribute): Add missing comma after @xref.
31255 (__builtin_object_size): Ditto.
31256 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31257
31258 2019-02-26 Jeff Law <law@redhat.com>
31259
31260 PR rtl-optimization/87761
31261 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31262 detect obviously dead insns and delete them.
31263
31264 2019-02-26 Richard Biener <rguenther@suse.de>
31265
31266 PR tree-optimization/89505
31267 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31268 to handle restrict pointed-to vars with multiple subvars
31269 correctly.
31270
31271 2019-02-26 Richard Biener <rguenther@suse.de>
31272
31273 PR tree-optimization/89489
31274 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31275
31276 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31277
31278 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31279 and move around comment.
31280 <BIT_AND_EXPR>: Likewise.
31281 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31282
31283 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31284
31285 PR target/89474
31286 * config/i386/i386.c (remove_partial_avx_dependency): Call
31287 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31288 after changing possibly many instructions to use that pseudo. Fix up
31289 insertion of v4sf_const0 setter at the start of bb.
31290
31291 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31292
31293 PR c/80409
31294 * doc/extend.texi (Variadic Pointer Args): New section.
31295
31296 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31297 Martin Sebor <msebor@gmail.com>
31298
31299 * common.opt (Wattribute-alias): Likewise.
31300 * doc/invoke.texi (Option Summary): List general form of
31301 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31302 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31303 Add cross-references.
31304 (-Wattribute-alias): Rewrite and correct default. Mention
31305 considered attributes (same as for -Wmissing-attributes).
31306
31307 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31308
31309 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31310 (_mm_cvtpd_ps): Likewise.
31311 (_mm_cvttpd_epi32): Likewise.
31312
31313 PR target/89338
31314 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31315 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31316
31317 PR target/89339
31318 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31319
31320 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31321
31322 PR target/88530
31323 * common/config/aarch64/aarch64-common.c
31324 (struct aarch64_option_extension): Add is_synthetic.
31325 (all_extensions): Use it.
31326 (TARGET_OPTION_INIT_STRUCT): Define hook.
31327 (struct gcc_targetm_common): Moved to end.
31328 (all_extensions_by_on): New.
31329 (opt_ext_cmp, typedef opt_ext): New.
31330 (aarch64_option_init_struct): New.
31331 (aarch64_contains_opt): New.
31332 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31333 * config/aarch64/aarch64-option-extensions.def
31334 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31335 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31336 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31337 Set is_synthetic to false.
31338 (crypto): Set is_synthetic to true.
31339 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31340 SYNTHETIC.
31341
31342 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31343
31344 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31345 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31346 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31347 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31348 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31349 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31350 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31351 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31352 Rename ...
31353 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31354 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31355 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31356 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31357 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31358 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31359 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31360 vfmlsl_laneq_high_f16): ... To this.
31361 * config/arm/neon.md: Update comments.
31362
31363 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31364
31365 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31366 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31367 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31368 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31369 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31370 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31371 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31372 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31373 Rename ...
31374 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31375 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31376 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31377 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31378 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31379 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31380 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31381 vfmlslq_laneq_high_f16): ... To this.
31382
31383 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31384
31385 PR rtl-optimization/86096
31386 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31387 comparing mw_order values.
31388
31389 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31390
31391 PR target/89434
31392 * config/arm/arm.md (*subsi3_carryin_const): Use
31393 arm_neg_immediate_operand predicate instead of
31394 arm_not_immediate_operand, "L" constraint instead of "K" and
31395 print it using %n2 instead of %B2.
31396 (*subsi3_carryin_const0): New define_insn.
31397 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31398 instead of arm_not_operand and "I" constraint instead of "K" and
31399 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31400 another match_operand and in the condition check that it is negation
31401 of operands[2].
31402 (*subsi3_carryin_compare_const0): New define_ins.
31403 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31404 *subsi3_carryin_const.
31405 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31406 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31407
31408 PR target/89438
31409 * config/arm.vfp.md (*negdf2_vfp): Use
31410 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31411 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31412
31413 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31414
31415 PR rtl-optimization/89445
31416 * simplify-rtx.c (simplify_ternary_operation): Don't use
31417 simplify_merge_mask on operands that may trap.
31418 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31419 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31420 second operand is CONST_VECTOR, check if any element could be zero.
31421 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31422 their operands can trap.
31423
31424 2019-02-23 Martin Sebor <msebor@redhat.com>
31425
31426 * gimple-ssa-sprintf.c (target_strtol): Rename...
31427 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31428 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31429 check for range error.
31430
31431 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31432
31433 PR driver/69471
31434 * opts-common.c (prune_options): Also prune joined switches
31435 with Negative and RejectNegative.
31436 * config/i386/i386.opt (march=): Add Negative(march=).
31437 (mtune=): Add Negative(mtune=).
31438 * doc/options.texi: Document Negative used together with Joined
31439 and RejectNegative.
31440
31441 2019-02-22 Martin Sebor <msebor@redhat.com>
31442
31443 * doc/extend.texi (Other Builtins): Add
31444 __builtin_is_constant_evaluated.
31445
31446 2019-02-22 Richard Biener <rguenther@suse.de>
31447
31448 PR tree-optimization/87609
31449 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31450
31451 2019-02-22 Jeff Law <law@redhat.com>
31452
31453 PR rtl-optimization/87761
31454 * config/mips/mips.md: Add new combiner pattern to recognize
31455 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31456
31457 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31458
31459 PR target/89324
31460 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31461 destination register in peepholes generating patterns for ADDS/SUBS.
31462 (add<mode>3_compare0,
31463 *addsi3_compare0_uxtw, add<mode>3_compareC,
31464 add<mode>3_compareV_imm, add<mode>3_compareV,
31465 *adds_<optab><ALLX:mode>_<GPI:mode>,
31466 *subs_<optab><ALLX:mode>_<GPI:mode>,
31467 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31468 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31469 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31470 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31471 sub<mode>3_compare1): Allow stack pointer for source register.
31472 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31473
31474 2019-02-22 Martin Sebor <msebor@redhat.com>
31475
31476 PR tree-optimization/88993
31477 PR tree-optimization/88853
31478 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31479 New helper.
31480 (sprintf_dom_walker::call_info::is_string_func): New helper.
31481 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31482 for formatted string functions.
31483 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31484
31485 2019-02-22 Martin Sebor <msebor@redhat.com>
31486
31487 PR c/89425
31488 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31489 unreachable subexpressions.
31490
31491 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31492 Hongtao Liu <hongtao.liu@intel.com>
31493 Sunil K Pandey <sunil.k.pandey@intel.com>
31494
31495 PR target/87007
31496 * config/i386/i386-passes.def: Add
31497 pass_remove_partial_avx_dependency.
31498 * config/i386/i386-protos.h
31499 (make_pass_remove_partial_avx_dependency): New.
31500 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31501 New function.
31502 (pass_data_remove_partial_avx_dependency): New.
31503 (pass_remove_partial_avx_dependency): Likewise.
31504 (make_pass_remove_partial_avx_dependency): Likewise.
31505 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31506 (*extendsfdf2): Add avx_partial_xmm_update.
31507 (truncdfsf2): Likewise.
31508 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31509 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31510
31511 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31512
31513 PR middle-end/85598
31514 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31515 analysis for pass.
31516
31517 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31518
31519 PR target/89444
31520 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31521 (PTA_SKYLAKE): Add PTA_AES.
31522 (PTA_GOLDMONT): Likewise.
31523
31524 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31525
31526 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31527 instruction if enabled.
31528 (aarch64_override_options): Remove reference to return address key.
31529
31530 2019-02-22 Richard Biener <rguenther@suse.de>
31531
31532 PR tree-optimization/89440
31533 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31534 not necessary assert.
31535
31536 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31537
31538 PR fortran/72741
31539 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31540 (oacc_replace_fn_attrib_attr): ... this new function.
31541 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31542 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31543
31544 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31545
31546 * config/arm/arm-cpus.in (ares): Rename to...
31547 (neoverse-n1): ... This. Add ares as alias.
31548 * config/arm/arm-tables.opt: Regenerate.
31549 * config/arm/arm-tune.md: Likewise.
31550 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31551
31552 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31553
31554 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31555 * config/aarch64/aarch64-tune.md: Regenerate.
31556 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31557
31558 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31559
31560 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31561 (neoversen1_tunings): ... This.
31562 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31563 (neoverse-n1): New CPU.
31564 * config/aarch64/aarch64-tune.md: Regenerate.
31565 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31566
31567 2019-02-22 Richard Biener <rguenther@suse.de>
31568
31569 PR middle-end/87609
31570 * cfghooks.h (dependence_hash): New typedef.
31571 (struct copy_bb_data): New type.
31572 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31573 (duplicate_block): Likewise.
31574 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31575 (copy_bbs): Create and pass down copy_bb_data.
31576 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31577 (rtl_duplicate_bb): Likewise.
31578 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31579 remap dependence info.
31580
31581 2019-02-22 Richard Biener <rguenther@suse.de>
31582
31583 PR tree-optimization/87609
31584 * tree-core.h (tree_base): Document special clique values.
31585 * tree-inline.c (remap_dependence_clique): Do not use the
31586 special clique value of one.
31587 (maybe_set_dependence_info): Use clique one.
31588 (clear_dependence_clique): New callback.
31589 (compute_dependence_clique): Clear clique one from all refs
31590 before assigning it (again).
31591
31592 2019-02-21 Martin Sebor <msebor@redhat.com>
31593
31594 * doc/extend.texi (__clear_cache): Correct signature.
31595
31596 2019-02-21 Ian Lance Taylor <iant@golang.org>
31597
31598 PR go/89170
31599 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31600 than output_constant_def.
31601 (add_constant_to_table): New static function.
31602 (output_constant_def): Call add_constant_to_table.
31603 (tree_output_constant_def): Likewise.
31604
31605 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31606
31607 PR c++/89285
31608 * builtins.c (fold_builtin_arith_overflow): If first two args are
31609 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31610 to ifn.
31611
31612 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31613
31614 PR target/87412
31615 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31616 error for -mindirect-branch/-mfunction-return with incompatible
31617 -fcf-protection.
31618
31619 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31620
31621 PR bootstrap/88714
31622 * constraints.md (q): Remove.
31623 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31624 instead of q.
31625
31626 2019-02-21 Martin Jambor <mjambor@suse.cz>
31627
31628 PR hsa/89302
31629 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31630 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31631 (omp_adjust_for_condition): ...here. Added necessary parameters.
31632 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31633 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31634 proper values to new parameters of omp_adjust_for_condition.
31635
31636 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31637
31638 PR middle-end/89412
31639 * expr.c (expand_assignment): If result is a MEM, use change_address
31640 instead of simplify_gen_subreg.
31641
31642 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31643 David Malcolm <dmalcolm@redhat.com>
31644
31645 PR middle-end/89091
31646 * fold-const.c (decode_field_reference): Return NULL_TREE if
31647 lang_hooks.types.type_for_size returns NULL. Check it before
31648 overwriting *exp_. Use return NULL_TREE instead of return 0.
31649
31650 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31651
31652 PR middle-end/88074
31653 PR middle-end/89415
31654 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31655 buggy mpc_norm.
31656
31657 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31658
31659 PR target/89397
31660 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31661 TARGET_SSE in addition to TARGET_SSE_MATH.
31662
31663 (ix86_excess_precision): Ditto.
31664 (ix86_float_exceptions_rounding_supported_p): Ditto.
31665 (use_rsqrt_p): Ditto.
31666 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31667
31668 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31669
31670 PR c/89410
31671 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31672 linenum_arith_t when determining if two adjacent line spans are
31673 close enough to merge.
31674 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31675 lines within each line_span.
31676
31677 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31678
31679 PR target/86487
31680 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31681 paradoxical SUBREGS.
31682
31683 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31684
31685 PR target/88100
31686 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31687 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31688 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31689 range checking it.
31690
31691 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31692
31693 * config/gcn/gcn.c (print_operand): Fix typo.
31694
31695 2019-02-19 Richard Biener <rguenther@suse.de>
31696
31697 PR middle-end/88074
31698 * toplev.c (do_compile): Initialize mpfr's exponent range
31699 based on available float modes.
31700
31701 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31702
31703 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31704 as long as the epilogue isn't completed.
31705
31706 2019-02-18 Martin Sebor <msebor@redhat.com>
31707
31708 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31709 __has_cpp_attribute, and __has_include.
31710
31711 2019-02-18 Martin Sebor <msebor@redhat.com>
31712
31713 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31714
31715 2019-02-18 Martin Sebor <msebor@redhat.com>
31716
31717 PR middle-end/89294
31718 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31719 expression.
31720 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31721
31722 2019-02-18 Richard Biener <rguenther@suse.de>
31723
31724 PR tree-optimization/89296
31725 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31726 of no-warning flag to cases that might emit the bogus warning.
31727
31728 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31729
31730 PR bootstrap/88714
31731 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31732 "q" constraint.
31733 * config/arm/vfp.md (*movdi_vfp): Likewise.
31734 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31735 "q" constraint for operands[0].
31736
31737 PR target/89369
31738 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31739 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31740 pattern in a temporary buffer.
31741 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31742 than 64-operands[2].
31743
31744 PR target/89361
31745 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31746 s390_indirect_branch_settings): Define unconditionally.
31747 (s390_set_current_function): Likewise, but guard the whole body except
31748 the s390_indirect_branch_settings call with
31749 #if S390_USE_TARGET_ATTRIBUTE.
31750 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31751
31752 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31753 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31754 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31755 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31756 HOST_WIDE_INT_1U instead of 1ULL.
31757 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31758 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31759 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31760 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31761 instead of 1UL.
31762 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31763 instead of 1ul.
31764
31765 2019-02-18 Martin Jambor <mjambor@suse.cz>
31766
31767 PR tree-optimization/89209
31768 * tree-sra.c (create_access_replacement): New optional parameter
31769 reg_tree. Use it as a type if non-NULL and access type is not of
31770 a register type.
31771 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31772 to create_access_replacement.
31773 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31774 Check lacc is non-NULL before attempting to re-create it on the RHS.
31775
31776 2019-02-18 Martin Liska <mliska@suse.cz>
31777
31778 PR ipa/89306
31779 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31780 by default.
31781 (symbol_table::free_edge): Recycle m_summary_id.
31782 * cgraph.h (get_summary_id): New.
31783 (symbol_table::release_symbol): Set m_summary_id to -1
31784 by default.
31785 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31786 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31787 function_summary to fast_function_summary.
31788 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31789 * ipa-pure-const.c (class funct_state_summary_t):
31790 Switch from function_summary to fast_function_summary.
31791 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31792 (class ipa_ref_opt_summary_t): Switch from function_summary
31793 to fast_function_summary.
31794 * symbol-summary.h (class function_summary_base): New class
31795 that is created from base of former function_summary.
31796 (function_summary_base::unregister_hooks): New.
31797 (class function_summary): Inherit from function_summary_base.
31798 (class call_summary_base): New class
31799 that is created from base of former call_summary.
31800 (class call_summary): Inherit from call_summary_base.
31801 (struct is_same): New.
31802 (class fast_function_summary): New summary class.
31803 (class fast_call_summary): New summary class.
31804 * vec.h (vec_safe_grow_cleared): New function.
31805
31806 2019-02-18 Martin Liska <mliska@suse.cz>
31807
31808 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31809 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31810 * doc/tm.texi: Document new target hook.
31811 * doc/tm.texi.in: Likewise.
31812 * target.def: Add new target macro.
31813 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31814 suffixes.
31815
31816 2019-02-17 Alan Modra <amodra@gmail.com>
31817
31818 PR target/89271
31819 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31820 output reg on add insn.
31821 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31822
31823 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31824
31825 PR target/89372
31826 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31827 (PMULHRSW): Likewise.
31828 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31829 TARGET_AVX2.
31830 (ssse3_pmulhrswv4hi3): New expander.
31831
31832 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31833
31834 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31835 MMX. Add isa attribute.
31836
31837 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31838
31839 PR rtl-optimization/66152
31840 * builtins.h (c_readstr): Declare.
31841 * builtins.c (c_readstr): Remove forward declaration. Add
31842 null_terminated_p argument, if false, read all bytes from the
31843 string instead of stopping after '\0'.
31844 * expr.c (string_cst_read_str): New function.
31845 (store_expr): Use string_cst_read_str instead of
31846 builtin_strncpy_read_str. Try to store by pieces the whole
31847 exp_len first, and only if that fails, split it up into
31848 store by pieces followed by clear_storage. Formatting fix.
31849
31850 * config/i386/i386.md (*movqi_internal): Remove static from
31851 buf variable. Use output_asm_insn (buf, operands); return "";
31852 instead of return buf;.
31853 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31854 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31855 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31856
31857 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31858
31859 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31860 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31861 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31862 (CC1_SPEC): Likewise.
31863 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31864
31865 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31866
31867 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31868 the base address on 64-bit strict-alignment platforms.
31869
31870 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31871
31872 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31873
31874 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31875
31876 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31877
31878 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31879
31880 PR rtl-optimization/88308
31881 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31882 on copied instruction.
31883
31884 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31885
31886 * final.c (insn_current_reference_address): Replace test on JUMP_P
31887 with test on jump_to_label_p.
31888 * config/visium/visium-passes.def: New file.
31889 * config/visium/t-visium (PASSES_EXTRA): Define.
31890 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31891 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31892 (TRAMPOLINE_ALIGNMENT): Define.
31893 * config/visium/visium.c (visium_option_override): Do not register
31894 the machine-specific reorg pass here.
31895 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31896 for the GR6.
31897 (output_branch): Adjust threshold for long branch instruction.
31898 * config/visium/visium.md (cpu): Move around.
31899 (length): Adjust for the GR6.
31900
31901 2019-02-15 Richard Biener <rguenther@suse.de>
31902 Jakub Jelinek <jakub@redhat.com>
31903
31904 PR tree-optimization/89278
31905 * tree-loop-distribution.c: Include tree-eh.h.
31906 (generate_memset_builtin, generate_memcpy_builtin): Call
31907 rewrite_to_non_trapping_overflow on builtin->size before passing it
31908 to force_gimple_operand_gsi.
31909
31910 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31911
31912 PR other/89342
31913 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31914 optimize_debug.
31915 * opth-gen.awk: Likewise.
31916
31917 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31918
31919 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31920 Enable MMX, SSE and SSE2 by default.
31921 * config/i386/i386.c (ix86_option_override_internal): Do not
31922 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31923
31924 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31925
31926 PR rtl-optimization/89354
31927 * combine.c (make_extraction): Punt if extraction_mode is narrower
31928 than len bits.
31929
31930 2019-02-14 Maya Rashish <coypu@sdf.org>
31931
31932 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31933 * config/netbsd-d.c: New file.
31934 * config/t-netbsd: Add netbsd-d.o
31935
31936 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31937
31938 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31939 affects_type_identity to true for aarch64_vector_pcs.
31940 (aarch64_comp_type_attributes): New function.
31941 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31942
31943 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31944
31945 PR target/88850
31946 * config/arm/iterators.md (ANY64): Add V4HF.
31947
31948 2019-02-14 Martin Liska <mliska@suse.cz>
31949
31950 PR rtl-optimization/89242
31951 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31952 process a transformation.
31953
31954 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31955
31956 PR tree-optimization/89314
31957 * fold-const.c (fold_binary_loc): Cast strlen argument to
31958 const char * before dereferencing it. Formatting fixes.
31959
31960 PR middle-end/89284
31961 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31962
31963 2019-02-13 Ian Lance Taylor <iant@golang.org>
31964
31965 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31966 and set current index for other optimizations.
31967
31968 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31969
31970 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31971 nonimmediate_operand as operand 2 predicate.
31972 (vec_set<VF2_512_256:mode>_0): Ditto.
31973 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31974 (*vec_concatv2si): Remove alternative 2.
31975 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31976 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31977 (vec_concatv2di): Split alternatives 4,5,6 to ...
31978 (*vec_concatv2di_0) ... new pattern.
31979
31980 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31981
31982 PR target/89190
31983 * config/arm/arm.c (ldm_stm_operation_p) Set
31984 addr_reg_in_reglist correctly for first register.
31985 (load_multiple_sequence): Remove dead base check.
31986 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31987
31988 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31989
31990 PR target/88847
31991 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31992 Expose as @aarch64_pred_mov.
31993 * config/aarch64/aarch64.c (aarch64_classify_address):
31994 Use expand_insn which legitimizes operands.
31995
31996 2019-02-13 Martin Liska <mliska@suse.cz>
31997
31998 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31999 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32000 and pointer_offset fields.
32001 (initialize_argument_information): Remove usage of dead
32002 fields.
32003 * cgraph.h (struct cgraph_thunk_info): Remove
32004 add_pointer_bounds_args.
32005 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32006 fields.
32007 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32008 fields.
32009 * config/i386/i386.c (ix86_function_arg_advance): Remove
32010 unrelated comment.
32011 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32012 (def_builtin): Remove usage of dead fields.
32013 (ix86_add_new_builtins): Likewise.
32014 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32015 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32016 (sem_function::init): Likewise.
32017 (sem_variable::merge): Likewise.
32018 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32019 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32020 * lto-cgraph.c (lto_output_node): Likewise.
32021 (lto_output_varpool_node): Likewise.
32022 (input_node): Likewise.
32023 (input_varpool_node): Likewise.
32024 * lto-streamer-out.c (lto_output): Likewise.
32025 * tree-inline.c (expand_call_inline): Remove usage of
32026 assign_stmts.
32027 * tree-inline.h (struct copy_body_data): Likewise.
32028 * varpool.c (varpool_node::dump): Likewise.
32029
32030 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32031
32032 PR middle-end/89303
32033 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32034 into pt->vars_contains_escaped_heap instead of setting
32035 pt->vars_contains_escaped_heap to it.
32036
32037 PR middle-end/89281
32038 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32039 INTVAL (size), compare it to GET_MODE_MASK instead of
32040 1 << GET_MODE_BITSIZE.
32041
32042 PR target/89290
32043 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32044 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32045 -mcmodel=large.
32046
32047 2019-02-13 Martin Liska <mliska@suse.cz>
32048
32049 PR lto/88858
32050 * cfgrtl.c (remove_barriers_from_footer): New function.
32051 (try_redirect_by_replacing_jump): Use it.
32052 (cfg_layout_redirect_edge_and_branch): Likewise.
32053
32054 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32055
32056 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32057 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32058 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32059 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32060 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32061 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32062 New BU_CRYPTO_2.
32063 * config/rs6000/rs6000.c (builtin_function_type)
32064 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32065 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32066 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32067 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32068 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32069
32070 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32071
32072 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32073 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32074
32075 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32076
32077 PR target/89229
32078 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32079 268678 and revision 268657.
32080 (*movti_internal): Likewise.
32081
32082 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32083
32084 PR target/89233
32085 * config/s390/s390.c (s390_decompose_address): Update comment.
32086 (s390_check_qrst_address): Reject invalid address forms after
32087 LRA.
32088
32089 2019-02-12 Martin Liska <mliska@suse.cz>
32090
32091 PR lto/88876
32092 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32093 we need default values of funct_state for a function that
32094 is not optimized.
32095
32096 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32097
32098 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32099 the object to pick the size of stores on strict-alignment platforms.
32100
32101 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32102 (*movdi_insn_sp32): Likewise.
32103 (*movdi_insn_sp64): Likewise.
32104
32105 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32106
32107 PR lto/88677
32108 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32109 types that needs constructiong.
32110 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32111
32112 2019-02-12 Richard Biener <rguenther@suse.de>
32113
32114 PR tree-optimization/89253
32115 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32116 duplicate the loop.
32117
32118 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32119
32120 PR lto/88147
32121 * input.c (selftest::test_line_offset_overflow): New selftest.
32122 (selftest::input_c_tests): Call it.
32123
32124 2019-02-11 Martin Sebor <msebor@redhat.com>
32125
32126 PR tree-optimization/88771
32127 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32128 when -Wstringop-overflow is set.
32129 (builtin_memref::builtin_memref): Adjust excessive upper bound
32130 only when lower bound is not excessive.
32131 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32132 -Wstringop-ovefflow.
32133 (maybe_diag_offset_bounds): Rename...
32134 (maybe_diag_access_bounds): ...to this.
32135 (check_bounds_or_overlap): Adjust for name change above.
32136
32137 2019-02-11 Martin Sebor <msebor@redhat.com>
32138
32139 PR c++/87996
32140 * builtins.c (max_object_size): Move from here...
32141 * builtins.h (max_object_size): ...and here...
32142 * tree.c (max_object_size): ...to here...
32143 * tree.h (max_object_size): ...and here.
32144
32145 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32146
32147 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32148 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32149 for correct semantics.
32150
32151 2019-02-11 Alan Modra <amodra@gmail.com>
32152
32153 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32154 -mlongcall and -mpltseq.
32155 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32156 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32157 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32158 * config/rs6000/sysv4.opt (mpltseq): New option.
32159 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32160 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32161 support is lacking. Don't allow -mpltseq with -mbss-plt.
32162 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32163 -mpltseq given for ELFv1.
32164 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32165 Only use UNSPEC_PLTSEQ for inline PLT calls.
32166 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32167 use UNSPEC_PLTSEQ for inline PLT calls.
32168 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32169 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32170 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32171 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32172 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32173 (pltseq_mtctr_<mode>): Likewise.
32174
32175 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32176
32177 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32178 Solaris ld.
32179 * configure: Regenerate.
32180
32181 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32182
32183 PR bootstrap/88714
32184 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32185 instead of r.
32186
32187 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32188
32189 * function.c (assign_parm_setup_block): Use the stored
32190 size, not the passed size, when allocating stack-space,
32191 also for a parameter with alignment larger than
32192 MAX_SUPPORTED_STACK_ALIGNMENT.
32193
32194 2019-02-11 Martin Liska <mliska@suse.cz>
32195
32196 PR ipa/89009
32197 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32198 * ipa-inline.c (inline_small_functions): Likewise.
32199 * ipa-pure-const.c (propagate_pure_const): Likewise.
32200 (propagate_nothrow): Likewise.
32201 * ipa-reference.c (propagate): Likewise.
32202 * ipa-utils.c (struct searchc_env): Remove unused field.
32203 (searchc): Always search across AVAIL_INTERPOSABLE.
32204 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32205 the only called IPA pure const can properly not propagate
32206 across interposable boundary.
32207 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32208
32209 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32210
32211 * config/nds32/nds32.md (call_internal, call_value_internal,
32212 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32213
32214 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32215
32216 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32217 typo.
32218
32219 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32220
32221 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32222 in comments
32223
32224 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32225
32226 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32227
32228 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32229
32230 PR tree-optimization/89268
32231 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32232 if preds is non-NULL.
32233
32234 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32235
32236 PR lto/89272
32237 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32238 polymorphic types.
32239
32240 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32241
32242 * config/nds32/nds32.md (trap): New pattern.
32243
32244 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32245
32246 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32247 dwarf span.
32248
32249 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32250
32251 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32252 to split POST_INC.
32253
32254 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32255
32256 * ipa-visibility.c (localize_node): Also do not localize
32257 LDPR_PREVAILING_DEF_IRONLY_EXP.
32258
32259 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32260
32261 PR lto/87957
32262 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32263 instead of type_with_linkage.
32264
32265 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32266
32267 PR ipa/88755
32268 * params.def (uninlined-function-insns, uninlined-function-time,
32269 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32270 bound so we don't get overflows.
32271
32272 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32273
32274 * config/rs6000/rs6000-string.c (expand_compare_loop,
32275 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32276 memcmp/strncmp.
32277
32278 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32279
32280 PR middle-end/89246
32281 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32282 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32283 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32284
32285 2019-02-09 Alan Modra <amodra@gmail.com>
32286
32287 PR target/88343
32288 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32289 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32290 setup.
32291
32292 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32293
32294 PR middle-end/88560
32295 * lra-constraints.c (process_alt_operands): Don't increase reject
32296 for memory when offset memory is required.
32297
32298 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32299
32300 * config/s390/vector.md: Implement vector copysign.
32301
32302 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32303
32304 * expr.c (expand_constructor): Correct indentations.
32305
32306 2019-02-08 Richard Biener <rguenther@suse.de>
32307
32308 PR tree-optimization/89247
32309 * tree-if-conv.c: Include tree-cfgcleanup.h.
32310 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32311 (tree_if_conversion): Pass through predicate vector.
32312 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32313 inline, see if any if-converted loops we refrece in
32314 LOOP_VECTORIZED calls vanished and fixup.
32315 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32316
32317 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32318
32319 * config/s390/constraints.md (jdd): New constraint.
32320
32321 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32322
32323 PR target/89229
32324 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32325 upper 16 vector registers without TARGET_AVX512VL.
32326 (*movti_internal): Likewise.
32327
32328 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32329
32330 PR rtl-optimization/89234
32331 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32332 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32333 (copy_reg_eh_region_note_backward): Likewise.
32334
32335 2019-02-08 Richard Biener <rguenther@suse.de>
32336
32337 PR middle-end/89223
32338 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32339 doesn't fit in HWI.
32340 (analyze_subscript_affine_affine): Handle failure from
32341 initialize_matrix_A.
32342
32343 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32344
32345 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32346 cfun everywhere.
32347
32348 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32349
32350 PR tree-optimization/86637
32351 PR tree-optimization/89235
32352 * tree-vect-loop.c (optimize_mask_stores): Add an
32353 auto_purge_vect_location sentinel to ensure that vect_location is
32354 purged on exit.
32355 * tree-vectorizer.c
32356 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32357 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32358 to ensure that vect_location is purged on exit.
32359 (pass_slp_vectorize::execute): Likewise, replacing the manual
32360 reset.
32361 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32362
32363 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32364
32365 * config/aarch64/iterators.md (max_opp): New code_attr.
32366 (USMAX): New code iterator.
32367 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32368 (aarch64_smax): Likewise.
32369 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32370 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32371 MINUS (MAX MIN).
32372
32373 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32374
32375 PR target/89229
32376 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32377 for TARGET_AVX512VL.
32378 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32379
32380 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32381
32382 * config/s390/s390-builtin-types.def: Add new types.
32383 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32384 (s390_vec_xlw4): Make the memory operand into a const pointer.
32385 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32386 float.
32387 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32388 a new vector type with the alignment of the scalar memory operand.
32389
32390 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32391 Jakub Jelinek <jakub@redhat.com>
32392
32393 PR bootstrap/88714
32394 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32395 arm_count_ldrdstrd_insns): New declarations.
32396 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32397 MINUS.
32398 (valid_operands_ldrd_strd): New function.
32399 (arm_count_ldrdstrd_insns): New function.
32400 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32401 sets instead of single DImode set and define new insns to match this.
32402
32403 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32404
32405 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32406 Make it a C initializer.
32407
32408 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32409
32410 PR/target 88850
32411 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32412
32413 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32414
32415 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32416 Use neon_dot<q> for type.
32417 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32418
32419 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32420
32421 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32422 Use neon_dot<q> for type.
32423 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32424 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32425
32426 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32427
32428 PR rtl-optimization/89225
32429 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32430 sizes check.
32431
32432 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32433
32434 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32435 after restoring registers saved to allocate the frame on Windows.
32436
32437 2019-02-06 Richard Biener <rguenther@suse.de>
32438
32439 PR tree-optimization/89182
32440 * graphite.h (cached_scalar_evolution_in_region): Declare.
32441 * graphite.c (struct seir_cache_key): New.
32442 (struct sese_scev_hash): Likewise.
32443 (seir_cache): New global.
32444 (cached_scalar_evolution_in_region): New function.
32445 (graphite_transform_loops): Allocate and release seir_cache.
32446 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32447 cached_scalar_evolution_in_region.
32448 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32449 Simplify.
32450 (scop_detection::graphite_can_represent_expr: Use
32451 cached_scalar_evolution_in_region.
32452 (scop_detection::stmt_simple_for_scop_p): Likewise.
32453 (find_params_in_bb): Likewise.
32454 (gather_bbs::before_dom_children): Likewise.
32455 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32456 (add_loop_constraints): Likewise.
32457
32458 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32459
32460 PR middle-end/89210
32461 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32462 operand to new_unary_operation only if both element types are integral
32463 and it isn't a widening conversion. Return NULL_TREE if
32464 new_unary_operation failed.
32465
32466 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32467
32468 PR target/88856
32469 * config/s390/s390.md: Remove load and test FP splitter.
32470
32471 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32472
32473 PR target/89112
32474 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32475 expand_compare_loop, expand_block_compare_gpr,
32476 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32477 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32478 #include "profile-count.h" and "predict.h" for types and functions
32479 needed to work with REG_BR_PROB notes.
32480
32481 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32482
32483 PR target/89112
32484 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32485 for the long branch case.
32486
32487 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32488
32489 PR target/89188
32490 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32491 can throw, non-call exceptions are enabled and we can't delete
32492 dead exceptions or alter cfg. Set must_clean if
32493 delete_insn_and_edges returns true, don't set it blindly for calls.
32494 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32495
32496 PR rtl-optimization/89195
32497 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32498 of the original MEM.
32499
32500 2019-02-05 Martin Liska <mliska@suse.cz>
32501
32502 PR gcov-profile/89000
32503 * gcov.c (function_summary): Remove argument.
32504 (file_summary): New function.
32505 (print_usage): Replace tabs with spaces.
32506 (generate_results): Use new function file_summary.
32507
32508 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32509
32510 PR target/89186
32511 * optabs.c (prepare_cmp_insn): Pass x and y to
32512 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32513
32514 2019-02-05 Richard Biener <rguenther@suse.de>
32515
32516 PR middle-end/89150
32517 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32518 (struct bitmap_element): Drop chain_prev so we properly recurse on
32519 the prev member, supporting tree views.
32520 (struct bitmap_head): GTY skip the obstack member.
32521
32522 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32523
32524 PR c/88698
32525 * doc/extend.texi (Vector Extensions): Add an example of using vector
32526 types together with x86 intrinsics.
32527
32528 2019-02-04 Alan Modra <amodra@gmail.com>
32529
32530 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32531 str[] size to 160, and comment.
32532
32533 2019-02-04 Alan Modra <amodra@gmail.com>
32534
32535 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32536 (rs6000_pltseq_template): Guard output of TLS markers with
32537 TARGET_TLS_MARKERS.
32538 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32539 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32540 to use inline PLT sequences.
32541 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32542 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32543 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32544
32545 2019-02-04 Martin Liska <mliska@suse.cz>
32546
32547 PR ipa/88985
32548 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32549 out when ipa_fn_summaries does not contain entry for callee.
32550
32551 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32552
32553 * config/sparc/sparc.h: Remove superfluous blank lines.
32554 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32555 (got_register_rtx): ...this.
32556 (sparc_got): Adjust to above renaming.
32557 (sparc_tls_got): Likewise.
32558 (sparc_delegitimize_address): Likewise.
32559 (sparc_output_mi_thunk): Likewise.
32560 (sparc_init_pic_reg): Likewise.
32561 (save_local_or_in_reg_p): Fix test on the GOT register.
32562 (USE_HIDDEN_LINKONCE): Move around.
32563 (get_pc_thunk_name): Likewise.
32564 (gen_load_pcrel_sym): Likewise.
32565 (load_got_register): Likewise.
32566
32567 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32568
32569 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32570 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32571
32572 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32573
32574 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32575 into consideration.
32576
32577 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32578
32579 * config.gcc (with_nds32_lib, glibc):
32580 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32581 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32582 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32583
32584 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32585
32586 PR target/89071
32587 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32588 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32589 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32590 (*rcpsf2_sse): Ditto.
32591 (*rsqrtsf2_sse): Ditto.
32592 (sse4_1_round<mode<2): Ditto.
32593
32594 2019-02-03 Richard Biener <rguenther@suse.de>
32595
32596 PR debug/87295
32597 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32598 orig.
32599
32600 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32601
32602 PR middle-end/87887
32603 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32604 Punt with warning on aggregate return or argument types. Ignore
32605 type/mode checking for uniform arguments.
32606
32607 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32608
32609 * combine.c (try_combine): Do not print "Can't combine" messages unless
32610 printing failed combination attempts.
32611
32612 2019-02-01 Martin Jambor <mjambor@suse.cz>
32613
32614 PR hsa/87863
32615 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32616 segment and global segment variables before making them static.
32617
32618 2019-02-01 Martin Jambor <mjambor@suse.cz>
32619
32620 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32621 missed optimization dump with dump_enabled_p.
32622
32623 2019-02-01 Richard Biener <rguenther@suse.de>
32624
32625 PR middle-end/88597
32626 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32627 the instantiate cache.
32628 (instantiate_scev_binary): Elide second operand procesing
32629 if equal to the first.
32630 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32631 (chrec_contains_undetermined): Likewise.
32632 (tree_contains_chrecs): Likewise.
32633
32634 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32635
32636 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32637
32638 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32639
32640 PR tree-optimization/89143
32641 * wide-int-range.h (wide_int_range_absu): Declare.
32642 * wide-int-range.cc (wide_int_range_absu): New function.
32643 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32644
32645 PR tree-optimization/88107
32646 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32647 instead of assertion that eh_region_outermost is non-NULL, if it
32648 is NULL, set *ALL to true and return NULL.
32649 (move_sese_region_to_fn): Adjust caller, if all is set, call
32650 duplicate_eh_regions with NULL region.
32651
32652 2019-02-01 Richard Biener <rguenth@suse.de>
32653
32654 PR rtl-optimization/88593
32655 * mode-switching.c (optimize_mode_switching): Free dominators before
32656 calling cleanup_cfg.
32657
32658 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32659
32660 PR tree-optimization/88932
32661 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32662
32663 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32664
32665 PR middle-end/89137
32666 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32667 bogus clang warning.
32668
32669 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32670
32671 PR target/89071
32672 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32673 alternative to avoid partial SSE register stall for TARGET_AVX.
32674 (truncdfsf2): Ditto.
32675 (sse4_1_round<mode>2): Ditto.
32676
32677 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32678
32679 PR tree-optimization/89008
32680 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32681 process anything of the form X * 0.
32682
32683 2019-01-31 Richard Biener <rguenther@suse.de>
32684
32685 PR tree-optimization/89135
32686 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32687 with abnormal preds.
32688
32689 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32690
32691 PR sanitizer/89124
32692 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32693 always_inline callees into no_sanitize_address callers.
32694
32695 2019-01-31 Richard Biener <rguenther@suse.de>
32696
32697 PR rtl-optimization/89115
32698 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32699
32700 2019-01-30 Martin Sebor <msebor@redhat.com>
32701
32702 PR other/89106
32703 * doc/extend.texi (cast to a union): Correct and expand.
32704
32705 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32706
32707 PR rtl-optimization/87246
32708 * lra-constraints.c (simplify_operand_subreg): Reload memory
32709 in subreg if the address became invalid.
32710
32711 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32712
32713 PR target/87064
32714 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32715 Disable for little-endian.
32716
32717 2019-01-30 Richard Biener <rguenther@suse.de>
32718
32719 PR rtl-optimization/89115
32720 * opts.c (default_options_optimization): Reduce
32721 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32722 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32723 to the default.
32724
32725 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32726
32727 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32728 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32729 type of vector element when vec_extract is implemented by direct
32730 move.
32731
32732 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32733
32734 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32735
32736 2019-01-30 Richard Biener <rguenther@suse.de>
32737
32738 PR tree-optimization/89111
32739 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32740 canonicalization to appropriately sized access types.
32741
32742 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32743
32744 PR c++/89105
32745 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32746 for arguments to functions that are TU-local and shouldn't be
32747 referenced by assembly.
32748
32749 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32750
32751 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32752 after '='.
32753
32754 2019-01-29 Martin Sebor <msebor@redhat.com>
32755
32756 PR c/88956
32757 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32758
32759 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32760
32761 PR c++/66676
32762 PR ipa/89104
32763 * omp-simd-clone.c (simd_clone_clauses_extract)
32764 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32765 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32766
32767 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32768
32769 * config.gcc: Force .init_array for ARC.
32770
32771 2019-01-29 Richard Biener <rguenther@suse.de>
32772
32773 PR debug/87295
32774 * dwarf2out.c (collect_skeleton_dies): New helper.
32775 (copy_decls_for_unworthy_types): Call it.
32776 (build_abbrev_table): Assert we do not try to replace
32777 DW_AT_signature refs with local refs.
32778
32779 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32780
32781 PR middle-end/89002
32782 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32783 for lastprivate/linear IV, push gimplify context around gimplify_assign
32784 and, if it needed any temporaries, pop it into a gimple bind around the
32785 sequence.
32786
32787 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32788
32789 * common.opt (-Wattribute-alias): Remove "no-" from name.
32790 Make -Wattribute-alias command line option and
32791 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32792
32793 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32794
32795 PR target/89073
32796 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32797 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32798 x86 ISA options.
32799 (bmi2): Add missing @opindex.
32800 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32801 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32802 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32803 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32804 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32805 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32806 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32807 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32808 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32809 xsavec, xsaveopt and xsaves options.
32810
32811 2019-01-28 Richard Biener <rguenther@suse.de>
32812
32813 PR debug/89076
32814 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32815 support removal.
32816
32817 2019-01-28 Richard Biener <rguenther@suse.de>
32818
32819 PR tree-optimization/88739
32820 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32821 BIT_FIELD_REFs only are applied to mode-precision operands
32822 when they are integral.
32823 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32824 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32825 BIT_FIELD_REFs of non-mode-precision integral operands.
32826
32827 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32828
32829 PR target/87214
32830 * config/i386/sse.md
32831 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32832 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32833 first constants in pairs are multiples of 2. Formatting fixes.
32834 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32835 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32836 first constants in each quadruple are multiples of 4. Formatting fixes.
32837
32838 2019-01-26 Martin Jambor <mjambor@suse.cz>
32839
32840 PR ipa/88933
32841 * tree-inline.c: Include tree-cfgcleanup.h.
32842 (delete_unreachable_blocks_update_callgraph): Move...
32843 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32844 ...here, make externally visible, make second argument bool, adjust
32845 all callers.
32846 * tree-cfgcleanup.c: Include cgraph.h.
32847 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32848 Declare.
32849 * ipa-prop.c: Include tree-cfgcleanup.h.
32850 (ipcp_transform_function): Call
32851 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32852
32853 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32854
32855 PR rtl-optimization/88846
32856 * ira.c (process_set_for_memref_referenced_p): New.
32857 (memref_referenced_p): Add new param. Use
32858 process_set_for_memref_referenced_p. Add new switch cases.
32859 (memref_used_between_p): Pass new arg to memref_referenced_p.
32860
32861 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32862
32863 PR target/88469
32864 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32865 argument ABI_BREAK. Set to true if the calculated alignment has
32866 changed in gcc-9. Check bit-fields for their base type alignment.
32867 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32868 (aarch64_function_arg_boundary): Likewise.
32869 (aarch64_gimplify_va_arg_expr): Likewise.
32870
32871 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32872
32873 PR middle-end/89037
32874 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32875 instead of accessing TREE_INT_CST_ELT directly.
32876
32877 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32878
32879 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32880 fenv_exceptions description.
32881
32882 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32883
32884 PR rtl-optimization/87763
32885 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32886 Allow SUBREG when matching CC_NZmode compare.
32887
32888 2019-01-25 Richard Biener <rguenther@suse.de>
32889
32890 PR tree-optimization/89049
32891 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32892 Look at the pattern stmt to determine if the stmt is vectorized.
32893
32894 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32895
32896 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32897 (pred_mov<mode>): Handle all-register forms using both a new
32898 alternative and a split.
32899
32900 2019-01-25 Richard Biener <rguenther@suse.de>
32901
32902 PR tree-optimization/86865
32903 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32904 Reject non-do-while loops.
32905
32906 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32907
32908 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32909 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32910 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32911 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32912 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32913 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32914 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32915 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32916 vlogical_operand, gpc_reg_operand, int_reg_operand,
32917 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32918 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32919 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32920 (save_world_operation, restore_world_operation, lmw_operation,
32921 stmw_operation): Use MEM_P and REG_P.
32922 (tie_operand): Use MEM_P.
32923 (vrsave_operation, crsave_operation): Use REG_P.
32924 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32925 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32926 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32927 (call_operand): Use HARD_REGISTER_P.
32928 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32929 Use CONST_INT_P.
32930 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32931 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32932 quad_aligned_load_p, replace_swapped_aligned_store,
32933 recombine_lvx_pattern, replace_swapped_aligned_load,
32934 recombine_stvx_pattern): Use MEM_P.
32935 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32936 Use MEM_P and SYMBOL_REF_P.
32937 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32938 (insn_is_swappable_p): Use REG_P and MEM_P.
32939 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32940 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32941 Use CONST_INT_P.
32942 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32943 Use CONST_DOUBLE_P.
32944 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32945 CONST_WIDE_INT_P.
32946 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32947 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32948 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32949 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32950 reg_or_subregno:
32951 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32952 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32953 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32954 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32955 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32956 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32957 rs6000_split_logical_di): Use CONST_INT_P.
32958 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32959 REG_P and SYMBOL_REF_P.
32960 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32961 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32962 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32963 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32964 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32965 (small_data_operand, print_operand_address): Use CONST_INT_P and
32966 SYMBOL_REF_P.
32967 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32968 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32969 Use HARD_REGISTER_NUM_P.
32970 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32971 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32972 SUBREG_P and SYMBOL_REF_P.
32973 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32974 and HARD_REGISTER_NUM_P.
32975 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32976 reg_or_subregno.
32977 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32978 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32979 MEM_P and REG_P.
32980 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32981 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32982 find_addr_reg): Use REG_P.
32983 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32984 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32985 (offsettable_ok_by_alignment, constant_pool_expr_p,
32986 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32987 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32988 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32989 rs6000_assemble_integer, create_TOC_reference,
32990 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32991 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32992 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32993 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32994 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32995 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32996 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32997 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32998 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32999 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33000 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33001 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33002 and cbranch<mode>4): Use CONST_INT_P.
33003 (multiple define_splits): Use REG_P and SUBREG_P.
33004 (define_expands call, call_value): Use MEM_P.
33005 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33006 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33007 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33008 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33009 and HARD_REGISTER_NUM_P.
33010 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33011
33012 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33013
33014 PR rtl-optimization/88948
33015 * rtl.h (prepare_copy_insn): New prototype.
33016 * gcse.c (prepare_copy_insn): New function, split out from
33017 process_insert_insn.
33018 (process_insert_insn): Use prepare_copy_insn.
33019 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33020 instead of gen_move_insn.
33021
33022 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33023
33024 PR debug/89006
33025 * config/i386/i386.c (ix86_pic_register_p): Return true for
33026 UNSPEC_SET_GOT too.
33027
33028 PR tree-optimization/88964
33029 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33030 punt if HONOR_SNANS (chrec).
33031
33032 PR middle-end/89015
33033 * tree-nested.c (convert_nonlocal_reference_stmt,
33034 convert_local_reference_stmt, convert_tramp_reference_stmt,
33035 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33036 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33037 or GIMPLE_OMP_TASK.
33038
33039 PR tree-optimization/89027
33040 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33041 for "omp simd array" variables.
33042
33043 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33044
33045 PR target/88469
33046 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33047 force the alignment of m_val.
33048
33049 2019-01-24 Richard Biener <rguenther@suse.de>
33050
33051 PR lto/87187
33052 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33053 When in "legacy" debug mode make sure to reset self-origins.
33054
33055 2019-01-24 Martin Liska <mliska@suse.cz>
33056
33057 PR gcov-profile/88994
33058 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33059 result will be always smaller or equal to the original.
33060 * gcov.c (mangle_name): Fix else branch where we should
33061 also copy to PTR and shift the pointer.
33062
33063 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33064
33065 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33066 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33067
33068 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33069
33070 * common/config/i386/i386-common.c
33071 (OPTION_MASK_ISA_ENQCMD_SET,
33072 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33073 (ix86_handle_option): Handle -menqcmd.
33074 * config.gcc (enqcmdintrin.h): New header file.
33075 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33076 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33077 -menqcmd.
33078 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33079 function type.
33080 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33081 __builtin_ia32_enqcmds): New builtins.
33082 * config/i386/i386-c.c (__ENQCMD__): New macro.
33083 * config/i386/i386-option.c (ix86_target_string): Add
33084 -menqcmd.
33085 (ix86_valid_target_attribute_inner_p): Likewise.
33086 * config/i386/i386-expand.c
33087 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33088 IX86_BUILTIN_ENQCMDS.
33089 * config/i386/i386.h (TARGET_ENQCMD): New.
33090 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33091 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33092 (movdir64b_<mode>): Parameterize to enable share expansion code
33093 with ENQCMD in function ix86_expand_builtin.
33094 * config/i386/i386.opt: Add -menqcmd.
33095 * config/i386/immintrin.h: Include enqcmdintrin.h.
33096 * config/i386/enqcmdintrin.h: New intrinsic file.
33097 * doc/invoke.texi: Add -menqcmd.
33098
33099 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33100 Steve Ellcey <sellcey@marvell.com>
33101
33102 PR target/85711
33103 * recog.c (address_operand): Return false on wrong mode for address.
33104 (constrain_operands): Check for mode with 'p' constraint.
33105
33106 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33107
33108 PR target/88998
33109 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33110 Disparage MMX alternative.
33111 (sse2_cvtpd2pi): Ditto.
33112 (sse2_cvttpd2pi): Ditto.
33113
33114 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33115
33116 PR driver/89014
33117 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33118 use-after-free of the result of
33119 aarch64_get_extension_string_for_isa_flags.
33120
33121 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33122
33123 PR c/44715
33124 * doc/extend.texi: Document break and continue behavior in
33125 statement expressions.
33126
33127 2019-01-23 Richard Biener <rguenther@suse.de>
33128
33129 PR tree-optimization/89008
33130 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33131 not leave another stray operand.
33132
33133 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33134
33135 * BASE-VER: Bump to 9.0.1.
33136
33137 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33138
33139 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33140 thunk that returns by reference, use the type of the return object
33141 of the thunk instead of that of the alias to build the dereference.
33142
33143 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33144
33145 * config/arc/atomic.md: Add operand to DMB instruction.
33146
33147 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33148
33149 PR tree-optimization/88964
33150 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33151 build_zero_cst instead of build_int_cst. Return false for loop
33152 invariants which honor signed zeros.
33153
33154 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33155
33156 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33157
33158 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33159
33160 PR target/88965
33161 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33162 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33163 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33164
33165 PR middle-end/88968
33166 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33167 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33168
33169 PR target/87064
33170 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33171 Disable for little endian.
33172
33173 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33174
33175 PR target/88469
33176 * config/arm/arm.c (arm_needs_double_word_align): Check
33177 DECL_BIT_FIELD_TYPE.
33178
33179 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33180 H.J. Lu <hongjiu.lu@intel.com>
33181
33182 PR target/88909
33183 * config/i386/i386-builtin.def: Add mask2 to all builtin
33184 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33185 SPECIAL_ARGS.
33186 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33187 (BDESC_FIRST): Likewise.
33188 (define_builtin): Add an argument for mask2. Updated to handle
33189 both ix86_isa_flags and ix86_isa_flags2.
33190 (define_builtin_const): Likewise.
33191 (define_builtin_pure): Likewise.
33192 (define_builtin2): Deleted.
33193 (define_builtin_const2): Likewise.
33194 (builtin_description): Add a member, mask2.
33195 (bdesc_*): Add mask2 to builtin initializations.
33196 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33197 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33198 support.
33199 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33200
33201 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33202
33203 PR target/88954
33204 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33205 noplt attribute.
33206
33207 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33208
33209 PR target/88469
33210 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33211 alignment is dominated by a bitfield with 64-bit aligned base type.
33212 (arm_function_arg): Emit a warning if the alignment has changed since
33213 earlier GCC releases.
33214 (arm_function_arg_boundary): Likewise.
33215 (arm_setup_incoming_varargs): Likewise.
33216
33217 2019-01-22 Richard Biener <rguenther@suse.de>
33218
33219 PR tree-optimization/88862
33220 * graphite-scop-detection.c
33221 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33222
33223 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33224
33225 * doc/extend.tex (AMD GCN Function Attributes): New section.
33226 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33227 * doc/invoke.texi (AMD GCN Options): New section.
33228 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33229
33230 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33231
33232 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33233 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33234
33235 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33236
33237 PR tree-optimization/88044
33238 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33239 is false in the first iteration, but !every_iteration, return false
33240 instead of true with niter->niter zero.
33241
33242 PR rtl-optimization/88904
33243 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33244 any nonequal registers before processing BB_END (b).
33245
33246 PR target/88905
33247 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33248 GET_MODE (op0).
33249 (expand_binop_directly, expand_doubleword_clz,
33250 expand_doubleword_popcount, expand_ctz, expand_ffs,
33251 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33252
33253 PR rtl-optimization/49429
33254 PR target/49454
33255 PR rtl-optimization/86334
33256 PR target/88906
33257 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33258 addressable from here...
33259 (emit_block_op_via_libcall): ... to here.
33260
33261 2019-01-22 Richard Biener <rguenther@suse.de>
33262
33263 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33264 auto_vec for cost vector to fix memleak.
33265 (vectorize_fold_left_reduction): Properly gather SLP defs.
33266 (vectorizable_comparison): Do not swap operands to properly
33267 gather SLP defs.
33268
33269 2019-01-22 Alan Modra <amodra@gmail.com>
33270
33271 PR target/88614
33272 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33273 stays a reg. Allow a const_int.
33274 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33275 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33276 (IS_NOMARK_TLSGETADDR): Define.
33277 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33278 (rs6000_output_tlsargs): New function.
33279 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33280 __tls_get_addr call takes an arg.
33281 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33282 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33283 delete split..
33284 (call_value_nonlocal_sysv): ..or here, delete split.
33285 (tls_gdld_nomark): Delete.
33286 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33287 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33288 (call_value_nonlocal_sysv): Likewise.
33289 (call_value_nonlocal_sysv_secure): Likewise.
33290 (call_value_nonlocal_aix): Likewise.
33291 (call_value_indirect_aix): Likewise.
33292 (call_value_indirect_elfv2): Likewise.
33293 (call_value_local32, call_value_local64): Disable for no-mark tls.
33294 (call_value_local_aix): Likewise.
33295
33296 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33297
33298 PR target/88938
33299 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33300 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33301
33302 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33303
33304 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33305 string contents as hash_map keys.
33306
33307 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33308
33309 PR c/88928
33310 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33311 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33312 instead of TYPE_ALIGN.
33313 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33314 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33315 pointer from TYPE_STUB_DECL.
33316
33317 2019-01-21 Richard Biener <rguenther@suse.de>
33318
33319 PR tree-optimization/88934
33320 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33321 at the possibly non-constant operand.
33322 (vect_get_constant_vectors): Adjust.
33323
33324 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33325
33326 PR target/71659
33327 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33328 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33329 instead of _X86INTRIN_H_INCLUDED.
33330 * onfig/i386/clwbintrin.h: Likewise.
33331 * config/i386/pkuintrin.h: Likewise.
33332 * config/i386/prfchwintrin.h: Likewise.
33333 * config/i386/rdseedintrin.h: Likewise.
33334 * config/i386/wbnoinvdintrin.h: Likewise.
33335 * config/i386/xsavecintrin.h: Likewise.
33336 * config/i386/xsavesintrin.h: Likewise.
33337 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33338 * config/i386/xsaveintrin.h: Likewise.
33339 * config/i386/xsaveoptintrin.h: Likewise.
33340 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33341 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33342 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33343 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33344 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33345 * config/i386/immintrin.h: Here.
33346
33347 2019-01-20 Martin Jambor <mjambor@suse.cz>
33348
33349 PR ipa/87615
33350 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33351 with aa_walk_budget.
33352 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33353 aa_walk_budget_p parameter.
33354 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33355 walk. Updated all callers.
33356 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33357 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33358 unmodified_parm.
33359 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33360 parameter info. Extract info from fbi. Pass fbi to recursive calls
33361 and to unmodified_parm.
33362 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33363 info, updated call to will_be_nonconstant_expr_predicate.
33364 (param_change_prob): New parameter fbi, limit AA walking.
33365 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33366 calls to various above functions.
33367 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33368 parameter. Use it to limit AA walking.
33369 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33370 fbi, limit AA walk.
33371 (detect_type_change): New parameter fbi, pass it on to
33372 detect_type_change_from_memory_writes.
33373 (detect_type_change_ssa): Likewise.
33374 (aa_overwalked): Removed.
33375 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33376 accordingly, adjust to the neew AA limiting scheme.
33377 (parm_ref_data_preserved_p): Likewise.
33378 (ipa_compute_jump_functions_for_edge): Adjust call to
33379 get_dynamic_type.
33380 (ipa_analyze_call_uses): Likewise.
33381 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33382 (ipa_analyze_node): Initialize aa_walk_budget.
33383 (ipcp_transform_function): Likewise.
33384 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33385 to get_dynamic_type.
33386
33387 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33388
33389 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33390 outside of #if CHECKING_P code.
33391
33392 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33393
33394 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33395 New function, split out from...
33396 (loop_versioning::analyze_stride): ...here.
33397 (loop_versioning::find_per_loop_multiplication): Use gassign.
33398 (loop_versioning::analyze_term_using_scevs): Return a success code.
33399 (loop_versioning::analyze_arbitrary_term): New function.
33400 (loop_versioning::analyze_address_fragment): Use
33401 analyze_arbitrary_term if all else fails.
33402
33403 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33404
33405 PR target/88892
33406 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33407 operands.
33408
33409 2019-01-18 Richard Biener <rguenther@suse.de>
33410
33411 PR tree-optimization/88903
33412 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33413 scalar stmts a SLP shift amount is composed of when detecting
33414 shifts by scalars.
33415
33416 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33417
33418 PR target/88799
33419 * config/arm/arm-cpus.in (mp): New feature.
33420 (sec): New feature.
33421 (fgroup ARMv7ve): Add mp and sec features.
33422 (arch armv7-a): Add options to allow mp and sec extensions.
33423 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33424 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33425 extenstions to the base architecture.
33426 (cpu cortex-a8): Add sec extension to the base architecture.
33427 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33428 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33429 variants down to the base v7-a varaint.
33430 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33431 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33432 of permitted extensions for -march=armv7-a and for
33433 -mcpu=generic-armv7-a.
33434
33435 2019-01-18 Martin Liska <mliska@suse.cz>
33436
33437 * params.def: Fix comment.
33438 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33439 name.
33440 (gimple_gen_ic_func_profiler): Likewise.
33441
33442 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33443
33444 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33445 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33446 and put in error checks for stack protector guard options.
33447 (aarch64_stack_protect_guard): New.
33448 (TARGET_STACK_PROTECT_GUARD): Define.
33449 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33450 (reg_stack_protect_address<mode>): New.
33451 (stack_protect_set): Adjust for SSP_GLOBAL.
33452 (stack_protect_test): Likewise.
33453 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33454 (-mstack-protector-guard): Likewise.
33455 (-mstack-protector-guard-offset): Likewise.
33456
33457 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33458
33459 PR tree-optimization/86214
33460 * tree-inline.h (struct copy_body_data): Add
33461 add_clobbers_to_eh_landing_pads member.
33462 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33463 (copy_edges_for_bb): Call it if EH edge destination is <
33464 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33465 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33466 if flag_stack_reuse != SR_NONE and clear it afterwards.
33467
33468 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33469
33470 PR target/85596
33471 * doc/install.texi (with-multilib-list): Document for aarch64.
33472
33473 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33474
33475 PR target/88734
33476 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33477 (("..."))) with ("...").
33478
33479 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33480
33481 * doc/extend.texi (Built-in Functions for Memory Model Aware
33482 Atomic Operations): Document atomic fetch and nand.
33483
33484 2019-01-18 Martin Liska <mliska@suse.cz>
33485 Richard Biener <rguenther@suse.de>
33486
33487 PR middle-end/88587
33488 * cgraph.h (create_version_clone_with_body): Add new argument
33489 with attributes.
33490 * cgraphclones.c (cgraph_node::create_version_clone): Add
33491 DECL_ATTRIBUTES to a newly created decl. And call
33492 valid_attribute_p so that proper cl_target_optimization_node
33493 is set for the newly created declaration.
33494 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33495 for declaration.
33496 (expand_target_clones): Do not call valid_attribute_p, it must
33497 be already done.
33498 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33499 vector types.
33500
33501 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33502
33503 PR target/88734
33504 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33505 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33506 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33507
33508 2019-01-17 Martin Sebor <msebor@redhat.com>
33509
33510 PR middle-end/88273
33511 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33512 Handle anti-ranges the same as no range at all.
33513
33514 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33515
33516 * config/aarch64/aarch64.c (cgraph.h): New include.
33517 (intl.h): New include.
33518 (supported_simd_type): New function.
33519 (currently_supported_simd_type): Ditto.
33520 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33521 (aarch64_simd_clone_adjust): Ditto.
33522 (aarch64_simd_clone_usable): Ditto.
33523 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33524 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33525 (TARGET_SIMD_CLONE_USABLE): Ditto.
33526 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33527 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33528 call.
33529
33530 2019-01-17 Martin Sebor <msebor@redhat.com>
33531
33532 PR tree-optimization/88800
33533 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33534 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33535 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33536 redundant argument. Add new argument and issue diagnostics under
33537 its control. Detect out-of-bounds access even with warnings
33538 disabled.
33539 (check_bounds_or_overlap): Change return type. Add argument.
33540 (wrestrict_dom_walker::check_call): Adjust.
33541 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33542 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33543 check_bounds_or_overlap's return value.
33544 (handle_builtin_stxncpy): Same.
33545 (handle_builtin_strcat): Same.
33546
33547 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33548 Kwok Cheung Yeung <kcy@codesourcery.com>
33549 Julian Brown <julian@codesourcery.com>
33550 Tom de Vries <tom@codesourcery.com>
33551
33552 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33553
33554 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33555
33556 * doc/sourcebuild.texi: Document dg-require-effective-target
33557 llvm_binutils and offload_gcn.
33558
33559 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33560 Kwok Cheung Yeung <kcy@codesourcery.com>
33561 Julian Brown <julian@codesourcery.com>
33562 Tom de Vries <tom@codesourcery.com>
33563
33564 * doc/sourcebuild.texi: Document dg-required-effective-target
33565 exceptions.
33566
33567 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33568 Kwok Cheung Yeung <kcy@codesourcery.com>
33569 Julian Brown <julian@codesourcery.com>
33570 Tom de Vries <tom@codesourcery.com>
33571 Jan Hubicka <hubicka@ucw.cz>
33572 Martin Jambor <mjambor@suse.cz>
33573
33574 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33575 * configure.ac: Check for dlopen.
33576 * configure: Regenerate.
33577
33578 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33579 Kwok Cheung Yeung <kcy@codesourcery.com>
33580 Julian Brown <julian@codesourcery.com>
33581 Tom de Vries <tom@codesourcery.com>
33582 Jan Hubicka <hubicka@ucw.cz>
33583 Martin Jambor <mjambor@suse.cz>
33584
33585 * common/config/gcn/gcn-common.c: New file.
33586 * config/gcn/driver-gcn.c: New file.
33587 * config/gcn/gcn-builtins.def: New file.
33588 * config/gcn/gcn-hsa.h: New file.
33589 * config/gcn/gcn-modes.def: New file.
33590 * config/gcn/gcn-opts.h: New file.
33591 * config/gcn/gcn-passes.def: New file.
33592 * config/gcn/gcn-protos.h: New file.
33593 * config/gcn/gcn-run.c: New file.
33594 * config/gcn/gcn-tree.c: New file.
33595 * config/gcn/gcn.c: New file.
33596 * config/gcn/gcn.h: New file.
33597 * config/gcn/gcn.opt: New file.
33598 * config/gcn/t-gcn-hsa: New file.
33599
33600 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33601 Kwok Cheung Yeung <kcy@codesourcery.com>
33602 Julian Brown <julian@codesourcery.com>
33603 Tom de Vries <tom@codesourcery.com>
33604 Jan Hubicka <hubicka@ucw.cz>
33605 Martin Jambor <mjambor@suse.cz>
33606
33607 * config/gcn/constraints.md: New file.
33608 * config/gcn/gcn-valu.md: New file.
33609 * config/gcn/gcn.md: New file.
33610 * config/gcn/predicates.md: New file.
33611
33612 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33613
33614 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33615 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33616 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33617 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33618
33619 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33620
33621 PR target/88851
33622 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33623 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33624 it and document registers.
33625
33626 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33627
33628 * config/aarch64/aarch64.c (ares_tunings): Define.
33629 * config/aarch64/aarch64-cores.def (ares): Use the above.
33630
33631 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33632
33633 PR target/88794
33634 Revert:
33635 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33636
33637 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33638 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33639 (_mm512_maskz_fixupimm_round_pd): Ditto.
33640 (_mm512_fixupimm_round_ps): Ditto.
33641 (_mm512_maskz_fixupimm_round_ps): Ditto.
33642 (_mm_fixupimm_round_sd): Ditto.
33643 (_mm_maskz_fixupimm_round_sd): Ditto.
33644 (_mm_fixupimm_round_ss): Ditto.
33645 (_mm_maskz_fixupimm_round_ss): Ditto.
33646 (_mm512_fixupimm_pd): Ditto.
33647 (_mm512_maskz_fixupimm_pd): Ditto.
33648 (_mm512_fixupimm_ps): Ditto.
33649 (_mm512_maskz_fixupimm_ps): Ditto.
33650 (_mm_fixupimm_sd): Ditto.
33651 (_mm_maskz_fixupimm_sd): Ditto.
33652 (_mm_fixupimm_ss): Ditto.
33653 (_mm_maskz_fixupimm_ss): Ditto.
33654 (_mm512_mask_fixupimm_round_pd): Update builtin.
33655 (_mm512_mask_fixupimm_round_ps): Ditto.
33656 (_mm_mask_fixupimm_round_sd): Ditto.
33657 (_mm_mask_fixupimm_round_ss): Ditto.
33658 (_mm512_mask_fixupimm_pd): Ditto.
33659 (_mm512_mask_fixupimm_ps): Ditto.
33660 (_mm_mask_fixupimm_sd): Ditto.
33661 (_mm_mask_fixupimm_ss): Ditto.
33662 * config/i386/avx512vlintrin.h:
33663 (_mm256_fixupimm_pd): Update parameters and builtin.
33664 (_mm256_maskz_fixupimm_pd): Ditto.
33665 (_mm256_fixupimm_ps): Ditto.
33666 (_mm256_maskz_fixupimm_ps): Ditto.
33667 (_mm_fixupimm_pd): Ditto.
33668 (_mm_maskz_fixupimm_pd): Ditto.
33669 (_mm_fixupimm_ps): Ditto.
33670 (_mm_maskz_fixupimm_ps): Ditto.
33671 (_mm256_mask_fixupimm_pd): Update builtin.
33672 (_mm256_mask_fixupimm_ps): Ditto.
33673 (_mm_mask_fixupimm_pd): Ditto.
33674 (_mm_mask_fixupimm_ps): Ditto.
33675 * config/i386/i386-builtin-types.def: Add new types and remove
33676 useless ones.
33677 * config/i386/i386-builtin.def: Update builtin definitions.
33678 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33679 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33680 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33681 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33682 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33683 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33684 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33685 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33686 * config/i386/subst.md:
33687 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33688 (round_saeonly_sd_mask_op4): Ditto.
33689 (round_saeonly_expand_operand5): Ditto.
33690 (round_saeonly_expand): Update.
33691
33692 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33693
33694 PR target/88794
33695 Revert:
33696 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33697
33698 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33699 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33700 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33701 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33702 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33703 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33704 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33705
33706 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33707
33708 PR target/88794
33709 Revert:
33710 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33711
33712 PR target/88489
33713 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33714 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33715 instead of UNSPEC_FIXUPIMM.
33716
33717 2019-01-17 Richard Biener <rguenther@suse.de>
33718
33719 PR lto/86736
33720 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33721 and friends for the LTO part of debug info.
33722
33723 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33724
33725 PR tree-optimization/86214
33726 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33727 if x == y.
33728
33729 PR rtl-optimization/88870
33730 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33731 throw if we can't alter the cfg or delete dead exceptions.
33732 (mark_insn): Don't call find_call_stack_args for such calls.
33733
33734 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33735
33736 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33737 prototypes for vec_st.
33738 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33739 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33740 mainly on signed/unsigned long long and double.
33741
33742 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33743
33744 PR target/88861
33745 * combine.c (delete_noop_moves): Convert to "bool" return,
33746 returning true if any edges are eliminated.
33747 (combine_instructions): Also return true if delete_noop_moves
33748 returns true.
33749
33750 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33751
33752 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33753 correct max nunits for endian swap.
33754 (aarch64_expand_fcmla_builtin): Correct subreg code.
33755 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33756 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33757 lane endianness.
33758
33759 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33760
33761 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33762 Handle split indirect COMPLEX_TYPE arguments.
33763
33764 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33765
33766 PR target/86891
33767 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33768 bit is set by add and compare.
33769 (CC_ADC): New CC_MODE.
33770 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33771 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33772 comparison. Add detection for CC_ADCmode.
33773 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33774 CC_ADCmode.
33775 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33776 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33777 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33778 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33779 to eliminate the need for zero-extending the operands.
33780 (add<mode>3_compareC_imm): Delete. Merge into ...
33781 (add<mode>3_compareC): ... this. Restructure the comparison to
33782 eliminate the need for zero-extending the operands.
33783 (add<mode>3_carryin): Use LTU for the overflow detection.
33784 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33785 Reexpress comparison for overflow.
33786 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33787 (add<mode>3_carryinC): Likewise.
33788 (add<mode>3_carryinV): Use LTU for carry between partials.
33789 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33790 handling of CC_Cmode and add CC_ADCmode.
33791 (aarch64_borrow_operation): Likewise.
33792
33793 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33794
33795 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33796 Remove patternmode.
33797 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33798 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33799 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33800 Remove endianness conversion.
33801
33802 2019-01-16 Martin Liska <mliska@suse.cz>
33803
33804 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33805 for GCC driver.
33806 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33807 a new argument.
33808 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33809 (path_prefix_reset): Move up in the source file.
33810 (find_fortran_preinclude_file): Make complex search for the
33811 fortran header files.
33812
33813 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33814
33815 * godump.c (go_output_typedef): When outputting a typedef, refer
33816 to the underlying type by its name and not its structure.
33817
33818 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33819
33820 PR c++/88795
33821 * tree.c (build_function_type): Assert that arg_types is not
33822 error_mark_node.
33823
33824 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33825
33826 PR inline-asm/52813
33827 * doc/extend.texi: Document that listing the stack pointer in the
33828 clobber list of an asm is a deprecated feature.
33829 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33830 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33831 warning instead of an error for clobbers of the stack pointer.
33832 Add a note explaining why.
33833
33834 2019-01-15 Richard Biener <rguenther@suse.de>
33835
33836 PR debug/88046
33837 * dwarf2out.c (gen_member_die): Do not generate inheritance
33838 DIEs late.
33839
33840 2019-01-15 Richard Biener <rguenther@suse.de>
33841
33842 PR tree-optimization/88855
33843 * tree-if-conv.c (combine_blocks): Collect
33844 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33845
33846 2019-01-15 Tom de Vries <tdevries@suse.de>
33847
33848 PR target/80547
33849 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33850 lhs == NULL_TREE for gang-level reduction.
33851
33852 2019-01-15 Richard Biener <rguenther@suse.de>
33853 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33854
33855 PR ipa/88788
33856 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33857 return true if SSA_NAME is already marked in visited bitmap.
33858 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33859
33860 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33861
33862 PR tree-optimization/88775
33863 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33864 equal == 0 equality pointer comparisons some more if compared in
33865 integral types and either one points to an automatic var and the
33866 other to a global, or we can prove at least one points to the middle
33867 or both point to start or both point to end.
33868
33869 2019-01-14 Andi Kleen <ak@linux.intel.com>
33870
33871 * Makefile.in: Lower autofdo sampling rate by 10x.
33872 * Makefile.tpl: Dito.
33873
33874 2019-01-14 Tom Honermann <tom@honermann.net>
33875
33876 * defaults.h: Define CHAR8_TYPE.
33877
33878 2019-01-14 Martin Sebor <msebor@redhat.com>
33879
33880 PR target/88638
33881 * doc/extend.texi (Darwin Format Checks): Clarify.
33882
33883 2019-01-14 Richard Biener <rguenther@suse.de>
33884
33885 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33886 whether we are in (simplify ...) or (match ...) context.
33887
33888 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33889
33890 PR rtl-optimization/88796
33891 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33892 * cfgexpand.c (stack_protect_prologue): Initialize
33893 crtl->stack_protect_guard_decl.
33894 * function.c (stack_protect_epilogue): Use it instead of calling
33895 targetm.stack_protect_guard again.
33896 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33897 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33898 crtl->stack_protect_guard_decl.
33899 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33900 on the returned MEM_EXPR.
33901
33902 2019-01-12 Tom de Vries <tdevries@suse.de>
33903
33904 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33905 vector length using -fopenacc-dim.
33906
33907 2019-01-12 Tom de Vries <tdevries@suse.de>
33908
33909 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33910 lengths into account.
33911
33912 2019-01-12 Svante Signell <svante.signell@gmail.com>
33913
33914 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33915 (TARGET_CAN_SPLIT_STACK): Define.
33916 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33917
33918 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33919
33920 * params.def (inline-unit-growth): Set to 40.
33921
33922 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33923
33924 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33925
33926 2019-01-12 Tom de Vries <tdevries@suse.de>
33927
33928 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33929 region calling vector-partitionable routine, set default_vector_length
33930 to WARP_SIZE.
33931
33932 2019-01-12 Tom de Vries <tdevries@suse.de>
33933
33934 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33935 variable default_vector_length.
33936
33937 2019-01-12 Tom de Vries <tdevries@suse.de>
33938
33939 PR middle-end/88703
33940 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33941 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33942 dimensions limits.
33943
33944 2019-01-12 Tom de Vries <tdevries@suse.de>
33945
33946 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33947 (nvptx_goacc_validate_dims): Add used parameter.
33948 * doc/tm.texi: Regenerate.
33949 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33950 argument to call to targetm.goacc.validate_dims.
33951 (default_goacc_validate_dims): Add used
33952 parameter.
33953 * target.def (validate_dims): Add used parameter in DEFHOOK.
33954 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33955
33956 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33957
33958 PR middle-end/85956
33959 PR lto/88733
33960 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33961 field.
33962 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33963 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33964 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33965 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33966
33967 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33968
33969 PR rtl-optimization/87305
33970 * lra-assigns.c
33971 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33972 for little endian pseudos used as paradoxical subreg.
33973
33974 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33975
33976 PR tree-optimization/88693
33977 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33978 for STRING_CSTs that don't contain any NUL characters in the first
33979 TREE_STRING_LENGTH bytes.
33980
33981 2019-01-11 Alan Modra <amodra@gmail.com>
33982
33983 PR 88777
33984 PR 88614
33985 * genattrtab.c (min_fn): Don't translate values.
33986 (min_attr_value): Return INT_MAX when the value can't be calculated.
33987 Return minimum among any values that can be calculated.
33988 (max_attr_value): Adjust.
33989
33990 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33991
33992 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33993
33994 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33995
33996 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33997 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33998 (aarch64_return_call_with_max_clobbers): New function.
33999 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34000 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34001 argument.
34002 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34003 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34004 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34005 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34006 * cselib.c (cselib_process_insn): Add argument to
34007 targetm.hard_regno_call_part_clobbered call.
34008 * ira-conflicts.c (ira_build_conflicts): Ditto.
34009 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34010 * lra-constraints.c (inherit_reload_reg): Ditto.
34011 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34012 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34013 argument. Call targetm.return_call_with_max_clobbers.
34014 Add argument to targetm.hard_regno_call_part_clobbered call.
34015 (calls_have_same_clobbers_p): New function.
34016 (process_bb_lives): Add call_insn and last_call_insn variables.
34017 Pass call_insn to check_pseudos_live_through_calls.
34018 Modify if stmt to check targetm.return_call_with_max_clobbers.
34019 Update setting of flush variable.
34020 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34021 to false.
34022 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34023 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34024 targetm.hard_regno_call_part_clobbered call.
34025 * reginfo.c (choose_hard_reg_mode): Ditto.
34026 * regrename.c (check_new_reg_p): Ditto.
34027 * reload.c (find_equiv_reg): Ditto.
34028 * reload1.c (emit_reload_insns): Ditto.
34029 * sched-deps.c (deps_analyze_insn): Ditto.
34030 * sel-sched.c (init_regs_for_mode): Ditto.
34031 (mark_unavailable_hard_regs): Ditto.
34032 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34033 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34034 (return_call_with_max_clobbers): New target function.
34035 * doc/tm.texi: Regenerate.
34036 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34037 * hooks.c (hook_bool_uint_mode_false): Change to
34038 hook_bool_insn_uint_mode_false.
34039 * hooks.h (hook_bool_uint_mode_false): Ditto.
34040
34041 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34042
34043 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34044 (aarch64_remove_extra_call_preserved_regs): New function.
34045 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34046 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34047 * doc/tm.texi: Regenerate.
34048 * final.c (get_call_reg_set_usage): Call new hook.
34049 * target.def (remove_extra_call_preserved_regs): New hook.
34050 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34051 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34052
34053 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34054
34055 PR bootstrap/88714
34056 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34057 inside of pass_combine_1 dump rather than pass_profile_1.
34058
34059 2019-01-11 Tom de Vries <tdevries@suse.de>
34060
34061 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34062 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34063 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34064 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34065 num_workers 16.
34066
34067 2019-01-11 Tom de Vries <tdevries@suse.de>
34068
34069 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34070
34071 2019-01-11 Jan Beulich <jbeulich@suse.com>
34072
34073 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34074 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34075 sse2_cvtsi2sd): Add {l}.
34076 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34077 syntax.
34078
34079 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34080
34081 PR target/88785
34082 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34083 define_expand.
34084 (*float<floatunssuffix>v2div2sf2): New define_insn.
34085 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34086 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34087 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34088 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34089 match_operands with "const0_operand" "C".
34090
34091 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34092
34093 * config/aarch64/aarch64-builtins.c
34094 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34095 (aarch64_init_simd_builtins): ...Here
34096
34097 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34098
34099 PR rtl-optimization/87305
34100 * lra-assigns.c
34101 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34102 allocation for big endian pseudos used as paradoxical subregs and
34103 spill them if it is wrong.
34104 * lra-constraints.c (lra_constraints): Add a comment.
34105
34106 2019-01-10 Richard Biener <rguenther@suse.de>
34107
34108 PR tree-optimization/88792
34109 * tree-ssa-pre.c (get_representative_for): Do not return a
34110 value-number here.
34111
34112 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34113
34114 PR middle-end/84877
34115 PR bootstrap/88450
34116 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34117 (assign_parm_setup_block): Do the argument slot realignment here
34118 instead.
34119
34120 2019-01-10 Stefan Agner <stefan@agner.ch>
34121
34122 PR target/88648
34123 * config/arm/arm.c (arm_option_override_internal): Force
34124 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34125
34126 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34127
34128 PR c/88568
34129 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34130 DECL_EXTERNAL.
34131
34132 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34133
34134 * config/arm/arm-builtins.c
34135 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34136 (MAC_LANE_PAIR_QUALIFIERS): New.
34137 (arm_expand_builtin_args): Use it.
34138 (arm_expand_builtin_1): Likewise.
34139 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34140 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34141 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34142 * config/arm/arm_neon.h:
34143 (vcadd_rot90_f16): New.
34144 (vcaddq_rot90_f16): New.
34145 (vcadd_rot270_f16): New.
34146 (vcaddq_rot270_f16): New.
34147 (vcmla_f16): New.
34148 (vcmlaq_f16): New.
34149 (vcmla_lane_f16): New.
34150 (vcmla_laneq_f16): New.
34151 (vcmlaq_lane_f16): New.
34152 (vcmlaq_laneq_f16): New.
34153 (vcmla_rot90_f16): New.
34154 (vcmlaq_rot90_f16): New.
34155 (vcmla_rot90_lane_f16): New.
34156 (vcmla_rot90_laneq_f16): New.
34157 (vcmlaq_rot90_lane_f16): New.
34158 (vcmlaq_rot90_laneq_f16): New.
34159 (vcmla_rot180_f16): New.
34160 (vcmlaq_rot180_f16): New.
34161 (vcmla_rot180_lane_f16): New.
34162 (vcmla_rot180_laneq_f16): New.
34163 (vcmlaq_rot180_lane_f16): New.
34164 (vcmlaq_rot180_laneq_f16): New.
34165 (vcmla_rot270_f16): New.
34166 (vcmlaq_rot270_f16): New.
34167 (vcmla_rot270_lane_f16): New.
34168 (vcmla_rot270_laneq_f16): New.
34169 (vcmlaq_rot270_lane_f16): New.
34170 (vcmlaq_rot270_laneq_f16): New.
34171 (vcadd_rot90_f32): New.
34172 (vcaddq_rot90_f32): New.
34173 (vcadd_rot270_f32): New.
34174 (vcaddq_rot270_f32): New.
34175 (vcmla_f32): New.
34176 (vcmlaq_f32): New.
34177 (vcmla_lane_f32): New.
34178 (vcmla_laneq_f32): New.
34179 (vcmlaq_lane_f32): New.
34180 (vcmlaq_laneq_f32): New.
34181 (vcmla_rot90_f32): New.
34182 (vcmlaq_rot90_f32): New.
34183 (vcmla_rot90_lane_f32): New.
34184 (vcmla_rot90_laneq_f32): New.
34185 (vcmlaq_rot90_lane_f32): New.
34186 (vcmlaq_rot90_laneq_f32): New.
34187 (vcmla_rot180_f32): New.
34188 (vcmlaq_rot180_f32): New.
34189 (vcmla_rot180_lane_f32): New.
34190 (vcmla_rot180_laneq_f32): New.
34191 (vcmlaq_rot180_lane_f32): New.
34192 (vcmlaq_rot180_laneq_f32): New.
34193 (vcmla_rot270_f32): New.
34194 (vcmlaq_rot270_f32): New.
34195 (vcmla_rot270_lane_f32): New.
34196 (vcmla_rot270_laneq_f32): New.
34197 (vcmlaq_rot270_lane_f32): New.
34198 (vcmlaq_rot270_laneq_f32): New.
34199 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34200 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34201 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34202 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34203 vcmlaq_lane270): New.
34204 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34205 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34206 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34207 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34208 (arm_option_reconfigure_globals): Use them.
34209 * config/arm/iterators.md (VDF, VQ_HSF): New.
34210 (VCADD, VCMLA): New.
34211 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34212 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34213 New.
34214 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34215 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34216
34217 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34218
34219 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34220 Add qualifier_lane_pair_index.
34221 (emit-rtl.h): Include.
34222 (TYPES_QUADOP_LANE_PAIR): New.
34223 (aarch64_simd_expand_args): Use it.
34224 (aarch64_simd_expand_builtin): Likewise.
34225 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34226 New.
34227 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34228 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34229 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34230 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34231 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34232 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34233 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34234 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34235 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34236 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34237 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34238 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34239 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34240 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34241 Add __ARM_FEATURE_COMPLEX.
34242 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34243 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34244 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34245 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34246 fcmlaq_lane270): New.
34247 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34248 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34249 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34250 * config/aarch64/arm_neon.h:
34251 (vcadd_rot90_f16): New.
34252 (vcaddq_rot90_f16): New.
34253 (vcadd_rot270_f16): New.
34254 (vcaddq_rot270_f16): New.
34255 (vcmla_f16): New.
34256 (vcmlaq_f16): New.
34257 (vcmla_lane_f16): New.
34258 (vcmla_laneq_f16): New.
34259 (vcmlaq_lane_f16): New.
34260 (vcmlaq_rot90_lane_f16): New.
34261 (vcmla_rot90_laneq_f16): New.
34262 (vcmla_rot90_lane_f16): New.
34263 (vcmlaq_rot90_f16): New.
34264 (vcmla_rot90_f16): New.
34265 (vcmlaq_laneq_f16): New.
34266 (vcmla_rot180_laneq_f16): New.
34267 (vcmla_rot180_lane_f16): New.
34268 (vcmlaq_rot180_f16): New.
34269 (vcmla_rot180_f16): New.
34270 (vcmlaq_rot90_laneq_f16): New.
34271 (vcmlaq_rot270_laneq_f16): New.
34272 (vcmlaq_rot270_lane_f16): New.
34273 (vcmla_rot270_laneq_f16): New.
34274 (vcmlaq_rot270_f16): New.
34275 (vcmla_rot270_f16): New.
34276 (vcmlaq_rot180_laneq_f16): New.
34277 (vcmlaq_rot180_lane_f16): New.
34278 (vcmla_rot270_lane_f16): New.
34279 (vcadd_rot90_f32): New.
34280 (vcaddq_rot90_f32): New.
34281 (vcaddq_rot90_f64): New.
34282 (vcadd_rot270_f32): New.
34283 (vcaddq_rot270_f32): New.
34284 (vcaddq_rot270_f64): New.
34285 (vcmla_f32): New.
34286 (vcmlaq_f32): New.
34287 (vcmlaq_f64): New.
34288 (vcmla_lane_f32): New.
34289 (vcmla_laneq_f32): New.
34290 (vcmlaq_lane_f32): New.
34291 (vcmlaq_laneq_f32): New.
34292 (vcmla_rot90_f32): New.
34293 (vcmlaq_rot90_f32): New.
34294 (vcmlaq_rot90_f64): New.
34295 (vcmla_rot90_lane_f32): New.
34296 (vcmla_rot90_laneq_f32): New.
34297 (vcmlaq_rot90_lane_f32): New.
34298 (vcmlaq_rot90_laneq_f32): New.
34299 (vcmla_rot180_f32): New.
34300 (vcmlaq_rot180_f32): New.
34301 (vcmlaq_rot180_f64): New.
34302 (vcmla_rot180_lane_f32): New.
34303 (vcmla_rot180_laneq_f32): New.
34304 (vcmlaq_rot180_lane_f32): New.
34305 (vcmlaq_rot180_laneq_f32): New.
34306 (vcmla_rot270_f32): New.
34307 (vcmlaq_rot270_f32): New.
34308 (vcmlaq_rot270_f64): New.
34309 (vcmla_rot270_lane_f32): New.
34310 (vcmla_rot270_laneq_f32): New.
34311 (vcmlaq_rot270_lane_f32): New.
34312 (vcmlaq_rot270_laneq_f32): New.
34313 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34314 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34315 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34316 (FCADD, FCMLA): New.
34317 (rot): New.
34318 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34319
34320 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34321
34322 PR other/16615
34323
34324 * config/pa/pa.c: Change "can not" to "cannot".
34325 * gimple-ssa-evrp-analyze.c: Likewise.
34326 * ipa-icf.c: Likewise.
34327 * ipa-polymorphic-call.c: Likewise.
34328 * ipa-pure-const.c: Likewise.
34329 * lra-constraints.c: Likewise.
34330 * lra-remat.c: Likewise.
34331 * reload1.c: Likewise.
34332 * reorg.c: Likewise.
34333 * tree-ssa-uninit.c: Likewise.
34334
34335 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34336
34337 PR other/16615
34338
34339 * Makefile.in: Mechanically replace "can not" with "cannot".
34340 * alias.c: Likewise.
34341 * builtins.c: Likewise.
34342 * calls.c: Likewise.
34343 * cgraph.c: Likewise.
34344 * cgraph.h: Likewise.
34345 * cgraphclones.c: Likewise.
34346 * cgraphunit.c: Likewise.
34347 * combine-stack-adj.c: Likewise.
34348 * combine.c: Likewise.
34349 * common/config/i386/i386-common.c: Likewise.
34350 * config/aarch64/aarch64.c: Likewise.
34351 * config/alpha/sync.md: Likewise.
34352 * config/arc/arc.c: Likewise.
34353 * config/arc/predicates.md: Likewise.
34354 * config/arm/arm-c.c: Likewise.
34355 * config/arm/arm.c: Likewise.
34356 * config/arm/arm.h: Likewise.
34357 * config/arm/arm.md: Likewise.
34358 * config/arm/cortex-r4f.md: Likewise.
34359 * config/csky/csky.c: Likewise.
34360 * config/csky/csky.h: Likewise.
34361 * config/darwin-f.c: Likewise.
34362 * config/epiphany/epiphany.md: Likewise.
34363 * config/i386/i386.c: Likewise.
34364 * config/i386/sol2.h: Likewise.
34365 * config/m68k/m68k.c: Likewise.
34366 * config/mcore/mcore.h: Likewise.
34367 * config/microblaze/microblaze.md: Likewise.
34368 * config/mips/20kc.md: Likewise.
34369 * config/mips/sb1.md: Likewise.
34370 * config/nds32/nds32.c: Likewise.
34371 * config/nds32/predicates.md: Likewise.
34372 * config/pa/pa.c: Likewise.
34373 * config/rs6000/e300c2c3.md: Likewise.
34374 * config/rs6000/rs6000.c: Likewise.
34375 * config/s390/s390.h: Likewise.
34376 * config/sh/sh.c: Likewise.
34377 * config/sh/sh.md: Likewise.
34378 * config/spu/vmx2spu.h: Likewise.
34379 * cprop.c: Likewise.
34380 * dbxout.c: Likewise.
34381 * df-scan.c: Likewise.
34382 * doc/cfg.texi: Likewise.
34383 * doc/extend.texi: Likewise.
34384 * doc/fragments.texi: Likewise.
34385 * doc/gty.texi: Likewise.
34386 * doc/invoke.texi: Likewise.
34387 * doc/lto.texi: Likewise.
34388 * doc/md.texi: Likewise.
34389 * doc/objc.texi: Likewise.
34390 * doc/rtl.texi: Likewise.
34391 * doc/tm.texi: Likewise.
34392 * dse.c: Likewise.
34393 * emit-rtl.c: Likewise.
34394 * emit-rtl.h: Likewise.
34395 * except.c: Likewise.
34396 * expmed.c: Likewise.
34397 * expr.c: Likewise.
34398 * fold-const.c: Likewise.
34399 * genautomata.c: Likewise.
34400 * gimple-fold.c: Likewise.
34401 * hard-reg-set.h: Likewise.
34402 * ifcvt.c: Likewise.
34403 * ipa-comdats.c: Likewise.
34404 * ipa-cp.c: Likewise.
34405 * ipa-devirt.c: Likewise.
34406 * ipa-fnsummary.c: Likewise.
34407 * ipa-icf.c: Likewise.
34408 * ipa-inline-transform.c: Likewise.
34409 * ipa-inline.c: Likewise.
34410 * ipa-polymorphic-call.c: Likewise.
34411 * ipa-profile.c: Likewise.
34412 * ipa-prop.c: Likewise.
34413 * ipa-pure-const.c: Likewise.
34414 * ipa-reference.c: Likewise.
34415 * ipa-split.c: Likewise.
34416 * ipa-visibility.c: Likewise.
34417 * ipa.c: Likewise.
34418 * ira-build.c: Likewise.
34419 * ira-color.c: Likewise.
34420 * ira-conflicts.c: Likewise.
34421 * ira-costs.c: Likewise.
34422 * ira-int.h: Likewise.
34423 * ira-lives.c: Likewise.
34424 * ira.c: Likewise.
34425 * ira.h: Likewise.
34426 * loop-invariant.c: Likewise.
34427 * loop-unroll.c: Likewise.
34428 * lower-subreg.c: Likewise.
34429 * lra-assigns.c: Likewise.
34430 * lra-constraints.c: Likewise.
34431 * lra-eliminations.c: Likewise.
34432 * lra-lives.c: Likewise.
34433 * lra-remat.c: Likewise.
34434 * lra-spills.c: Likewise.
34435 * lra.c: Likewise.
34436 * lto-cgraph.c: Likewise.
34437 * lto-streamer-out.c: Likewise.
34438 * postreload-gcse.c: Likewise.
34439 * predict.c: Likewise.
34440 * profile-count.h: Likewise.
34441 * profile.c: Likewise.
34442 * recog.c: Likewise.
34443 * ree.c: Likewise.
34444 * reload.c: Likewise.
34445 * reload1.c: Likewise.
34446 * reorg.c: Likewise.
34447 * resource.c: Likewise.
34448 * rtl.def: Likewise.
34449 * rtl.h: Likewise.
34450 * rtlanal.c: Likewise.
34451 * sched-deps.c: Likewise.
34452 * sched-ebb.c: Likewise.
34453 * sched-rgn.c: Likewise.
34454 * sel-sched-ir.c: Likewise.
34455 * sel-sched.c: Likewise.
34456 * shrink-wrap.c: Likewise.
34457 * simplify-rtx.c: Likewise.
34458 * symtab.c: Likewise.
34459 * target.def: Likewise.
34460 * toplev.c: Likewise.
34461 * tree-call-cdce.c: Likewise.
34462 * tree-cfg.c: Likewise.
34463 * tree-complex.c: Likewise.
34464 * tree-core.h: Likewise.
34465 * tree-eh.c: Likewise.
34466 * tree-inline.c: Likewise.
34467 * tree-loop-distribution.c: Likewise.
34468 * tree-nrv.c: Likewise.
34469 * tree-profile.c: Likewise.
34470 * tree-sra.c: Likewise.
34471 * tree-ssa-alias.c: Likewise.
34472 * tree-ssa-dce.c: Likewise.
34473 * tree-ssa-dom.c: Likewise.
34474 * tree-ssa-forwprop.c: Likewise.
34475 * tree-ssa-loop-im.c: Likewise.
34476 * tree-ssa-loop-ivcanon.c: Likewise.
34477 * tree-ssa-loop-ivopts.c: Likewise.
34478 * tree-ssa-loop-niter.c: Likewise.
34479 * tree-ssa-phionlycprop.c: Likewise.
34480 * tree-ssa-phiopt.c: Likewise.
34481 * tree-ssa-propagate.c: Likewise.
34482 * tree-ssa-threadedge.c: Likewise.
34483 * tree-ssa-threadupdate.c: Likewise.
34484 * tree-ssa-uninit.c: Likewise.
34485 * tree-ssanames.c: Likewise.
34486 * tree-streamer-out.c: Likewise.
34487 * tree.c: Likewise.
34488 * tree.h: Likewise.
34489 * vr-values.c: Likewise.
34490
34491 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34492
34493 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34494 (ix86_split_xorsign): Ditto.
34495 * config/i386/i386.c (ix86_expand_xorsign): New function.
34496 (ix86_split_xorsign): Ditto.
34497 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34498 (xorsign<mode>3): New expander.
34499 (xorsign<mode>3_1): New insn_and_split pattern.
34500 * config/i386/sse.md (xorsign<mode>3): New expander.
34501
34502 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34503
34504 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34505 (*tablejump_sp64): Likewise.
34506 (*tablejump<P:mode>): ...this.
34507 (*call_address_sp32): Merge into...
34508 (*call_address_sp64): Likewise.
34509 (*call_address<P:mode>): ...this.
34510 (*call_symbolic_sp32): Merge into...
34511 (*call_symbolic_sp64): Likewise.
34512 (*call_symbolic<P:mode>): ...this.
34513 (call_value): Remove constraint and add predicate.
34514 (*call_value_address_sp32): Merge into...
34515 (*call_value_address_sp64): Likewise.
34516 (*call_value_address<P:mode>): ...this.
34517 (*call_value_symbolic_sp32): Merge into...
34518 (*call_value_symbolic_sp64): Likewise.
34519 (*call_value_symbolic<P:mode>): ...this.
34520 (*sibcall_symbolic_sp32): Merge into...
34521 (*sibcall_symbolic_sp64): Likewise.
34522 (*sibcall_symbolic<P:mode>): ...this.
34523 (sibcall_value): Remove constraint and add predicate.
34524 (*sibcall_value_symbolic_sp32): Merge into...
34525 (*sibcall_value_symbolic_sp64): Likewise.
34526 (*sibcall_value_symbolic<P:mode>): ...this.
34527 (window_save): Minor tweak.
34528 (*branch_sp32): Merge into...
34529 (*branch_sp64): Likewise.
34530 (*branch<P:mode>): ...this.
34531
34532 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34533 James Clarke <jrtc27@jrtc27.com>
34534
34535 PR target/84010
34536 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34537 consistently in TLS address generation and adjust code to the renaming
34538 of patterns. Mark calls to __tls_get_addr as const.
34539 * config/sparc/sparc.md (tgd_hi22): Turn into...
34540 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34541 (tgd_lo10): Turn into...
34542 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34543 (tgd_add32): Merge into...
34544 (tgd_add64): Likewise.
34545 (tgd_add<P:mode>): ...this and use Pmode throughout.
34546 (tldm_hi22): Turn into...
34547 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34548 (tldm_lo10): Turn into...
34549 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34550 (tldm_add32): Merge into...
34551 (tldm_add64): Likewise.
34552 (tldm_add<P:mode>): ...this and use Pmode throughout.
34553 (tldm_call32): Merge into...
34554 (tldm_call64): Likewise.
34555 (tldm_call<P:mode>): ...this and use Pmode throughout.
34556 (tldo_hix22): Turn into...
34557 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34558 (tldo_lox10): Turn into...
34559 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34560 (tldo_add32): Merge into...
34561 (tldo_add64): Likewise.
34562 (tldo_add<P:mode>): ...this and use Pmode throughout.
34563 (tie_hi22): Turn into...
34564 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34565 (tie_lo10): Turn into...
34566 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34567 (tie_ld64): Use DImode throughout.
34568 (tie_add32): Merge into...
34569 (tie_add64): Likewise.
34570 (tie_add<P:mode>): ...this and use Pmode throughout.
34571 (tle_hix22_sp32): Merge into...
34572 (tle_hix22_sp64): Likewise.
34573 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34574 (tle_lox22_sp32): Merge into...
34575 (tle_lox22_sp64): Likewise.
34576 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34577 (*tldo_ldub_sp32): Merge into...
34578 (*tldo_ldub_sp64): Likewise.
34579 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34580 (*tldo_ldub1_sp32): Merge into...
34581 (*tldo_ldub1_sp64): Likewise.
34582 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34583 (*tldo_ldub2_sp32): Merge into...
34584 (*tldo_ldub2_sp64): Likewise.
34585 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34586 (*tldo_ldsb1_sp32): Merge into...
34587 (*tldo_ldsb1_sp64): Likewise.
34588 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34589 (*tldo_ldsb2_sp32): Merge into...
34590 (*tldo_ldsb2_sp64): Likewise.
34591 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34592 (*tldo_ldub3_sp64): Use DImode throughout.
34593 (*tldo_ldsb3_sp64): Likewise.
34594 (*tldo_lduh_sp32): Merge into...
34595 (*tldo_lduh_sp64): Likewise.
34596 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34597 (*tldo_lduh1_sp32): Merge into...
34598 (*tldo_lduh1_sp64): Likewise.
34599 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34600 (*tldo_ldsh1_sp32): Merge into...
34601 (*tldo_ldsh1_sp64): Likewise.
34602 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34603 (*tldo_lduh2_sp64): Use DImode throughout.
34604 (*tldo_ldsh2_sp64): Likewise.
34605 (*tldo_lduw_sp32): Merge into...
34606 (*tldo_lduw_sp64): Likewise.
34607 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34608 (*tldo_lduw1_sp64): Use DImode throughout.
34609 (*tldo_ldsw1_sp64): Likewise.
34610 (*tldo_ldx_sp64): Likewise.
34611 (*tldo_stb_sp32): Merge into...
34612 (*tldo_stb_sp64): Likewise.
34613 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34614 (*tldo_sth_sp32): Merge into...
34615 (*tldo_sth_sp64): Likewise.
34616 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34617 (*tldo_stw_sp32): Merge into...
34618 (*tldo_stw_sp64): Likewise.
34619 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34620 (*tldo_stx_sp64): Use DImode throughout.
34621
34622 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34623
34624 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34625 check configure option to set BTI and Return Address Signing.
34626 * configure.ac: Add --enable-standard-branch-protection and
34627 --disable-standard-branch-protection.
34628 * configure: Regenerated.
34629 * doc/install.texi: Document the same.
34630
34631 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34632 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34633
34634 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34635 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34636 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34637 if bti is enabled.
34638 * config/aarch64/aarch64-bti-insert.c: New file.
34639 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34640 pass.
34641 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34642 new bti pass.
34643 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34644 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34645 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34646 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34647
34648 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34649
34650 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34651 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34652 Disable bti for -mbranch-protection=none.
34653 (aarch64_handle_standard_branch_protection): Enable bti for
34654 -mbranch-protection=standard.
34655 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34656 -mbranch-protection.
34657 (aarch64_bti_enabled): Check if bti is enabled.
34658 * config/aarch64/aarch64.opt: Declare target variable.
34659 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34660
34661 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34662
34663 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34664 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34665 (aarch64_expand_epilogue): Likewise.
34666 (aarch64_output_mi_thunk): Likewise.
34667 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34668 TAILCALL_ADDR_REGS to x16 and x17.
34669 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34670
34671 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34672
34673 * config/aarch64/aarch64-option-extensions.def: Define
34674 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34675 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34676 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34677 (AARCH64_FL_PREDRES): New.
34678 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34679 AARCH64_FL_PREDRES by default.
34680 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34681
34682 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34683
34684 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34685 ARMv8.5-A.
34686 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34687 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34688 * doc/invoke.texi: Document ARMv8.5-A.
34689
34690 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34691
34692 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34693 (xorsign<mode>3): Likewise.
34694
34695 2019-01-09 Jelinek <jakub@redhat.com>
34696
34697 PR middle-end/88758
34698 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34699 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34700
34701 PR rtl-optimization/88331
34702 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34703 not currently_expanding_to_rtl.
34704
34705 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34706
34707 * doc/invoke.texi (-Os): Remove trailing spaces.
34708 (-finline-functions): Remove reference to -O2.
34709
34710 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34711
34712 PR rtl-optimization/79593
34713 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34714
34715 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34716 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34717
34718 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34719
34720 PR bootstrap/88721
34721 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34722 to -1 on entry.
34723
34724 PR debug/88723
34725 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34726 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34727
34728 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34729
34730 PR target/88717
34731 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34732 ix86_avx_u128_mode_entry.
34733
34734 2019-01-08 Martin Liska <mliska@suse.cz>
34735
34736 PR tree-optimization/88753
34737 * tree-switch-conversion.c (switch_conversion::build_one_array):
34738 Come up with local variable constructor. Convert first to
34739 type of constructor values.
34740
34741 2019-01-08 Richard Biener <rguenther@suse.de>
34742
34743 PR tree-optimization/86554
34744 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34745 rpo_avail): Move earlier.
34746 (visit_nary_op): When value-numbering to expressions
34747 with different overflow behavior make sure there's an
34748 available expression on the path.
34749
34750 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34751
34752 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34753 aarch64_parse_branch_protection,
34754 struct aarch64_branch_protect_type,
34755 aarch64_handle_no_branch_protection,
34756 aarch64_handle_standard_branch_protection,
34757 aarch64_validate_mbranch_protection,
34758 aarch64_handle_pac_ret_protection,
34759 aarch64_handle_attr_branch_protection,
34760 accepted_branch_protection_string,
34761 aarch64_pac_ret_subtypes,
34762 aarch64_branch_protect_types,
34763 aarch64_handle_pac_ret_leaf): Define.
34764 (aarch64_override_options_after_change_1, aarch64_override_options):
34765 Add check for accepted_branch_protection_string.
34766 (aarch64_option_save): Save accepted_branch_protection_string.
34767 (aarch64_option_restore): Save accepted_branch_protection_string.
34768 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34769 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34770 msign-return-address.
34771 * doc/invoke.texi: Add mbranch-protection.
34772
34773 2019-01-08 Alan Modra <amodra@gmail.com>
34774
34775 PR target/88614
34776 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34777 Delete "unknownp" parameter. Adjust callers. Handle
34778 CONST_INT, PLUS, MINUS, and MULT.
34779 (attr_value_aligned): Renamed from or_attr_value.
34780 (min_attr_value): Return INT_MIN for unhandled rtl case..
34781 (min_fn): ..and translate to INT_MAX here.
34782 (write_length_unit_log): Modify to cope without "unknown".
34783 (write_attr_value): Handle IF_THEN_ELSE.
34784
34785 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34786
34787 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34788 optimization for masked stores.
34789
34790 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34791
34792 PR middle-end/88567
34793 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34794 output vector directly to duplicate_and_interleave instead of
34795 going through a temporary. Postpone insertion of ctor_seq to
34796 the end of the loop.
34797
34798 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34799
34800 PR target/86891
34801 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34802 unsigned_p. Handle signed and unsigned overflow correction as
34803 required.
34804 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34805 prototype.
34806 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34807 for operand 2.
34808 (add<mode>3_compareV_imm): Make this callable for expanding.
34809 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34810 aarch64_plus_operand for operand 2.
34811 (subv<GPI:mode>_insn): New insn pattern.
34812 (subv<GPI:mode>_imm): Likewise.
34813 (negv<GPI:mode>3): New expand pattern.
34814 (negv<GPI:mode>_insn): New insn pattern.
34815 (negv<GPI:mode>_cmp_only): Likewise.
34816 (cmpv<GPI:mode>_insn): Likewise.
34817 (subvti4): Use register_operand for operand 1. Update call to
34818 aarch64_expand_subvti.
34819 (usubvti4): Likewise.
34820 (negvti3): New expand pattern.
34821 (negdi_carryout): New insn pattern.
34822 (negvdi_carryinV): New insn pattern.
34823 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34824 version the named version.
34825 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34826 operands.
34827 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34828 patterns.
34829 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34830 patterns.
34831 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34832 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34833 (sub<mode>3_carryinCV): Delete.
34834 (sub<GPI:mode>3_carryinV): New expand pattern.
34835 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34836
34837 2019-01-07 Richard Biener <rguenther@suse.de>
34838
34839 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34840 of tree_operand_hash.
34841
34842 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34843
34844 PR tree-optimization/88598
34845 * tree.h (single_nonzero_element): Declare.
34846 * tree.c (single_nonzero_element): New function.
34847 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34848 if I is the only nonzero element of CST.
34849
34850 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34851
34852 PR tree-optimization/88598
34853 * tree.h (initializer_each_zero_or_onep): Declare.
34854 * tree.c (initializer_each_zero_or_onep): New function.
34855 (signed_or_unsigned_type_for): Handle float types too.
34856 (unsigned_type_for, signed_type_for): Update comments accordingly.
34857 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34858 x & { 0 or -1, 0 or -1, ... }.
34859
34860 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34861
34862 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34863 with x86_64-pc-linux-gnu.
34864
34865 2019-01-07 Tom de Vries <tdevries@suse.de>
34866
34867 PR target/85486
34868 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34869 function.
34870 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34871 routines.
34872
34873 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34874
34875 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34876 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34877 TARGET_AVX512F as condition.
34878
34879 PR debug/88723
34880 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34881 const_not_ok_for_debug_p target hook.
34882 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34883 on UNSPEC and subexpressions thereof if all subexpressions of the
34884 UNSPEC are CONSTANT_P.
34885
34886 PR tree-optimization/88676
34887 * tree-ssa-phiopt.c (two_value_replacement): New function.
34888 (tree_ssa_phiopt_worker): Call it.
34889
34890 PR sanitizer/88619
34891 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34892 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34893
34894 PR c++/85052
34895 * tree-vect-generic.c: Include insn-config.h and recog.h.
34896 (expand_vector_piecewise): Add defaulted ret_type argument,
34897 if non-NULL, use that in preference to type for the result type.
34898 (expand_vector_parallel): Formatting fix.
34899 (do_vec_conversion, do_vec_narrowing_conversion,
34900 expand_vector_conversion): New functions.
34901 (expand_vector_operations_1): Call expand_vector_conversion
34902 for VEC_CONVERT ifn calls.
34903 * internal-fn.def (VEC_CONVERT): New internal function.
34904 * internal-fn.c (expand_VEC_CONVERT): New function.
34905 * fold-const-call.c (fold_const_vec_convert): New function.
34906 (fold_const_call): Use it for CFN_VEC_CONVERT.
34907 * doc/extend.texi (__builtin_convertvector): Document.
34908
34909 2019-01-07 Tom de Vries <tdevries@suse.de>
34910
34911 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34912 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34913 vector_red_partition, vector_red_sym): New global variables.
34914 (nvptx_option_override): Initialize vector_red_sym.
34915 (nvptx_declare_function_name): Restore red_partition register.
34916 (nvptx_file_end): Emit code to declare the vector reduction variables.
34917 (nvptx_output_red_partition): New function.
34918 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34919 large vector reductions.
34920 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34921 (nvptx_init_builtins): Add VECTOR_ADDR.
34922 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34923 Handle nvptx_expand_shared_addr.
34924 (nvptx_get_shared_red_addr): Add vector argument and handle large
34925 vectors.
34926 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34927 large vectors.
34928 (nvptx_goacc_reduction_init): Likewise.
34929 (nvptx_goacc_reduction_fini): Likewise.
34930 (nvptx_goacc_reduction_teardown): Likewise.
34931 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34932 init,fini,teardown}.
34933 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34934 (nvptx_set_current_function): Init vector_red_partition.
34935 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34936 (nvptx_red_partition): New insn.
34937 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34938
34939 2019-01-07 Tom de Vries <tdevries@suse.de>
34940
34941 PR target/85381
34942 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34943 empty loops.
34944
34945 2019-01-07 Tom de Vries <tdevries@suse.de>
34946
34947 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34948 (nvptx_option_override): Init oacc_bcast_partition.
34949 (nvptx_init_oacc_workers): New function.
34950 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34951 (nvptx_needs_shared_bcast): New function.
34952 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34953 to propagate state.
34954 (nvptx_shared_propagate): Initialize vector bcast partition and
34955 synchronization state.
34956 (nvptx_single): Generalize to enable vectors to use shared-memory
34957 to propagate state.
34958 (nvptx_process_pars): Likewise.
34959 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34960 * config/nvptx/nvptx.h (struct machine_function): Add
34961 bcast_partition and sync_bar members.
34962
34963 2019-01-07 Tom de Vries <tdevries@suse.de>
34964
34965 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34966 (nvptx_apply_dim_limits): New function.
34967 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34968 PTX_WARP_SIZE.
34969
34970 2019-01-07 Tom de Vries <tdevries@suse.de>
34971
34972 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34973 as late as possible.
34974
34975 2019-01-07 Tom de Vries <tdevries@suse.de>
34976
34977 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34978 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34979 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34980 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34981 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34982
34983 2019-01-07 Tom de Vries <tdevries@suse.de>
34984
34985 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34986
34987 2019-01-07 Tom de Vries <tdevries@suse.de>
34988
34989 * omp-offload.c (oacc_get_min_dim): New function.
34990 * omp-offload.h (oacc_get_min_dim): Declare.
34991
34992 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34993
34994 PR target/88521
34995 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34996 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34997
34998 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34999
35000 PR tree-opt/86020
35001 Revert:
35002 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35003
35004 * ipa-inline.c (edge_badness): Use inlined_time instead of
35005 inline_summaries->get.
35006
35007 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35008
35009 * opts.c (enable_fdo_optimizations): Enable
35010 version-loops-for-strides, loop-interchange, unrol-and-jam
35011 and tree-loop-distribution.
35012 * invoke.texi: Document newly enabled options.
35013
35014 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35015
35016 * doc/invoke.texi (max-inline-insns-small): New parameters.
35017 * ipa-inline.c (want_early_inline_function_p): simplify.
35018 (want_inline_small_function_p): Fix pasto from previous patch;
35019 use max-inline-insns-small bound.
35020 * params.def (max-inline-insns-small): New param.
35021 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35022 variables correctly.
35023
35024 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35025
35026 * doc/invoke.texi: Document max-inline-insns-size,
35027 uninlined-function-insns, uninlined-function-time,
35028 uninlined-thunk-insns and uninlined-thunk-time.
35029 * params.def: Add max-inline-insns-size,
35030 uninlined-function-insns, uninlined-function-time,
35031 uninlined-thunk-insns and uninlined-thunk-time.
35032 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35033 new parameters.
35034 * ipa-inline.c (can_inline_edge_by_limits_p,
35035 want_inline_small_function_p): Use new parameters.
35036
35037 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35038
35039 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35040
35041 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35042
35043 PR middle-end/82564
35044 PR target/88620
35045 * expr.c (expand_assignment): For calls returning VLA structures
35046 if to_rtx is not a MEM, force it into a stack temporary.
35047
35048 PR debug/88635
35049 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35050 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35051 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35052 subexpressions of both operands.
35053 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35054 subrtxes are CONSTANT_P.
35055 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35056 2018-11-09 changes.
35057
35058 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35059
35060 * params.def (hot-bb-count-ws-permille): Set to 990.
35061
35062 2019-01-04 Martin Sebor <msebor@redhat.com>
35063
35064 PR c/88546
35065 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35066 leaf.
35067
35068 2019-01-04 Martin Sebor <msebor@redhat.com>
35069
35070 PR c/88363
35071 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35072
35073 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35074
35075 * gdbinit.in: Turn off pagination for the skip commands, restore
35076 it to previous state afterwards.
35077
35078 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35079
35080 PR target/88594
35081 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35082 of GET_MODE (opN) as modes of the libcall arguments.
35083
35084 2019-01-04 Jan Beulich <jbeulich@suse.com>
35085
35086 * config/i386/sse.md
35087 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35088 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35089 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35090 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35091 avx512f_vmcmp<mode>3<round_saeonly_name>,
35092 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35093 avx512f_maskcmp<mode>3,
35094 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35095 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35096 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35097 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35098 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35099 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35100 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35101 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35102 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35103 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35104 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35105 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35106 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35107 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35108 avx512cd_maskb_vec_dup<mode>,
35109 avx512cd_maskw_vec_dup<mode>,
35110 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35111 avx512dq_vmfpclass<mode>,
35112 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35113 instead of =Yk.
35114
35115 2019-01-03 Martin Sebor <msebor@redhat.com>
35116
35117 PR tree-optimization/88659
35118 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35119
35120 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35121
35122 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35123 unaligned vsx and avoid lxvd2x/stxvd2x.
35124 (gen_lvx_v4si_move): New function.
35125
35126 2019-01-03 Tom de Vries <tdevries@suse.de>
35127
35128 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35129 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35130 function.
35131 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35132
35133 2019-01-03 Tom de Vries <tdevries@suse.de>
35134
35135 * config/nvptx/nvptx.c (struct offload_attrs): New.
35136 (populate_offload_attrs): New function. Factor mask extraction out of
35137 nvptx_reorg. Add extraction of dimensions.
35138 (nvptx_reorg): Use populate_offload_attrs.
35139
35140 2019-01-03 Tom de Vries <tdevries@suse.de>
35141
35142 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35143 cases for oacc_min_dims_p and routine_p. Add asserts for
35144 oacc_default_dims_p and offload_region_p.
35145
35146 2019-01-03 Tom de Vries <tdevries@suse.de>
35147
35148 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35149 factored out of ...
35150 (nvptx_goacc_validate_dims): ... here.
35151
35152 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35153
35154 PR tree-optimization/85574
35155 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35156 structure.
35157 (struct ssa_equip_hash_traits): Declare.
35158 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35159
35160 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35161
35162 PR debug/88644
35163 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35164 change it to qualified_type.
35165
35166 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35167
35168 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35169 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35170
35171 2019-01-02 Martin Sebor <msebor@redhat.com>
35172 Jeff Law <law@redhat.com>
35173
35174 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35175 (get_range_strlen_tree): Update appropriately.
35176 (get_range_strlen)
35177 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35178
35179 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35180 rather than set_range_info.
35181 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35182 maybe_set_strlen_range. Handle potentially boundary crossing
35183 cases more conservatively.
35184 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35185 Call set_strlen_range.
35186 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35187
35188 PR middle-end/88663
35189 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35190 need the flexp argument.
35191 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35192 from calls to get_range_strlen. Update comments. Just update
35193 VAL for an unterminated const char array and let the reset of the
35194 code handle it normally. No longer try to set *flexp. Adjust
35195 return value.
35196 (get_range_strlen): Update for the new get_range_strlen API.
35197 (get_maxval_strlen): Similarly.
35198 (gimple_fold_builtin_strlen): Handle update meaning of return value
35199 from get_range_strlen.
35200 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35201 get_range_strlen API.
35202
35203 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35204
35205 PR lto/88130
35206 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35207 false at WPA time when body was removed.
35208
35209 2019-01-02 Martin Liska <mliska@suse.cz>
35210
35211 PR tree-optimization/88650
35212 * predict.c (set_even_probabilities): Calculate probability
35213 remainer only when really used.
35214
35215 2019-01-02 Richard Biener <rguenther@suse.de>
35216
35217 PR middle-end/88651
35218 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35219 widest_ints when mangling max_stmt_execution results.
35220
35221 2019-01-02 Richard Biener <rguenther@suse.de>
35222
35223 PR tree-optimization/88621
35224 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35225 bitfields when canoncalizing.
35226
35227 2019-01-02 Richard Biener <rguenther@suse.de>
35228
35229 PR target/87545
35230 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35231 cost of cheap SSE instruction.
35232
35233 2019-01-02 Richard Biener <rguenther@suse.de>
35234
35235 PR ipa/85574
35236 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35237 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35238 function.
35239 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35240 set after UIDs before splitting them.
35241
35242 2019-01-01 Martin Sebor <msebor@redhat.com>
35243 Jeff Law <law@redhat.com>
35244
35245 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35246 length is optimistic. If it is, then arrange to compute the
35247 conservative length as well.
35248
35249 * gimple-fold.h (get_range_strlen): Update prototype.
35250 * builtins.c (check_access): Update call to get_range_strlen to use
35251 c_strlen_data pointer. Change various variable accesses to instead
35252 pull data from the c_strlen_data structure.
35253 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35254 * calls.c (maybe_warn_nonstring_arg): Likewise.
35255 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35256 minimum length if maximum lengh is unknown.
35257 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35258 that used c_strlen, it's no longer needed. Restructure slightly.
35259 (format_string): Set unlikely range appropriately.
35260 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35261 formatting issues.
35262 (get_range_strlen): Accept c_strlen_data pointer for external
35263 call sites as well. Pass through to call to internal get_range_strlen.
35264 Adjust minlen, maxlen and maxbound as needed.
35265 (get_maxval_strlen): Update comments.
35266 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35267 to use c_strlen_data pointer. Change variable accesses to instead
35268 use c_strlen_data data members.
35269
35270 * gimple-fold.c (get_range_strlen): Update prototype.
35271 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35272 local variables. Use pdata to return information to caller.
35273 Update calls to get_range_strlen. Update pdata->maxbound.
35274 (get_range_strlen -- static version): Similarly.
35275 (get_range_strlen -- extern version): Update for internal
35276 get_range_strlen API change. Convert to external data format.
35277 (get_maxval_strlen): Similarly.
35278
35279 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35280
35281 * coverage.c (get_coverage_counts): Use current_function_decl.
35282 * profile.c (read_thunk_profile): New function.
35283 (branch_prob): Add THUNK parameter.
35284 * tree-profile.c (tree_profiling): Handle thunks.
35285 * value-prof.c (init_node_map): Handle thunks.
35286 * value-prof.h (branch_prob): Upate prototype.
35287 (read_thunk_profile): Declare.
35288
35289 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35290
35291 Update copyright years.
35292
35293 * gcc.c (process_command): Update copyright notice dates.
35294 * gcov-dump.c (print_version): Ditto.
35295 * gcov.c (print_version): Ditto.
35296 * gcov-tool.c (print_version): Ditto.
35297 * gengtype.c (create_file): Ditto.
35298 * doc/cpp.texi: Bump @copying's copyright year.
35299 * doc/cppinternals.texi: Ditto.
35300 * doc/gcc.texi: Ditto.
35301 * doc/gccint.texi: Ditto.
35302 * doc/gcov.texi: Ditto.
35303 * doc/install.texi: Ditto.
35304 * doc/invoke.texi: Ditto.
35305 \f
35306 Copyright (C) 2019 Free Software Foundation, Inc.
35307
35308 Copying and distribution of this file, with or without modification,
35309 are permitted in any medium without royalty provided the copyright
35310 notice and this notice are preserved.