re PR tree-optimization/92818 (Typo in vec_perm -> bit_insert pattern)
[gcc.git] / gcc / ChangeLog
1 2019-12-05 Richard Biener <rguenther@suse.de>
2
3 PR middle-end/92818
4 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
5 heuristics on what don't care element to choose.
6 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
7
8 2019-12-05 Martin Liska <mliska@suse.cz>
9
10 PR gcov-profile/92817
11 * coverage.c (build_gcov_exit_decl): Remove superfluous
12 void_type_node.
13
14 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15
16 * config/msp430/msp430.md (cbranch<mode>4): Use
17 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
18 dest operand of CMP instruction.
19 (cbranchpsi4_real): Likewise.
20 (cbranchqi4_real): Likewise.
21 (cbranchhi4_real): Likewise.
22 (cbranchpsi4_reversed): Likewise.
23 (cbranchqi4_reversed): Likewise.
24 (cbranchhi4_reversed): Likewise.
25
26 2019-12-05 Richard Biener <rguenther@suse.de>
27
28 PR tree-optimization/92803
29 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
30 invariant vector construction.
31
32 2019-12-05 Martin Liska <mliska@suse.cz>
33
34 PR gcov-profile/91971
35 * coverage.c (coverage_init): Mangle full path
36 only when -fprofile-dir is used.
37
38 2019-12-05 Jakub Jelinek <jakub@redhat.com>
39
40 PR target/92791
41 * config/i386/i386.md (movstrict<mode>): Move test for
42 TARGET_PARTIAL_REG_STALL and not optimizing for size from
43 expander's condition to the body - FAIL; in that case.
44
45 2019-12-03 Martin Sebor <msebor@redhat.com>
46
47 PR middle-end/91582
48 * builtins.c (gimple_call_alloc_size): New function.
49 (compute_objsize): Add argument. Call gimple_call_alloc_size.
50 Handle variable offsets and indices.
51 * builtins.h (gimple_call_alloc_size): Declare.
52 (compute_objsize): Add argument.
53 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
54 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
55
56 2019-12-04 Julian Brown <julian@codesourcery.com>
57
58 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
59
60 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
61
62 PR bootstrap/92661
63 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
64 rs6000.h.
65 (altivec_overloaded_builtins): Move to rs6000-call.c.
66 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
67 rs6000-c.c.
68 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
69 (altivec_overloaded_builtins): Moved from rs6000-c.c.
70 (rs6000_common_init_builtins): Do no define builtins that overload
71 builtins that have been disabled.
72
73 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
74
75 * config/arm/arm.c (arm_option_override_internal):
76 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
77
78 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
79
80 * config/aarch64/aarch64.c
81 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
82 (thunderx_tunings): Likewise.
83 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
84 (thunderx2t99_tunings): Likewise.
85 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
86 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
87
88 2019-12-04 Richard Biener <rguenther@suse.de>
89
90 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
91 empty CTOR and memset partial-def registering. Take advantage
92 of fancy offset analysis in memset handling.
93
94 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
95
96 * fold-const.c (native_encode_vector_part): Handle
97 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
98 (native_decode_vector_tree): Delete, moving the bulk of the code to...
99 (native_interpret_vector_part): ...this new function. Use a pointer
100 and length instead of a vec<> and start index.
101 (native_interpret_vector): Use native_interpret_vector_part.
102 (fold_view_convert_vector_encoding): Likewise.
103
104 2019-12-04 Richard Biener <rguenther@suse.de>
105
106 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
107 non-constant defs in the most trivial way.
108 (vn_reference_lookup_3): Also push down SSA partial defs.
109
110 2019-12-04 Martin Liska <mliska@suse.cz>
111
112 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
113 Initialize count of newly created BB.
114
115 2019-12-04 Jakub Jelinek <jakub@redhat.com>
116
117 PR tree-optimization/92734
118 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
119 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
120
121 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
122
123 PR target/92760
124 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
125 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
126
127 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
128
129 * ipa-fnsummary.c: Include tree-into-ssa.h.
130 (compute_fn_summary): Call update_ssa.
131
132 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
133
134 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
135 is set only for symbol in comdat group.
136 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
137
138 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
139
140 * cgraph.c: Include tree-into-ssa.h
141 (cgraph_node::get_body): Call update_ssa.
142 * cgraphunit.c (cgraph_node::expand): Likewise.
143 * lto-streamer-in.c (input_function): Do not call update_ssa.
144
145 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
146
147 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
148 an array element size if array_element_size is already an invariant.
149 Similarly don't gimplify and install a field offset if
150 component_ref_field_offset is already an invariant.
151
152 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
153
154 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
155 with POLY_INT_CST size is made to a fixed-size object, force the
156 object to live in memory.
157
158 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
159
160 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
161 for the data mode.
162
163 2019-12-03 Richard Biener <rguenther@suse.de>
164
165 PR tree-optimization/92758
166 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
167 operation on uniform vectors.
168
169 2019-12-03 Richard Biener <rguenther@suse.de>
170
171 PR tree-optimization/92645
172 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
173 from or to a properly aligned register variable.
174
175 2019-12-03 Matthias Klose <doko@ubuntu.com>
176
177 * Makefile.in (SOURCES): Add doc/lto-dump.1.
178 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
179 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
180
181 2019-12-03 Richard Biener <rguenther@suse.de>
182
183 PR tree-optimization/92751
184 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
185 when a clobber ends up in the partial-def vector.
186 (vn_reference_lookup_3): Let clobbers be handled by the
187 assignment from CTOR handling.
188
189 2019-12-03 Jakub Jelinek <jakub@redhat.com>
190
191 PR tree-optimization/92734
192 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
193 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
194 inner subtraction.
195
196 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
197 Jakub Jelinek <jakub@redhat.com>
198
199 PR target/92744
200 * config/i386/i386.md (peephole2 for *swap<mode>): Use
201 general_reg_operand predicates instead of register_operand.
202
203 2019-12-03 Richard Biener <rguenther@suse.de>
204
205 PR tree-optimization/92645
206 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
207 a full def of a vector via a BIT_INSERT_EXPR.
208
209 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
210
211 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
212 static.
213 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
214 decl.
215
216 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
217
218 PR middle-end/92741
219 * fold-const.c (fold_convertible_p): Check vector types more
220 thoroughly.
221
222 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
223
224 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
225 (aarch64_expand_mov_immediate): Use it when attempting to measure
226 the length of an SVE vector.
227 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
228 SVE is enabled.
229
230 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
231
232 * config/aarch64/aarch64-sve-builtins.h
233 (gimple_folder::force_vector): Declare.
234 * config/aarch64/aarch64-sve-builtins.cc
235 (gimple_folder::force_vector): New function.
236 * config/aarch64/aarch64-sve-builtins-base.cc
237 (svcmp_impl::fold): Likewise.
238 (svdup_impl::fold): Handle svdup_z too.
239
240 2019-12-02 Martin Liska <mliska@suse.cz>
241
242 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
243 function.
244 (debug_tree_odr_name): New.
245 * ipa-utils.h (get_odr_name_for_type): New.
246
247 2019-12-02 Richard Biener <rguenther@suse.de>
248
249 PR tree-optimization/92742
250 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
251 touch the def-type but verify it is consistent with the
252 original stmts.
253
254 2019-12-02 Jakub Jelinek <jakub@redhat.com>
255
256 PR tree-optimization/92712
257 * match.pd ((A * B) +- A -> (B +- 1) * A,
258 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
259 even when we don't know anything about range of A, but do know
260 something about range of B and the simplification won't introduce
261 new UB.
262
263 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
264
265 PR ipa/92133
266 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
267 (ipa-cp-min-recursive-probability): Likewise.
268 * params.opt (ipa-cp-max-recursive-depth): New.
269 (ipa-cp-min-recursive-probability): Likewise.
270 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
271 val_p and unlimited.
272 (self_recursively_generated_p): New function.
273 (get_val_across_arith_op): Likewise.
274 (propagate_vals_across_arith_jfunc): Add constant propagation for
275 self-recursive function.
276 (incorporate_penalties): Do not penalize pure self-recursive function.
277 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
278 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
279 (get_info_about_necessary_edges): Relax hotness check for edge to
280 self-recursive function.
281 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
282
283 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
284
285 PR target/92499
286
287 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
288 objects of flexible types to be small if they have internal linkage
289 or are declared extern.
290 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
291 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
292 instead of the size of the object initializer.
293 * tree.c (flexible_array_type_p): Move from C front end, and
294 generalize to handle fields in non-C structures.
295 * tree.h (flexible_array_type_p): Declare.
296
297 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
298
299 * profile-count.h (profile_count::operator<): Use IPA value for
300 comparsion.
301 (profile_count::operator>): Likewise.
302 (profile_count::operator<=): Likewise.
303 (profile_count::operator>=): Likewise.
304 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
305
306 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
307
308 * ipa-inline.c (compute_max_insns): Return int64_t.
309 (inline_small_functions): Simplify.
310
311 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
312
313 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
314 scaling happen.
315
316 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
317
318 * cgraph.h (symtab_node): Add symver flag.
319 * cgraphunit.c (process_symver_attribute): New.
320 (process_common_attributes): Use process_symver_attribute.
321 * lto-cgraph.c (lto_output_node): Stream symver.
322 (lto_output_varpool_node): Stream symver.
323 (input_overwrite_node): Stream symver.
324 (input_varpool_node): Stream symver.
325 * output.h (do_assemble_symver): Decalre.
326 * symtab.c (symtab_node::dump_base): Dump symver.
327 (symtab_node::verify_base): Verify symver.
328 (symtab_node::resolve_alias): Handle symver.
329 * varasm.c (do_assemble_symver): New function.
330 * varpool.c (varpool_node::assemble_aliases): Use it.
331 * doc/extend.texi: (symver attribute): Document.
332 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
333
334 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
335
336 * target.h (type_context_kind): New enum.
337 (verify_type_context): Declare.
338 * target.def (verify_type_context): New target hook.
339 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
340 * doc/tm.texi: Regenerate.
341 * tree.c (verify_type_context): New function.
342 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
343 Declare.
344 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
345 New function.
346 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
347 (TARGET_VERIFY_TYPE_CONTEXT): Define.
348
349 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
350
351 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
352 * cgraph.h (cgraph_node): Add unit_id and
353 merged_extern_inline.
354 (symbol_table): Add max_unit.
355 (symbol_table::symbol_table): Initialize it.
356 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
357 merged_comdat, merged_extern_inline.
358 (cgraph_node::create_clone): Likewise.
359 (cgraph_node::create_version_clone): Likewise.
360 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
361 calls.
362 * ipa-fnsummary.h (cross_module_call_p): New inline function.
363 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
364 * ipa-inline.c (inline_small_functions): Likewise.
365 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
366 copy merged_comdat and merged_extern_inline.
367 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
368 merged_extern_inline and unit_id.
369 (input_overwrite_node): Stream in these.
370 (input_cgraph_1): Set unit_base.
371 * lto-streamer.h (lto_file_decl_data): Add unit_base.
372 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
373
374 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
375
376 * gcc.c (process_command): Only warn about an ineffective `-x'
377 option if any input files have actually been supplied.
378
379 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
380
381 * doc/install.texi (Options specification): Remove the list of
382 target library subdirectories supporting
383 `--enable-version-specific-runtime-libs'. Document defaults for
384 the option.
385
386 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
387
388 PR rtl-optimization/92283
389 * lra.c (lra): Update reg notes after inheritance sub-pass and
390 before constraint sub-pass.
391
392 2019-11-29 Richard Biener <rguenther@suse.de>
393
394 PR tree-optimization/91003
395 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
396 operand number, avoid handling the non-condition operands of
397 COND_EXPRs as comparisons.
398 (vect_get_constant_vectors): Pass down the operand number.
399 (vect_get_slp_defs): Likewise.
400
401 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
402
403 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
404 generic_expr_could_trap_p to check if the condition of COND_EXPR or
405 VEC_COND_EXPR can trap.
406
407 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
408
409 PR tree-optimization/92677
410 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
411 to zero when dissolving a group of strided accesses.
412
413 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
414
415 PR tree-optimization/92596
416 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
417 operations.
418 (vectorizable_operation): Likewise, instead of relying on
419 vect_get_mask_type_for_stmt to do this.
420 (vect_get_vector_types_for_stmt): Always return a vector type
421 immediately, rather than deferring the choice for boolean results.
422 Use a vector mask type instead of a normal vector if
423 vect_use_mask_type_p.
424 (vect_get_mask_type_for_stmt): Delete.
425 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
426 mask_producers argument and special boolean_type_node handling.
427 (vect_determine_vf_for_stmt): Remove mask_producers argument and
428 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
429 (vect_determine_vectorization_factor): Update call accordingly.
430 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
431 boolean_type_node handling.
432 (vect_slp_analyze_node_operations_1): Likewise.
433
434 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
435
436 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
437 (vect_use_mask_type_p): New function.
438 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
439 mask precision to the pattern statement.
440 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
441 and use it to initialize the new stmt's mask precision.
442 (search_type_for_mask_1): Delete.
443 (search_type_for_mask): Replace with...
444 (integer_type_for_mask): ...this new function. Use the information
445 cached in the stmt_vec_info.
446 (vect_recog_bool_pattern): Update accordingly.
447 (build_mask_conversion): Pass the scalar type associated with the
448 mask type to append_pattern_def_seq.
449 (vect_recog_mask_conversion_pattern): Likewise. Call
450 integer_type_for_mask instead of search_type_for_mask.
451 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
452 of search_type_for_mask.
453 (possible_vector_mask_operation_p): New function.
454 (vect_determine_mask_precision): Likewise.
455 (vect_determine_stmt_precisions): Call it.
456
457 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
458
459 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
460 the slp_tree parameter with a group size parameter.
461 (vect_get_mask_type_for_stmt): Likewise.
462 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
463 (vect_get_mask_type_for_stmt): Likewise.
464 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
465 call accordingly.
466
467 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
468
469 * tree-vect-stmts.c (vectorizable_operation): Punt early
470 on codes that are handled elsewhere.
471
472 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
473
474 * doc/sourcebuild.texi (vect_bool_cmp): Document.
475 * tree-vect-patterns.c (search_type_for_mask_1): If neither
476 operand to a boolean comparison is a natural vector mask,
477 handle both operands like normal integers instead.
478
479 2019-11-29 Richard Biener <rguenther@suse.de>
480
481 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
482 out early for too large objects.
483
484 2019-11-29 Martin Jambor <mjambor@suse.cz>
485
486 PR ipa/92476
487 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
488 the summary only if the summary exists.
489 (find_more_scalar_values_for_callers_subset): Check node_dead in
490 the summary only if the summary exists.
491 (ipcp_store_bits_results): Ignore nodes without lattices.
492 (ipcp_store_vr_results): Likewise.
493 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
494 header files required by them.
495 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
496
497 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
498
499 PR tree-optimization/92710
500 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
501 vector mask arguments.
502
503 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
504
505 * profile-count.c (profile_count::to_cgraph_frequency,
506 profile_count::to_sreal_scale): Check for compaibility of counts.
507 * profile-count.h (compatible_p): Make public; add checking for
508 global0 versus global types.
509 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
510
511 2019-11-29 Richard Biener <rguenther@suse.de>
512
513 PR tree-optimization/92715
514 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
515 out for uniform vectors and source vectors with less elements
516 than the destination.
517
518 2019-11-29 Martin Liska <mliska@suse.cz>
519
520 PR lto/91574
521 * ipa-devirt.c (types_same_for_odr): Check for existence
522 of TYPE_NAMEs first.
523
524 2019-11-29 Richard Biener <rguenther@suse.de>
525
526 PR tree-optimization/92704
527 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
528 in loops performing only loads.
529
530 2019-11-29 Julian Brown <julian@codesourcery.com>
531
532 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
533 BT_DFLOAT128_PTR) Remove.
534 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
535 TI_DFLOAT128_PTR_TYPE): Remove.
536 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
537 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
538 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
539 dfloat128_ptr_type_node): Remove macros.
540
541 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
542
543 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
544 formatting.
545 (*movdi_internal64): Ditto.
546
547 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
548
549 PR target/92602
550 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
551 indexed_or_indirect_operand to be memory_operand.
552 (bswap<mode>2_store for HSI): Ditto.
553 (bswapdi2_load): Ditto.
554 (bswapdi2_store): Ditto.
555
556 2019-11-28 Martin Liska <mliska@suse.cz>
557
558 PR debug/46558
559 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
560 headers for translation.
561
562 2019-11-28 Martin Liska <mliska@suse.cz>
563
564 PR lto/92609
565 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
566 consistently.
567
568 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
569
570 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
571 checks.
572
573 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
574
575 * profile-count.c (profile_count::combine_with_ipa_count): Return
576 uninitialized count if called on ininitialized count.
577
578 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
579
580 * ipa-inline-transform.c (inline_transform): Scale profile before
581 redirecting.
582
583 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
584
585 * profile-count.h (profile_count::max): Work on profiles of different
586 type.
587 (profile_count::apply_scale): Be sure that ret is not local or global0
588 type if num is global.
589
590 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
591
592 * profile-count.h (profile_count::max): Work on profiles of different
593 type.
594 (profile_count::apply_scale): Be sure that ret is not local or global0
595 type if num is global.
596
597 2019-11-28 Martin Jambor <mjambor@suse.cz>
598
599 PR ipa/92697
600 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
601 ifunc_resolvers.
602 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
603 Removed trailig whitespace.
604
605 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
606
607 * profile-count.h (profile_count::combine_with_ipa_count_within):
608 Declare.
609 * profile-count.c (profile_count::combine_with_ipa_count_within):
610 New.
611 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
612 it.
613
614 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
615
616 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
617 of counters are done same way.
618
619 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
620
621 * ipa-cp.c (update_profiling_info): Fix scaling.
622
623 2019-11-28 Richard Biener <rguenther@suse.de>
624
625 PR tree-optimization/92645
626 * tree-inline.c (remap_gimple_stmt): When the return value
627 is not wanted, elide GIMPLE_RETURN.
628
629 2019-11-28 Richard Biener <rguenther@suse.de>
630
631 PR tree-optimization/92645
632 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
633 conversions inside a mode class. Remove restriction on
634 preserving the element size.
635 (simplify_vector_constructor): Deal with the above and for
636 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
637 and VEC_PACK_TRUNC_EXPR.
638
639 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
640
641 Must use push insn to pass varargs arguments of DFmode because
642 otherwise the middle-end generates wrong code.
643
644 PR target/92055
645 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
646
647 2019-11-28 Jakub Jelinek <jakub@redhat.com>
648
649 PR tree-optimization/92691
650 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
651 in function comment.
652 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
653 calls, return !handle_printf_call rather than always returning true.
654 (check_and_optimize_stmt): Describe return value meaning in function
655 comment. Formatting fix.
656
657 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
658
659 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
660 combination of globa0 and global counters..
661
662 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
663
664 PR target/92566
665 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
666 by VECTOR_UNIT_NONE_P instead.
667
668 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
669
670 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
671 Refine VF to VF_AVX512VL.
672
673 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
674
675 * config/rs6000/rs6000.md (movsi_internal): Reformat.
676 (movdi_internal64): Reformat.
677
678 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
679
680 PR bootstrap/92661
681 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
682 builtin if we don't have an actual type.
683 (builtin_function_type): If the builtin function uses a DFP type
684 and decimal float has been disabled, then return NULL_TREE.
685
686 2019-11-27 Jakub Jelinek <jakub@redhat.com>
687
688 PR rtl-optimization/92510
689 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
690 of comparison into a comparison with different mode if both imode and
691 omode are scalar integral modes.
692
693 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
694
695 PR rtl-optimization/90007
696 * recog.c (constrain_operands): Permit hard registers too for
697 memory when LRA is used.
698
699 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
700
701 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
702 between Coldfire and regular m68k.
703 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
704
705 2019-11-27 Richard Biener <rguenther@suse.de>
706
707 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
708 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
709 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
710 * optabs-tree.c (supportable_convert_operation): Do not call
711 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
712 * optabs-tree.h (supportable_convert_operation): Adjust.
713 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
714 * doc/tm.texi: Regenerate.
715 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
716 * tree-vect-generic.c (expand_vector_conversion): Likewise.
717 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
718 unused decl parameter and adjust.
719 (vect_create_vectorized_promotion_stmts): Likewise.
720 (vectorizable_conversion): Adjust.
721
722 2019-11-27 Richard Biener <rguenther@suse.de>
723
724 PR tree-optimization/92690
725 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
726 converting elements not originally converted.
727
728 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
729
730 PR middle-end/92463
731 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
732 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
733 mpfr_rnd_t instead of mp_rnd_t.
734 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
735 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
736 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
737 Use mpfr_exp_t instead of mp_exp_t.
738 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
739 MPFR_RNDx instead of GMP_RNDx.
740 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
741 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
742 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
743 of mp_rnd_t and remove MPFR_RNDx poisoning.
744 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
745
746 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
747
748 PR tree-optimization/91790
749 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
750 DR for vect_setup_realignment when first_stmt_info is different
751 from first_stmt_info_for_drptr.
752
753 2019-11-27 Richard Biener <rguenther@suse.de>
754
755 PR tree-optimization/92645
756 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
757 CTORs with just a subset of the original vectors.
758
759 2019-11-27 Richard Biener <rguenther@suse.de>
760
761 PR middle-end/92674
762 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
763 edges and instead record blocks in bitmap.
764 (gimple_expand_calls_inline): Adjust.
765 (fold_marked_statements): Delay EH cleanup until all folding is
766 done.
767 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
768 inlining finished.
769
770 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
771
772 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
773 LRA is enabled.
774 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
775 disabled.
776
777 2019-11-27 Jakub Jelinek <jakub@redhat.com>
778
779 PR debug/92664
780 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
781
782 2019-11-26 Martin Sebor <msebor@redhat.com>
783
784 PR tree-optimization/92683
785 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
786 inadvertently removed in a previous change. Rename local variable
787 for clarity.
788
789 2019-11-26 Richard Biener <rguenther@suse.de>
790
791 PR middle-end/92669
792 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
793 NULL pre_order.
794
795 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
796
797 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
798
799 2019-11-26 Jakub Jelinek <jakub@redhat.com>
800
801 PR tree-optimization/92644
802 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
803 next to INTEGER_CST checks.
804
805 2019-11-26 Richard Biener <rguenther@suse.de>
806
807 PR tree-optimization/92645
808 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
809 do not build the operation from scalars if the operand is.
810
811 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
812
813 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
814 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
815 definitions.
816
817 2019-11-25 Martin Liska <mliska@suse.cz>
818
819 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
820 up used dump message.
821
822 2019-11-25 Martin Liska <mliska@suse.cz>
823
824 PR bootstrap/92653
825 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
826 too strict checking assert.
827
828 2019-11-25 Joseph Myers <joseph@codesourcery.com>
829
830 PR c/91985
831 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
832 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
833 error_mark_node if corresponding global tree node is NULL.
834 * tree.c (build_common_tree_nodes): Do not initialize
835 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
836 decimal floating-point not supported.
837
838 2019-11-25 Joseph Myers <joseph@codesourcery.com>
839
840 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
841 types.
842
843 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
844
845 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
846 Replace code for non-CONST_INT constants with gcc_unreachable.
847 * config/m68k/m68k.md (cbranchdi): Don't generate individual
848 compare and test.
849 (CMPMODE): New mode_iterator.
850 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
851 cbranch<mode>4.
852 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
853 cstore<mode>4.
854 (cmp<mode>_68881): Remove 'F' constraint from first comparison
855 operand.
856 (bit test insns patterns): Use nonimmediate_operand, not
857 register_operand, for source operands that allow memory in
858 their constraints.
859 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
860 Use register_operand, not nonimmediate_operand, for the
861 destinations.
862 (DBCC): New mode_iterator.
863 (dbcc peepholes): Use it to reduce duplication.
864 (trap): Use const_true_rtx, not const1_rtx.
865 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
866 from m68k_subword_comparison_operand and changed to handle
867 SImode.
868
869 PR target/91851
870 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
871 declaration.
872 (m68k_init_cc): New declaration.
873 (m68k_output_compare_di, m68k_output_compare_si)
874 (m68k_output_compare_hi, m68k_output_compare_qi)
875 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
876 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
877 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
878 m68k_output_branch_float, m68k_output_branch_float_rev):
879 Likewise.
880 (valid_dbcc_comparison_p_2, flags_in_68881)
881 (output_btst): Remove declaration.
882 * config/m68k/m68k.c (INCLDUE_STRING): Define.
883 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
884 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
885 (flags_compare_op0, flags_compare_op1, flags_operand1,
886 flags_operand2, flags_valid): New static variables.
887 (m68k_find_flags_value, m68k_init_cc): New functions.
888 (handle_flags_for_move, m68k_asm_final_postscan_insn,
889 remember_compare_flags): New static functions.
890 (output_dbcc_and_branch): New argument CODE. Use it, and add
891 PLUS and MINUS to the possible codes. All callers changed.
892 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
893 and INSN arguments, add CODE arg. Return the comparison code
894 to use. All callers changed. Use CODE instead of
895 next_insn_tests_no_inequality, and replace cc_status management
896 with changing the return code.
897 (m68k_rtx_costs): Instead of testing for COMPARE, test for
898 RTX_COMPARE or RTX_COMM_COMPARE.
899 (output_move_simode, output_move_qimode): Call
900 handle_flags_for_move.
901 (notice_update_cc): Delete function.
902 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
903 m68k_output_compare_hi, m68k_output_compare_qi,
904 m68k_output_compare_fp, m68k_output_branch_integer,
905 m68k_output_branch_integer_rev, m68k_output_scc,
906 m68k_output_branch_float, m68k_output_branch_float_rev,
907 m68k_output_scc_float): New functions.
908 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
909 once at the start, and set flags_valid and flags_operand1 if the
910 flags are usable.
911 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
912 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
913 definitions.
914 (CC_STATUS_INIT): Define.
915 * config/m68k/m68k.md (flags_valid): New define_attr.
916 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
917 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
918 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
919 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
920 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
921 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
922 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
923 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
924 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
925 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
926 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
927 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
928 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
929 ctrapqi4, conditional_trap): Delete patterns.
930 (cbranchdi4_insn): New pattern.
931 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
932 test high part only. When testing EQ or NE, generate beq0_di
933 and bne0_di patterns directly.
934 (cstoredi4): When testing LT or GE, test high part only.
935 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
936 patterns.
937 (scc0_constraints, cmp1_constraints, cmp2_constraints,
938 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
939 cmp2_cf_predicate): New define_mode_attrs.
940 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
941 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
942 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
943 New patterns.
944 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
945 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
946 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
947 New patterns.
948 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
949 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
950 Likewise.
951 (BTST): New define_mode_iterator.
952 (btst_predicate, btst_constraint, btst_range): New
953 define_mode_attrs.
954 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
955 patterns.
956 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
957 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
958 patterns): Set attr "flags_valid".
959 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
960 management. Set attr "flags_valid".
961 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
962 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
963 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
964 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
965 manual CC_STATUS management.
966 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
967 unnamed strict_lowpart subhi and subqi patterns): Set attr
968 "flags_valid".
969 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
970 Remove code to operate on address regs and assert the case
971 does not occur.
972 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
973 manual CC_STATUS_INIT.
974 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
975 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
976 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
977 one_cmplqi2, unnamed strict_lowpart patterns
978 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
979 one_cmplhi and one_cmplqi): Set attr "flags_valid".
980 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
981 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
982 CC_STATUS_INIT.
983 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
984 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
985 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
986 unnamed strict_low_part patterns for HI and
987 QI versions): Set attr "flags_valid".
988 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
989 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
990 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
991 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
992 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
993 (various unnamed peepholes): Adjust compare/branch sequences
994 for new cbranch patterns.
995 (dbcc peepholes): Likewise, and output the comparison here
996 as well.
997 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
998 (fp_src_operand): Allow constant zero.
999 (address_reg_operand): New predicate.
1000
1001 * rtl.h (inequality_comparisons_p): Remove declaration.
1002 * recog.h (next_insn_tests_no_inequality): Likewise.
1003 * rtlanal.c (inequality_comparisons_p): Delete function.
1004 * recog.c (next_insn_tests_no_inequality): Likewise.
1005
1006 2019-11-25 Richard Biener <rguenther@suse.de>
1007
1008 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1009 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1010 properly re-building the visited hash-map for each lane.
1011
1012 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1013
1014 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1015 gcn_md_reorg): Remove unused variables.
1016 (gcn_emutls_var_init): Add missing (but unreachable) return
1017 to silence warning.
1018 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1019 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1020 an uninitialized variable.
1021
1022 2019-11-25 Martin Jambor <mjambor@suse.cz>
1023
1024 PR ipa/92109
1025 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1026 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1027 (cgraph_materialize_clone): Move removel from clone tree to the
1028 the new method and use it instead.
1029 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1030 bodies of clones, also remove it from the clone tree.
1031
1032 2019-11-25 Martin Jambor <mjambor@suse.cz>
1033
1034 PR ipa/91956
1035 * ipa-sra.c (process_isra_node_results): Put the new node to the
1036 same comdat group as the original node.
1037
1038 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1039
1040 Build double32 / long-double32 multilibs if needed.
1041
1042 PR target/92055
1043 * config/avr/t-avr:
1044 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1045 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1046 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1047 tm_defines and pass to genmultilib.awk.
1048 * config/avr/genmultilib.awk: Use these variables to add double32
1049 and / or long-double32 multilib(s) as needed.
1050 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1051
1052 2019-11-25 Richard Biener <rguenther@suse.de>
1053
1054 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1055 loop body, defaulted to NULL.
1056 (single_likely_exit): Add exit vector argument
1057 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1058 (number_of_iterations_exit): Likewise.
1059 (number_of_iterations_exit_assumptions): Likewise.
1060 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1061 if not NULL.
1062 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1063 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1064 Compute exit vector around call to single_likely_exit.
1065 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1066 loop body to loop_only_exit_p.
1067 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1068 caller.
1069 (number_of_iterations_exit_assumptions): Get loop body from caller
1070 if not NULL.
1071 (number_of_iterations_exit): Pass through new loop body arg.
1072 (infer_loop_bounds_from_undefined): Get loop body from caller.
1073 (estimate_numbers_of_iterations): Compute loop body once.
1074
1075 2019-11-25 Richard Biener <rguenther@suse.de>
1076
1077 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1078 auto_bb_flag instead of an sbitmap for visited handling.
1079
1080 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1081
1082 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1083 iterator.
1084 (vector_fp_comparison_complex): Likewise.
1085 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1086 define_and_split.
1087 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1088 Likewise.
1089 (vector_lt<mode> for VEC_F): Refactor with
1090 vector_fp_comparison_simple.
1091 (vector_le<mode> for VEC_F): Likewise.
1092 (vector_unge<mode> for VEC_F): Likewise.
1093 (vector_unle<mode> for VEC_F): Likewise.
1094 (vector_ne<mode> for VEC_F): Likewise.
1095 (vector_ungt<mode> for VEC_F): Likewise.
1096 (vector_unlt<mode> for VEC_F): Likewise.
1097 (vector_ltgt<mode> for VEC_F): Refactor with
1098 vector_fp_comparison_complex.
1099 (vector_ordered<mode> for VEC_F): Likewise.
1100 (vector_uneq<mode> for VEC_F): Likewise.
1101 (vector_unordered<mode> for VEC_F): Likewise.
1102
1103 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1104
1105 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1106 COMPARE, representing an overflow detection.
1107
1108 * combine.c (combine_instructions): Record costs for jumps.
1109
1110 * combine.c (can_combine_p): Allow autoinc in jumps.
1111
1112 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1113
1114 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1115 * doc/invoke.texi (max-inline-insns-single-O2,
1116 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1117 early-inlining-insns-O2): Remove documentation.
1118 * ipa-fnsummary.c (analyze_function_body,
1119 compute_fn_summary): Use opt_for_fn when accessing parameters.
1120 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1121 inline_insns_auto, can_inline_edge_by_limits_p,
1122 want_early_inline_function_p, big_speedup_p,
1123 want_inline_small_function_p, want_inline_self_recursive_call_p,
1124 recursive_inlining, compute_max_insns, inline_small_functions):
1125 Likewise.
1126 * opts.c (default_options): Add -O3 defaults for
1127 OPT__param_early_inlining_insns_,
1128 OPT__param_inline_heuristics_hint_percent_,
1129 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1130 * params.opt (-param=early-inlining-insns-O2=,
1131 -param=inline-heuristics-hint-percent-O2=,
1132 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1133 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1134 -param=inline-min-speedup=, -param=inline-unit-growth=,
1135 -param=large-function-growth=, -param=large-stack-frame=,
1136 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1137 -param=max-inline-insns-recursive=,
1138 -param=max-inline-insns-recursive-auto=,
1139 -param=max-inline-insns-single=,
1140 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1141 -param=max-inline-recursive-depth=,
1142 -param=max-inline-recursive-depth-auto=,
1143 -param=min-inline-recursive-probability=,
1144 -param=partial-inlining-entry-probability=,
1145 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1146 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1147 Optimization.
1148
1149 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1150
1151 * ipa-fnsummary.c: Fix comment typos.
1152 * ipa-ref.h: Likewise.
1153 * ipa-predicate.h: Likewise.
1154 * ipa-split.c: Likewise.
1155 * ipa-inline-analysis.c: Likewise.
1156 * ipa-predicate.c: Likewise.
1157 * ipa-devirt.c: Likewise.
1158 * ipa-icf.h: Likewise.
1159 * profile-count.c: Likewise.
1160 * ipa-icf.c: Likewise.
1161 (sem_function::equals_wpa): Fix typos in dump messages.
1162 * ipa-icf-gimple.h: Fix comment typos.
1163 * ipa-inline-transform.c: Likewise.
1164 * ipa-polymorphic-call.c: Likewise.
1165 * ipa-fnsummary.h: Likewise.
1166 * ipa-inline.c: Likewise.
1167 (dump_inline_stats): Fix typo in debug dump message.
1168 * profile-count.h: Fix comment typos.
1169
1170 PR target/92615
1171 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1172 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1173 register_operand, force x into register before storing it into dest.
1174 Formatting fix.
1175
1176 PR middle-end/83859
1177 * doc/extend.texi (attribute access): Fix a typo.
1178
1179 PR rtl-optimization/92610
1180 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1181 cse_cfg_altered is set, even when tem is 0.
1182 (rest_of_handle_cse_after_global_opts): Likewise.
1183
1184 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1185
1186 PR c++/92458
1187 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1188 tree_hash): Move to ...
1189 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1190 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1191 types.
1192 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1193
1194 PR tree-optimization/92618
1195 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1196 containing the auto_vec and a tree.
1197 (undistribute_bitref_for_vector): Handle the case when element type
1198 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1199 fixes.
1200
1201 2019-11-22 Martin Sebor <msebor@redhat.com>
1202
1203 PR middle-end/83859
1204 * attribs.h (struct attr_access): New.
1205 * attribs.c (decl_attributes): Add an informational note.
1206 * builtins.c (check_access): Make extern. Consistently set no-warning
1207 after issuing a warning. Handle calls through function pointers. Set
1208 no-warning.
1209 * builtins.h (check_access): Declare.
1210 * calls.c (rdwr_access_hash): New type.
1211 (rdwr_map): Same.
1212 (init_attr_rdwr_indices): New function.
1213 (maybe_warn_rdwr_sizes): Same.
1214 (initialize_argument_information): Call init_attr_rdwr_indices.
1215 Call maybe_warn_rdwr_sizes.
1216 (get_size_range): Avoid null argument.
1217 * doc/extend.texi (attribute access): Document new attribute.
1218
1219 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1220
1221 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1222 (ACC_LDS_SIZE): Define.
1223 (OTHER_LDS_SIZE): Define.
1224 (LDS_SIZE): Redefine using above.
1225 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1226
1227 2019-11-22 Martin Sebor <msebor@redhat.com>
1228
1229 PR middle-end/88226
1230 * builtins.c (check_nul_terminated_array): New function.
1231 (fold_builtin_0): Remove declaration.
1232 (fold_builtin_1): Same.
1233 (fold_builtin_2): Same.
1234 (fold_builtin_3): Same.
1235 (fold_builtin_strpbrk): Add argument.
1236 (fold_builtin_strspn): Same.
1237 (fold_builtin_strcspn): Same.
1238 (expand_builtin_strcat): Call it. Remove unused argument.
1239 (expand_builtin_stpncpy): Same.
1240 (expand_builtin_strncat): Same.
1241 (expand_builtin_strncpy): Same. Adjust indentation.
1242 (expand_builtin_strcmp): Same.
1243 (expand_builtin_strncmp): Same.
1244 (expand_builtin_fork_or_exec): Same.
1245 (expand_builtin): Handle more built-ins.
1246 (fold_builtin_2): Add argument.
1247 (fold_builtin_n): Make static. Add argument.
1248 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1249 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1250 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1251 (fold_call_stmt): Pass new argument to fold_builtin_n.
1252 * builtins.h: Correct a comment.
1253 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1254 check_nul_terminated_array.
1255 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1256 check_nul_terminated_array.
1257 (handle_builtin_strchr): Same.
1258 (handle_builtin_string_cmp): Same.
1259
1260 2019-11-22 Martin Sebor <msebor@redhat.com>
1261
1262 PR tree-optimization/92501
1263 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1264 handle unterminated arrays. Rename local variables for clarity.
1265
1266 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1267
1268 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1269 granulated_sgprs according to architecture.
1270
1271 2019-11-22 Jan Hubicka <jh@suse.cz>
1272
1273 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1274 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1275 (memory_block_pool::reduce_free_list): ... this one.
1276 (memory_block_pool::trim): New static function.
1277 * memory-block.h (memory_block_pool::freelist_size): New constant
1278 (memory_block_pool::clear_free_list): Rename to ...
1279 (memory_block_pool::reduce_free_list): ... this one.
1280 (memory_block_pool::trim): Declare.
1281
1282 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1283
1284 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1285 vect_cost_for_stmt.
1286 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1287 here rather than...
1288 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1289
1290 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1291
1292 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1293 (bic_cmp0_noout): New pattern.
1294 (bic_cmp0): Likewise.
1295 (neg_scc_insn): Remove pattern.
1296 (not_scc_insn): Likewise.
1297
1298 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1299
1300 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1301
1302 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1303
1304 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1305 pedwarn instead of warning_at for fallthrough not preceding a case
1306 or default label.
1307
1308 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1309
1310 PR tree-optimization/92608
1311 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1312 of dyn_cast.
1313
1314 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1315
1316 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1317 New predicate.
1318 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1319 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1320 special for FP comparisons that need a cror instruction eventually.
1321 (rs6000_emit_fp_cror): New function.
1322 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1323 instruction, for normal FP modes, with HONOR_NANS.
1324 (rs6000_emit_cbranch): Reformat.
1325 * config/rs6000/rs6000.md (fp_rev): New iterator.
1326 (fp_two): New iterator.
1327 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1328 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1329 *cbranch_2insn: New define_insn_and_split.
1330
1331 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1332
1333 PR tree-optimization/92526
1334 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1335 versioning for alignment if the accesses do not have a consistent
1336 mask, rather than asserting that the masks are consistent.
1337
1338 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1339
1340 PR tree-optimization/92595
1341 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1342 check.
1343 (vectorizable_store, vectorizable_load): Likewise.
1344
1345 2019-11-21 Jan Hubicka <jh@suse.cz>
1346
1347 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1348 (resolve_noninline_speculation, inline_small_functions): Avoid
1349 redundant updates.
1350
1351 2019-11-21 Richard Biener <rguenther@suse.de>
1352
1353 * lra.c (lra_insn_recog_data_pool): New.
1354 (free_insn_recog_data): Adjust.
1355 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1356 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1357
1358 2019-11-21 Richard Biener <rguenther@suse.de>
1359
1360 PR tree-optimization/92596
1361 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1362
1363 2019-11-21 Jan Hubicka <jh@suse.cz>
1364
1365 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1366 ready for some vectors to not be allocated.
1367 (evaluate_properties_for_edge): Document better; make
1368 known_vals and known_aggs caller allocated; avoid determining
1369 values of parameters which are not used.
1370 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1371 known_aggs.
1372 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1373 (do_estimate_edge_size): Likewise.
1374 (do_estimate_edge_hints): Likewise.
1375 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1376 values are not known.
1377 (ipa_release_agg_values): Add option to not release vector itself.
1378 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1379
1380 2019-11-21 Richard Biener <rguenther@suse.de>
1381
1382 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1383 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1384 (loop_iterator::loop_iterator): Adjust.
1385 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1386 (compute_dominance_frontiers): ... this. Hoist invariant
1387 get_immediate_dominator call.
1388 (compute_idf): Use a work-set instead of a work-list for more
1389 optimal iteration order and duplicate avoidance.
1390 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1391 the vector all the time, instead pre-allocate the vector only
1392 once.
1393 (delete_update_ssa): Simplify.
1394 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1395
1396 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1397
1398 PR tree-optimization/91355
1399 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1400 for early_bb scaled count with best_bb count comparison.
1401
1402 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1403 preffer -> prefer.
1404 * ipa-inline.c (edge_badness): Likewise.
1405 * lto-streamer.h (class lto_location_cache): Likewise.
1406 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1407 gratutious -> gratuitous.
1408
1409 2019-11-21 Richard Biener <rguenther@suse.de>
1410
1411 Revert
1412 2019-09-17 Richard Biener <rguenther@suse.de>
1413
1414 PR tree-optimization/91790
1415 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1416 use the correct DR for setting up realignment.
1417
1418 2019-11-21 Richard Biener <rguenther@suse.de>
1419
1420 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1421 (equiv_class_obstack): New.
1422 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1423 (perform_var_substitution): Initialize equiv_class_obstack.
1424 (free_var_substitution_info): Free equiv_class_obstack.
1425
1426 2019-11-20 Jan Hubicka <jh@suse.cz>
1427
1428 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1429 edge growth when callee function is very large.
1430 * ipa-inline.h (estimate_min_edge_growth): New.
1431
1432 2019-11-20 Jan Hubicka <jh@suse.cz>
1433
1434 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1435 negative time in calls summary; correct roundoff errors
1436 leading to negative times.
1437 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1438 if present.
1439 (ipa_update_overall_fn_summary): Add RESET parameter.
1440 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1441 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1442
1443 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1444
1445 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1446 def types for two-operation SLP.
1447
1448 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1449
1450 PR testsuite/92366
1451 * doc/sourcebuild.texi (vect_char_add): Document.
1452
1453 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1454
1455 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1456 * function.c (record_final_call): Record even calls that might
1457 have been in the cgraph.
1458 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1459 callees.
1460
1461 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1462
1463 * configure.ac: Use https for gcc.gnu.org
1464 * configure: Regenerated.
1465 * doc/install.texi: Use https for gcc.gnu.org.
1466 * doc/sourcebuild.texi: Likewise.
1467
1468 2019-11-20 Julian Brown <julian@codesourcery.com>
1469
1470 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1471
1472 2019-11-20 Jan Hubicka <jh@suse.cz>
1473
1474 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1475 parameter and update call_size_time_table.
1476 (ipa_fn_summary::max_size_time_table_size): New constant.
1477 (estimate_calls_size_and_time_1): Break out from ...
1478 (estimate_calls_size_and_time): ... here; implement summary production.
1479 (summarize_calls_size_and_time): New function.
1480 (ipa_call_context::estimate_size_and_time): Bypass
1481 estimate_calls_size_and_time for leaf functions.
1482 (ipa_update_overall_fn_summary): Likewise.
1483 * ipa-fnsummary.h (call_size_time_table): New.
1484 (ipa_fn_summary::account_size_time): Update prototype.
1485
1486 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1487
1488 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1489
1490 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1491
1492 PR85678
1493 * common.opt (fcommon): Change init to 1.
1494 * doc/invoke.texi (-fcommon): Update documentation.
1495
1496 2019-11-20 Jan Hubicka <jh@suse.cz>
1497
1498 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1499 to ordinary array.
1500
1501 2019-11-20 Jan Hubicka <jh@suse.cz>
1502
1503 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1504 Add allocator parameter.
1505 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1506 (fibonacci_heap<K,V>::m_allocator): New.
1507 (fibonacci_heap<K,V>::m_own_allocator): New.
1508 (fibonacci_heap<K,V>::insert): Use allocator.
1509 (fibonacci_heap<K,V>::extract_min): Likewise.
1510 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1511 allocator.
1512 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1513 on stack.
1514 * fibonacci_heap.c: Include alloc-pool
1515 (test_empty_heap): Initialize allocator.
1516 (test_union): Likewise.
1517 * bb-reorder.c: Include alloc-pool.h.
1518 * tracer.c: Inlclude alloc-pool.h.
1519
1520 2019-11-20 Jan Hubicka <jh@suse.cz>
1521
1522 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1523 Preallocate for 32 entries.
1524 (DFS::worklist): Likewise.
1525 (DFS::DFS): Do not initialize sccstack and worklist.
1526 (DFS::~DFS): Do not release sccstack.
1527
1528 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1529
1530 PR target/92573
1531 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1532 Handle UNORDERED if !HONOR_NANS.
1533
1534 2019-11-20 Jan Hubicka <jh@suse.cz>
1535
1536 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1537 (edge_badness): ... here.
1538 (inline_small_functions): Use monotonicity of badness calculation
1539 to avoid redundant updates.
1540
1541 2019-11-20 Richard Biener <rguenther@suse.de>
1542
1543 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1544 constructors we are actually analyzing.
1545 (vect_slp_check_for_constructors): Do not vectorize uniform
1546 constuctors, do not dump here.
1547
1548 2019-11-20 Richard Biener <rguenther@suse.de>
1549
1550 PR tree-optimization/92537
1551 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1552 vectorization validity check...
1553 (vect_slp_analyze_operations): ... here.
1554
1555 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1556
1557 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1558 (make_pass_arc_predicate_delay_insns): Likewise.
1559 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1560 method, remove clone.
1561 (class pass_arc_predicate_delay_insns): Likewise.
1562 (arc_init): Remove registering of ARC specific passes.
1563 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1564 * config/arc/arc-passes.def: New file.
1565
1566 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1567
1568 PR middle-end/90840
1569 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1570 and has a mode that doesn't have corresponding integral type.
1571
1572 PR target/90867
1573 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1574 clear opts->x_ix86_isa_flags{,2} here...
1575 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1576 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1577
1578 PR c/90898
1579 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1580 assertion.
1581 (insert_clobbers_for_var): Fix a typo in function comment.
1582
1583 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1584 Jakub Jelinek <jakub@redhat.com>
1585
1586 PR middle-end/91195
1587 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1588 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1589 load.
1590
1591 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1592
1593 Make 0-series device specs work with older versions of avr-gcc.
1594
1595 PR target/92545
1596 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1597 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1598 <*link_pm_base_address>: Don't write spec.
1599 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1600
1601 2019-11-20 Richard Biener <rguenther@suse.de>
1602
1603 PR c/92088
1604 * builtins.c (compute_objsize): Deal with VLAs.
1605
1606 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1607
1608 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1609 from common code.
1610 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1611 call new function.
1612 (power9_sched_reorder2): Call new function.
1613 (rs6000_sched_reorder2): Likewise.
1614
1615 2019-11-18 Jan Hubicka <jh@suse.cz>
1616
1617 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1618 (estimate_calls_size_and_time): Update.
1619
1620 2019-11-18 Jan Hubicka <jh@suse.cz>
1621
1622 * ipa-inline.c (inlining_speedup): New function.
1623 (edge_badness): Use it.
1624
1625 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1626 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1627
1628 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1629 Mark as not having "likely" version.
1630 * config/mips/mips.md (insn_count): The simd_div instruction with
1631 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1632 (can_delay): Exclude simd_branch.
1633 (defile_delay *): Add simd_branch instructions.
1634 They have one regular delay slot.
1635
1636 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1637
1638 Revert:
1639 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1640
1641 * cse.c (cse_insn): Delete no-op register moves too.
1642 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1643 Take a second comparison to control the value for NE.
1644 (mask_to_comparison): Handle unsigned comparisons.
1645 (simplify_logical_relational_operation): Likewise. Update call
1646 to comparison_to_mask. Handle AND if !HONOR_NANs.
1647 (simplify_binary_operation_1): Call the above for AND too.
1648
1649 2019-11-19 Martin Liska <mliska@suse.cz>
1650
1651 * toplev.c (general_init): Move the call...
1652 (toplev::main): ... here as we need init_options_struct
1653 being called.
1654
1655 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1656
1657 PR target/79262
1658 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1659 vec_to_scalar_cost.
1660
1661 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1662
1663 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1664 (armv7-a): Likewise.
1665 (armv7ve): Likewise.
1666
1667 2019-11-19 Richard Biener <rguenther@suse.de>
1668
1669 PR tree-optimization/92581
1670 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1671 condition reduction chains gather all conditions involved
1672 for computing the index reduction vector.
1673
1674 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1675
1676 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1677 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1678 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1679 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1680 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1681 (aarch64_init_memtag_builtins): New.
1682 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1683 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1684 (aarch64_expand_builtin_memtag): New.
1685 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1686 (AARCH64_BUILTIN_SUBCODE): New macro.
1687 (aarch64_resolve_overloaded_memtag): New.
1688 (aarch64_resolve_overloaded_builtin_general): New. Call
1689 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1690 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1691 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1692 (aarch64_resolve_overloaded_builtin): Call
1693 aarch64_resolve_overloaded_builtin_general.
1694 * config/aarch64/aarch64-protos.h
1695 (aarch64_resolve_overloaded_builtin_general): New declaration.
1696 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1697 (TARGET_MEMTAG): Likewise.
1698 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1699 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1700 (irg, gmi, subp, addg, ldg, stg): New instructions.
1701 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1702 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1703 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1704 (__arm_mte_get_tag): Likewise.
1705 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1706 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1707 * config/arm/types.md (memtag): New.
1708 * doc/invoke.texi (-memtag): Update description.
1709
1710 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1711
1712 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1713 to define __GCC_ASM_FLAG_OUTPUTS__.
1714 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1715 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1716 depending on TARGET_THUMB1.
1717 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1718
1719 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1720
1721 PR target/92549
1722 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1723
1724 PR middle-end/91450
1725 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1726 operand is negative and one non-negative, compare the non-negative
1727 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1728 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1729 and s2 == 0, unless one of them is known to be negative. Remove
1730 tem2 variable, use tem where tem2 has been used before.
1731
1732 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1733
1734 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1735
1736 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1737
1738 PR tree-optimization/92557
1739 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1740 vmode rather than asserting it always is.
1741
1742 2019-11-19 Richard Biener <rguenther@suse.de>
1743
1744 PR tree-optimization/92554
1745 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1746 for the actual condition stmt and deal with sign-changes.
1747
1748 2019-11-19 Richard Biener <rguenther@suse.de>
1749
1750 PR tree-optimization/92555
1751 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1752 for non-SLP stmts.
1753
1754 2019-11-19 Martin Liska <mliska@suse.cz>
1755
1756 PR bootstrap/92540
1757 * config/riscv/riscv.c (riscv_address_insns): Initialize
1758 addr in order to remove boostrap -Wmaybe-uninitialized
1759 error.
1760
1761 2019-11-18 Martin Sebor <msebor@redhat.com>
1762
1763 PR tree-optimization/92493
1764 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1765 assignment.
1766
1767 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1768
1769 * cfgloop.c (get_loop_body_in_custom_order): New.
1770 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1771 * tree-loop-distribution.c (class loop_distribution): New.
1772 (bb_top_order_cmp): Remove.
1773 (bb_top_order_cmp_r): New.
1774 (create_rdg_vertices): Move into class loop_distribution.
1775 (stmts_from_loop): Same as above.
1776 (update_for_merge): Same as above.
1777 (partition_merge_into): Same as above.
1778 (get_data_dependence): Same as above.
1779 (data_dep_in_cycle_p): Same as above.
1780 (update_type_for_merge): Same as above.
1781 (build_rdg_partition_for-vertex): Same as above.
1782 (classify_builtin_ldst): Same as above.
1783 (classify_partition): Same as above.
1784 (share_memory_accesses): Same as above.
1785 (rdg_build_partitions): Same as above.
1786 (pg_add_dependence_edges): Same as above.
1787 (build_partition_graph): Same as above.
1788 (merge_dep_scc_partitions): Same as above.
1789 (break_alias_scc_partitions): Same as above.
1790 (finalize_partitions): Same as above.
1791 (distribute_loop): Same as above.
1792 (bb_top_order_init): New method
1793 (bb_top_order_destroy): New method.
1794 (get_bb_top_order_index_size): New method.
1795 (get_bb_top_order_index_index): New method.
1796 (get_bb_top_order_index_index): New method.
1797 (loop_distribution::execute): New method.
1798 (pass_loop_distribution::execute): Instantiate loop_distribution.
1799
1800 2019-11-18 Jan Hubicka <jh@suse.cz>
1801
1802 PR ipa/92508
1803 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1804 caches.
1805 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1806
1807 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1808
1809 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1810 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1811 * doc/md.texi: Document them.
1812 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1813 internal functions.
1814 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1815 * internal-fn.c (check_ptrs_direct): New macro.
1816 (expand_check_ptrs_optab_fn): Likewise.
1817 (direct_check_ptrs_optab_supported_p): Likewise.
1818 (internal_check_ptrs_fn_supported_p): New fuction.
1819 * tree-data-ref.c: Include internal-fn.h.
1820 (create_ifn_alias_checks): New function.
1821 (create_intersect_range_checks): Use it.
1822 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1823 (optab, cmp_op): Handle it.
1824 (raw_war, unspec): New int attributes.
1825 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1826 constants.
1827 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1828 New predicate.
1829 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1830 expander.
1831 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1832 pattern.
1833
1834 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1835
1836 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1837 empty constructors.
1838
1839 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1840
1841 * cse.c (cse_insn): Delete no-op register moves too.
1842 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1843 Take a second comparison to control the value for NE.
1844 (mask_to_comparison): Handle unsigned comparisons.
1845 (simplify_logical_relational_operation): Likewise. Update call
1846 to comparison_to_mask. Handle AND if !HONOR_NANs.
1847 (simplify_binary_operation_1): Call the above for AND too.
1848
1849 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1850
1851 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1852 splitting the main code out into...
1853 (native_encode_vector_part): ...this new function.
1854 (native_decode_vector_tree): New function.
1855 (fold_view_convert_vector_encoding): Likewise.
1856 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1857 to VECTOR_TYPEs.
1858
1859 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1860
1861 * tree-data-ref.c (create_intersect_range_checks_index): If the
1862 alias pair describes simple WAW and WAR dependencies, just check
1863 whether the first B access overlaps later A accesses.
1864 (create_waw_or_war_checks): New function that performs the same
1865 optimization on addresses.
1866 (create_intersect_range_checks): Call it.
1867
1868 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1869
1870 * lra-constraints.c (valid_address_p): Take the operand and a
1871 constraint as argument. If the operand is a MEM and the constraint
1872 is a memory constraint, check whether the eliminated form of the
1873 MEM already satisfies the constraint.
1874 (process_address_1): Update calls accordingly.
1875
1876 2019-11-18 Tom Tromey <tromey@adacore.com>
1877
1878 * doc/tm.texi: Rebuild.
1879 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1880 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1881
1882 2019-11-18 Richard Biener <rguenther@suse.de>
1883
1884 PR tree-optimization/92516
1885 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1886 argument, hoist bst_map creation/destruction to ...
1887 (vect_analyze_slp): ... here, forming a true graph with
1888 SLP instances being the entries.
1889 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1890 (vect_detect_hybrid_slp): Use one visited set for all
1891 graph entries.
1892 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1893 to hash-sets of slp_tree.
1894 (vect_slp_analyze_operations): Likewise.
1895 (vect_bb_slp_scalar_cost): Remove wrapper.
1896 (vect_bb_vectorization_profitable_p): Use one visited set for
1897 all graph entries.
1898 (vect_schedule_slp_instance): Elide bst_map use.
1899 (vect_schedule_slp): Likewise.
1900
1901 2019-11-18 Richard Biener <rguenther@suse.de>
1902
1903 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1904 was vectorized with just external refs fail.
1905
1906 2019-11-18 Martin Liska <mliska@suse.cz>
1907
1908 PR ipa/92525
1909 * ipa-icf.c (sem_function::init): Unset m_checker
1910 at the end of the function.
1911
1912 2019-11-18 Richard Biener <rguenther@suse.de>
1913
1914 PR tree-optimization/92558
1915 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1916 reducting the width of a reduction vector def update new_phis.
1917
1918 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1919
1920 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1921 and s390*-*-linux-musl* targets.
1922 * configure: Regenerate.
1923
1924 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1925
1926 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1927 (MUSL_DYNAMIC_LINKER64): Define.
1928
1929 2019-11-18 Martin Liska <mliska@suse.cz>
1930
1931 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1932 message for an unknown counter.
1933 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1934 (dbg_cnt_process_opt): Remove unreachable code.
1935
1936 2019-11-18 Martin Liska <mliska@suse.cz>
1937
1938 PR ipa/92529
1939 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1940 Compare LHS types of NOP_EXPR.
1941
1942 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1943
1944 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1945 "initial_pass_name" argument -- by running "*clean_state" pass.
1946 Also free the "initial_pass_name" when done.
1947
1948 2019-11-18 Richard Biener <rguenther@suse.de>
1949
1950 PR rtl-optimization/92462
1951 * alias.c (find_base_term): Restrict the look through ANDs.
1952 (find_base_value): Likewise.
1953
1954 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1955
1956 Add support for AVR devices from the 0-series.
1957
1958 PR target/92545
1959 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1960 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1961 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1962 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1963 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1964 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1965 for spec definitions.
1966 * doc/avr-mmcu.texi: Regenerate.
1967
1968 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1969
1970 PR target/92448
1971 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1972 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1973 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1974 (ix86_reassociation_width): Ditto.
1975 * config/i386/i386-options.c (ix86_option_override_internal):
1976 Replace TARGET_AVX128_OPTIAML with
1977 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1978 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1979 (TARGET_AVX128_OPTIMAL): Deleted.
1980 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1981 DEF_TUNE.
1982
1983 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1984
1985 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1986 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1987 just SI.
1988 (cceq_rev_compare): Rename to...
1989 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1990 just SI.
1991 (define_split for <bd>tf_<mode>): Add SImode first argument to
1992 gen_cceq_ior_compare.
1993
1994 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1995
1996 * common/config/powerpcspe: Delete.
1997
1998 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1999
2000 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2001 output in UNSPEC_WRFFR.
2002
2003 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2004
2005 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2006 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2007
2008 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2009
2010 * tree-data-ref.c (create_intersect_range_checks_index)
2011 (create_intersect_range_checks): Print dump messages.
2012
2013 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2014
2015 * tree-data-ref.c (dump_alias_pair): New function.
2016 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2017
2018 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2019
2020 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2021 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2022 merging data references with different steps.
2023 (create_intersect_range_checks_index): Take a
2024 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2025 Bail out if DR_ALIAS_MIXED_STEPS is set.
2026 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2027 instead of two dr_with_seg_lens. Update call to
2028 create_intersect_range_checks_index.
2029 (create_runtime_alias_checks): Update call accordingly.
2030
2031 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2032
2033 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2034 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2035 (dr_with_seg_len_pair_t::sequencing): New enum.
2036 (dr_with_seg_len_pair_t::flags): New member variable.
2037 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2038 parameter and initialize the flags member variable.
2039 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2040 call accordingly.
2041 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2042 Ensure the two data references in an alias pair are in statement
2043 order, if there is a defined order.
2044 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2045 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2046 swapped the references in a dr_with_seg_len_pair_t. OR together
2047 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2048 try to restore the original dr_with_seg_len order, updating the
2049 flags if that fails.
2050
2051 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2052
2053 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2054 swapping the dr_as based on init values until we've decided
2055 whether to merge them.
2056
2057 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2058
2059 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2060 two accesses in each dr_with_seg_len_pair_t before trying to
2061 combine separate dr_with_seg_len_pair_ts.
2062 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2063 that here.
2064 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2065
2066 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2067
2068 * config/aarch64/aarch64-sve.md
2069 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2070 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2071 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2072 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2073 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2074 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2075 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2076 pattern.
2077 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2078 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2079 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2080 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2081
2082 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2083
2084 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2085 (SVE_4HSI): New mode iterators.
2086 (ANY_EXTEND2): New code iterator.
2087 * config/aarch64/aarch64-sve.md
2088 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2089 Extend to...
2090 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2091 ...this, handling extension to partial modes as well as full modes.
2092 Describe the extension as a predicated rather than unpredicated
2093 extension.
2094 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2095 Likewise extend to...
2096 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2097 ...this, making the same adjustments.
2098 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2099 Likewise extend to...
2100 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2101 ...this, making the same adjustments.
2102 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2103 Likewise extend to...
2104 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2105 ...this, making the same adjustments.
2106 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2107 New pattern.
2108 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2109 extension predicate.
2110 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2111 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2112 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2113 Describe the extension as a predicated rather than unpredicated
2114 extension.
2115 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2116 Likewise. Canonicalize to a constant extension predicate.
2117 * config/aarch64/aarch64-sve-builtins-base.cc
2118 (svld1_gather_extend_impl::expand): Add an extra predicate for
2119 the extension.
2120 (svldff1_gather_extend_impl::expand): Likewise.
2121
2122 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2123
2124 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2125 iterators.
2126 * config/aarch64/aarch64-sve.md
2127 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2128 (gather_load<SVE_24:mode><v_int_container>): ...this.
2129 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2130 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2131 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2132 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2133 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2134 New pattern.
2135 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2136 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2137 Allow the nominal extension predicate to be different from the
2138 load predicate.
2139 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2140 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2141
2142 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2143
2144 * config/aarch64/aarch64-sve.md
2145 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2146 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2147 function.
2148 (aarch64_sve_adjust_stmt_cost): Call it.
2149
2150 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2151
2152 * config/aarch64/aarch64-sve.md
2153 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2154 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2155 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2156 Combine into...
2157 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2158 ...this new pattern, handling extension to partial modes as well
2159 as full modes. Describe the extension as a predicated rather than
2160 unpredicated extension.
2161 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2162 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2163 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2164 Combine into...
2165 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2166 ...this new pattern, handling extension to partial modes as well
2167 as full modes. Describe the extension as a predicated rather than
2168 unpredicated extension.
2169 * config/aarch64/aarch64-sve-builtins.cc
2170 (function_expander::use_contiguous_load_insn): Add an extra
2171 predicate for extending loads.
2172 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2173 (aarch64_sve_adjust_stmt_cost): Likewise.
2174 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2175 the cost of SVE vector stmts.
2176
2177 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2178
2179 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2180 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2181 * config/aarch64/aarch64-sve.md
2182 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2183 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2184 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2185 comment. Avoid new narrower_mask ambiguity.
2186 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2187 (*cond_uxt<mode>_2): Update comment.
2188 (*cond_uxt<mode>_any): Likewise.
2189
2190 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2191
2192 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2193 float modes.
2194 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2195 function.
2196 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2197 new vector float modes.
2198 (aarch64_sve_container_bits): New function.
2199 (aarch64_sve_pred_mode): Likewise.
2200 (aarch64_get_mask_mode): Use it.
2201 (aarch64_sve_element_int_mode): Handle structure modes and partial
2202 modes.
2203 (aarch64_sve_container_int_mode): New function.
2204 (aarch64_vectorize_related_mode): Return SVE modes when given
2205 SVE modes. Handle partial modes, taking the preferred number
2206 of units from the size of the given mode.
2207 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2208 in registers.
2209 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2210 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2211 (aarch64_split_sve_subreg_move): Use the mode form of
2212 aarch64_sve_pred_mode.
2213 (aarch64_secondary_reload): Handle partial modes in the same way
2214 as full big-endian vectors.
2215 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2216 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2217 merging with the Advanced SIMD modes. If two modes have the
2218 same size, try the Advanced SIMD mode first.
2219 (aarch64_simd_valid_immediate): Use the container rather than
2220 the element mode for INDEX constants.
2221 (aarch64_simd_vector_alignment): Make the alignment of partial
2222 SVE vector modes the same as their minimum size.
2223 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2224 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2225 (mov<SVE_ALL:mode>): ...this.
2226 (movmisalign<SVE_FULL:mode>): Extend to...
2227 (movmisalign<SVE_ALL:mode>): ...this.
2228 (*aarch64_sve_mov<mode>_le): Rename to...
2229 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2230 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2231 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2232 partial modes regardless of endianness.
2233 (aarch64_sve_reload_be): Rename to...
2234 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2235 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2236 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2237 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2238 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2239 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2240 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2241 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2242 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2243 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2244 (maskload<SVE_FULL:mode><vpred>): Extend to...
2245 (maskload<SVE_ALL:mode><vpred>): ...this.
2246 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2247 (maskstore<SVE_ALL:mode><vpred>): ...this.
2248 (vec_duplicate<SVE_FULL:mode>): Extend to...
2249 (vec_duplicate<SVE_ALL:mode>): ...this.
2250 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2251 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2252 (sve_ld1r<SVE_FULL:mode>): Extend to...
2253 (sve_ld1r<SVE_ALL:mode>): ...this.
2254 (vec_series<SVE_FULL_I:mode>): Extend to...
2255 (vec_series<SVE_I:mode>): ...this.
2256 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2257 (*vec_series<SVE_I:mode>_plus): ...this.
2258 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2259 new VPRED ambiguity.
2260 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2261 (add<SVE_FULL_I:mode>3): Extend to...
2262 (add<SVE_I:mode>3): ...this.
2263 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2264 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2265 (VPRED, vpred): Likewise.
2266 (Vctype): New iterator.
2267 (vw): Remove SVE modes.
2268
2269 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2270
2271 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2272 (SVE_PARTIAL_I): ...this.
2273 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2274
2275 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2276
2277 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2278 (SVE_FULL): ...this.
2279 (SVE_I): Rename to...
2280 (SVE_FULL_I): ...this.
2281 (SVE_F): Rename to...
2282 (SVE_FULL_F): ...this.
2283 (SVE_BHSI): Rename to...
2284 (SVE_FULL_BHSI): ...this.
2285 (SVE_HSD): Rename to...
2286 (SVE_FULL_HSD): ...this.
2287 (SVE_HSDI): Rename to...
2288 (SVE_FULL_HSDI): ...this.
2289 (SVE_HSF): Rename to...
2290 (SVE_FULL_HSF): ...this.
2291 (SVE_SD): Rename to...
2292 (SVE_FULL_SD): ...this.
2293 (SVE_SDI): Rename to...
2294 (SVE_FULL_SDI): ...this.
2295 (SVE_SDF): Rename to...
2296 (SVE_FULL_SDF): ...this.
2297 (SVE_S): Rename to...
2298 (SVE_FULL_S): ...this.
2299 (SVE_D): Rename to...
2300 (SVE_FULL_D): ...this.
2301 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2302 * config/aarch64/aarch64-sve2.md: Likewise.
2303
2304 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2305
2306 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2307 New option.
2308 * doc/invoke.texi: Document it.
2309 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2310 By default, return VECT_COMPARE_COSTS for SVE.
2311
2312 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2313
2314 * target.h (VECT_COMPARE_COSTS): New constant.
2315 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2316 * doc/tm.texi: Regenerate.
2317 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2318 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2319 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2320 Likewise.
2321 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2322 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2323 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2324 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2325 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2326 (_loop_vec_info::vec_inside_cost): New member variables.
2327 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2328 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2329 (vect_analyze_loop): When autovectorize_vector_modes returns
2330 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2331 vector mode and picking the one with the lowest cost.
2332 (vect_estimate_min_profitable_iters): Record the computed costs
2333 in the loop_vec_info.
2334
2335 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2336
2337 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2338 element type rather than an element mode.
2339 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2340 Use get_vectype_for_scalar_type to query the natural types
2341 for a given element type rather than basing everything on
2342 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2343 query to MAX_FIXED_MODE_SIZE.
2344 (duplicate_and_interleave): Update call accordingly.
2345 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2346
2347 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2348
2349 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2350 optional maximum nunits.
2351 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2352 takes an slp_tree.
2353 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2354 (vect_get_mask_type_for_stmt): Likewise.
2355 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2356 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2357 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2358 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2359 to get an assumed vector type for data references.
2360 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2361 (vect_update_all_shared_vectypes): Likewise.
2362 (vect_build_slp_tree_1): Pass the group size to
2363 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2364 for BB vectorization.
2365 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2366 before building the vectof from scalars.
2367 (vect_analyze_slp_instance): Pass the group size to
2368 get_vectype_for_scalar_type.
2369 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2370 types for BB vectorization here; just handle the case in which
2371 we deferred the choice for booleans.
2372 (vect_get_constant_vectors): Pass the slp_tree to
2373 get_vectype_for_scalar_type.
2374 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2375 (vectorizable_call): Likewise.
2376 (vectorizable_simd_clone_call): Likewise.
2377 (vectorizable_conversion): Likewise.
2378 (vectorizable_shift): Likewise.
2379 (vectorizable_operation): Likewise.
2380 (vectorizable_comparison): Likewise.
2381 (vect_is_simple_cond): Take the slp_tree as argument and
2382 pass it to get_vectype_for_scalar_type.
2383 (vectorizable_condition): Update call accordingly.
2384 (get_vectype_for_scalar_type): Take a group_size argument.
2385 For BB vectorization, limit the the vector to that number
2386 of elements. Also define an overload that takes an slp_tree.
2387 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2388 pass it to get_vectype_for_scalar_type.
2389 (vect_get_vector_types_for_stmt): Add a group_size argument
2390 and pass it to get_vectype_for_scalar_type. Don't use the
2391 cached vector type for BB vectorization if a group size is given.
2392 Handle data references in that case.
2393 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2394 pass it to get_mask_type_for_scalar_type.
2395
2396 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2397
2398 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2399 parameter.
2400 (estimate_edge_time): Use it.
2401 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2402 ret_nonspec_time parameter.
2403
2404 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2405
2406 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2407
2408 2019-11-15 Nick Clifton <nickc@redhat.com>
2409 Szabolcs Nagy <szabolcs.nagy@arm.com>
2410
2411 PR target/65649
2412 * config/microblaze/microblaze.c (print_operand): Print value as long.
2413
2414 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2415
2416 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2417 accidental commit.
2418
2419 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2420
2421 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2422 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2423
2424 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2425
2426 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2427 (gcn_conditional_register_usage): Use constants in place of hard-coded
2428 values.
2429 (gcn_hsa_declare_function_name): Set lower bound for number of
2430 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2431 MAX_NORMAL_VGPR_COUNT.
2432
2433 2019-11-15 Martin Jambor <mjambor@suse.cz>
2434
2435 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2436 declaration.
2437
2438 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2439
2440 * config/gcn/gcn.c (default_requested_args): New.
2441 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2442 set with default_requested_args.
2443 (gcn_conditional_register_usage): Limit register usage of non-kernel
2444 functions. Reassign fixed registers if a non-standard set of args is
2445 requested.
2446 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2447
2448 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2449
2450 PR ipa/92528
2451 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2452 aggregate jump function when inlined-to caller has no edge summary.
2453
2454 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2455
2456 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2457
2458 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2459
2460 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2461 prologue use of v0.
2462 (print_operand_address): Use v1 for zero vector offset.
2463
2464 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2465
2466 PR tree-optimization/92515
2467 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2468 types when converting a vector/scalar shift into a vector/vector one,
2469 using tree_nop_conversion_p instead of useless_type_conversion_p.
2470 Move the conversion code to the transform block.
2471
2472 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2473
2474 * read-rtl-function.c
2475 (function_reader::add_fixup_source_location): Take additional
2476 parameter of a column.
2477 (function_reader::maybe_read_location): Optionally parse column
2478 information and pass to add_fixup_source_location.
2479
2480 2019-11-15 Richard Biener <rguenther@suse.de>
2481
2482 PR tree-optimization/92512
2483 * tree-vect-loop.c (check_reduction_path): Fix operand index
2484 computability check. Add check for second use in COND_EXPRs.
2485
2486 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2487
2488 PR target/92515
2489 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2490 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2491
2492 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2493
2494 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2495 register class for VCC_LO and VCC_HI.
2496 (gcn_spill_class): Use SGPR_REGS to spill registers in
2497 VCC_CONDITIONAL_REG.
2498
2499 2019-11-15 Richard Biener <rguenther@suse.de>
2500
2501 PR tree-optimization/92324
2502 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2503 singedness of SLP reduction epilouge operations. Also reduce
2504 the vector width for SLP reductions before doing elementwise
2505 operations if possible.
2506
2507 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2508
2509 * passes.c (skip_pass): Set epilogue_completed if skipping the
2510 pro_and_epilogue pass.
2511
2512 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2513
2514 * passes.c (should_skip_pass_p): Always run "dfinish".
2515
2516 2019-11-15 Richard Biener <rguenther@suse.de>
2517
2518 * ipa-inline.c (inline_small_functions): Move assignment
2519 to next before call destroying edge.
2520
2521 2019-11-15 Richard Biener <rguenther@suse.de>
2522
2523 PR tree-optimization/92039
2524 PR tree-optimization/91975
2525 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2526 previous change, treat invariants consistently as non-constant.
2527 (tree_estimate_loop_size): Ternary ops with just the first op
2528 constant are not optimized away.
2529
2530 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2531
2532 * gimplify.c (gimplify_call_expr): Don't call
2533 omp_resolve_declare_variant after gimplification.
2534 * omp-general.c (omp_context_selector_matches): For isa that might
2535 match in some other function, defer if in declare simd function.
2536 (omp_context_compute_score): Don't look for " score" in construct
2537 trait set. Set *score to -1 if it can't ever match.
2538 (omp_resolve_declare_variant): If any variants need to be deferred,
2539 don't punt immediately, but compute scores of all variants and if
2540 ther eis a score winner that doesn't need to be deferred, return that.
2541
2542 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2543
2544 * ipa-comdats.c: Fix comments typo.
2545 * ipa-profile.c: Fix comments typo.
2546 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2547 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2548 (gimple_gen_ic_func_profiler): Likewise.
2549 (pass_ipa_tree_profile::gate): Fix comments typo.
2550
2551 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2552
2553 * ipa-inline.c (inline_small_functions): Update iterator of next.
2554
2555 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2556
2557 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2558 register is suitable for the mode.
2559
2560 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2561
2562 * range-op.h (range_operator::fold_range): Return a bool.
2563 * range-op.cc (range_operator::wi_fold): Assert supported type.
2564 (range_operator::fold_range): Assert supported type and return true.
2565 (operator_equal::fold_range): Return true.
2566 (operator_not_equal::fold_range): Same.
2567 (operator_lt::fold_range): Same.
2568 (operator_le::fold_range): Same.
2569 (operator_gt::fold_range): Same.
2570 (operator_ge::fold_range): Same.
2571 (operator_plus::op1_range): Adjust call to fold_range.
2572 (operator_plus::op2_range): Same.
2573 (operator_minus::op1_range): Same.
2574 (operator_minus::op2_range): Same.
2575 (operator_exact_divide::op1_range): Same.
2576 (operator_lshift::fold_range): Return true and adjust fold_range call.
2577 (operator_rshift::fold_range): Same.
2578 (operator_cast::fold_range): Return true.
2579 (operator_logical_and::fold_range): Same.
2580 (operator_logical_or::fold_range): Same.
2581 (operator_logical_not::fold_range): Same.
2582 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2583 (operator_bitwise_not::op1_range): Same.
2584 (operator_cst::fold_range): Return true.
2585 (operator_identity::fold_range): Return true.
2586 (operator_negate::fold_range): Return true and adjust fold_range call.
2587 (operator_addr_expr::fold_range): Return true.
2588 (operator_addr_expr::op1_range): Adjust call to fold_range.
2589 (range_cast): Same.
2590 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2591 (range_fold_unary_symbolics_p): Same.
2592
2593 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2594
2595 PR tree-optimization/92506
2596 * range-op.cc (range_operator::fold_range): Start with range undefined.
2597 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2598 overflow is varying.
2599
2600 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2601
2602 * range-op.cc (*operator*::*range): Remove calls to
2603 range_intersect, range_invert, and range_union in favor of calling
2604 the in-place API methods.
2605 (range_tests): Same.
2606 * range.cc (range_intersect): Remove.
2607 (range_union): Remove.
2608 (range_invert): Remove.
2609 * range.h (range_intersect): Remove.
2610 (range_union): Remove.
2611 (range_intersect): Remove.
2612
2613 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2614
2615 PR rtl-optimization/92430
2616 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2617 (pass_jump_after_combine::execute): Perform jump threading
2618 unconditionally.
2619
2620 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2621 Doug Rupp <rupp@adacore.com>
2622 Olivier Hainque <hainque@adacore.com>
2623
2624 * config.gcc: Collapse the arm-vxworks entries into
2625 a single arm-wrs-vxworks7* one, bpabi based. Update
2626 the default cpu from arm8 to armv7-a
2627 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2628 we always use ARM_UNWIND_INFO.
2629 (DWARF2_UNWIND_INFO): Remove redefinition.
2630 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2631 (VXWORKS_PERSONALITY): Define, to "llvm".
2632 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2633
2634 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2635
2636 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2637 _VX_CPU instead of CPU and handle arm_arch8.
2638
2639 2019-11-14 Doug Rupp <rupp@adacore.com>
2640 Olivier Hainque <hainque@adacore.com>
2641 Jerome Lambourg <lambourg@adacore.com>
2642
2643 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2644 * config/aarch64/aarch64-vxworks.h: New file.
2645 * config/aarch64/t-aarch64-vxworks: New file.
2646
2647 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2648 Olivier Hainque <hainque@adacore.com>
2649
2650 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2651 definition, pointless with a VxWorks specific version
2652 of crtstuff.
2653 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2654 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2655 New local macros, controlling the addition of vxworks specific
2656 crtstuff objects depending on the EH mechanism and kind of
2657 module being linked.
2658 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2659
2660 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2661 Jerome Lambourg <lambourg@adacore.com>
2662 Olivier Hainque <hainque@adacore.com>
2663
2664 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2665 common macro definitions, conveying VXWORKS7 or 64bit general
2666 variations. Add a block to set gcc_cv_initfini_array
2667 unconditionally to "yes" for VxWorks7.
2668 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2669 by default. Update some comments.
2670 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2671 default, to be added the end of VXWORKS_LIBS_RTP.
2672 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2673 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2674 redefine.
2675 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2676 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2677 to account for the now available TLS abilities.
2678 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2679 (VXWORKS_HAVE_TLS): Likewise.
2680
2681 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2682
2683 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2684 (vect_slp_convert_to_external): Likewise.
2685 (vect_slp_analyze_node_operations): If analysis fails, try building
2686 the node from scalars instead.
2687
2688 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2689
2690 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2691 between vector types.
2692 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2693 non-widening and non-narrowing path to handle standard
2694 conversion codes, if the target supports them.
2695 * expr.c (convert_move): Try using the extend and truncate optabs
2696 for vectors.
2697 * optabs-tree.c (supportable_convert_operation): Likewise.
2698 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2699 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2700 (trunc<mode><Vnarrowq>2): New patterns.
2701
2702 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2703
2704 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2705 require vectype and nunits_vectype to have the same size;
2706 instead assert that nunits_vectype has at least as many
2707 elements as vectype. Don't compute a separate nunits_vectype
2708 if the scalar type is obviously the same as vectype's.
2709 Tweak dump messages.
2710
2711 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2712
2713 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2714 function.
2715 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2716 (TARGET_VECTORIZE_RELATED_MODE): Define.
2717
2718 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2719
2720 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2721 (vec_info::used_vector_mode): New member variable.
2722 (vect_chooses_same_modes_p): Declare.
2723 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2724 chosen vector mode in vec_info::used_vector_mode.
2725 (vect_chooses_same_modes_p): New function.
2726 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2727 the same vector statements multiple times.
2728 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2729
2730 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2731
2732 * machmode.h (opt_machine_mode::operator==): New function.
2733 (opt_machine_mode::operator!=): Likewise.
2734 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2735 (get_related_vectype_for_scalar_type): Delete.
2736 (get_vectype_for_scalar_type_and_size): Declare.
2737 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2738 whether analysis passed or failed, and with what vector modes.
2739 Use related_vector_mode to check whether trying a particular
2740 vector mode would be redundant with the autodetected mode,
2741 and print a dump message if we decide to skip it.
2742 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2743 (vect_create_epilog_for_reduction): Use
2744 get_related_vectype_for_scalar_type instead of
2745 get_vectype_for_scalar_type_and_size.
2746 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2747 with...
2748 (get_related_vectype_for_scalar_type): ...this new function.
2749 Take a starting/"prevailing" vector mode rather than a vector size.
2750 Take an optional nunits argument, with the same meaning as for
2751 related_vector_mode. Use related_vector_mode when not
2752 auto-detecting a mode, falling back to mode_for_vector if no
2753 target mode exists.
2754 (get_vectype_for_scalar_type): Update accordingly.
2755 (get_same_sized_vectype): Likewise.
2756 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2757
2758 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2759
2760 * tree-vect-stmts.c (vectorizable_call): Require the types
2761 to have the same size.
2762
2763 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2764
2765 * tree-vect-stmts.c (vectorizable_call): If an operand is
2766 constant or external, use get_vectype_for_scalar_type
2767 rather than get_same_sized_vectype to get its vector type.
2768 (vectorizable_conversion, vectorizable_shift): Likewise.
2769 (vectorizable_operation): Likewise.
2770
2771 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2772
2773 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2774 (vec_info::vector_mode): ...this new field.
2775 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2776 (vect_analyze_loop, vect_transform_loop): Likewise.
2777 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2778 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2779 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2780 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2781 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2782
2783 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2784
2785 * target.h (vector_sizes, auto_vector_sizes): Delete.
2786 (vector_modes, auto_vector_modes): New typedefs.
2787 * target.def (autovectorize_vector_sizes): Replace with...
2788 (autovectorize_vector_modes): ...this new hook.
2789 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2790 Replace with...
2791 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2792 * doc/tm.texi: Regenerate.
2793 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2794 (default_autovectorize_vector_modes): New function.
2795 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2796 (default_autovectorize_vector_modes): New function.
2797 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2798 of autovectorize_vector_sizes. Use the number of units in the mode
2799 to calculate the maximum VF.
2800 * omp-low.c (omp_clause_aligned_alignment): Use
2801 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2802 Use a loop based on related_mode to iterate through all supported
2803 vector modes for a given scalar mode.
2804 * optabs-query.c (can_vec_mask_load_store_p): Use
2805 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2806 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2807 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2808 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2809 Replace with...
2810 (aarch64_autovectorize_vector_modes): ...this new function.
2811 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2812 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2813 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2814 (arc_autovectorize_vector_modes): ...this new function.
2815 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2816 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2817 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2818 (arm_autovectorize_vector_modes): ...this new function.
2819 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2820 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2821 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2822 (ix86_autovectorize_vector_modes): ...this new function.
2823 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2824 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2825 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2826 (mips_autovectorize_vector_modes): ...this new function.
2827 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2828 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2829
2830 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2831
2832 * tree-vect-stmts.c (vectorizable_shift): Check the number
2833 of vector elements as well as the type mode when deciding
2834 whether an op1_vectype is compatible. Reuse the result of
2835 this check when generating vector statements.
2836
2837 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2838
2839 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2840 targetm.vectorize.preferred_simd_mode returns an integer mode,
2841 use mode_for_vector to decide what the vector type's mode
2842 should actually be. Use build_vector_type_for_mode instead
2843 of build_vector_type.
2844
2845 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2846
2847 * target.def (get_mask_mode): Take a vector mode itself as argument,
2848 instead of properties about the vector mode.
2849 * doc/tm.texi: Regenerate.
2850 * targhooks.h (default_get_mask_mode): Update to reflect new
2851 get_mode_mask interface.
2852 * targhooks.c (default_get_mask_mode): Likewise. Use
2853 related_int_vector_mode.
2854 * optabs-query.c (can_vec_mask_load_store_p): Update call
2855 to get_mask_mode.
2856 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2857 first that the original mode really is a vector.
2858 * tree.c (build_truth_vector_type_for): Likewise.
2859 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2860 get_mode_mask interface.
2861 (aarch64_expand_sve_vcond): Update call accordingly.
2862 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2863 get_mode_mask interface.
2864 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2865
2866 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2867
2868 * tree.h (build_truth_vector_type): Delete.
2869 (build_same_sized_truth_vector_type): Likewise.
2870 * tree.c (build_truth_vector_type): Rename to...
2871 (build_truth_vector_type_for): ...this. Make static and take
2872 a vector type as argument.
2873 (truth_type_for): Update accordingly.
2874 (build_same_sized_truth_vector_type): Delete.
2875 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2876 instead of build_same_sized_truth_vector_type.
2877 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2878 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2879 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2880 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2881 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2882 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2883 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2884 (vectorizable_store, vectorizable_condition): Likewise.
2885 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2886 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2887 build_truth_vector_type.
2888 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2889 Use truth_type_for instead of build_same_sized_truth_vector_type.
2890 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2891
2892 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2893
2894 * tree.h (build_truth_vector_type_for_mode): Declare.
2895 * tree.c (build_truth_vector_type_for_mode): New function,
2896 split out from...
2897 (build_truth_vector_type): ...here.
2898 (build_opaque_vector_type): Fix head comment.
2899 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2900 vec_info parameter.
2901 (vect_halve_mask_nunits): Replace vec_info parameter with the
2902 mode of the new vector.
2903 (vect_double_mask_nunits): Likewise.
2904 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2905 (vect_double_mask_nunits): Likewise.
2906 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2907 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2908 to vect_halve_mask_nunits, getting the required mode from the unpack
2909 patterns.
2910 (vect_set_loop_condition_masked): Update call accordingly.
2911 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2912 parameter and update call to vect_double_mask_nunits.
2913 (vectorizable_conversion): Update call accordingly.
2914 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2915 (vectorizable_call): Update call accordingly.
2916 (supportable_widening_operation): Update call to
2917 vect_halve_mask_nunits.
2918 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2919 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2920
2921 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2922
2923 * machmode.h (mode_for_int_vector): Delete.
2924 (related_int_vector_mode): Declare.
2925 * stor-layout.c (mode_for_int_vector): Delete.
2926 (related_int_vector_mode): New function.
2927 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2928 instead of mode_for_int_vector.
2929 (expand_vec_perm_const): Likewise.
2930 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2931 (aarch64_evpc_sve_tbl): Likewise.
2932 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2933 (s390_expand_vcond): Likewise.
2934
2935 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2936
2937 * target.def (related_mode): New hook.
2938 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2939 * doc/tm.texi: Regenerate.
2940 * targhooks.h (default_vectorize_related_mode): Declare.
2941 * targhooks.c (default_vectorize_related_mode): New function.
2942 * machmode.h (related_vector_mode): Declare.
2943 * stor-layout.c (related_vector_mode): New function.
2944 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2945 * optabs-query.c (qimode_for_vec_perm): Likewise.
2946 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2947 (vectorizable_store, vectorizable_load): Likewise
2948
2949 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2950
2951 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2952 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2953 * config/arm/arm-c.c (arm_cpu_builtins): Define
2954 __GCC_ASM_FLAG_OUTPUTS__.
2955 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2956 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2957 Define __GCC_ASM_FLAG_OUTPUTS__.
2958 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2959 * doc/extend.texi (FlagOutputOperands): Add documentation
2960 for ARM and AArch64.
2961
2962 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2963 * config/arm/predicates.md (nz_comparison_operator): Rename
2964 from noov_comparison_operator.
2965 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2966 (arm_gen_dicompare_reg): Likewise.
2967 (maybe_get_arm_condition_code): Likewise.
2968 (thumb1_final_prescan_insn): Likewise.
2969 (arm_emit_coreregs_64bit_shift): Likewise.
2970 * config/arm/arm.md (addsi3_compare0): Likewise.
2971 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2972 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2973 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2974 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2975 (*mulsi3addsi_compare0_scratch): Likewise.
2976 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2977 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2978 (*zeroextractsi_compare0_scratch): Likewise.
2979 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2980 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2981 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2982 (andsi_not_shiftsi_si_scc): Likewise.
2983 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2984 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2985 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2986 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2987 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2988 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2989 (return_addr_mask, *check_arch2): Likewise.
2990 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2991 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2992 (compare_scc splitters): Likewise.
2993 (movcond_addsi): Likewise.
2994 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2995 (*thumb2_addsi3_compare0_scratch): Likewise.
2996 (*thumb2_mulsi_short_compare0): Likewise.
2997 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2998 (compare peephole2s): Likewise.
2999 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3000 nz_comparison_operator names.
3001 (cbranchsi4_insn): Likewise.
3002
3003 * config/arm/constraints.md (c): Use cc_register predicate.
3004
3005 * config/aarch64/constraints.md (c): New constraint.
3006
3007 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3008
3009 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3010 ipa_merge_fn_summary_after_inlining): Micro optimize.
3011
3012 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3013
3014 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3015
3016 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3017
3018 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3019 (ipa_value_range_from_jfunc): New function.
3020 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3021 known_value_ranges parameter; use it to evalulate conditions.
3022 (evaluate_properties_for_edge): Compute known value ranges.
3023 (ipa_fn_summary_t::duplicate): Update use of
3024 evaluate_conditions_for_known_args.
3025 (estimate_ipcp_clone_size_and_time): Likewise.
3026 (ipa_merge_fn_summary_after_inlining): Likewise.
3027 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3028
3029 2019-11-14 Martin Liska <mliska@suse.cz>
3030
3031 * ipa-inline.c (want_inline_small_function_p): Use
3032 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3033 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3034
3035 2019-11-14 Martin Liska <mliska@suse.cz>
3036
3037 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3038 of a callee to get value of the param.
3039 * ipa-inline.c (inline_insns_auto): Use proper
3040 opt_for_fn.
3041 * opts.c (maybe_default_option): Do not overwrite param
3042 value if optimization level does not match. Note that
3043 params usually have default value set via Init() keyword.
3044 * params.opt: Remove -param=max-inline-insns-auto-O2.
3045 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3046 * doc/invoke.texi: Remove documentation of
3047 max-inline-insns-auto-O2.
3048
3049 2019-11-14 Martin Liska <mliska@suse.cz>
3050
3051 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3052 Do not initialize m_other_count.
3053 (switch_conversion::collect): Do not count m_default_count and
3054 m_other_count as we use frequencies for edges.
3055 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3056
3057 2019-11-14 Martin Liska <mliska@suse.cz>
3058
3059 PR other/92329
3060 * doc/invoke.texi: Document -fallocation-dce.
3061
3062 2019-11-14 Martin Liska <mliska@suse.cz>
3063
3064 PR target/92389
3065 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3066 PTA_ICELAKE_CLIENT which is later interited by
3067 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3068
3069 2019-11-14 Martin Liska <mliska@suse.cz>
3070
3071 * ipa-icf.c (sem_item_optimizer::execute): Save
3072 loaded_symbols.
3073 (sem_item_optimizer::parse_nonsingleton_classes):
3074 Return number of loaded symbols.
3075 (sem_item_optimizer::merge_classes): Print
3076 statistics about totally needed symbols.
3077 * ipa-icf.h (parse_nonsingleton_classes): Change return
3078 type.
3079 (merge_classes): Add one argument.
3080
3081 2019-11-14 Martin Liska <mliska@suse.cz>
3082
3083 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3084 func_checker::hash_operand by handling of FIELD_DECLs.
3085
3086 2019-11-14 Martin Liska <mliska@suse.cz>
3087
3088 * ipa-icf-gimple.h (func_checker::func_checker): Add
3089 default constructor.
3090 * ipa-icf.c (sem_function::init): Make operand_equal_p
3091 and hash_operand public.
3092 (sem_item::add_expr): Remove.
3093 (sem_item::add_type): Remove.
3094 (sem_function::hash_stmt): Use m_checker for hashing
3095 of GIMPLE statements.
3096 (sem_function::parse): Init with checker.
3097 (sem_variable::parse): Pass NULL as checker.
3098 (sem_item_optimizer::parse_funcs_and_vars):
3099 Pass checker to ::parse function.
3100 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3101 (sem_variable::parse): New function.
3102 (sem_variable::get_hash): Only return computed hash value.
3103 (sem_variable::init): Initialize hash of a variable.
3104 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3105 to couple of functions as a new argument.
3106
3107 2019-11-14 Martin Liska <mliska@suse.cz>
3108
3109 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3110 bail out reason.
3111 (func_checker::compare_gimple_assign): Likewise.
3112
3113 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3114
3115 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3116 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3117 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3118
3119 * omp-general.c (omp_context_name_list_prop): New function.
3120 (omp_context_selector_matches): Use it. Return 0 if it returns
3121 NULL.
3122 (omp_context_selector_props_compare): Allow equivalency of an
3123 identifier and a string literal containing no embedded zeros.
3124
3125 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3126
3127 * range-op.cc (RANGE3): Remove.
3128 (range_tests): Remove all selftest that check for multi-ranges.
3129 Put tests in namespace selftest.
3130 * selftest.h: Move range_tests into namespace selftest.
3131 * value-range.h (class value_range): Unfriend range_tests.
3132
3133 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3134
3135 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3136 normalize_symbolics and normalize_addresses working in place.
3137 (range_fold_unary_symbolics_p): Same.
3138 (range_fold_unary_symbolics_p): Same.
3139 * value-range.cc (num_pairs): Same.
3140 (lower_bound): Same.
3141 (upper_bound): Same.
3142 (contains_p): Same.
3143 (normalize_addresses): Same.
3144 (normalize_symbolics): Same.
3145 * value-range.h (normalize_symbolics): Same.
3146 (normalize_addresses): Same.
3147
3148 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3149
3150 PR ipa/91682
3151 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3152 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3153 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3154 (ipa_agg_jump_function): Remove member function equal_to.
3155 (ipa_agg_jump_function_p): Remove typedef.
3156 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3157 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3158 information for aggregate jump function.
3159 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3160 record last definition statement.
3161 (load_from_unmodified_param_or_agg): New function.
3162 (ipa_known_agg_contents_list): Add new field type and value, remove
3163 field constant.
3164 (build_agg_jump_func_from_list): Rename parameter const_count to
3165 value_count, build aggregate jump function from ipa_load_agg_data.
3166 (analyze_agg_content_value): New function.
3167 (extract_mem_content): Analyze memory store assignment to prepare
3168 information for aggregate jump function generation.
3169 (determine_known_aggregate_parts): Add new parameter fbi, remove
3170 parameter aa_walk_budeget_p.
3171 (update_jump_functions_after_inlining): Update aggregate jump function.
3172 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3173 (try_make_edge_direct_simple_call): Add new parameter new_root.
3174 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3175 new_root_info.
3176 (update_indirect_edges_after_inlining): Pass new argument to
3177 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3178 (ipa_write_jump_function): Write aggregate jump function to file.
3179 (ipa_read_jump_function): Read aggregate jump function from file.
3180 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3181 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3182 (ipa_agg_value_from_node): Likewise.
3183 (ipa_agg_value_set_from_jfunc): Likewise.
3184 (propagate_vals_across_arith_jfunc): Likewise.
3185 (propagate_aggregate_lattice): Likewise.
3186 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3187 (propagate_vals_across_pass_through): Call
3188 propagate_vals_across_arith_jfunc.
3189 (get_clone_agg_value): Move forward.
3190 (propagate_aggs_across_jump_function): Handle value propagation for
3191 aggregate jump function.
3192 (agg_jmp_p_vec_for_t_vec): Remove.
3193 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3194 with vec<ipa_agg_value>.
3195 (copy_plats_to_inter, intersect_with_plats): Likewise.
3196 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3197 (intersect_aggregate_with_edge): Likewise.
3198 (find_aggregate_values_for_callers_subset): Likewise.
3199 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3200 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3201 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3202 (gather_context_independent_values): Likewise.
3203 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3204 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3205 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3206 (evaluate_properties_for_edge): Likewise.
3207 (estimate_edge_devirt_benefit): Likewise.
3208 (estimate_edge_size_and_time): Likewise.
3209 (estimate_calls_size_and_time): Likewise.
3210 (ipa_call_context::ipa_call_context): Likewise.
3211 (estimate_ipcp_clone_size_and_time): Likewise.
3212 * ipa-fnsummary.h (ipa_call_context): Replace
3213 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3214 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3215 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3216 (do_estimate_edge_size): Likewise.
3217 (do_estimate_edge_hints): Likewise.
3218
3219 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3220
3221 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3222 binary operations.
3223
3224 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3225
3226 * ipa-profile.c (check_argument_count): Check properly that e_info
3227 is non-NULL; do not check descriptors.
3228
3229 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3230
3231 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3232 check for ipa profiles.
3233
3234 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3235
3236 PR c++/92421
3237 * ipa-prop.c (update_indirect_edges_after_inlining):
3238 Mark parameter as used.
3239 * ipa-inline.c (recursive_inlining): Reset node cache
3240 after inlining.
3241 (inline_small_functions): Remove checking ifdef.
3242 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3243 cache consistency.
3244
3245 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3246
3247 PR ipa/92498
3248 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3249 is NULL.
3250 (ipa_profile): Fix reversed test.
3251
3252 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3253
3254 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3255 (propagate_constants_topo): Fix typo.
3256
3257 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3258
3259 * Makefile.in (OBJS): Add value-range.o.
3260 (GTFILES): Add value-range.h.
3261 * gengtype.c (open_base_files): Add value-range.h to list of
3262 header files.
3263 * tree-vrp.c: Move the following value_range related functions:
3264 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3265 constant_p, set_undefined, set_varying, may_contain_p,
3266 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3267 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3268 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3269 value_inside_range, ranges_from_anti_range, union_ranges,
3270 intersect_ranges, intersect_helper, union_helper, union_,
3271 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3272 upper_bound, contains_p, invert, intersect...
3273 * value-range.cc: ...to here.
3274 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3275 associated inline methods from here...
3276 * value-range.h: ...to here.
3277
3278 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3279
3280 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3281 instead of asserting its value.
3282
3283 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3284
3285 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3286 constructors and set methods so value_range_kind is the last
3287 argument and defaults to VR_RANGE.
3288 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3289 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3290 * ipa-prop.c (ipa_get_value_range): Same.
3291 (ipa_compute_jump_functions_for_edge): Same.
3292 * range-op.cc (value_range_from_overflowed_bounds): Same.
3293 (operator_cast::op1_range): Same.
3294 (range_tests): Same.
3295 * range.cc (range_nonzero): Same.
3296 * tree-ssanames.c (get_range_info): Same.
3297 * tree-vrp.c (value_range_equiv::set): Same.
3298 (value_range::value_range): Same.
3299 (value_range_equiv::value_range_equiv): Same.
3300 (value_range_equiv::update): Same.
3301 (value_range_equiv::deep_copy): Same.
3302 (value_range_equiv::move): Same.
3303 (value_range_equiv::set_undefined): Same.
3304 (value_range::set): Same.
3305 (value_range::set_nonzero): Same.
3306 (ranges_from_anti_range): Same.
3307 (extract_range_from_plus_minus_expr): Same.
3308 (value_range::intersect_helper): Same.
3309 (value_range_equiv::intersect): Same.
3310 (value_range::union_helper): Same.
3311 (value_range_equiv::union_): Same.
3312 (value_range::normalize_symbolics): Same.
3313 (value_range::invert): Same.
3314 (determine_value_range_1): Same.
3315 * tree-vrp.h (class value_range): Same.
3316 (class value_range_equiv): Same.
3317 * vr-values.c (set_value_range_to_nonnegative): Same.
3318 (set_value_range_to_truthvalue): Same.
3319 (vr_values::update_value_range): Same.
3320 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3321 (vr_values::extract_range_from_binary_expr): Same.
3322 (vr_values::extract_range_from_comparison): Same.
3323 (vr_values::extract_range_basic): Same.
3324 (vr_values::adjust_range_with_scev): Same.
3325 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3326 (vr_values::extract_range_from_phi_node): Same.
3327
3328 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3329
3330 * tree-dump.c (dequeue_and_dump): Print first tree operand
3331 for VIEW_CONVERT_EXPR.
3332
3333 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3334
3335 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3336 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3337 * real.c (get_max_float): Add norm_max argument.
3338 * real.h (get_max_float): Update prototype.
3339 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3340 get_max_float.
3341
3342 2019-11-13 Martin Liska <mliska@suse.cz>
3343
3344 * dbgcnt.c (test_sorted_dbg_counters): New.
3345 (dbgcnt_c_tests): Likewise.
3346 * selftest-run-tests.c (selftest::run_tests): Likewise.
3347 * selftest.h (dbgcnt_c_tests): Likewise.
3348
3349 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3350 Martin Jambor <mjambor@suse.cz>
3351
3352 PR ipa/92454
3353 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3354 (identify_dead_nodes): Likewise.
3355
3356 2019-11-13 Martin Liska <mliska@suse.cz>
3357
3358 * ipa-icf.c (sem_function::equals_private): Do not overuse
3359 push/pop_cfun functions.
3360
3361 2019-11-13 Martin Liska <mliska@suse.cz>
3362
3363 * common.opt: Document change of -fdbg-cnt option.
3364 * dbgcnt.c (DEBUG_COUNTER): Remove.
3365 (dbg_cnt_is_enabled): Remove.
3366 (dbg_cnt): Work with new intervals.
3367 (dbg_cnt_set_limit_by_index): Set to new
3368 list of intervals.
3369 (dbg_cnt_set_limit_by_name): Likewise.
3370 (dbg_cnt_process_single_pair): Process new format.
3371 (dbg_cnt_process_opt): Likewise.
3372 (dbg_cnt_list_all_counters): Likewise.
3373 * doc/invoke.texi: Document change of -fdbg-cnt option.
3374 (cmp_tuples): New.
3375
3376 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3377
3378 * ipa-inline.c (ipa_inline): Check that function is defined before
3379 flattening.
3380
3381 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3382 Julian Brown <julian@codesourcery.com>
3383
3384 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3385 flag_worker_partitioning is not set.
3386 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3387 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3388
3389 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3390
3391 * config/gcn/gcn-run.c (heap_region): New global variable.
3392 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3393 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3394 (get_kernarg_region): Move contents to ....
3395 (get_memory_region): .... here.
3396 (get_heap_region): New function.
3397 (init_device): Initialize the heap_region.
3398 (device_malloc): Add region parameter.
3399 (struct kernargs): Move heap ....
3400 (heap): ... to global scope.
3401 (main): Allocate heap separate to kernargs.
3402
3403 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3404
3405 * ipa-prop.c (ipa_print_node_jump_functions,
3406 ipa_print_node_params): Print info about missing summaries.
3407
3408 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3409
3410 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3411 the cost of generating loop masks.
3412
3413 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3414
3415 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3416 New function.
3417 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3418 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3419 (vect_transform_loop): Likewise.
3420 (vect_analyze_loop_costing): Don't take the cost of versioning
3421 into account for the static profitability threshold if it turns
3422 out that no versioning is needed.
3423
3424 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3425
3426 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3427 and target_option_default_node to get -fprofile-generate ctors working
3428 right with LTO.
3429
3430 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3431
3432 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3433 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3434 (vectorizable_assignment): Don't add a cost for nop conversions.
3435 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3436 Likewise.
3437 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3438
3439 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3440
3441 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3442 number of ncopies as an additional argument.
3443 (vectorizable_conversion): Update call accordingly. Use "modifier"
3444 to check whether a conversion is between vectors with the same
3445 numbers of units.
3446
3447 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3448
3449 * config/aarch64/aarch64-sve-builtins-functions.h
3450 (unary_count::expand): Use aarch64_sve_int_mode instead of
3451 mode_for_int_vector.
3452
3453 2019-11-13 Martin Liska <mliska@suse.cz>
3454
3455 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3456
3457 2019-11-13 Martin Liska <mliska@suse.cz>
3458
3459 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3460 Remove call to finalize_options_struct.
3461
3462 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3463
3464 PR target/92055
3465 * config/avr/t-avr (avr-mcus): Do not depend on
3466 $(srcdir)/config/avr/t-multilib.
3467
3468 2019-11-13 Richard Biener <rguenther@suse.de>
3469
3470 PR tree-optimization/92473
3471 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3472 direct optab reduction in the correct type.
3473
3474 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3475
3476 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3477 hexadecimal literal.
3478
3479 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3480
3481 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3482 UNORDERED if !HONOR_NANS (DFmode).
3483 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3484 if !HONOR_NANS (<MODE>mode).
3485
3486 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3487
3488 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3489 (ipcp_verify_propagated_values): Likewise.
3490 (propagate_constants_across_call): Likewise.
3491 (propagate_constants_topo): Likewise.
3492 (ipcp_propagate_stage): Likewise.
3493
3494 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3495
3496 PR ipa/92471
3497 * ipa-profile.c (check_argument_count): Break out from ...;
3498 watch for missing summaries.
3499 (ipa_profile): Here.
3500
3501 2019-11-12 Martin Sebor <msebor@redhat.com>
3502
3503 PR tree-optimization/92412
3504 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3505 extern variables.
3506
3507 2019-11-12 Martin Sebor <msebor@redhat.com>
3508
3509 PR middle-end/83688
3510 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3511 (directive::argno): New member.
3512 (format_result::aliases, format_result::alias_count): New data members.
3513 (format_result::append_alias): New member function.
3514 (fmtresult::dst_offset): New data member.
3515 (pass_sprintf_length::call_info::dst_origin): New data member.
3516 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3517 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3518 (get_origin_and_offset): Same.
3519 (format_string): Call it.
3520 (format_directive): Call append_alias and set directive argument
3521 number.
3522 (maybe_warn_overlap): New function.
3523 (pass_sprintf_length::compute_format_length): Call it.
3524 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3525 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3526
3527 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3528
3529 PR rtl-optimization/92430
3530 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3531 dominance info at the beginning.
3532
3533 2019-11-12 Richard Biener <rguenther@suse.de>
3534
3535 PR tree-optimization/92460
3536 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3537 expression before gimplifying.
3538
3539 2019-11-12 Richard Biener <rguenther@suse.de>
3540
3541 PR tree-optimization/92461
3542 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3543 stmt after propagation.
3544
3545 2019-11-12 Martin Liska <mliska@suse.cz>
3546
3547 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3548 Use SET_OPTION_IF_UNSET.
3549 (ix86_option_override_internal): Likewise.
3550 * opts.c (default_options_optimization): Likewise.
3551 (finish_options): Likewise.
3552 (enable_fdo_optimizations): Likewise.
3553 (common_handle_option): Likewise.
3554
3555 2019-11-12 Martin Liska <mliska@suse.cz>
3556
3557 * common/common-target.def: Remove option_validate_param and
3558 option_default_params.
3559 * common/common-targhooks.c (default_option_validate_param):
3560 Remove.
3561 * common/common-targhooks.h (default_option_validate_param):
3562 Remove.
3563 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3564 Remove usage of this.
3565 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3566 (aarch64_option_validate_param): Likewise.
3567 (aarch64_option_default_params): Likewise
3568 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3569 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3570 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3571 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3572 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3573 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3574 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3575 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3576 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3577 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3578 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3579 guard_size here.
3580 * doc/tm.texi: Remove option_default_params and option_validate_param.
3581 * doc/tm.texi.in: Likewise.
3582
3583 2019-11-12 Martin Liska <mliska@suse.cz>
3584
3585 * common/common-target.def:
3586 Do not mention set_default_param_value
3587 and set_param_value.
3588 * doc/tm.texi: Likewise.
3589
3590 2019-11-12 Martin Liska <mliska@suse.cz>
3591
3592 * common.opt: Remove param_values.
3593 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3594 Remove finalize_options_struct.
3595 * gcc.c (driver::decode_argv): Do not call global_init_params
3596 and finish_params.
3597 (driver::finalize): Do not call params_c_finalize
3598 and finalize_options_struct.
3599 * opt-suggestions.c (option_proposer::get_completions): Remove
3600 special casing of params.
3601 (option_proposer::find_param_completions): Remove.
3602 (test_completion_partial_match): Update expected output.
3603 * opt-suggestions.h: Remove find_param_completions.
3604 * opts-common.c (add_misspelling_candidates): Add
3605 --param with a space.
3606 * opts.c (handle_param): Remove.
3607 (init_options_struct):. Remove init_options_struct and
3608 similar calls.
3609 (finalize_options_struct): Remove.
3610 (common_handle_option): Use SET_OPTION_IF_UNSET.
3611 * opts.h (finalize_options_struct): Remove.
3612 * toplev.c (general_init): Do not call global_init_params.
3613 (toplev::finalize): Do not call params_c_finalize and
3614 finalize_options_struct.
3615
3616 2019-11-12 Martin Liska <mliska@suse.cz>
3617
3618 * Makefile.in: Remove PARAMS_H and params.list
3619 and params.options.
3620 * params-enum.h: Remove.
3621 * params-list.h: Remove.
3622 * params-options.h: Remove.
3623 * params.c: Remove.
3624 * params.def: Remove.
3625 * params.h: Remove.
3626 * asan.c: Do not include params.h.
3627 * auto-profile.c: Likewise.
3628 * bb-reorder.c: Likewise.
3629 * builtins.c: Likewise.
3630 * cfgcleanup.c: Likewise.
3631 * cfgexpand.c: Likewise.
3632 * cfgloopanal.c: Likewise.
3633 * cgraph.c: Likewise.
3634 * combine.c: Likewise.
3635 * common/config/aarch64/aarch64-common.c: Likewise.
3636 * common/config/gcn/gcn-common.c: Likewise.
3637 * common/config/ia64/ia64-common.c: Likewise.
3638 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3639 * common/config/rs6000/rs6000-common.c: Likewise.
3640 * common/config/sh/sh-common.c: Likewise.
3641 * config/aarch64/aarch64.c: Likewise.
3642 * config/alpha/alpha.c: Likewise.
3643 * config/arm/arm.c: Likewise.
3644 * config/avr/avr.c: Likewise.
3645 * config/csky/csky.c: Likewise.
3646 * config/i386/i386-builtins.c: Likewise.
3647 * config/i386/i386-expand.c: Likewise.
3648 * config/i386/i386-features.c: Likewise.
3649 * config/i386/i386-options.c: Likewise.
3650 * config/i386/i386.c: Likewise.
3651 * config/ia64/ia64.c: Likewise.
3652 * config/rs6000/rs6000-logue.c: Likewise.
3653 * config/rs6000/rs6000.c: Likewise.
3654 * config/s390/s390.c: Likewise.
3655 * config/sparc/sparc.c: Likewise.
3656 * config/visium/visium.c: Likewise.
3657 * coverage.c: Likewise.
3658 * cprop.c: Likewise.
3659 * cse.c: Likewise.
3660 * cselib.c: Likewise.
3661 * dse.c: Likewise.
3662 * emit-rtl.c: Likewise.
3663 * explow.c: Likewise.
3664 * final.c: Likewise.
3665 * fold-const.c: Likewise.
3666 * gcc.c: Likewise.
3667 * gcse.c: Likewise.
3668 * ggc-common.c: Likewise.
3669 * ggc-page.c: Likewise.
3670 * gimple-loop-interchange.cc: Likewise.
3671 * gimple-loop-jam.c: Likewise.
3672 * gimple-loop-versioning.cc: Likewise.
3673 * gimple-ssa-split-paths.c: Likewise.
3674 * gimple-ssa-sprintf.c: Likewise.
3675 * gimple-ssa-store-merging.c: Likewise.
3676 * gimple-ssa-strength-reduction.c: Likewise.
3677 * gimple-ssa-warn-alloca.c: Likewise.
3678 * gimple-ssa-warn-restrict.c: Likewise.
3679 * graphite-isl-ast-to-gimple.c: Likewise.
3680 * graphite-optimize-isl.c: Likewise.
3681 * graphite-scop-detection.c: Likewise.
3682 * graphite-sese-to-poly.c: Likewise.
3683 * graphite.c: Likewise.
3684 * haifa-sched.c: Likewise.
3685 * hsa-gen.c: Likewise.
3686 * ifcvt.c: Likewise.
3687 * ipa-cp.c: Likewise.
3688 * ipa-fnsummary.c: Likewise.
3689 * ipa-inline-analysis.c: Likewise.
3690 * ipa-inline.c: Likewise.
3691 * ipa-polymorphic-call.c: Likewise.
3692 * ipa-profile.c: Likewise.
3693 * ipa-prop.c: Likewise.
3694 * ipa-split.c: Likewise.
3695 * ipa-sra.c: Likewise.
3696 * ira-build.c: Likewise.
3697 * ira-conflicts.c: Likewise.
3698 * loop-doloop.c: Likewise.
3699 * loop-invariant.c: Likewise.
3700 * loop-unroll.c: Likewise.
3701 * lra-assigns.c: Likewise.
3702 * lra-constraints.c: Likewise.
3703 * modulo-sched.c: Likewise.
3704 * opt-suggestions.c: Likewise.
3705 * opts.c: Likewise.
3706 * postreload-gcse.c: Likewise.
3707 * predict.c: Likewise.
3708 * reload.c: Likewise.
3709 * reorg.c: Likewise.
3710 * resource.c: Likewise.
3711 * sanopt.c: Likewise.
3712 * sched-deps.c: Likewise.
3713 * sched-ebb.c: Likewise.
3714 * sched-rgn.c: Likewise.
3715 * sel-sched-ir.c: Likewise.
3716 * sel-sched.c: Likewise.
3717 * shrink-wrap.c: Likewise.
3718 * stmt.c: Likewise.
3719 * targhooks.c: Likewise.
3720 * toplev.c: Likewise.
3721 * tracer.c: Likewise.
3722 * trans-mem.c: Likewise.
3723 * tree-chrec.c: Likewise.
3724 * tree-data-ref.c: Likewise.
3725 * tree-if-conv.c: Likewise.
3726 * tree-inline.c: Likewise.
3727 * tree-loop-distribution.c: Likewise.
3728 * tree-parloops.c: Likewise.
3729 * tree-predcom.c: Likewise.
3730 * tree-profile.c: Likewise.
3731 * tree-scalar-evolution.c: Likewise.
3732 * tree-sra.c: Likewise.
3733 * tree-ssa-ccp.c: Likewise.
3734 * tree-ssa-dom.c: Likewise.
3735 * tree-ssa-dse.c: Likewise.
3736 * tree-ssa-ifcombine.c: Likewise.
3737 * tree-ssa-loop-ch.c: Likewise.
3738 * tree-ssa-loop-im.c: Likewise.
3739 * tree-ssa-loop-ivcanon.c: Likewise.
3740 * tree-ssa-loop-ivopts.c: Likewise.
3741 * tree-ssa-loop-manip.c: Likewise.
3742 * tree-ssa-loop-niter.c: Likewise.
3743 * tree-ssa-loop-prefetch.c: Likewise.
3744 * tree-ssa-loop-unswitch.c: Likewise.
3745 * tree-ssa-math-opts.c: Likewise.
3746 * tree-ssa-phiopt.c: Likewise.
3747 * tree-ssa-pre.c: Likewise.
3748 * tree-ssa-reassoc.c: Likewise.
3749 * tree-ssa-sccvn.c: Likewise.
3750 * tree-ssa-scopedtables.c: Likewise.
3751 * tree-ssa-sink.c: Likewise.
3752 * tree-ssa-strlen.c: Likewise.
3753 * tree-ssa-structalias.c: Likewise.
3754 * tree-ssa-tail-merge.c: Likewise.
3755 * tree-ssa-threadbackward.c: Likewise.
3756 * tree-ssa-threadedge.c: Likewise.
3757 * tree-ssa-uninit.c: Likewise.
3758 * tree-switch-conversion.c: Likewise.
3759 * tree-vect-data-refs.c: Likewise.
3760 * tree-vect-loop.c: Likewise.
3761 * tree-vect-slp.c: Likewise.
3762 * tree-vrp.c: Likewise.
3763 * tree.c: Likewise.
3764 * value-prof.c: Likewise.
3765 * var-tracking.c: Likewise.
3766
3767 2019-11-12 Martin Liska <mliska@suse.cz>
3768
3769 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3770 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3771 macro.
3772 (asan_sanitize_allocas_p): Likewise.
3773 (asan_emit_stack_protection): Likewise.
3774 (asan_protect_global): Likewise.
3775 (instrument_derefs): Likewise.
3776 (instrument_builtin_call): Likewise.
3777 (asan_expand_mark_ifn): Likewise.
3778 * auto-profile.c (auto_profile): Likewise.
3779 * bb-reorder.c (copy_bb_p): Likewise.
3780 (duplicate_computed_gotos): Likewise.
3781 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3782 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3783 (try_crossjump_bb): Likewise.
3784 * cfgexpand.c (defer_stack_allocation): Likewise.
3785 (stack_protect_classify_type): Likewise.
3786 (pass_expand::execute): Likewise.
3787 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3788 (estimate_reg_pressure_cost): Likewise.
3789 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3790 * combine.c (combine_instructions): Likewise.
3791 (record_value_for_reg): Likewise.
3792 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3793 (aarch64_option_default_params): Likewise.
3794 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3795 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3796 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3797 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3798 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3799 (aarch64_allocate_and_probe_stack_space): Likewise.
3800 (aarch64_expand_epilogue): Likewise.
3801 (aarch64_override_options_internal): Likewise.
3802 * config/alpha/alpha.c (alpha_option_override): Likewise.
3803 * config/arm/arm.c (arm_option_override): Likewise.
3804 (arm_valid_target_attribute_p): Likewise.
3805 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3806 * config/i386/i386.c (get_probe_interval): Likewise.
3807 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3808 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3809 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3810 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3811 (get_stack_clash_protection_guard_size): Likewise.
3812 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3813 * config/s390/s390.c (allocate_stack_space): Likewise.
3814 (s390_emit_prologue): Likewise.
3815 (s390_option_override_internal): Likewise.
3816 * config/sparc/sparc.c (sparc_option_override): Likewise.
3817 * config/visium/visium.c (visium_option_override): Likewise.
3818 * coverage.c (get_coverage_counts): Likewise.
3819 (coverage_compute_profile_id): Likewise.
3820 (coverage_begin_function): Likewise.
3821 (coverage_end_function): Likewise.
3822 * cse.c (cse_find_path): Likewise.
3823 (cse_extended_basic_block): Likewise.
3824 (cse_main): Likewise.
3825 * cselib.c (cselib_invalidate_mem): Likewise.
3826 * dse.c (dse_step1): Likewise.
3827 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3828 (get_max_insn_count): Likewise.
3829 (make_debug_insn_raw): Likewise.
3830 (init_emit): Likewise.
3831 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3832 * final.c (compute_alignments): Likewise.
3833 * fold-const.c (fold_range_test): Likewise.
3834 (fold_truth_andor): Likewise.
3835 (tree_single_nonnegative_warnv_p): Likewise.
3836 (integer_valued_real_single_p): Likewise.
3837 * gcse.c (want_to_gcse_p): Likewise.
3838 (prune_insertions_deletions): Likewise.
3839 (hoist_code): Likewise.
3840 (gcse_or_cprop_is_too_expensive): Likewise.
3841 * ggc-common.c: Likewise.
3842 * ggc-page.c (ggc_collect): Likewise.
3843 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3844 (MAX_DATAREFS): Likewise.
3845 (OUTER_STRIDE_RATIO): Likewise.
3846 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3847 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3848 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3849 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3850 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3851 (imm_store_chain_info::output_merged_store): Likewise.
3852 (pass_store_merging::process_store): Likewise.
3853 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3854 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3855 (scop_to_isl_ast): Likewise.
3856 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3857 (optimize_isl): Likewise.
3858 * graphite-scop-detection.c (build_scops): Likewise.
3859 * haifa-sched.c (set_modulo_params): Likewise.
3860 (rank_for_schedule): Likewise.
3861 (model_add_to_worklist): Likewise.
3862 (model_promote_insn): Likewise.
3863 (model_choose_insn): Likewise.
3864 (queue_to_ready): Likewise.
3865 (autopref_multipass_dfa_lookahead_guard): Likewise.
3866 (schedule_block): Likewise.
3867 (sched_init): Likewise.
3868 * hsa-gen.c (init_prologue): Likewise.
3869 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3870 (cond_move_process_if_block): Likewise.
3871 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3872 (merge_agg_lats_step): Likewise.
3873 (devirtualization_time_bonus): Likewise.
3874 (hint_time_bonus): Likewise.
3875 (incorporate_penalties): Likewise.
3876 (good_cloning_opportunity_p): Likewise.
3877 (ipcp_propagate_stage): Likewise.
3878 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3879 (set_switch_stmt_execution_predicate): Likewise.
3880 (analyze_function_body): Likewise.
3881 (compute_fn_summary): Likewise.
3882 * ipa-inline-analysis.c (estimate_growth): Likewise.
3883 * ipa-inline.c (caller_growth_limits): Likewise.
3884 (inline_insns_single): Likewise.
3885 (inline_insns_auto): Likewise.
3886 (can_inline_edge_by_limits_p): Likewise.
3887 (want_early_inline_function_p): Likewise.
3888 (big_speedup_p): Likewise.
3889 (want_inline_small_function_p): Likewise.
3890 (want_inline_self_recursive_call_p): Likewise.
3891 (edge_badness): Likewise.
3892 (recursive_inlining): Likewise.
3893 (compute_max_insns): Likewise.
3894 (early_inliner): Likewise.
3895 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3896 * ipa-profile.c (ipa_profile): Likewise.
3897 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3898 (ipa_analyze_node): Likewise.
3899 (ipcp_transform_function): Likewise.
3900 * ipa-split.c (consider_split): Likewise.
3901 * ipa-sra.c (allocate_access): Likewise.
3902 (process_scan_results): Likewise.
3903 (ipa_sra_summarize_function): Likewise.
3904 (pull_accesses_from_callee): Likewise.
3905 * ira-build.c (loop_compare_func): Likewise.
3906 (mark_loops_for_removal): Likewise.
3907 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3908 * loop-doloop.c (doloop_optimize): Likewise.
3909 * loop-invariant.c (gain_for_invariant): Likewise.
3910 (move_loop_invariants): Likewise.
3911 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3912 (decide_unroll_runtime_iterations): Likewise.
3913 (decide_unroll_stupid): Likewise.
3914 (expand_var_during_unrolling): Likewise.
3915 * lra-assigns.c (spill_for): Likewise.
3916 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3917 * modulo-sched.c (sms_schedule): Likewise.
3918 (DFA_HISTORY): Likewise.
3919 * opts.c (default_options_optimization): Likewise.
3920 (finish_options): Likewise.
3921 (common_handle_option): Likewise.
3922 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3923 (if): Likewise.
3924 * predict.c (get_hot_bb_threshold): Likewise.
3925 (maybe_hot_count_p): Likewise.
3926 (probably_never_executed): Likewise.
3927 (predictable_edge_p): Likewise.
3928 (predict_loops): Likewise.
3929 (expr_expected_value_1): Likewise.
3930 (tree_predict_by_opcode): Likewise.
3931 (handle_missing_profiles): Likewise.
3932 * reload.c (find_equiv_reg): Likewise.
3933 * reorg.c (redundant_insn): Likewise.
3934 * resource.c (mark_target_live_regs): Likewise.
3935 (incr_ticks_for_insn): Likewise.
3936 * sanopt.c (pass_sanopt::execute): Likewise.
3937 * sched-deps.c (sched_analyze_1): Likewise.
3938 (sched_analyze_2): Likewise.
3939 (sched_analyze_insn): Likewise.
3940 (deps_analyze_insn): Likewise.
3941 * sched-ebb.c (schedule_ebbs): Likewise.
3942 * sched-rgn.c (find_single_block_region): Likewise.
3943 (too_large): Likewise.
3944 (haifa_find_rgns): Likewise.
3945 (extend_rgns): Likewise.
3946 (new_ready): Likewise.
3947 (schedule_region): Likewise.
3948 (sched_rgn_init): Likewise.
3949 * sel-sched-ir.c (make_region_from_loop): Likewise.
3950 * sel-sched-ir.h (MAX_WS): Likewise.
3951 * sel-sched.c (process_pipelined_exprs): Likewise.
3952 (sel_setup_region_sched_flags): Likewise.
3953 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3954 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3955 * toplev.c (print_version): Likewise.
3956 (process_options): Likewise.
3957 * tracer.c (tail_duplicate): Likewise.
3958 * trans-mem.c (tm_log_add): Likewise.
3959 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3960 * tree-data-ref.c (split_constant_offset): Likewise.
3961 (compute_all_dependences): Likewise.
3962 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3963 * tree-inline.c (remap_gimple_stmt): Likewise.
3964 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3965 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3966 (create_parallel_loop): Likewise.
3967 * tree-predcom.c (determine_unroll_factor): Likewise.
3968 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3969 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3970 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3971 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3972 (dse_optimize_redundant_stores): Likewise.
3973 (dse_classify_store): Likewise.
3974 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3975 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3976 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3977 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3978 (try_peel_loop): Likewise.
3979 (tree_unroll_loops_completely): Likewise.
3980 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3981 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3982 (MAX_CONSIDERED_GROUPS): Likewise.
3983 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3984 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3985 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3986 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3987 (L1_CACHE_SIZE_BYTES): Likewise.
3988 (L2_CACHE_SIZE_BYTES): Likewise.
3989 (should_issue_prefetch_p): Likewise.
3990 (schedule_prefetches): Likewise.
3991 (determine_unroll_factor): Likewise.
3992 (volume_of_references): Likewise.
3993 (add_subscript_strides): Likewise.
3994 (self_reuse_distance): Likewise.
3995 (mem_ref_count_reasonable_p): Likewise.
3996 (insn_to_prefetch_ratio_too_small_p): Likewise.
3997 (loop_prefetch_arrays): Likewise.
3998 (tree_ssa_prefetch_arrays): Likewise.
3999 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4000 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4001 (convert_mult_to_fma): Likewise.
4002 (math_opts_dom_walker::after_dom_children): Likewise.
4003 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4004 (hoist_adjacent_loads): Likewise.
4005 (gate_hoist_loads): Likewise.
4006 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4007 (compute_partial_antic_aux): Likewise.
4008 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4009 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4010 (vn_reference_lookup): Likewise.
4011 (do_rpo_vn): Likewise.
4012 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4013 * tree-ssa-sink.c (select_best_block): Likewise.
4014 * tree-ssa-strlen.c (new_stridx): Likewise.
4015 (new_addr_stridx): Likewise.
4016 (get_range_strlen_dynamic): Likewise.
4017 (class ssa_name_limit_t): Likewise.
4018 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4019 (create_variable_info_for_1): Likewise.
4020 (init_alias_vars): Likewise.
4021 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4022 (tail_merge_optimize): Likewise.
4023 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4024 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4025 (thread_jumps::find_jump_threads_backwards): Likewise.
4026 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4027 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4028 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4029 (jump_table_cluster::can_be_handled): Likewise.
4030 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4031 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4032 (param_switch_conversion_branch_ratio): Likewise.
4033 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4034 (vect_enhance_data_refs_alignment): Likewise.
4035 (vect_prune_runtime_alias_test_list): Likewise.
4036 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4037 (vect_get_datarefs_in_loop): Likewise.
4038 (vect_analyze_loop): Likewise.
4039 * tree-vect-slp.c (vect_slp_bb): Likewise.
4040 * tree-vectorizer.h: Likewise.
4041 * tree-vrp.c (find_switch_asserts): Likewise.
4042 (vrp_prop::check_mem_ref): Likewise.
4043 * tree.c (wide_int_to_tree_1): Likewise.
4044 (cache_integer_cst): Likewise.
4045 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4046 (reverse_op): Likewise.
4047 (vt_find_locations): Likewise.
4048
4049 2019-11-12 Martin Liska <mliska@suse.cz>
4050
4051 * Makefile.in: Include params.opt.
4052 * flag-types.h (enum parloops_schedule_type): Add
4053 parloops_schedule_type used in params.opt.
4054 * params.opt: New file.
4055
4056 2019-11-12 Martin Liska <mliska@suse.cz>
4057
4058 * common.opt: Remove --param and --param= options.
4059 * opt-functions.awk: Mark CL_PARAMS for options
4060 that have Param keyword.
4061 * opts-common.c (decode_cmdline_options_to_array):
4062 Replace --param key=value with --param=key=value.
4063 * opts.c (print_filtered_help): Remove special
4064 printing of params.
4065 (print_specific_help): Update title for params.
4066 (common_handle_option): Do not handle OPT__param.
4067 opts.h (SET_OPTION_IF_UNSET): New macro.
4068 * doc/options.texi: Document Param keyword.
4069
4070 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4071 Frederik Harwath <frederik@codesourcery.com>
4072 Thomas Schwinge <thomas@codesourcery.com>
4073
4074 gcc/
4075 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4076 enumeration constant.
4077 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4078 (is_gimple_omp_offloaded): Likewise.
4079 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4080 constant. Adjust the value of ORT_NONE accordingly.
4081 (is_gimple_stmt): Handle OACC_SERIAL.
4082 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4083 (gomp_needs_data_present): Likewise.
4084 (gimplify_adjust_omp_clauses): Likewise.
4085 (gimplify_omp_workshare): Handle OACC_SERIAL.
4086 (gimplify_expr): Likewise.
4087 * omp-expand.c (expand_omp_target):
4088 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4089 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4090 * omp-low.c (is_oacc_parallel): Rename function to...
4091 (is_oacc_parallel_or_serial): ... this.
4092 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4093 (scan_sharing_clauses): Adjust accordingly.
4094 (scan_omp_for): Likewise.
4095 (lower_oacc_head_mark): Likewise.
4096 (convert_from_firstprivate_int): Likewise.
4097 (lower_omp_target): Likewise.
4098 (check_omp_nesting_restrictions): Handle
4099 GF_OMP_TARGET_KIND_OACC_SERIAL.
4100 (lower_oacc_reductions): Likewise.
4101 (lower_omp_target): Likewise.
4102 * tree.def (OACC_SERIAL): New tree code.
4103 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4104
4105 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4106
4107 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4108
4109 PR target/92449
4110 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4111 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4112
4113 PR tree-optimization/92452
4114 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4115 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4116 MINUS_EXPR on it.
4117
4118 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4119
4120 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4121 safelen with 0.
4122
4123 2019-11-12 Alan Modra <amodra@gmail.com>
4124
4125 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4126 element of unspec vec.
4127 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4128 PC-relative TLS.
4129 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4130 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4131 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4132 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4133
4134 2019-11-12 Alan Modra <amodra@gmail.com>
4135
4136 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4137 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4138 (IS_NOMARK_TLSGETADDR): Likewise.
4139 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4140 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4141 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4142 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4143 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4144 (rs6000_indirect_call_template_1): Likewise.
4145 (rs6000_pltseq_template): Likewise.
4146 (rs6000_opt_vars): Remove "tls-markers" entry.
4147 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4148 with TARGET_ELF.
4149 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4150 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4151 (pltseq_plt_pcrel<mode>): Likewise.
4152 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4153 (call_value_local64): Likewise.
4154 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4155 output and length attribute sub-expression.
4156 (call_value_nonlocal_sysv<mode>),
4157 (call_value_nonlocal_sysv_secure<mode>),
4158 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4159 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4160 (call_value_indirect_pcrel<mode>): Likewise.
4161 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4162 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4163 * configure: Regenerate.
4164 * config.in: Regenerate.
4165
4166 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4167
4168 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4169 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4170 address being a prefixed load/store.
4171 (stack_protect_testdi): Deal with either address being a prefixed
4172 load.
4173
4174 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4175
4176 PR bootstrap/92433
4177 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4178 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4179 std::swap.
4180
4181 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4182
4183 PR tree-optimization/92420
4184 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4185 up file.
4186 (get_group_load_store_type): Use it for reversed SLP accesses.
4187
4188 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4189
4190 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4191 summary.
4192 (ipcp_transformation_t::duplicate): Break out from ...
4193 (ipa_node_params_t::duplicate): ... here; add copying of agg
4194 replacements.
4195 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4196 (ipcp_transformation_t): Add duplicate.
4197
4198 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4199
4200 PR fortran/91828
4201 * doc/install.texi: Document that the minimum MPFR version is
4202 3.1.0.
4203
4204 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4205
4206 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4207 use new register constraint letters.
4208
4209 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4210
4211 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4212 as well, if interesting recover the symbol and re-legitimize the
4213 pic address.
4214
4215 2019-11-11 Martin Liska <mliska@suse.cz>
4216
4217 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4218 alphabetically.
4219
4220 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4221
4222 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4223 account when checking if there are enough iterations to vectorize
4224 epilogue.
4225
4226 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4227 Kwok Cheung Yeung <kcy@codesourcery.com>
4228
4229 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4230 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4231 (LANG_HOOKS_DECLS): Rename also here.
4232 * langhooks.h (lang_hooks_for_decls): Rename
4233 omp_is_optional_argument to omp_check_optional_argument; take
4234 additional bool argument.
4235 * omp-general.h (omp_check_optional_argument): Likewise.
4236 * omp-general.h (omp_check_optional_argument): Likewise.
4237 * omp-low.c (lower_omp_target): Update calls; handle absent
4238 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4239
4240 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4241
4242 PR target/87833
4243 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4244 -fPIC and -shared the last to create offload image.
4245
4246 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4247
4248 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4249 of 'offset'.
4250
4251 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4252 (config.status): Use/depend on it.
4253 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4254 * configure: Regenerate.
4255
4256 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4257
4258 PR tree-optimization/88760
4259 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4260 * gcc/common/config/rs6000/rs6000-common.c
4261 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4262 Turn on -funroll-loops and -munroll-only-small-loops.
4263 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4264 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4265 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4266 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4267 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4268 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4269
4270 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4271
4272 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4273 Make scalar_load, vector_load, unaligned_load and
4274 vector_gather_load cost more to conform hardware latency and
4275 insn cost settings.
4276
4277 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4278
4279 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4280 (MACHO_SYMBOL_LINKER_VIS_P): New.
4281
4282 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4283
4284 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4285 registers in eliminable_regset.
4286
4287 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4288
4289 * ipa-inline.c (compute_uninlined_call_time,
4290 compute_inlined_call_time): Take edge frequency as
4291 parameter rather than computing it by itself.
4292 (big_speedup_p, edge_badness): Manually CSE sreal
4293 frequency calculations.
4294
4295 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4296
4297 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4298 case where profiles are same.
4299
4300 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4301
4302 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4303
4304 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4305
4306 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4307 args summaries of inlined edge unless it holds info about
4308 described reference.
4309
4310 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4311
4312 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4313 (*movcc_internal1): Rename to...
4314 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4315
4316 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4317
4318 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4319 (cgraph_node::create_virtual_clone): Copy it.
4320 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4321 summaries.
4322 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4323 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4324 is disabled.
4325 (propagate_constants_across_call): If callee is not analyzed, give up.
4326 (propagate_constants_topo): Lower to bottom latties of all callees of
4327 functions with ipa-cp disabled.
4328 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4329 (cgraph_edge_brings_value_p): Check for availability first.
4330 (create_specialized_node): Set ipcp_clone.
4331 (ipcp_store_bits_results): Check that info is present.
4332 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4333 thunks.
4334 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4335 conservative when callee summary is missing.
4336 (remap_edge_summaries): Lookup call summary only when needed.
4337 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4338 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4339 Use get_create.
4340 (ipa_analyze_node): Use get_create.
4341 (propagate_controlled_uses): Do not propagate when function is not
4342 analyzed.
4343 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4344 (ipa_read_node_info): Use get_create.
4345 * ipa-prop.h (IPA_NODE_REF): Use get.
4346 (IPA_NODE_REF_GET_CREATE): New.
4347
4348 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4349
4350 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4351 on function symbol.
4352
4353 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4354
4355 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4356 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4357 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4358 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4359
4360 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4361
4362 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4363 capping the growth cumulated.
4364 (offline_size): Break out from ...
4365 (estimate_growth): ... here.
4366 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4367 parameters.
4368 (growth_likely_positive): Turn to ...
4369 (growth_positive_p): Re-implement.
4370 * ipa-inline.h (growth_likely_positive): Remove.
4371 (growth_positive_p): Declare.
4372 * ipa-inline.c (want_inline_small_function_p): Use
4373 growth_positive_p.
4374 (want_inline_function_to_all_callers_p): Likewise.
4375
4376 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4377
4378 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4379 calculation of min_size.
4380 (ipa_update_overall_fn_summary): Likewise.
4381
4382 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4383
4384 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4385 estimate_edge_devirt_benefit when not computing hints;
4386 do not compute time when not asked for.
4387 (estimate_calls_size_and_time): Pass NULL hints and time when
4388 these are not computed; do not evaluate hint predicates when these are
4389 not computed.
4390 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4391 frequency.
4392
4393 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4394
4395 PR tree-optimization/92401
4396 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4397 if res_op->code is an expression with code length 1.
4398 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4399 if res_op->code is an expression with code length 2.
4400 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4401 if res_op->code is an expression with code length 3.
4402
4403 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4404
4405 * config/darwin.c (machopic_mcount_stub_name): Validate the
4406 symbol stub name when it is created.
4407 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4408 stub validation.
4409
4410 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4411
4412 * symtab.c: Fix comment typos.
4413 * cgraphunit.c: Likewise.
4414 * cgraph.h: Likewise.
4415 * cgraphclones.c: Likewise.
4416 * cgraph.c: Likewise.
4417 * varpool.c: Likewise.
4418 * tree-ssa-strlen.c: Likewise.
4419 * ipa-sra.c: Likewise.
4420 (scan_expr_access, check_all_callers_for_issues): Fix typo
4421 in a dump message.
4422
4423 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4424
4425 * config/darwin-protos.h: Add include quard.
4426
4427 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4428
4429 * range-op.h (range_operator::fold_range): Return result in a
4430 reference parameter instead of by value.
4431 (range_operator::wi_fold): Same.
4432 * range-op.cc (range_operator::wi_fold): Return result in a reference
4433 parameter instead of by value.
4434 (range_operator::fold_range): Same.
4435 (value_range_from_overflowed_bounds): Same.
4436 (value_range_with_overflow): Same
4437 (create_possibly_reversed_range): Same.
4438 (operator_equal::fold_range): Same.
4439 (operator_not_equal::fold_range): Same.
4440 (operator_lt::fold_range): Same.
4441 (operator_le::fold_range): Same.
4442 (operator_gt::fold_range): Same.
4443 (operator_ge::fold_range): Same.
4444 (operator_plus::wi_fold): Same.
4445 (operator_plus::op1_range): Change call to fold_range.
4446 (operator_plus::op2_range): Change call to fold_range.
4447 (operator_minus::wi_fold): Return result via reference parameter.
4448 (operator_minus::op1_range): Change call to fold_range.
4449 (operator_minus::op2_range): Change call to fold_range.
4450 (operator_min::wi_fold): Return result via reference parameter.
4451 (operator_max::wi_fold): Same.
4452 (cross_product_operator::wi_cross_product): Same.
4453 (operator_mult::wi_fold): Same.
4454 (operator_div::wi_fold): Same.
4455 (operator_div op_floor_div): Fix whitespace.
4456 (operator_exact_divide::op1_range): Change call to fold_range.
4457 (operator_lshift::fold_range): Return result via reference parameter.
4458 (operator_lshift::wi_fold): Same.
4459 (operator_rshift::fold_range): Same.
4460 (operator_rshift::wi_fold): Same.
4461 (operator_cast::fold_range): Same.
4462 (operator_cast::op1_range): Change calls to fold_range.
4463 (operator_logical_and::fold_range): Return result via reference.
4464 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4465 (operator_bitwise_and::wi_fold): Return result via reference.
4466 (operator_logical_or::fold_range): Same.
4467 (operator_bitwise_or::wi_fold): Same.
4468 (operator_bitwise_xor::wi_fold): Same.
4469 (operator_trunc_mod::wi_fold): Same.
4470 (operator_logical_not::fold_range): Same.
4471 (operator_bitwise_not::fold_range): Same.
4472 (operator_bitwise_not::op1_range): Change call to fold_range.
4473 (operator_cst::fold_range): Return result via reference.
4474 (operator_identity::fold_range): Same.
4475 (operator_abs::wi_fold): Same.
4476 (operator_absu::wi_fold): Same.
4477 (operator_negate::fold_range): Same.
4478 (operator_negate::op1_range): Change call to fold_range.
4479 (operator_addr_expr::fold_range): Return result via reference.
4480 (operator_addr_expr::op1_range): Change call to fold_range.
4481 (operator_pointer_plus::wi_fold): Return result via reference.
4482 (operator_pointer_min_max::wi_fold): Same.
4483 (operator_pointer_and::wi_fold): Same.
4484 (operator_pointer_or::wi_fold): Same.
4485 (range_op_handler): Change call to fold_range.
4486 (range_cast): Same.
4487 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4488 fold_range.
4489 (range_fold_unary_symbolics_p): Same.
4490 (range_fold_binary_expr): Same.
4491 (range_fold_unary_expr): Same.
4492
4493 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4494
4495 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4496 vector type as an argument rather than reading it from the
4497 stmt_vec_info.
4498 (vect_create_epilog_for_reduction): Update accordingly.
4499 (vectorizable_reduction): Likewise.
4500 (vect_transform_cycle_phi): Likewise.
4501
4502 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4503
4504 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4505 the comparison codes that make sense for the mode used, and only the
4506 codes that can be done with a single branch instruction.
4507
4508 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4509
4510 PR tree-optimization/92351
4511 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4512 peeling the main loop for alignment, make sure to set the misalignment
4513 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4514
4515 2019-11-08 Richard Biener <rguenther@suse.de>
4516
4517 * dbgcnt.def (ivopts_loop): Add.
4518 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4519 ivopts_loop before optimizing a loop.
4520
4521 2019-11-08 Richard Biener <rguenther@suse.de>
4522
4523 PR ipa/92409
4524 * tree-inline.c (declare_return_variable): Properly handle
4525 type mismatches for the return slot.
4526
4527 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4528
4529 PR target/92095
4530 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4531 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4532 change.
4533 (got_helper_needed): New static variable.
4534 (output_load_pcrel_sym): New function.
4535 (get_pc_thunk_name): Remove after inlining...
4536 (load_got_register): ...here. Rework the initialization of the GOT
4537 register and of the GOT helper.
4538 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4539 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4540 helper must be emitted. Use output_asm_insn instead of fprintf.
4541 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4542 if optimization is enabled.
4543 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4544 by calling output_load_pcrel_sym.
4545
4546 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4547
4548 * tree-sra.c (create_access): Delay disqualifying the base
4549 for poly_int values until we know we have a base.
4550
4551 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4552
4553 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4554 for loops with SIMDUID set. Enable epilogue vectorization for loops
4555 with SIMDLEN set after finding a main loop with a VF that matches it.
4556
4557 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4558
4559 PR target/92038
4560 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4561 value only, return non-NULL if there is a single non-clobber
4562 constituent store even if there are constituent clobbers and return
4563 one of clobber constituent stores if all constituent stores are
4564 clobbers.
4565 (split_group): Handle clobbers.
4566 (imm_store_chain_info::output_merged_store): When computing
4567 bzero_first, look after all clobbers at the start. Don't count
4568 clobber stmts in orig_num_stmts, except if the first orig store is
4569 a clobber covering the whole area and split_stores cover the whole
4570 area, consider equal number of stmts ok. Punt if split_stores
4571 contains only ->orig stores and their number plus number of original
4572 clobbers is equal to original number of stmts. For ->orig, look past
4573 clobbers in the constituent stores.
4574 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4575 stmts.
4576 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4577 rhs.
4578 (store_valid_for_store_merging_p): Allow clobber stmts.
4579 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4580
4581 PR c++/92384
4582 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4583 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4584 slot.
4585 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4586 force creation of a unique data.stack_parm slot.
4587
4588 2019-11-08 Richard Biener <rguenther@suse.de>
4589
4590 * genmatch.c (expr::gen_transform): Use the resimplify
4591 member function instead of hard-coding the gimple_resimplifyN variant.
4592 (dt_simplify::gen_1): Likewise.
4593
4594 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4595
4596 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4597 POLY_INT_CST.
4598
4599 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4600
4601 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4602 instead of INTEGER_CST.
4603
4604 2019-11-08 Richard Biener <rguenther@suse.de>
4605
4606 PR tree-optimization/92324
4607 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4608 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4609 sign-conversions as necessary.
4610 (vectorizable_reduction): Reject conversions in the chain
4611 that are not sign-conversions, base analysis on a non-converting
4612 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4613 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4614 for debug stmts.
4615 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4616 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4617
4618 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4619
4620 PR target/92055
4621 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4622 Fix a missing '-' when displaying these options in the
4623 help screen.
4624
4625 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4626
4627 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4628
4629 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4630
4631 * config/aarch64/aarch64-builtins.c
4632 (aarch64_builtin_vectorized_function): Remove bswap handling.
4633
4634 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4635
4636 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4637 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4638 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4639 Treat the vector types as indivisible.
4640
4641 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4642
4643 * optabs.def (gather_load_optab, mask_gather_load_optab)
4644 (scatter_store_optab, mask_scatter_store_optab): Turn into
4645 conversion optabs, with the offset mode given explicitly.
4646 * doc/md.texi: Update accordingly.
4647 * config/aarch64/aarch64-sve-builtins-base.cc
4648 (svld1_gather_impl::expand): Likewise.
4649 (svst1_scatter_impl::expand): Likewise.
4650 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4651 (expand_scatter_store_optab_fn): Likewise.
4652 (direct_gather_load_optab_supported_p): Likewise.
4653 (direct_scatter_store_optab_supported_p): Likewise.
4654 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4655 to be argument 4.
4656 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4657 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4658 argument with the offset vector type. Require the two vector
4659 types to have the same number of elements but allow their element
4660 sizes to be different. Treat the optabs as conversion optabs.
4661 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4662 prototype accordingly.
4663 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4664 (supports_vec_convert_optab_p): ...this new function.
4665 (supports_vec_gather_load_p): Update accordingly.
4666 (supports_vec_scatter_store_p): Likewise.
4667 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4668 Replace the offset sign and bits parameters with a scalar type tree.
4669 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4670 Pass back the offset vector type instead of the scalar element type.
4671 Allow the offset to be wider than the memory elements. Search for
4672 an offset type that the target supports, stopping once we've
4673 reached the maximum of the element size and pointer size.
4674 Update call to internal_gather_scatter_fn_supported_p.
4675 (vect_check_gather_scatter): Update calls accordingly.
4676 When testing a new scale before knowing the final offset type,
4677 check whether the scale is supported for any signed or unsigned
4678 offset type. Check whether the target supports the source and
4679 target types of a conversion before deciding whether to look
4680 through the conversion. Record the chosen offset_vectype.
4681 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4682 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4683 directly from the gs_info's offset_vectype instead. Pass a zero
4684 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4685 * tree-vect-stmts.c (check_load_store_masking): Update call to
4686 internal_gather_scatter_fn_supported_p, passing the offset vector
4687 type recorded in the gs_info.
4688 (vect_truncate_gather_scatter_offset): Update call to
4689 vect_check_gather_scatter, leaving it to search for a valid
4690 offset vector type.
4691 (vect_use_strided_gather_scatters_p): Convert the offset to the
4692 element type of the gs_info's offset_vectype.
4693 (vect_get_gather_scatter_ops): Get the offset vector type directly
4694 from the gs_info.
4695 (vect_get_strided_load_store_ops): Likewise.
4696 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4697 and IFN_MASK_GATHER_LOAD.
4698 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4699 (gather_load<mode><v_int_equiv>): ...this.
4700 (mask_gather_load<mode>): Rename to...
4701 (mask_gather_load<mode><v_int_equiv>): ...this.
4702 (scatter_store<mode>): Rename to...
4703 (scatter_store<mode><v_int_equiv>): ...this.
4704 (mask_scatter_store<mode>): Rename to...
4705 (mask_scatter_store<mode><v_int_equiv>): ...this.
4706
4707 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4708
4709 PR target/92132
4710 * config/rs6000/predicates.md
4711 (signed_or_equality_comparison_operator): New predicate.
4712 (unsigned_or_equality_comparison_operator): Likewise.
4713 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4714 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4715 * config/rs6000/vector.md
4716 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4717 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4718 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4719 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4720 vector modes and same-size integer vector modes.
4721 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4722 (vector_lt<mode> for VEC_F): New expand.
4723 (vector_le<mode> for VEC_F): Likewise.
4724 (vector_ne<mode> for VEC_F): Likewise.
4725 (vector_unge<mode> for VEC_F): Likewise.
4726 (vector_ungt<mode> for VEC_F): Likewise.
4727 (vector_unle<mode> for VEC_F): Likewise.
4728 (vector_unlt<mode> for VEC_F): Likewise.
4729 (vector_uneq<mode>): Expose name.
4730 (vector_ltgt<mode>): Likewise.
4731 (vector_unordered<mode>): Likewise.
4732 (vector_ordered<mode>): Likewise.
4733
4734 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4735
4736 PR target/92295
4737 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4738 Enhance ix86_expand_vector_init_concat.
4739
4740 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4741
4742 * doc/invoke.texi (-Wold-style-definition): Document () not being
4743 considered an old-style definition for C2x.
4744
4745 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4746
4747 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4748 Enhance comment.
4749 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4750 insn patterns using ldcw instruction.
4751 (memory_barrier): Remove insn pattern using sync instruction.
4752 * config/pa/pa.opt (coherent-ldcw): New option.
4753 (ordered): New option.
4754
4755 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4756
4757 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4758 valid conditions.
4759
4760 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4761
4762 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4763 typo - mistmatch -> mismatch.
4764 * ipa-profile.c (ipa_profile): Likewise.
4765 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4766 - mistmatch -> mismatch.
4767
4768 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4769
4770 * simplify-rtx.c (comparison_to_mask): New function.
4771 (mask_to_comparison): New function.
4772 (simplify_logical_relational_operation): New function.
4773 (simplify_binary_operation_1): Call
4774 simplify_logical_relational_operation.
4775
4776 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4777
4778 PR other/92090
4779 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4780 modes for integer constants.
4781
4782 2019-11-07 Jan Hubicka <jh@suse.cz>
4783
4784 PR ipa/92406
4785 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4786 summary.
4787
4788 2019-11-07 Jan Hubicka <jh@suse.cz>
4789
4790 * optc-save-gen.awk: Generate cl_target_option_free
4791 and cl_optimization_option_free.
4792 * opth-en.awk: Declare cl_target_option_free
4793 and cl_optimization_option_free.
4794 * tree.c (free_node): Use it.
4795
4796 2019-11-06 Jan Hubicka <jh@suse.cz>
4797
4798 * lto-streamer-in.c: Include alloc-pool.h.
4799 (freeing_string_slot_hasher): Remove.
4800 (string_slot_allocator): New object allocator.
4801 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4802 (file_name_obstack): New obstack.
4803 (canon_file_name): Allocate in obstack and allocator.
4804 (lto_reader_init): Initialize obstack and allocator.
4805 (lto_free_file_name_hash): New function.
4806 * lto-streamer.h (lto_free_file_name_hash): New.
4807
4808 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4809
4810 PR tree-optimization/89134
4811 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4812 * params.def: Add min-loop-cond-split-prob.
4813 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4814 outside checks on loop into the function.
4815 (split_info): New class.
4816 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4817 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4818 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4819 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4820 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4821 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4822 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4823 (split_loop_on_cond): Likewise.
4824 (tree_ssa_split_loops): Add loop split on conditional statement.
4825
4826 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4827
4828 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4829 pattern.
4830
4831 2019-11-07 Richard Biener <rguenther@suse.de>
4832
4833 PR tree-optimization/92405
4834 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4835 restrict lane-reducing ops to single stmt chains.
4836
4837 2019-11-07 Martin Jambor <mjambor@suse.cz>
4838
4839 PR lto/70929
4840 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4841 * cgraph.h (gimple_check_call_matching_types): Remove
4842 * cgraph.c (gimple_check_call_args): Likewise.
4843 (gimple_check_call_matching_types): Likewise.
4844 (symbol_table::create_edge): Do not call
4845 gimple_check_call_matching_types.
4846 (cgraph_edge::make_direct): Likewise.
4847 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4848 * value-prof.h (check_ic_target): Remove.
4849 * value-prof.c (check_ic_target): Remove.
4850 (gimple_ic_transform): Do nat call check_ic_target.
4851 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4852 (afdo_indirect_call): Likewise.
4853 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4854 gimple_check_call_matching_types.
4855 * ipa-inline.c (early_inliner): Likewise.
4856
4857 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4858
4859 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4860 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4861 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4862 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4863 * config/arm/iterators.md (USSAT16): New int_iterator.
4864 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4865 (sup): Likewise.
4866 * config/arm/predicates.md (ssat16_imm): New predicate.
4867 (usat16_imm): Likewise.
4868 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4869
4870 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4871
4872 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4873 New define_insns.
4874 (arm_<simd32_op>): New define_expands.
4875 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4876 __smuad, __smuadx): Define.
4877 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4878 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4879 (SIMD32_BINOP_Q): Likewise.
4880 (simd32_op): Handle the above.
4881 * config/arm/unspecs.md: Define unspecs for the above.
4882
4883 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4884
4885 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4886 * config/arm/arm.md (APSRGE_REGNUM): Define.
4887 (arm_<simd32_op>): New define_insn.
4888 (arm_sel): Likewise.
4889 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4890 (CALL_USED_REGISTERS): Likewise.
4891 (REG_ALLOC_ORDER): Likewise.
4892 (FIRST_PSEUDO_REGISTER): Update value.
4893 (ARM_GE_BITS_READ): Define.
4894 * config/arm/arm.c (arm_conditional_register_usage): Clear
4895 APSRGE_REGNUM from operand_reg_set.
4896 (arm_ge_bits_access): Define.
4897 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4898 ARM_BUIILTIN_sel.
4899 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4900 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4901 FAIL if ARM_GE_BITS_READ.
4902 (*arm_add<mode>3): New define_insn.
4903 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4904 (*arm_sub<mode>3): New define_insn.
4905 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4906 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4907 __usub16): Define.
4908 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4909 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4910 (simd32_op): Handle the above.
4911 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4912 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4913 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4914 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4915
4916 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4917
4918 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4919 (arm_smlabb): New define_expand.
4920 (*maddhisi4tb): Rename to...
4921 (maddhisi4tb): ... This.
4922 (*maddhisi4tt): Rename to...
4923 (maddhisi4tt): ... This.
4924 (arm_smlatb_setq): New define_insn.
4925 (arm_smlatb): New define_expand.
4926 (arm_smlatt_setq): New define_insn.
4927 (arm_smlatt): New define_expand.
4928 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4929 (arm_<smlaw_op>): New define_expand.
4930 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4931 __smlawb, __smlawt): Define.
4932 * config/arm_acle_builtins.def: Define builtins for the above.
4933 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4934 (slaw_op): New int_attribute.
4935 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4936
4937 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4938
4939 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4940 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4941 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4942 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4943 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4944 (ss_op): New code_attr.
4945
4946 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4947
4948 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4949 * config/arm/arm.md (APSRQ_REGNUM): Define.
4950 (add_setq): New define_subst.
4951 (add_clobber_q_name): New define_subst_attr.
4952 (add_clobber_q_pred): Likewise.
4953 (maddhisi4): Change to define_expand. Split into mult and add if
4954 ARM_Q_BIT_READ.
4955 (arm_maddhisi4): New define_insn.
4956 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4957 (*maddhisi4tt): Likewise.
4958 (arm_ssat): New define_expand.
4959 (arm_usat): Likewise.
4960 (arm_get_apsr): New define_insn.
4961 (arm_set_apsr): Likewise.
4962 (arm_saturation_occurred): New define_expand.
4963 (arm_set_saturation): Likewise.
4964 (*satsi_<SAT:code>): Rename to...
4965 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4966 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4967 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4968 (CALL_USED_REGISTERS): Mark apsrq.
4969 (FIRST_PSEUDO_REGISTER): Update value.
4970 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4971 (machine_function): Add q_bit_access.
4972 (ARM_Q_BIT_READ): Define.
4973 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4974 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4975 operand_reg_set.
4976 (arm_q_bit_access): Define.
4977 * config/arm/arm-builtins.c: Include stringpool.h.
4978 (arm_sat_binop_imm_qualifiers,
4979 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4980 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4981 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4982 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4983 SET_SAT_QUALIFIERS): Likewise.
4984 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4985 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4986 Handle 0 argument expander.
4987 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4988 (arm_check_builtin_call): Define.
4989 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4990 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4991 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4992 (arm_q_bit_access): Likewise.
4993 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4994 __saturation_occurred, __set_saturation_occurred): Define.
4995 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4996 saturation_occurred, set_saturation_occurred.
4997 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4998 (UNSPEC_APSR_READ): Likewise.
4999 (VUNSPEC_APSR_WRITE): Likewise.
5000 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5001 (*arm_ssadd<mode>3): New define_insn.
5002 (sssub<mode>3): Convert to define_expand.
5003 (*arm_sssub<mode>3): New define_insn.
5004 (ssmulsa3): Convert to define_expand.
5005 (*arm_ssmulsa3): New define_insn.
5006 (usmulusa3): Convert to define_expand.
5007 (*arm_usmulusa3): New define_insn.
5008 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5009 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5010 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5011
5012 2019-11-07 Martin Liska <mliska@suse.cz>
5013
5014 PR c++/92354
5015 * cgraph.c (delete_function_version): Clear global
5016 variable version_info_node if equal to deleted
5017 function.
5018
5019 2019-11-07 Martin Liska <mliska@suse.cz>
5020
5021 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5022 of CONSTRUCTOR_NO_CLEARING.
5023 (operand_compare::hash_operand): Likewise.
5024
5025 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5026
5027 Support 64-bit double and 64-bit long double configurations.
5028
5029 PR target/92055
5030 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5031 --with-long-double=.
5032 * config/avr/t-multilib: Remove.
5033 * config/avr/t-avr: Output of genmultilib.awk is now fully
5034 dynamically generated and no more part of the repo.
5035 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5036 Pass them down to...
5037 * config/avr/genmultilib.awk: ...here and handle them.
5038 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5039 (-mlong-double=, avr_long_double). New option and var.
5040 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5041 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5042 Set default as requested by --with-double=
5043 (TARGET_HANDLE_OPTION): Define to this...
5044 (avr_handle_option): ...new hook worker.
5045 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5046 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5047 (avr_double_lib): New proto for spec function.
5048 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5049 (DRIVER_SELF_SPECS): Call %:double-lib.
5050 * config/avr/avr.c (avr_option_override): Assert
5051 sizeof(long double) >= sizeof(double) for the target.
5052 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5053 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5054 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5055 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5056 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5057 New built-in define depending on --with-double=, --with-long-double=.
5058 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5059 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5060 * doc/install.texi (Cross-Compiler-Specific Options)
5061 <--with-double=, --with-long-double=>: Doc.
5062
5063 2019-11-07 Richard Biener <rguenther@suse.de>
5064
5065 * dbgcnt.def (gimple_unroll): New.
5066 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5067 gimple_unroll debug counter before applying transform.
5068 (try_peel_loop): Likewise.
5069
5070 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5071
5072 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5073 frame pointer in multiple registers.
5074 (ira_setup_eliminable_regset): Setup eliminable_regset,
5075 ira_no_alloc_regs and regs_ever_live for frame pointer in
5076 multiple registers.
5077
5078 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5079
5080 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5081 V2DI modes.
5082
5083 2019-11-06 Jan Hubicka <jh@suse.cz>
5084
5085 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5086 allocations.
5087 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5088 Do not silently ignore summary corruptions.
5089
5090 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5091
5092 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5093 the epilogue if there are peeled iterations for it to handle.
5094
5095 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5096
5097 * config/arc/arc.c (arc_split_ior): Add asserts.
5098 (arc_split_mov_const): Likewise.
5099 (arc_check_ior_const): Do not match known short immediate values.
5100 * config/arc/arc.md (movsi): Don't split predicated instructions
5101 (iorsi): Likewise.
5102
5103 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5104
5105 * config/arc/arc.opt (mea): Update help string.
5106 * doc/invoke.texi(ARC): Update mea option info.
5107
5108 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5109
5110 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5111 (zero_extendqisi2_ac): Likewise.
5112 (zero_extendhisi2_i): Likewise.
5113 (extendqihi2_i): Likewise.
5114 (extendqisi2_ac): Likewise.
5115 (extendhisi2_i): Likewise.
5116
5117 2019-11-06 Richard Biener <rguenther@suse.de>
5118
5119 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5120 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5121 Simplify single_defuse_cycle condition.
5122
5123 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5124
5125 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5126 epilogue loop, make sure that the VF is small enough or that
5127 the epilogue loop can be fully-masked.
5128
5129 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5130
5131 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5132 loop when we've finished, rather than returning directly from
5133 the loop. Use a local variable to track whether we're still
5134 searching for the preferred simdlen. Make vect_epilogues
5135 record whether the next iteration should try to treat the
5136 loop as an epilogue.
5137
5138 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5139
5140 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5141 __arc_hard_float__, __ARC_HARD_FLOAT__,
5142 __arc_soft_float__, __ARC_SOFT_FLOAT__
5143
5144 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5145
5146 PR tree-optimization/92317
5147 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5148 update phi's with constant phi arguments.
5149
5150 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5151 Alexandre Oliva <oliva@adacore.com>
5152
5153 * common.opt (-fcallgraph-info[=]): New option.
5154 * doc/invoke.texi (Developer options): Document it.
5155 * opts.c (common_handle_option): Handle it.
5156 * builtins.c (expand_builtin_alloca): Record allocation if
5157 -fcallgraph-info=da.
5158 * calls.c (expand_call): If -fcallgraph-info, record the call.
5159 (emit_library_call_value_1): Likewise.
5160 * flag-types.h (enum callgraph_info_type): New type.
5161 * explow.c: Include stringpool.h.
5162 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5163 * function.c (allocate_stack_usage_info): New.
5164 (allocate_struct_function): Call it for -fcallgraph-info.
5165 (prepare_function_start): Call it otherwise.
5166 (record_final_call, record_dynamic_alloc): New.
5167 * function.h (struct callinfo_callee): New.
5168 (CALLEE_FROM_CGRAPH_P): New.
5169 (struct callinfo_dalloc): New.
5170 (struct stack_usage): Add callees and dallocs.
5171 (record_final_call, record_dynamic_alloc): Declare.
5172 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5173 object if -fcallgraph-info=da.
5174 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5175 * print-tree.h (print_decl_identifier): Declare.
5176 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5177 * print-tree.c: Include print-tree.h.
5178 (print_decl_identifier): New function.
5179 * toplev.c: Include print-tree.h.
5180 (callgraph_info_file): New global variable.
5181 (callgraph_info_external_printed): Likewise.
5182 (output_stack_usage): Rename to...
5183 (output_stack_usage_1): ... this. Make it static, add cf
5184 parameter. If -fcallgraph-info=su, print stack usage to cf.
5185 If -fstack-usage, use print_decl_identifier for
5186 pretty-printing.
5187 (INDIRECT_CALL_NAME): New.
5188 (dump_final_node_vcg_start): New.
5189 (dump_final_callee_vcg, dump_final_node_vcg): New.
5190 (output_stack_usage): New.
5191 (lang_dependent_init): Open and start file if
5192 -fcallgraph-info. Allocated callgraph_info_external_printed.
5193 (finalize): If callgraph_info_file is not null, finish it,
5194 close it, and release callgraph_info_external_printed.
5195
5196 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5197 Frederik Harwath <frederik@codesourcery.com>
5198 Thomas Schwinge <thomas@codesourcery.com>
5199
5200 * omp-low.c (struct omp_context): New fields
5201 local_reduction_clauses, outer_reduction_clauses.
5202 (new_omp_context): Initialize these.
5203 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5204 (scan_omp_for): Check reduction clauses for incorrect nesting.
5205
5206 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5207
5208 PR inline-asm/92352
5209 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5210 operands with non-memory constraints.
5211
5212 2019-11-05 Martin Sebor <msebor@redhat.com>
5213
5214 PR tree-optimization/92373
5215 * tree.c (component_ref_size): Only consider initializers of objects
5216 of matching struct types.
5217 Return null for instances of interior zero-length arrays.
5218
5219 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5220
5221 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5222
5223 2019-11-05 Jason Merrill <jason@redhat.com>
5224
5225 PR tree-optimization/91825
5226 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5227
5228 2019-11-05 Jim Wilson <jimw@sifive.com>
5229
5230 PR middle-end/92263
5231 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5232 optimize_insn_for_speed_p is true.
5233
5234 2019-11-05 Martin Sebor <msebor@redhat.com>
5235
5236 PR middle-end/92333
5237 PR middle-end/82608
5238 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5239 size.
5240 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5241 name and location for a temporary variable.
5242
5243 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5244
5245 * tree-vrp.c (value_range::value_range): Fix whitespace.
5246 (defined_ranges_p): Same.
5247 (range_fold_binary_symbolics_p): Same.
5248 (value_range::intersect_helper): Same.
5249 (value_range::union_helper): Same.
5250 * tree-vrp.h (range_fold_binary_expr): Same.
5251
5252 2019-11-04 Martin Sebor <msebor@redhat.com>
5253
5254 PR middle-end/92341
5255 PR middle-end/82612
5256 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5257 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5258 of message printed in a warning for empty arrays.
5259 (vrp_prop::check_mem_ref): Also handle function parameters and
5260 empty arrays.
5261
5262 2019-11-05 Richard Biener <rguenther@suse.de>
5263
5264 PR tree-optimization/92371
5265 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5266 on the original stmt of live stmts in the chain.
5267 (vectorizable_live_operation): Look at the original stmt when
5268 checking STMT_VINFO_REDUC_DEF.
5269
5270 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5271
5272 * gimple-fold.c, gimple-loop-versioning.cc,
5273 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5274 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5275 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5276 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5277 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5278 value_range_equiv, and value_range_base to value_range.
5279
5280 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5281
5282 * expr.c (build_personality_function): Fix generated type to
5283 match actual personality functions.
5284
5285 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5286
5287 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5288 enough bytes for the NULL character.
5289
5290 2019-11-05 Richard Biener <rguenther@suse.de>
5291
5292 PR tree-optimization/92280
5293 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5294 had a single use do not create a new CTOR.
5295 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5296 BIT_FIELD_REF of a CTOR via GENERIC.
5297
5298 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5299
5300 * config/s390/s390.c (s390_vector_alignment): Check if the value
5301 fits into uhwi before using it.
5302
5303 2019-11-05 Martin Liska <mliska@suse.cz>
5304
5305 * symbol-summary.h: Use ggc_delete.
5306
5307 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5308
5309 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5310 Change vec_perm field to 10.
5311
5312 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5313
5314 * doc/install.texi: Further fix syntax for html generation.
5315
5316 2019-11-05 Martin Liska <mliska@suse.cz>
5317
5318 * symbol-summary.h: Rename allocator to m_allocator and
5319 add comment.
5320
5321 2019-11-05 Richard Biener <rguenther@suse.de>
5322
5323 PR tree-optimization/92324
5324 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5325 all signed or unsigned operations.
5326
5327 2019-11-05 Jan Hubicka <jh@suse.cz>
5328
5329 * hsa-brig.c: Include alloc-pool.h
5330 * hsa-dump.c: Likewise.
5331 * hsa-gen.c: Likewise.
5332 * hse-regalloc.c: Likewise.
5333 * ipa-hsa.c: Likewise.
5334 * ipa-predicate.c: Likewise.
5335 * ipa-reference.c: Likewise.
5336 * ipa-sra.c: Likewise.
5337 * omp-expand.c: Likewise.
5338 * omp-general.c: Likewise.
5339 * omp-low.c: Likewise.
5340 * sumbol-summary.h (function_summary_base): Add allocator.
5341 (function_summary<T *>::function_summary): Update construction.
5342 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5343 (call_summary_base): Add allcator.
5344 (call_summary<T *>::call_summary): Update construction.
5345 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5346
5347 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5348
5349 PR tree-optimization/91945
5350 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5351 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5352 Formatting fix.
5353
5354 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5355
5356 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5357 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5358 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5359 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5360 (vrp_set_zero_nonzero_bits): Move to...
5361 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5362 (vr_values::simplify_bit_ops_using_ranges): Rename
5363 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5364
5365 2019-11-05 Martin Liska <mliska@suse.cz>
5366
5367 PR c++/92339
5368 * fold-const.c (operand_compare::hash_operand): Remove
5369 FIELD_DECL handling.
5370
5371 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5372
5373 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5374 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5375 static.
5376
5377 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5378
5379 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5380 properly handle symbolics.
5381 (range_compatible_p): Remove.
5382
5383 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5384
5385 * common.opt (-fabi-version): Document =14.
5386 * doc/invoke.texi (C++ Dialect Options): Likewise.
5387
5388 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5389
5390 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5391
5392 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5393
5394 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5395 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5396 gcn_omp_device_kind_arch_isa.
5397 * config/gcn/t-omp-device: New file.
5398 * configure.ac: Support gcn for omp_device_property.
5399 * configure: Regenerate.
5400
5401 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5402
5403 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5404 (vrp_val_max): Same.
5405 (vrp_val_is_min): Same.
5406 (vrp_val_is_max): Same.
5407 (value_range_base::nonzero_p): Remove last argument to
5408 vrp_val_is_max.
5409 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5410 (vrp_val_max): Same.
5411 (vrp_val_is_min): Same.
5412 (vrp_val_is_max): Same.
5413 (value_range_base::set_varying): Remove last argument to vrp_val*.
5414 (value_range_base::dump): Same.
5415 (value_range_base::set): Same.
5416 (value_range_base::normalize_symbolics): Same.
5417 (value_range_base::num_pairs): Same.
5418 (value_range_base::lower_bound): Same.
5419 (value_range_base::upper_bound): Same.
5420 (ranges_from_anti_range): Remove handle_pointers argument.
5421 (value_range_base::singleton_p): Remove last argument to
5422 ranges_from_anti_range.
5423
5424 2019-11-04 Jan Hubicka <jh@suse.cz>
5425
5426 * ipa-reference.c (init_function_info): Initialize
5427 info->global.statics_read.
5428
5429 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5430
5431 * tree-vrp.c (value_range_base::invert): Use constructors to build
5432 range.
5433
5434 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5435
5436 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5437 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5438
5439 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5440
5441 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5442 VR_UNDEFINED.
5443
5444 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5445
5446 * tree-vrp.c (dump_assert_info): New.
5447 (dump_asserts_info): New.
5448
5449 2019-11-04 Jan Hubicka <jh@suse.cz>
5450
5451 * ipa-inline-transform.c: Include ipa-utils.h
5452 (inline_call): Set thunk_expansion flag.
5453 * ipa-utils.h (thunk_expansion): Declare.
5454 * ipa-devirt.c (thunk_expansion): New global var.
5455 (devirt_node_removal_hook): Do not invalidate cache while
5456 doing thunk expansion.
5457
5458 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5459
5460 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5461
5462 2019-11-04 Martin Sebor <msebor@redhat.com>
5463
5464 PR tree-optimization/92349
5465 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5466 memebers have constant sizes.
5467
5468 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5469
5470 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5471 parameter.
5472 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5473 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5474 vect_analyze_loop.
5475
5476 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5477
5478 * expr.c (store_constructor): Modify to handle single element vectors.
5479 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5480 constructors.
5481 (vect_slp_check_for_constructors): New function.
5482 (vect_slp_analyze_bb_1): Call new function to check for vector
5483 constructors.
5484 (vectorize_slp_instance_root_stmt): New function.
5485 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5486 constructors.
5487 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5488
5489 2019-11-04 Richard Biener <rguenther@suse.de>
5490
5491 PR tree-optimization/92345
5492 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5493 we produced a reduction chain.
5494 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5495 LOOP_VINFO_REDUCTIONS.
5496
5497 2019-11-04 Jan Hubicka <jh@suse.cz>
5498
5499 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5500 duplicate summaries.
5501 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5502 first.
5503 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5504 access call summaries.
5505 (dump_ipa_call_summary): Be ready for missing edge summaries.
5506 (analyze_function_body): Use get instead of get_create to access
5507 edge summary.
5508 (estimate_calls_size_and_time): Do not access summaries of
5509 inlined edges; sanity check they are missing.
5510 (ipa_call_context::estimate_size_and_time): Use get instead
5511 of get_create to access node summary.
5512 (inline_update_callee_summaries): Do not update depth of
5513 inlined edge.
5514 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5515 growth caches.
5516 (ipa_merge_fn_summary_after_inlining): Use get instead
5517 of get_create.
5518 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5519 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5520 fast summary.
5521 (initialize_growth_caches): Update.
5522 (do_estimate_edge_time): Remove redundant copy of context.
5523 (ipa_remove_from_growth_caches): New function.
5524 * ipa-inline.c (flatten_function): Update overall summary
5525 only when optimizing.
5526 (inline_to_all_callers): Update overall summary of function
5527 inlined to.
5528 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5529 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5530 to false.
5531
5532 2019-11-04 Richard Biener <rguenther@suse.de>
5533
5534 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5535 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5536
5537 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5538
5539 * ggc-common.c: Include system.h before malloc.h.
5540
5541 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5542
5543 * configure.ac: Pass --enable-obsolete=* and
5544 --enable-option-checking=* down to build configure, and fail
5545 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5546 * configure: Rebuild.
5547 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5548 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5549
5550 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5551
5552 * config.in: Regenerate.
5553 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5554 -mtiny-printf is used without GCC being configured with
5555 --enable-newlib-nano-formatted-io.
5556 * config/msp430/msp430.h (LINK_SPEC): Pass
5557 "--wrap puts --wrap printf" when -mtiny-printf is used.
5558 * config/msp430/msp430.opt: Document -mtiny-printf.
5559 * configure: Regenerate.
5560 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5561 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5562 --enable-newlib-nano-formatted-io is passed.
5563 * doc/invoke.texi: Document -mtiny-printf.
5564
5565 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5566
5567 * configure: Regenerate.
5568
5569 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5570
5571 * config/msp430/driver-msp430.c
5572 (msp430_get_linker_devices_include_path): New spec function.
5573 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5574 (extract_devices_dir_from_exec_prefix): New function.
5575 (extract_devices_dir_from_collect_gcc): New function.
5576 (msp430_check_env_var_for_devices): New function.
5577 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5578 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5579 devices.csv was not found using other methods.
5580 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5581 New prototype.
5582 (msp430_dirname): Likewise.
5583 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5584 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5585 msp430_get_linker_devices_include_path.
5586 (TARGET_EXTRA_PRE_INCLUDES): Define.
5587 * doc/invoke.texi: Document new ways of searching for support files.
5588
5589 2019-11-04 Richard Biener <rguenther@suse.de>
5590
5591 PR tree-optimization/92301
5592 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5593 as required by epilogue generation
5594
5595 2019-11-04 Martin Liska <mliska@suse.cz>
5596
5597 PR ipa/92304
5598 * fold-const.c (operand_compare::hash_operand): Fix field
5599 hashing of CONSTRUCTOR.
5600
5601 2019-11-04 Martin Liska <mliska@suse.cz>
5602
5603 * ggc.h (ggc_delete): New function.
5604 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5605 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5606 (ipa_free_all_node_params): Likewise.
5607 * ipa-sra.c (ipa_sra_analysis): Likewise.
5608
5609 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5610
5611 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5612 set_switch_stmt_execution_predicate, compute_bb_predicates,
5613 will_be_nonconstant_expr_predicate,
5614 phi_result_unknown_predicate,
5615 analyze_function_body): Pass arround params summary.
5616 (ipa_call_context::duplicate_from): New comment;
5617 only duplicate useful values.
5618 (ipa_call_context::equal_to): Only compare useful values.
5619 (remap_edge_summaries): Pass params_summary.
5620 (remap_hint_predicate): Likewise.
5621 (ipa_merge_fn_summary_after_inlining): Likewise.
5622 (inline_read_section): Initialize params summary used flags.
5623 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5624 around param_summary.
5625 (add_condition): Initialized used params summary flags.
5626 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5627 (inline_param_summary::useless_p): New predicate.
5628 (remap_after_inlining, add_condition): Update prototype
5629 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5630 move_cost.
5631 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5632 summaries.
5633 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5634 (ipa_analyze_virtual_call_uses): Likewise.
5635 (update_indirect_edges_after_inlining): Update param summaries.
5636 (ipa_print_node_params): Print used flags.
5637 (ipa_read_indirect_edge_info): Update param summareis.
5638 * ipa-prop.h (ipa_param_descriptor): Add
5639 used_by_ipa_predicates, used_by_indirect_call
5640 and used_by_polymorphic_call.
5641 (ipa_set_param_used_by_ipa_predicates,
5642 ipa_set_param_used_by_indirect_call,
5643 ipa_set_param_used_by_polymorphic_call,
5644 ipa_is_param_used_by_ipa_predicates,
5645 ipa_is_param_used_by_indirect_call,
5646 ipa_is_param_used_by_polymorphic_call): New inline functions.
5647
5648 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5649
5650 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5651 member function.
5652 (ipa_call_context::release): Add ALL parameter.
5653 (ipa_call_context::equal_to): New member function.
5654 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5655 duplicate_form, release, equal_to and exists_p member functoins.
5656 * ipa-inline-analysis.c (node_context_cache_entry): New
5657 class.
5658 (node_context_summary): Likewise.
5659 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5660 node_context_clear): New static vars.
5661 (initialize_growth_caches): New function.
5662 (free_growth_caches): Also delete node_context_cache; output stats.
5663 (do_estimate_edge_time): Cache contexts.
5664 (reset_node_cache): New function.
5665 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5666 (inline_small_functions): Initialize growth caches.
5667 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5668 Declare.
5669 * ipa-predicate.h (inline_param_summary::equal_to): New.
5670 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5671 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5672 (ipa_agg_jump_function): Implement equal_to member function.
5673
5674 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5675
5676 * ipa-fnsummary.c (inline_read_section): Set vector size
5677 ahead of time.
5678
5679 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5680
5681 * ipa-fnsummary.c (ipa_call_context): New constructor.
5682 (estimate_node_size_and_time): Turn to ...
5683 (ipa_call_context::estimate_size_and_time): ... this one.
5684 (ipa_call_context::release): New.
5685 * ipa-fnsummary.h (ipa_call_context): New class.
5686 (estimate_node_size_and_time): Remove.
5687 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5688 do_estimate_edge_hints): Update.
5689
5690 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5691
5692 * config.in: Regenerate.
5693 * configure: Regenerate.
5694 * configure.ac: Check for mallinfo.
5695 * ggc-common.c: Include malloc.h if available;
5696 include options.h
5697 (report_heap_memory_use): New functoin.
5698 * ggc-page.c (ggc_grow): Do not print "start".
5699 * ggc.h (report_heap_memory_use): Declare.
5700 * pases.c (execute_one_pass): Report memory after IPA passes.
5701 (ipa_read_summaries_1): Likewise.
5702 (ipa_read_optimization_summaries_1): Likewise.
5703
5704 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5705
5706 * gimplify.h (omp_construct_selector_matches): Change return
5707 type to int, add a new SCORES argument.
5708 * gimplify.c (omp_construct_selector_matches): Likewise. If
5709 SCORES is non-NULL, compute scores of each construct.
5710 * omp-general.h (omp_get_context_selector): Declare.
5711 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5712 Adjust omp_construct_selector_matches callers.
5713 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5714 (omp_context_compute_score): New function.
5715 (omp_resolve_declare_variant): Compute scores and decide based on
5716 that.
5717
5718 PR bootstrap/92314
5719 * configure.ac: Don't look for omp-device-properties files from
5720 installed offloading compilers. Instead add tmake_file snippets
5721 for configured offloading targets and use files they generate.
5722 * Makefile.in (install): Don't depend on
5723 install-omp-device-properties.
5724 (install-omp-device-properties): Remove goal.
5725 * config/i386/t-omp-device: New file.
5726 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5727 * config/nvptx/t-omp-device: New file.
5728 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5729 * configure: Regenerated.
5730
5731 * omp-general.h (omp_context_selector_set_compare): Declare.
5732 * omp-general.c (omp_construct_simd_compare,
5733 omp_context_selector_props_compare, omp_context_selector_set_compare,
5734 omp_context_selector_compare): New functions.
5735 (omp_resolve_declare_variant): Prune variants that are strict subset
5736 of another variant.
5737
5738 2019-11-01 Martin Sebor <msebor@redhat.com>
5739
5740 PR middle-end/91679
5741 PR middle-end/91647
5742 PR middle-end/91463
5743 PR middle-end/92312
5744 * doc/invoke.texi (-Wzero-length-bounds): Document.
5745 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5746 instead of a hand-rolled loop to avoid PR 92323.
5747 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5748 with initializers.
5749 (vrp_prop::check_mem_ref): Handle declared struct objects.
5750 * tree.c (last_field): New function.
5751 (array_at_struct_end_p): Handle MEM_REF.
5752 (get_initializer_for): New helper.
5753 (component_ref_size): Add argument. Rename locals. Call
5754 get_initializer_for instead of fold_ctor_reference. Correct handling
5755 of flexible array members.
5756 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5757
5758 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5759
5760 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5761 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5762 UNSPEC_VSX_CVSPUXDS): Remove.
5763 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5764 (vsx_xvcvspdp_be): ... this. New. And...
5765 (vsx_xvcvspdp_le): ... this. New.
5766 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5767 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5768 (vsx_xvcv<su>xwdp_le): ... this. New.
5769 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5770 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5771 (vsx_xvcvsp<su>xds_le): ... this. New.
5772
5773 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5774
5775 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5776 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5777 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5778 UNSPEC_VSX_XVCVSPSXWS): Remove.
5779 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5780 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5781
5782 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5783
5784 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5785 (UNSPEC_VSX_XVCDPSP): Remove.
5786 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5787 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5788
5789 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5790
5791 * hooks.c (hook_tree_tree_bool_null): New.
5792 * hooks.h (hook_tree_tree_bool_null): Declare.
5793 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5794 (LANG_HOOKS_DECLS): Add it.
5795 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5796 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5797 (lower_omp_target): Handle Fortran array with descriptor in
5798 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5799
5800 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5801
5802 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5803 Assert that the type we store in abi_vector_types is its own
5804 main variant.
5805 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5806
5807 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5808
5809 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5810 from a CONST_INT address when TARGET_THUMB2.
5811
5812 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5813
5814 * config/arm/arm.md (add_not_cin): New insn.
5815 (add_not_shift_cin): Likewise.
5816
5817 2019-10-31 Martin Liska <mliska@suse.cz>
5818
5819 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5820 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5821 and compare_memory_operand.
5822
5823 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5824
5825 * configure.ac: Compute and substitute omp_device_properties and
5826 omp_device_property_deps.
5827 * Makefile.in (generated_files): Add omp-device-properties.h.
5828 (omp-general.o): Depend on omp-device-properties.h.
5829 (omp_device_properties): New make variable.
5830 (omp-device-properties.h, s-omp-device-properties-h,
5831 install-omp-device-properties): New goals.
5832 (install): Depend on install-omp-device-properties for accelerators.
5833 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5834 * target.h (enum omp_device_kind_arch_isa): New enum.
5835 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5836 documentation.
5837 * omp-general.c: Include omp-device-properties.h.
5838 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5839 colon instead of comma.
5840 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5841 functions.
5842 (omp_context_selector_matches): Implement device set arch/isa
5843 selectors, improve device set kind selector handling.
5844 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5845 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5846 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5847 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5848 ix86_omp_device_kind_arch_isa.
5849 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5850 definition from ix86_target_string to file scope.
5851 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5852 to file scope.
5853 (ix86_omp_device_kind_arch_isa): New function.
5854 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5855 isa_opts definitions to file scope.
5856 * config/i386/t-intelmic (omp-device-properties): New goal.
5857 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5858 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5859 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5860 nvptx_omp_device_kind_arch_isa.
5861 * configure: Regenerate.
5862 * doc/tm.texi: Regenerate.
5863
5864 PR middle-end/92231
5865 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5866 DECL_BUILT_IN in comment. Remove redundant ()s around return
5867 argument.
5868 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5869 before calling fndecl_built_in_p.
5870 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5871 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5872 fndecl_built_in_p on it.
5873
5874 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5875
5876 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5877
5878 2019-10-31 Martin Liska <mliska@suse.cz>
5879
5880 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5881 of cgraph_local_info and use local_info_node instead.
5882 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5883 (bfin_function_ok_for_sibcall): Likewise.
5884 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5885 (must_reload_pic_reg_p): Likewise.
5886
5887 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5888
5889 PR c++/90947
5890 * tree.h (type_initializer_zero_p): Remove.
5891 * tree.c (type_initializer_zero_p): Remove.
5892
5893 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5894
5895 * doc/invoke.texi (-Wshadow, -Wshadow=global
5896 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5897
5898 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5899
5900 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5901 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5902 and 'target exit data'.
5903
5904 2019-10-30 Martin Jambor <mjambor@suse.cz>
5905
5906 ipa/92278
5907 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5908 availability comparison.
5909
5910 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5911
5912 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5913 calls to __mspabi_mpy* functions.
5914 * config/msp430/msp430.md (mulhisi3): New define_expand.
5915 (umulhisi3): New define_expand.
5916 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5917 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5918
5919 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5920
5921 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5922 (msp430_check_plus_not_high_mem): New.
5923 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5924 might be in low memory.
5925 Indicate that a 16-bit absolute address is in lower memory.
5926
5927 2019-10-30 Martin Jambor <mjambor@suse.cz>
5928
5929 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5930 ultimate_alias_target.
5931
5932 2019-10-30 Richard Biener <rguenther@suse.de>
5933
5934 PR tree-optimization/92275
5935 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5936 Copy all loop-closed PHIs.
5937
5938 2019-10-30 Martin Liska <mliska@suse.cz>
5939
5940 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5941 const_tree as function argument.
5942 (func_checker::compare_decl): Likewise.
5943 (func_checker::operand_equal_p): Likewise.
5944 (func_checker::compare_variable_decl): Likewise.
5945 (func_checker::parse_labels): Likewise.
5946 * ipa-icf-gimple.h: Likewise.
5947
5948 2019-10-30 Martin Liska <mliska@suse.cz>
5949
5950 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5951 Do not compare alias sets. It's handled by operand_equal_p.
5952
5953 2019-10-30 Martin Liska <mliska@suse.cz>
5954
5955 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5956 initialize m_compare_polymorphic.
5957 (func_checker::compare_decl): Do not compare polymorphic types.
5958 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5959 * ipa-icf.c (sem_function::equals_private): Do not call
5960 compare_polymorphic_p.
5961
5962 2019-10-30 Martin Liska <mliska@suse.cz>
5963
5964 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5965 compare_operand.
5966 (func_checker::compare_memory_operand): Remove.
5967 (func_checker::compare_cst_or_decl): Remove.
5968 (func_checker::operand_equal_valueize): Do not handle
5969 FIELD_DECL.
5970 (func_checker::compare_gimple_call): Call compare_operand.
5971 (func_checker::compare_gimple_assign): Likewise.
5972 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5973 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5974 * ipa-icf.h (icf_handled_component_p): Remove.
5975
5976 2019-10-30 Martin Liska <mliska@suse.cz>
5977
5978 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5979 (func_checker::compare_cst_or_decl): Remove handling
5980 of FIELD_DECL.
5981 (func_checker::compare_operand): Transform to ...
5982 (func_checker::operand_equal_p): ... this.
5983 * ipa-icf-gimple.h (class func_checker): Add
5984 operand_equal_p and hash_operand.
5985 * ipa-icf.c (sem_function::equals_private): Fix
5986 pushing and popping of cfun.
5987
5988 2019-10-30 Martin Liska <mliska@suse.cz>
5989
5990 * fold-const.c (operand_equal_p): Move to ...
5991 (operand_compare::operand_equal_p): ... here.
5992 (operand_compare::verify_hash_value): New.
5993 (add_expr): Move to ...
5994 (operand_compare::hash_operand): ... here.
5995 * fold-const.h (operand_equal_p): Move to the class.
5996 (class operand_compare): New.
5997 * tree.c (add_expr): Remove.
5998
5999 2019-10-30 Martin Liska <mliska@suse.cz>
6000
6001 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6002 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6003
6004 2019-10-30 Martin Liska <mliska@suse.cz>
6005
6006 PR lto/91393
6007 PR lto/88220
6008 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6009 from a first_clone in order to get proper LTO section
6010 in LTO stream.
6011 (cgraph_node::get_untransformed_body):
6012 Use lto_get_section_data where symtab_node::order
6013 must be provided.
6014 * cgraphclones.c (cgraph_node::find_replacement):
6015 Update also symbol order.
6016 * ipa-fnsummary.c (ipa_fn_summary_read):
6017 Use new function lto_get_summary_section_data.
6018 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6019 * ipa-icf.c (sem_item_optimizer::read_summary):
6020 Likewise.
6021 * ipa-prop.c (ipa_prop_read_jump_functions):
6022 Likewise.
6023 (ipcp_read_transformation_summaries): Likewise.
6024 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6025 * lto-cgraph.c (input_node): Add also order_base.
6026 (input_varpool_node): Likewise.
6027 (input_cgraph_1): Assign the order_base.
6028 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6029 * lto-opts.c (lto_write_options): Pass new argument.
6030 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6031 (lto_get_summary_section_data): New.
6032 (lto_get_raw_section_data): Add order argument.
6033 (lto_create_simple_input_block): Likewise.
6034 * lto-section-out.c (lto_destroy_simple_output_block):
6035 Likewise.
6036 * lto-streamer-in.c (lto_input_toplevel_asms):
6037 Use lto_get_summary_section_data.
6038 (lto_input_mode_table): Likewise.
6039 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6040 (lto_output_toplevel_asms): Pass new argument.
6041 (copy_function_or_variable): Likewise.
6042 (produce_lto_section):Likewise.
6043 (produce_symtab): Likewise.
6044 (lto_write_mode_table): Likewise.
6045 (produce_asm_for_decls): Likewise.
6046 * lto-streamer.c (lto_get_section_name): Concat symbol name
6047 and symbol order.
6048 * lto-streamer.h (lto_get_section_data): Add order argument.
6049 (lto_get_summary_section_data): New.
6050 (lto_get_raw_section_data): Add order argument.
6051 (lto_get_section_name): Likewise.
6052 * varpool.c (varpool_node::get_constructor): Pass order argument.
6053
6054 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6055
6056 PR tree-optimization/92262
6057 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6058 ubase or cbase here.
6059 (remove_unused_ivs): Unshare comp before using it.
6060
6061 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6062
6063 * ipa-prop.c (update_jump_functions_after_inlining):
6064 Watch for missing summaries.
6065
6066 2019-10-30 Richard Biener <rguenther@suse.de>
6067
6068 PR tree-optimization/65930
6069 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6070 chains also allow a leading and trailing conversion.
6071 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6072 intermediate reduction chains.
6073 (vect_analyze_slp_instance): Likewise. Build a SLP
6074 node for a trailing conversion manually.
6075
6076 2019-10-30 Martin Liska <mliska@suse.cz>
6077
6078 * cgraph.c (cgraph_node::local_info): Transform to ...
6079 (cgraph_node::local_info_node): ... this.
6080 (cgraph_node::dump): Remove cgraph_local_info and
6081 put its fields directly into cgraph_node.
6082 (cgraph_node::get_availability): Likewise.
6083 (cgraph_node::make_local): Likewise.
6084 (cgraph_node::verify_node): Likewise.
6085 * cgraph.h (struct GTY): Likewise.
6086 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6087 (duplicate_thunk_for_node): Likewise.
6088 (cgraph_node::create_clone): Likewise.
6089 (cgraph_node::create_virtual_clone): Likewise.
6090 (cgraph_node::create_version_clone): Likewise.
6091 * cgraphunit.c (cgraph_node::reset): Likewise.
6092 (cgraph_node::finalize_function): Likewise.
6093 (cgraph_node::add_new_function): Likewise.
6094 (analyze_functions): Likewise.
6095 * combine.c (setup_incoming_promotions): Likewise.
6096 * config/i386/i386.c (ix86_function_regparm): Likewise.
6097 (ix86_function_sseregparm): Likewise.
6098 (init_cumulative_args): Likewise.
6099 * ipa-cp.c (determine_versionability): Likewise.
6100 (count_callers): Likewise.
6101 (set_single_call_flag): Likewise.
6102 (initialize_node_lattices): Likewise.
6103 (estimate_local_effects): Likewise.
6104 (create_specialized_node): Likewise.
6105 (identify_dead_nodes): Likewise.
6106 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6107 (ipa_fn_summary_generate): Likewise.
6108 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6109 (process_hsa_functions): Likewise.
6110 * ipa-icf.c (set_local): Likewise.
6111 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6112 * ipa-inline.c (speculation_useful_p): Likewise.
6113 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6114 (ipa_profile): Likewise.
6115 * ipa-split.c (split_function): Likewise.
6116 (execute_split_functions): Likewise.
6117 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6118 (ipa_sra_ipa_function_checks): Likewise.
6119 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6120 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6121 * lto-cgraph.c (lto_output_node): Likewise.
6122 (input_overwrite_node): Likewise.
6123 * multiple_target.c (expand_target_clones): Likewise.
6124 * omp-simd-clone.c (simd_clone_create): Likewise.
6125 * trans-mem.c (expand_call_tm): Likewise.
6126 (ipa_tm_mayenterirr_function): Likewise.
6127 (ipa_tm_diagnose_tm_safe): Likewise.
6128 (ipa_tm_diagnose_transaction): Likewise.
6129 (ipa_tm_create_version): Likewise.
6130 (ipa_tm_transform_calls_redirect): Likewise.
6131 (ipa_tm_execute): Likewise.
6132 * tree-inline.c (expand_call_inline): Likewise.
6133
6134 2019-10-29 Martin Liska <mliska@suse.cz>
6135
6136 * symbol-summary.h (function_summary): Pass memory location
6137 to underlaying hash_map (or vec).
6138 (V>::fast_function_summary): Likewise.
6139
6140 2019-10-29 Martin Liska <mliska@suse.cz>
6141
6142 * ggc.h (ggc_alloc_no_dtor): New function.
6143 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6144 destructor and ggc_free.
6145 (ipa_free_size_summary): Call delete instead
6146 of release.
6147 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6148 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6149 (ipa_free_all_edge_args): Call destructor and ggc_free.
6150 (ipa_free_all_node_params): Likewise.
6151 (ipcp_free_transformation_sum): Likewise.
6152 * ipa-prop.h (ipa_check_create_node_params):
6153 Call new ggc_alloc_no_dtor.
6154 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6155 (ipa_sra_analysis): Call destructor and ggc_free.
6156 Replace release with delete operator.
6157 * symbol-summary.h (release): Remove ..
6158 (V>::~fast_function_summary): and move logic here.
6159 Likewise for other classes.
6160
6161 2019-10-29 Richard Biener <rguenther@suse.de>
6162
6163 PR tree-optimization/92260
6164 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6165 lane-reducing ops.
6166
6167 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6168
6169 PR tree-optimization/88915
6170 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6171 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6172 and make the valueize function pointer also take a void pointer.
6173 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6174 around vn_valueize, to call it without a context.
6175 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6176 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6177 (~_loop_vec_info): Release epilogue_vinfos.
6178 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6179 number of iterations of epilogue.
6180 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6181 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6182 versioning threshold needed for main loop.
6183 (vect_analyze_loop): Likewise.
6184 (find_in_mapping): New helper function.
6185 (update_epilogue_loop_vinfo): New function.
6186 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6187 on main loop and call update_epilogue_loop_vinfo to update it.
6188 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6189 stmts on loop preheader edge.
6190 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6191 we decided to vectorize epilogues. Update epilogues NITERS and
6192 construct ADVANCE to update epilogues data references where needed.
6193 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6194 (vect_do_peeling, vect_update_inits_of_drs,
6195 determine_peel_for_niter, vect_analyze_loop): Add or update
6196 declarations.
6197 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6198 created loop_vec_info's for epilogues when available. Otherwise analyse
6199 epilogue separately.
6200
6201 2019-10-29 Richard Biener <rguenther@suse.de>
6202
6203 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6204 example.
6205
6206 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6207
6208 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6209 index for the COND_EXPR from stmt_info rather than reduc_info.
6210
6211 2019-10-29 Richard Biener <rguenther@suse.de>
6212
6213 PR tree-optimization/65930
6214 * tree-vect-loop.c (check_reduction_path): Relax single-use
6215 check allowing out-of-loop uses.
6216 (vect_is_simple_reduction): SLP reduction chains cannot have
6217 intermediate stmts used outside of the loop.
6218 (vect_create_epilog_for_reduction): The adjustment might need
6219 to be converted.
6220 (vectorizable_reduction): Annotate live stmts of the reduction
6221 chain with STMT_VINFO_REDUC_DEF.
6222 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6223
6224 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6225
6226 * calls.c (pass_by_reference): Leave the target to decide whether
6227 POLY_INT_CST-sized arguments should be passed by value or reference,
6228 rather than forcing them to be passed by reference.
6229 (must_pass_in_stack_var_size): Likewise.
6230 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6231 V31_REGNUM to P15_REGNUM.
6232 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6233 Take an extra "silent_p" parameter, defaulting to false.
6234 (aarch64_sve::svbool_type_p): Declare.
6235 (aarch64_sve::nvectors_if_data_type): Likewise.
6236 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6237 (aarch64_frame::reg_offset): Turn into poly_int64s.
6238 (aarch64_frame::save_regs_size): Likewise.
6239 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6240 (aarch64_frame::sve_callee_adjust): Likewise.
6241 (aarch64_frame::spare_reg_reg): Likewise.
6242 (ARM_PCS_SVE): New arm_pcs value.
6243 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6244 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6245 (CUMULATIVE_ARGS::silent_p): Likewise.
6246 (BITS_PER_SVE_PRED): New macro.
6247 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6248 function. Reject aarch64_vector_pcs attributes on SVE functions.
6249 (aarch64_attribute_table): Use the above handler.
6250 (aarch64_sve_abi): New function.
6251 (aarch64_sve_argument_p): Likewise.
6252 (aarch64_returns_value_in_sve_regs_p): Likewise.
6253 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6254 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6255 descriptor for them.
6256 (aarch64_simd_decl_p): Delete.
6257 (aarch64_emit_cfi_for_reg_p): New function.
6258 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6259 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6260 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6261 as partly clobbered for the SVE PCS.
6262 (aarch64_function_ok_for_sibcall): Check whether the two functions
6263 use the same ABI, rather than checking specifically for whether
6264 they're aarch64_vector_pcs functions.
6265 (aarch64_pass_by_reference): Raise an error for attempts to pass
6266 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6267 if there are not enough free registers left, or if the argument is
6268 variadic.
6269 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6270 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6271 tuples in memory.
6272 (aarch64_layout_arg): Take a function_arg_info rather than
6273 individual properties. Handle SVE predicates, vectors and tuples.
6274 Raise an error if they are passed to unprototyped functions.
6275 (aarch64_function_arg): If the silent_p flag is set, suppress the
6276 usual error about using float registers without TARGET_FLOAT.
6277 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6278 it in the cumulative_args structure. Initialize aapcs_nprn and
6279 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6280 error about using float registers without TARGET_FLOAT.
6281 If the silent_p flag is not set, also raise an error about
6282 using SVE functions when SVE is disabled.
6283 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6284 and call it for SVE functions too. Update aapcs_nprn similarly
6285 to the other register counts.
6286 (aarch64_layout_frame): If a big-endian function needs to save
6287 and restore Z8-Z15, search for a spare predicate that it can use.
6288 Store SVE predicates at the bottom of the register save area,
6289 followed by SVE vectors, then followed by the normal slots.
6290 Keep pointing the hard frame pointer at the base of the normal slots,
6291 above the SVE vectors. Update the various frame creation and
6292 tear-down strategies for the new layout, initializing the new
6293 sve_callee_adjust field. Add an additional layout for frames
6294 whose saved registers are all SVE registers.
6295 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6296 (aarch64_return_address_signing_enabled): Likewise.
6297 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6298 aarch64_reg_save_mode.
6299 (aarch64_adjust_sve_callee_save_base): New function.
6300 (aarch64_add_cfa_expression): Move earlier in file. Take the
6301 saved register as an rtx rather than a register number and use
6302 its mode for the MEM slot.
6303 (aarch64_save_callee_saves): Remove the mode argument and instead
6304 use aarch64_reg_save_mode to get the mode of each save slot.
6305 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6306 offsets. Allow GP offsets to be saved at a VL-based offset from
6307 the stack, handling this case using the frame pointer if available
6308 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6309 big-endian SVE functions; use normal moves for other SVE saves.
6310 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6311 returns true. Add explicit CFA notes when not storing via the
6312 stack pointer. Do not try to pair SVE saves.
6313 (aarch64_restore_callee_saves): Cope with poly_int64 register
6314 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6315 use normal moves for other SVE restores. Only add CFA restore notes
6316 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6317 SVE restores.
6318 (aarch64_get_separate_components): Always keep the first SVE save
6319 in the prologue if we need to use it as a stack probe. Don't allow
6320 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6321 Likewise the spare predicate register that they need. Update the
6322 offset calculation to account for the SVE save area. Use the
6323 appropriate range check for SVE LDR and STR instructions.
6324 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6325 (aarch64_process_components): Likewise. Update the offset
6326 calculation to account for the SVE save area. Only mark the
6327 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6328 Do not try to pair SVE saves.
6329 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6330 reg_offsets. When handling the final allocation, expect the
6331 first SVE register save to be part of the initial allocation
6332 and for it to act as a probe at SP. Account for the SVE callee
6333 save area in the dump information.
6334 (aarch64_expand_prologue): Update the frame diagram. Fold the
6335 SVE callee allocation into the initial allocation if stack clash
6336 protection is enabled. Use new variables to track the offset
6337 of the frame chain (and hard frame pointer) from the current
6338 stack pointer, and likewise the offset of the bottom of the
6339 register save area. Update calls to aarch64_save_callee_saves
6340 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6341 saving the FP&SIMD registers. Save the predicate registers.
6342 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6343 into account when setting the stack pointer from the frame pointer,
6344 and when deciding whether we can inherit the initial adjustment
6345 amount from the prologue. Restore the predicate registers after
6346 the vector registers, then apply sve_callee_adjust, then restore
6347 the general registers.
6348 (aarch64_secondary_reload): Don't use secondary SVE reloads
6349 for VNx16BImode.
6350 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6351 (aarch64_short_vector_p): Return false for SVE types.
6352 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6353 at the start of the function. Return false for SVE types.
6354 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6355 functions too.
6356 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6357 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6358 to big-endian targets for bytewise moves.
6359 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6360
6361 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6362 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6363 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6364
6365 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6366 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6367 aarch64-sve-builtins-base.o to extra_objs. Add
6368 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6369 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6370 (aarch64-sve-builtins-shapes.o): Likewise.
6371 (aarch64-sve-builtins-base.o): New rules.
6372 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6373 (aarch64_resolve_overloaded_builtin): Likewise.
6374 (aarch64_check_builtin_call): Likewise.
6375 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6376 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6377 pragma.
6378 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6379 (aarch64_svprfop): New enum.
6380 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6381 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6382 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6383 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6384 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6385 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6386 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6387 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6388 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6389 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6390 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6391 (aarch64_sve::mangle_builtin_type): Likewise.
6392 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6393 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6394 (aarch64_sve::expand_builtin): Likewise.
6395 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6396 (aarch64_sve_int_mode): Likewise.
6397 (aarch64_ptrue_all_mode): New function.
6398 (aarch64_convert_sve_data_to_pred): Make public.
6399 (svprfop_token): New function.
6400 (aarch64_output_sve_prefetch): Likewise.
6401 (aarch64_fold_sve_cnt_pat): Likewise.
6402 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6403 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6404 instead of gen_while_ult.
6405 (aarch64_replace_reg_mode): Make public.
6406 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6407 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6408 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6409 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6410 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6411 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6412 (aarch64_sve_ptrue_svpattern_p): Likewise.
6413 (aarch64_sve_pred_valid_immediate): Check
6414 aarch64_sve_ptrue_svpattern_p.
6415 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6416 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6417 functions.
6418 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6419 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6420 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6421 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6422 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6423 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6424 New unspecs.
6425 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6426 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6427 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6428 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6429 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6430 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6431 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6432 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6433 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6434 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6435 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6436 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6437 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6438 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6439 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6440 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6441 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6442 (Vesize): Handle partial vector modes.
6443 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6444 mode attributes.
6445 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6446 iterators.
6447 (s, paired_extend, inc_dec): New code attributes.
6448 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6449 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6450 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6451 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6452 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6453 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6454 UNSPEC_COND_FMULX.
6455 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6456 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6457 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6458 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6459 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6460 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6461 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6462 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6463 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6464 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6465 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6466 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6467 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6468 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6469 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6470 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6471 UNSPEC_COND_FSCALE.
6472 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6473 (binqops_op, binqops_op_rev, last_op): New int attributes.
6474 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6475 (fn, ab): New int attributes.
6476 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6477 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6478 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6479 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6480 UNSPEC_RBIT.
6481 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6482 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6483 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6484 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6485 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6486 UNSPEC_COND_FMULX.
6487 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6488 (brk_reg_con, brk_reg_opno): New int attributes.
6489 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6490 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6491 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6492 UNSPEC_COND_FMIN.
6493 (max_elem_bits): New int attribute.
6494 (min_elem_bits): Handle UNSPEC_RBIT.
6495 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6496 TRUNCATE as well as SUBREG.
6497 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6498 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6499 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6500 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6501 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6502 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6503 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6504 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6505 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6506 (aarch64_gather_scale_operand_h): New predicates.
6507 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6508 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6509 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6510 (*aarch64_sve_reinterpret<mode>): Allow any source register
6511 instead of requiring an exact match.
6512 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6513 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6514 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6515 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6516 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6517 (aarch64_update_ffrt): New patterns.
6518 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6519 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6520 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6521 (@aarch64_ld<fn>f1<mode>): New patterns.
6522 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6523 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6524 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6525 (@aarch64_ldnt1<mode>): New patterns.
6526 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6527 the scalar part of the address.
6528 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6529 scalar part of the addresse and add an alternative for handling
6530 nonzero offsets.
6531 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6532 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6533 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6534 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6535 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6536 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6537 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6538 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6539 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6540 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6541 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6542 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6543 (@aarch64_sve_prefetch<mode>): New patterns.
6544 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6545 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6546 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6547 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6548 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6549 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6550 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6551 (@aarch64_stnt1<mode>): New patterns.
6552 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6553 the scalar part of the address.
6554 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6555 the scalar part of the addresse and add an alternative for handling
6556 nonzero offsets.
6557 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6558 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6559 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6560 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6561 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6562 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6563 New patterns.
6564 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6565 (extract_last_<mode>): Generalize to...
6566 (@extract_<LAST:last_op>_<mode>): ...this.
6567 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6568 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6569 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6570 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6571 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6572 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6573 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6574 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6575 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6576 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6577 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6578 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6579 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6580 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6581 (*aarch64_adr_uxtw_unspec): Likewise.
6582 (*aarch64_adr_uxtw): Rename to...
6583 (*aarch64_adr_uxtw_and): ...this.
6584 (@aarch64_adr<mode>_shift): New expander.
6585 (*aarch64_adr_shift_sxtw): New pattern.
6586 (aarch64_<su>abd<mode>_3): Rename to...
6587 (@aarch64_pred_<su>abd<mode>): ...this.
6588 (<su>abd<mode>_3): Update accordingly.
6589 (@aarch64_cond_<su>abd<mode>): New expander.
6590 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6591 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6592 (*<su>mul<mode>3_highpart): Rename to...
6593 (@aarch64_pred_<optab><mode>): ...this.
6594 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6595 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6596 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6597 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6598 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6599 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6600 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6601 (*v<ASHIFT:optab><mode>3): Rename to...
6602 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6603 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6604 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6605 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6606 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6607 (@cond_asrd<mode>): New expander.
6608 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6609 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6610 (*sdiv_pow2<mode>3): Delete.
6611 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6612 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6613 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6614 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6615 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6616 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6617 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6618 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6619 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6620 (*add<SVE_F:mode>3): Rename to...
6621 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6622 for SVE_STRICT_GP.
6623 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6624 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6625 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6626 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6627 (*sub<SVE_F:mode>3): Rename to...
6628 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6629 for SVE_STRICT_GP.
6630 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6631 (*fabd<SVE_F:mode>3): Rename to...
6632 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6633 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6634 (*mul<SVE_F:mode>3): Rename to...
6635 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6636 for SVE_STRICT_GP.
6637 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6638 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6639 to...
6640 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6641 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6642 (*<nlogical><PRED_ALL:mode>3): Rename to...
6643 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6644 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6645 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6646 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6647 (aarch64_pred_<logical_nn><mode>_z): ...this.
6648 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6649 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6650 (*fma<SVE_I:mode>4): Rename to...
6651 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6652 (*fnma<SVE_I:mode>4): Rename to...
6653 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6654 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6655 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6656 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6657 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6658 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6659 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6660 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6661 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6662 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6663 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6664 (@aarch64_sve_tmad<mode>): Likewise.
6665 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6666 (*aarch64_sel_dup<mode>): Rename to...
6667 (@aarch64_sel_dup<mode>): ...this.
6668 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6669 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6670 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6671 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6672 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6673 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6674 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6675 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6676 (*fcm<cmp_op><mode>): Rename to...
6677 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6678 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6679 (*fcmuo<mode>): Rename to...
6680 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6681 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6682 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6683 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6684 (fold_extract_last_<mode>): Generalize to...
6685 (@fold_extract_<last_op>_<mode>): ...this.
6686 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6687 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6688 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6689 DImode result explicit.
6690 (reduc_plus_scal_<mode>): Update accordingly.
6691 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6692 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6693 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6694 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6695 (*aarch64_sve_tbl<mode>): Rename to...
6696 (@aarch64_sve_tbl<mode>): ...this.
6697 (@aarch64_sve_compact<mode>): New pattern.
6698 (*aarch64_sve_dup_lane<mode>): Rename to...
6699 (@aarch64_sve_dup_lane<mode>): ...this.
6700 (@aarch64_sve_dupq_lane<mode>): New pattern.
6701 (@aarch64_sve_splice<mode>): Likewise.
6702 (aarch64_sve_<perm_insn><mode>): Rename to...
6703 (@aarch64_sve_<perm_insn><mode>): ...this.
6704 (*aarch64_sve_ext<mode>): Rename to...
6705 (@aarch64_sve_ext<mode>): ...this.
6706 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6707 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6708 to...
6709 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6710 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6711 Rename to...
6712 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6713 ...this.
6714 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6715 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6716 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6717 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6718 to...
6719 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6720 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6721 a "@" marker.
6722 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6723 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6724 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6725 pattern.
6726 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6727 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6728 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6729 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6730 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6731 "@" marker.
6732 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6733 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6734 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6735 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6736 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6737 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6738 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6739 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6740 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6741 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6742 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6743 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6744 (aarch64_sve_cnt_pat): Likewise.
6745 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6746 (*aarch64_sve_incsi_pat): Likewise.
6747 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6748 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6749 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6750 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6751 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6752 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6753 (*aarch64_sve_decsi_pat): Likewise.
6754 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6755 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6756 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6757 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6758 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6759 (@aarch64_pred_cntp<mode>): Likewise.
6760 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6761 New expander.
6762 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6763 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6764 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6765 New expander.
6766 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6767 New pattern.
6768 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6769 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6770 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6771 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6772 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6773 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6774 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6775 New expander.
6776 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6777 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6778 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6779 New expander.
6780 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6781 New pattern.
6782 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6783 expander.
6784 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6785 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6786 expander.
6787 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6788 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6789 expander.
6790 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6791 * config/aarch64/arm_sve.h: New file.
6792 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6793 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6794 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6795 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6796 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6797 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6798 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6799 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6800 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6801
6802 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6803
6804 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6805 New pattern.
6806 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6807 SVE modes.
6808
6809 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6810
6811 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6812 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6813 FFRT_REGNUM + 1.
6814 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6815 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6816 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6817 (aarch64_hard_regno_nregs): Handle the new register classes.
6818 (aarch64_hard_regno_mode_ok): Likewise.
6819 (aarch64_regno_regclass): Likewise.
6820 (aarch64_class_max_nregs): Likewise.
6821 (aarch64_register_move_cost): Likewise.
6822 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6823 as general register_operands.
6824
6825 2019-10-29 Martin Liska <mliska@suse.cz>
6826
6827 * ggc-common.c: One can't subtract unsigned types
6828 in compare function.
6829
6830 2019-10-29 Martin Liska <mliska@suse.cz>
6831
6832 * cgraphunit.c (symbol_table::compile): Pass
6833 title as dump_memory_report argument.
6834 * toplev.c (dump_memory_report): New argument.
6835 (finalize): Pass new argument.
6836 * toplev.h (dump_memory_report): Add argument.
6837
6838 2019-10-29 Martin Liska <mliska@suse.cz>
6839
6840 * ggc-common.c: Move Leak to the first column.
6841
6842 2019-10-29 Martin Liska <mliska@suse.cz>
6843
6844 * cgraphunit.c (symbol_table::compile): Remove argument
6845 for dump_memory_report.
6846 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6847 (compare_final): Remove in order to make report
6848 better readable.
6849 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6850 * mem-stats.h (mem_alloc_description::get_list):
6851 Do not pass cmp.
6852 (mem_alloc_description::dump): Likewise here.
6853 * toplev.c (dump_memory_report): Remove final
6854 argument.
6855 (finalize): Likewise.
6856 * toplev.h (dump_memory_report): Remove argument.
6857
6858 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6859
6860 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6861 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6862 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6863 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6864 accept "const".
6865
6866 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6867
6868 * coretypes.h (string_int_pair): New typedef.
6869 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6870 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6871 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6872
6873 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6874
6875 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6876 (simulate_builtin_function_decl): Declare.
6877 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6878 (LANG_HOOKS_INITIALIZER): Include it.
6879 * langhooks.c (add_builtin_function_common): Rename to...
6880 (build_builtin_function): ...this. Add a location parameter and use
6881 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6882 the decl instead.
6883 (add_builtin_function): Update accordingly, passing the returned
6884 decl to the lang hook.
6885 (add_builtin_function_ext_scope): Likewise
6886 (simulate_builtin_function_decl): New function.
6887
6888 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6889
6890 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6891 example, use actual names of supported offload targets.
6892
6893 PR target/92258
6894 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6895
6896 2019-10-28 Martin Sebor <msebor@redhat.com>
6897
6898 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6899 (handle_store): Pass argument to get_addr_stridx.
6900
6901 2019-10-28 Martin Sebor <msebor@redhat.com>
6902
6903 PR tree-optimization/92226
6904 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6905 the offset is in the open range outlined by SI's length.
6906
6907 2019-10-28 Martin Sebor <msebor@redhat.com>
6908
6909 PR c/66970
6910 * doc/cpp.texi (__has_builtin): Document.
6911 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6912
6913 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6914
6915 PR target/82981
6916 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6917 doubleword and low doubleword result of multiplication on
6918 MIPS64R6.
6919
6920 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6921 pure qualifier to the built-in.
6922 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6923 built-ins.
6924 (struct mips_builtin_description): Add is_pure flag.
6925 (mips_init_builtins): Mark built-in as pure if the flag in the
6926 corresponding mips_builtin_description struct is set.
6927
6928 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6929 alternative which covers the floating-point input value. Also
6930 forbid the split of insert.d pattern for floating-point values.
6931
6932 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6933
6934 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6935 * config/riscv/riscv-sr.c: New file.
6936 * config/riscv/riscv.c (riscv_reorg): New function.
6937 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6938 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6939 (riscv_remove_unneeded_save_restore_calls): Declare.
6940 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6941
6942 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6943
6944 PR tree-optimization/92163
6945 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6946 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6947 before calling bitmap_set_bit.
6948 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6949 delete_dead_or_redundant_assignment.
6950 (dse_dom_walker::dse_optimize_stmt): Likewise.
6951 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6952
6953 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6954
6955 PR middle-end/91272
6956 * tree-vect-stmts.c (vectorizable_condition): Support
6957 EXTRACT_LAST_REDUCTION with fully-masked loops.
6958
6959 2019-10-28 Richard Biener <rguenther@suse.de>
6960
6961 PR tree-optimization/92252
6962 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6963 STMT_VINFO_REDUC_IDX when swapping operands.
6964
6965 2019-10-28 Richard Biener <rguenther@suse.de>
6966
6967 PR tree-optimization/92241
6968 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6969 we failed to update the reduction index do not use the pattern
6970 stmts for the reduction chain.
6971 (vectorizable_reduction): When the reduction chain is corrupt,
6972 fail.
6973 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6974 fail to update the reduction chain.
6975
6976 2019-10-28 Richard Biener <rguenther@suse.de>
6977
6978 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6979 STMT_VINFO_REDUC_IDX from the actual stmt.
6980 (vect_transform_reduction): Likewise.
6981 (vectorizable_reduction): Compute the reduction chain length,
6982 do not recompute the reduction operand index. Remove no longer
6983 necessary restriction for condition reduction chains.
6984
6985 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6986
6987 PR target/92225
6988 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6989 condition for V2DImode.
6990
6991 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6992
6993 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6994 Remove %k operand modifier.
6995 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6996
6997 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6998
6999 PR rtl-optimization/92007
7000 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7001 call it after reload if hot/cold partitioning has been done.
7002 (class pass_postreload_jump): Rename to
7003 pass_jump_after_combine.
7004 (make_pass_postreload_jump): Rename to
7005 make_pass_jump_after_combine.
7006 * passes.def(pass_postreload_jump): Move before reload, rename
7007 to pass_jump_after_combine.
7008 * tree-pass.h (make_pass_postreload_jump): Rename to
7009 make_pass_jump_after_combine.
7010
7011 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7012
7013 PR ipa/92242
7014 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7015 for missing EDGE_REF
7016 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7017
7018 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7019
7020 PR tree-optimization/88760
7021 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7022 Enable -funroll-loops for -O2 and above.
7023 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7024 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7025 do not turn on web and rngreg implicitly, if the unroller is not
7026 explicitly enabled.
7027
7028 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7029
7030 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7031 jump functions.
7032
7033 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7034
7035 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7036 * cgraph.h (cgraph_node::rtl_info): Likewise.
7037
7038 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7039
7040 * ipa-cp.c (propagate_constants_across_call): If args are not available
7041 just drop everything to varying.
7042 (find_aggregate_values_for_callers_subset): Watch for missing
7043 edge summary.
7044 (find_more_scalar_values_for_callers_subs): Likewise.
7045 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7046 update_jump_functions_after_inlining, propagate_controlled_uses):
7047 Watch for missing summaries.
7048 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7049 is finished.
7050 (ipa_write_node_info): Watch for missing summaries.
7051 (ipa_read_edge_info): Create new ref.
7052 (ipa_edge_args_sum_t): Add remove.
7053 (IPA_EDGE_REF_GET_CREATE): New macro.
7054 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7055 edge summary.
7056 (remap_edge_change_prob): Likewise.
7057
7058 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7059
7060 * ipa-inline-transform.c (inline_call): update function summaries
7061 after expanidng thunk.
7062
7063 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7064
7065 * ipa-icf.c (sem_function::merge): Update function summaries.
7066 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7067
7068 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7069
7070 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7071 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7072 operand already has scalar mode.
7073 (iptr): Remove SF/DF.
7074
7075 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7076
7077 PR target/91289
7078 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7079 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7080 this.
7081
7082 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7083
7084 * config/i386/sse.md
7085 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7086 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7087 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7088 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7089 <sse>_vmmaskcmp<mode>3):
7090 Change predicates from vector_operand to nonimmediate_operand,
7091 constraints xBm to xm, since scalar operations don't need
7092 memory address alignment.
7093 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7094 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7095 round_saeonly_nimm_predicate with
7096 round_saeonly_nimm_scalar_predicate.
7097 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7098 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7099 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7100 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7101 avx512f_vmfmadd_<mode>_mask3<round_name>,
7102 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7103 *avx512f_vmfmsub_<mode>_mask<round_name>,
7104 avx512f_vmfmsub_<mode>_mask3<round_name>,
7105 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7106 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7107 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7108 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7109 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7110 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7111 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7112 cvtusi2<ssescalarmodesuffix>32<round_name>,
7113 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7114 round_nimm_predicate with round_nimm_scalr_predicate.
7115 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7116 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7117 avx512er_vmrcp28<mode><round_saeonly_name>,
7118 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7119 ): Replace round_saeonly_nimm_predicate with
7120 round_saeonly_nimm_scalar_predicate.
7121 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7122 vector_operand with nonimmediate_operand.
7123 * config/i386/subst.md (round_scalar_nimm_predicate,
7124 round_saeonly_scalar_nimm_predicate): Replace
7125 vector_operand with nonimmediate_operand.
7126
7127 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7128
7129 PR target/89071
7130 * config/i386/i386.md (*rcpsf2_sse): Add
7131 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7132 (*rsqrtsf2_sse): Ditto.
7133 (*sqrt<mode>2_sse): Ditto.
7134 (sse4_1_round<mode>2): separate constraint vm, add
7135 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7136 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7137 by pass rpad.
7138 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7139 Ditto.
7140 (*sse_vmrsqrtv4sf2): Ditto.
7141 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7142 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7143 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7144 <iptr> pointer size modifier since vround support memory operand.
7145
7146 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7147
7148 PR target/85969
7149 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7150 static function.
7151
7152 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7153 Tobias Burnus <tobias@codesourcery.com>
7154
7155 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7156 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7157 common block decls.
7158
7159 2019-10-25 Richard Biener <rguenther@suse.de>
7160
7161 PR tree-optimization/92222
7162 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7163 (_slp_oprnd_info::second_pattern): Likewise.
7164 (_slp_oprnd_info::any_pattern): New.
7165 (vect_create_oprnd_info): Adjust.
7166 (vect_get_and_check_slp_defs): Compute whether any stmt is
7167 in a pattern.
7168 (vect_build_slp_tree_2): Avoid building up a node from scalars
7169 if any of the operand defs, not just the first, is in a pattern.
7170
7171 2019-10-25 Richard Biener <rguenther@suse.de>
7172
7173 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7174 swapping if we actually have to modify the IL on a shared stmt.
7175 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7176 because we no longer modify the IL.
7177
7178 2019-10-25 Martin Liska <mliska@suse.cz>
7179
7180 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7181
7182 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7183
7184 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7185 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7186 handled by vect_transform_reduction. Allow fully-masked loops
7187 to be used with reduction chains.
7188 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7189 operations in fully-masked loops.
7190 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7191 operations in fully-masked loops.
7192
7193 2019-10-25 Richard Biener <rguenther@suse.de>
7194
7195 * tree-vect-loop.c (vectorizable_reduction): Verify
7196 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7197 correctly.
7198 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7199 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7200 stmts.
7201
7202 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7203
7204 * gimplify.h (omp_construct_selector_matches): Declare.
7205 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7206 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7207 called function if needed for flag_openmp.
7208 (gimplify_scan_omp_clauses): Set ctx->code.
7209 (omp_construct_selector_matches): New function.
7210 * omp-general.h (omp_constructor_traits_to_codes,
7211 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7212 * omp-general.c (omp_constructor_traits_to_codes,
7213 omp_context_selector_matches, omp_resolve_declare_variant): New
7214 functions.
7215
7216 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7217 literal.
7218 * config/rx/rx.c (rx_print_operand): Likewise.
7219 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7220 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7221 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7222 Likewise.
7223 * genemit.c (emit_c_code): Likewise.
7224 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7225
7226 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7227
7228 * symbols-summary.h (fast_function_summary<T *, V>::release,
7229 fast_call_summary<T *, V>::release): Free m_vector.
7230
7231 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7232
7233 * cgraphunit.c (symbol_table::process_new_functions): Call
7234 ipa_free_size_summary.
7235 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7236 (devirtualization_time_bonus): Update.
7237 (ipcp_propagate_stage): Update.
7238 * ipa-fnsummary.c (ipa_size_summaries): New.
7239 (ipa_fn_summary_alloc): Alloc size summary.
7240 (dump_ipa_call_summary): Update.
7241 (ipa_dump_fn_summary): Update.
7242 (analyze_function_body): Update.
7243 (compute_fn_summary): Likewise.
7244 (ipa_get_stack_frame_offset): New function.
7245 (inline_update_callee_summaries): Do not update frame offsets.
7246 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7247 remove call and function summary.
7248 (ipa_update_overall_fn_summary): Update.
7249 (inline_read_section): Update.
7250 (ipa_fn_summary_write): Update.
7251 (ipa_free_fn_summary): Do not remove summaries.
7252 (ipa_free_size_summary): New.
7253 (release summary pass): Also run at WPA.
7254 * ipa-fnsummary.h (ipa_size_summary): Declare.
7255 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7256 estimated_self_stack_size.
7257 (ipa_size_summary_t): New type.
7258 (ipa_size_summaries): Declare.
7259 (ipa_free_size_summary): Declare.
7260 (ipa_get_stack_frame_offset): Declare.
7261 * ipa-icf.c (sem_function::merge): Update.
7262 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7263 (estimate_growth): Update.
7264 (growth_likely_positive): Update.
7265 (clone_inlined_nodes): Update.
7266 (inline_call): Update.
7267 * ipa-inline.c (caller_growth_limits): Update.
7268 (edge_badness): Update.
7269 (recursive_inlining): Update.
7270 (inline_small_functions): Update.
7271 (inline_to_all_callers_1): Update.
7272 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7273
7274 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7275
7276 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7277 (uavg<mode>3_ceil): ... This.
7278 (altivec_vavgs<VI_char>): Rename to...
7279 (avg<mode>3_ceil): ... This.
7280 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7281 VAVGUW, VAVGSW): Adjust.
7282
7283 2019-10-24 Nathan Sidwell <nathan@acm.org>
7284
7285 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7286
7287 2019-10-24 Martin Liska <mliska@suse.cz>
7288
7289 * symbol-summary.h (gt_pch_nx): Mark all functions
7290 with gcc_unreachable as we do not expect to be called.
7291
7292 2019-10-24 Richard Biener <rguenther@suse.de>
7293
7294 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7295 chains try harder with operand swapping and instead of
7296 putting a shifted chain into the reduction operands put
7297 a repetition of the final reduction op there as if we'd
7298 reassociate the expression.
7299
7300 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7301
7302 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7303 statics_not_read and statics_not_written to statics_read and
7304 statics_written respectively.
7305 (no_module_statics): New static var.
7306 (ipa_reference_get_not_read_global): Rename to ...
7307 (ipa_reference_get_read_global): ... this.
7308 (ipa_reference_get_not_written_global): Rename to ...
7309 (ipa_reference_get_written_global): ... this.
7310 (dump_static_vars_set_to_file): Dump no_module_statics.
7311 (copy_static_var_set): Add for propagation parameter.
7312 (ipa_init): Initialize no_module_statics.
7313 (ipa_ref_opt_summary_t::duplicate): Update.
7314 (ipa_ref_opt_summary_t::remove): Update.
7315 (propagate): Update.
7316 (write_node_summary_p): Look correctly for bitmap differences.
7317 (ipa_reference_write_optimization_summary): Update.
7318 (ipa_reference_read_optimization_summary): Update.
7319 * ipa-reference.h
7320 (ipa_reference_get_not_read_global): Rename to ...
7321 (ipa_reference_get_read_global): ... this.
7322 (ipa_reference_get_not_written_global): Rename to ...
7323 (ipa_reference_get_written_global): ... this.
7324 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7325 (call_may_clobber_ref_p_1): Update.
7326
7327 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7328
7329 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7330 and add comment.
7331 (msp430_hard_regno_nregs_with_padding): Remove.
7332
7333 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7334
7335 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7336 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7337 shift amount is between 1 and 4.
7338 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7339 is between 1 and 4.
7340
7341 2019-10-24 Richard Biener <rguenther@suse.de>
7342
7343 PR tree-optimization/92205
7344 * tree-vect-loop.c (vectorizable_reduction): Restrict
7345 search for alternate vectype_in to lane-reducing patterns
7346 we support.
7347
7348 2019-10-24 Richard Biener <rguenther@suse.de>
7349
7350 PR tree-optimization/92203
7351 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7352 Skip eliminating conversion stmts inserted by insertion.
7353
7354 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7355
7356 * config/s390/s390.c (s390_get_thread_pointer): Use
7357 gen_get_thread_pointer.
7358 (s390_expand_split_stack_prologue): Likewise.
7359 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7360 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7361 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7362 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7363 parameterized name.
7364
7365 2019-10-24 Richard Biener <rguenther@suse.de>
7366
7367 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7368 SLP discovery fails try to handle the reduction as part
7369 of SLP reduction discovery.
7370
7371 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7372
7373 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7374 declaration.
7375 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7376 attribute if it exists, rather than the insn size. If we use the
7377 insn size, adjust the size to remove the extra size that prefixed
7378 instructions take.
7379 (rs6000_adjust_insn_length): New function.
7380 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7381 update the instruction sized if prefixed instructions are used.
7382 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7383 (non_prefixed_length attribute): Delete.
7384 (num_insns attribute): New insn attribute to return the number of
7385 instructions.
7386 (max_prefixed_insns attribute): New insn attribute to return the
7387 maximum number of prefixed instructions in an insn.
7388 (length attribute): Do not adjust for prefix instructions here,
7389 punt to ADJUST_INSN_LENGTH.
7390 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7391 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7392 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7393 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7394 max_prefixed_insns and num_insns.
7395
7396 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7397 (movtd_64bit_nodm): Reformat.
7398 (mov<mode>_32bit): Reformat.
7399 (mov<mode>_softfloat): Reformat.
7400 (FMOVE128_GPR splitter): Reformat.
7401 (DIFD splitter): Reformat.
7402 (TI2 splitter): Reformat.
7403 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7404 bits of the offset for the memory address are non-zero, use PLWA
7405 if prefixed instructions are available.
7406
7407 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7408
7409 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7410
7411 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7412
7413 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7414 previous patch.
7415
7416 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7417
7418 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7419 (cmp_symbol_files): New.
7420 (lto_output): Copy sections in file order.
7421 * lto-streamer.h (lto_file_decl_data): Add field order.
7422
7423 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7424
7425 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7426 * ipa-reference.c (reference_vars_map_t): new type.
7427 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7428 (ipa_reference_var_uid): Implement.
7429 (varpool_node_hooks): New static var.
7430 (varpool_removal_hook): New function.
7431 (is_improper): Do not check bitmap for id==-1
7432 (get_static_name): Update.
7433 (ipa_init): Initialize new datastructures.
7434 (analyze_function): Do not recompute ids.
7435 (propagate): Free reference_vars_to_consider.
7436 (stream_out_bitmap): Update.
7437 (ipa_reference_read_optimization_summary): Update.
7438
7439 2019-10-23 qing zhao <qing.zhao@oracle.com>
7440
7441 PR gcov-profile/91971
7442 * coverage.c (coverage_init): Mangle the full path of filename when
7443 filename is a absolute path.
7444
7445 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7446
7447 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7448 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7449 (msp430_has_hwmult): New.
7450 (msp430_output_labelref):
7451 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7452 * config/msp430/msp430.md (mulhisi3): Likewise.
7453 (umulhisi3): Likewise.
7454 (mulsidi3): Likewise.
7455 (umulsidi3): Likewise.
7456
7457 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7458
7459 PR ipa/92074
7460 * params.def (inline-heuristics-hint-percent): Set to 600.
7461
7462 2019-10-23 Richard Biener <rguenther@suse.de>
7463
7464 PR tree-optimization/65930
7465 * tree-vect-loop.c (check_reduction_path): Allow conversions
7466 that only change the sign.
7467 (vectorizable_reduction): Relax latch def stmts we handle further.
7468
7469 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7470
7471 PR debug/90231
7472 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7473 (remove_unused_ivs): Use it instead of get_computation_at. When
7474 choosing best candidate, only consider candidates where
7475 get_debug_computation_at actually returns non-NULL.
7476
7477 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7478
7479 PR tree-optimization/92131
7480 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7481 range would be symbolic, drop to varying for any explicit overflow
7482 in the constant part or if neither range is a singleton.
7483
7484 2019-10-23 Martin Liska <mliska@suse.cz>
7485
7486 PR middle-end/81669
7487 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7488 Initialize m_data.
7489
7490 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7491
7492 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7493 int_mode_for_mode rather than mode_for_int_vector for scalars.
7494
7495 2019-10-23 Richard Biener <rguenther@suse.de>
7496
7497 PR tree-optimization/92179
7498 * tree-vect-stmts.c (vectorizable_shift): For shift args
7499 that are all the same remove type restriction in the SLP case.
7500 Adjust SLP code to handle converting of the shift arg to
7501 only apply in case the modes are different.
7502
7503 2019-10-23 Martin Liska <mliska@suse.cz>
7504
7505 PR ipa/91969
7506 * ipa-inline.c (recursive_inlining): Do not print
7507 when curr->count is not initialized.
7508
7509 2019-10-23 Richard Biener <rguenther@suse.de>
7510
7511 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7512 op from scalars in case there's a constant operand in its
7513 definition.
7514
7515 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7516
7517 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7518 against out of range max skip or log values.
7519
7520 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7521
7522 * cgraph.c (dump_graphviz): Change name to dump_name
7523
7524 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7525
7526 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7527 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7528 subtraction from a carry operation.
7529
7530 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7531
7532 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7533
7534 2019-10-22 Richard Biener <rguenther@suse.de>
7535
7536 PR tree-optimization/92173
7537 * tree-vect-loop.c (vectorizable_reduction): If
7538 vect_transform_reduction cannot handle code-generation try without
7539 the single-def-use-cycle optimization. Pass optab_vector to
7540 optab_for_tree_code to get vector shifts as that's what we'd
7541 generate.
7542
7543 2019-10-22 Michael Matz <matz@suse.de>
7544
7545 PR middle-end/90796
7546 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7547 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7548 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7549
7550 2019-10-22 Richard Biener <rguenther@suse.de>
7551
7552 PR tree-optimization/92173
7553 * tree-vect-loop.c (vectorizable_reduction): If
7554 vect_transform_reduction cannot handle code-generation try without
7555 the single-def-use-cycle optimization. Pass optab_vector to
7556 optab_for_tree_code to get vector shifts as that's what we'd
7557 generate.
7558
7559 2019-10-22 Martin Liska <mliska@suse.cz>
7560
7561 * diagnostic-format-json.cc (json_from_expanded_location):
7562 Use json::integer_number.
7563 * gcov.c (output_intermediate_json_line): Use new
7564 json::integer_number.
7565 (output_json_intermediate_file): Likewise.
7566 * json.cc (number::print): Move to ...
7567 (float_number::print): ... this.
7568 (integer_number::print): New.
7569 (test_writing_numbers): Move to ...
7570 (test_writing_float_numbers): ... this.
7571 (test_writing_integer_numbers): New.
7572 (json_cc_tests): Register test_writing_integer_numbers.
7573 * json.h (class value): Add forward declaration
7574 for float_number and integer_number.
7575 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7576 (class number): Move to ...
7577 (class float_number): ... this.
7578 (class integer_number): New.
7579 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7580 Use json::integer_number.
7581 (optrecord_json_writer::location_to_json): Likewise.
7582 (optrecord_json_writer::profile_count_to_json): Likewise.
7583 (optrecord_json_writer::pass_to_json): Likewise.
7584
7585 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7586
7587 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7588 autodetected_vector_size rather than vector_size is zero.
7589 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7590 Set autodetected_vector_size immediately after calling
7591 vect_analyze_loop_2. Check for a fatal error before advancing
7592 next_size.
7593
7594 2019-10-21 Jason Merrill <jason@redhat.com>
7595
7596 * lock-and-run.sh: Check for process existence rather than timeout.
7597
7598 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7599
7600 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7601 widening multiplication.
7602
7603 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7604
7605 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7606 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7607 type attribute.
7608 (subsi3_carryin_shift): Separate into register and constant controlled
7609 alternatives. Use shift_amount_operand for operand 4. Set shift
7610 attribute and simplify type attribute.
7611 (subsi3_carryin_shift_alt): Likewise.
7612 (rsbsi3_carryin_shift): Likewise.
7613 (rsbsi3_carryin_shift_alt): Likewise.
7614 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7615 and register controlled shifts into distinct alternatives.
7616 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7617 (andsi_not_shiftsi_si_scc): Likewise.
7618 (arm_cmpsi_negshiftsi_si): Likewise.
7619 (not_shiftsi): Remove redundant M constraint from alternative 1.
7620 (not_shiftsi_compare0): Likewise.
7621 (arm_cmpsi_insn): Remove redundant alternative 2.
7622 (cmpsi_shift_swp): Likewise.
7623 (sub_shiftsi): Likewise.
7624 (sub_shiftsi_compare0_scratch): Likewise.
7625 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7626 (thumb2_cmpsi_neg_shiftsi): Likewise.
7627
7628 2019-10-21 Richard Biener <rguenther@suse.de>
7629
7630 PR tree-optimization/92162
7631 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7632 STMT_VINFO_REDUC_IDX in reduc_info.
7633 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7634
7635 2019-10-21 Richard Biener <rguenther@suse.de>
7636
7637 * tree-vectorizer.h (_slp_tree::ops): New member.
7638 (SLP_TREE_SCALAR_OPS): New.
7639 (vect_get_slp_defs): Adjust prototype.
7640 * tree-vect-slp.c (vect_free_slp_tree): Release
7641 SLP_TREE_SCALAR_OPS.
7642 (vect_create_new_slp_node): Initialize it. New overload for
7643 initializing by an operands array.
7644 (_slp_oprnd_info::ops): New member.
7645 (vect_create_oprnd_info): Initialize it.
7646 (vect_free_oprnd_info): Release it.
7647 (vect_get_and_check_slp_defs): Populate the operands array.
7648 Do not swap operands in the IL when not necessary.
7649 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7650 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7651 swap operands in the operands array. Do not swap operands in
7652 the IL.
7653 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7654 (vect_gather_slp_loads): Fix.
7655 (vect_detect_hybrid_slp_stmts): Likewise.
7656 (vect_slp_analyze_node_operations_1): Search for a internal
7657 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7658 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7659 the def-type push/pop dance.
7660 (vect_get_constant_vectors): Compute number_of_vectors here.
7661 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7662 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7663 (vect_get_slp_defs): Simplify greatly.
7664 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7665 (vect_transform_reduction): Likewise.
7666 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7667 (vectorizable_call): Likewise.
7668 (vectorizable_operation): Likewise.
7669 (vectorizable_load): Likewise.
7670 (vectorizable_condition): Likewise.
7671 (vectorizable_comparison): Likewise.
7672
7673 2019-10-21 Richard Biener <rguenther@suse.de>
7674
7675 PR tree-optimization/92161
7676 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7677 for reductions.
7678
7679 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7680
7681 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7682 (aarch64_rndr): New define_insn.
7683 (aarch64_rndrrs): Likewise.
7684 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7685 (TARGET_RNG): Likewise.
7686 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7687 argument.
7688 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7689 Add fourth argument in prototype.
7690 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7691 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7692 (aarch64_init_rng_builtins): Define.
7693 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7694 (aarch64_expand_rng_builtin): Define.
7695 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7696 RNG builtins.
7697 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7698 __ARM_FEATURE_RNG when TARGET_RNG.
7699 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7700
7701 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7702
7703 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7704 alignment is more restrictive.
7705
7706 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7707
7708 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7709 (vect_update_max_nunits): Update comment.
7710 (current_vector_size): Delete.
7711 * tree-vect-stmts.c (current_vector_size): Likewise.
7712 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7713 of current_vector_size.
7714 (get_mask_type_for_scalar_type): Likewise.
7715 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7716 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7717 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7718 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7719 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7720 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7721
7722 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7723
7724 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7725 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7726 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7727 accordingly.
7728
7729 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7730
7731 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7732 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7733 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7734 call accordingly.
7735 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7736
7737 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7738
7739 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7740 a loop_vec_info.
7741 (vect_set_loop_condition_masked): Update call accordingly.
7742
7743 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7744
7745 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7746 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7747 (simple_integer_narrowing): Update call accordingly.
7748 (vectorizable_conversion): Likewise.
7749
7750 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7751
7752 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7753 (vectorizable_call): Update call accordingly.
7754
7755 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7756
7757 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7758 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7759 (duplicate_and_interleave): Update call accordingly.
7760 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7761
7762 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7763
7764 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7765 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7766 (vect_get_constant_vectors): Update call accordingly.
7767 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7768
7769 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7770
7771 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7772 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7773 (vect_prologue_cost_for_slp_op): Update call accordingly.
7774 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7775 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7776 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7777 (get_mask_type_for_scalar_type): Likewise.
7778 (vect_get_vector_types_for_stmt): Likewise.
7779 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7780 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7781 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7782 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7783 (vect_split_statement, vect_convert_input): Likewise.
7784 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7785 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7786 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7787 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7788 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7789 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7790 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7791 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7792 (vect_recog_mask_conversion_pattern): Likewise.
7793 (vect_add_conversion_to_pattern): Likewise.
7794 (vect_recog_gather_scatter_pattern): Likewise.
7795 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7796 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7797
7798 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7799
7800 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7801 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7802 (vect_check_load_store_mask): Update call accordingly.
7803 (vect_get_mask_type_for_stmt): Likewise.
7804 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7805 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7806 (vect_convert_mask_for_vectype): Likewise.
7807
7808 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7809
7810 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7811 a vec_info.
7812 (vect_recog_dot_prod_pattern): Update call accordingly.
7813 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7814 (vect_recog_widen_sum_pattern): Likewise.
7815
7816 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7817
7818 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7819 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7820 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7821 accordingly.
7822
7823 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7824
7825 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7826 get_vectype_for_scalar_type_and_size instead of
7827 get_vectype_for_scalar_type.
7828
7829 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7830
7831 * common.opt (-fcommon): Fix description.
7832
7833 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7834
7835 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7836 * config/i386/i386.c (ix86_pre_reload_split): New function.
7837 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7838 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7839 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7840 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7841 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7842 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7843 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7844 *<shift_insn><dwi>3_doubleword_mask,
7845 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7846 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7847 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7848 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7849 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7850 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7851 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7852 *avx2_<code>v8qiv8si2<mask_name>_2,
7853 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7854 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7855 *avx512f_<code>v8qiv8di2<mask_name>_2,
7856 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7857 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7858 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7859 sse4_2_pcmpistr): Likewise.
7860
7861 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7862
7863 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7864 now defaults to https.
7865
7866 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7867
7868 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7869 skip non-zero array accesses.
7870
7871 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7872
7873 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7874 and return a boolean success value. Move the allocation and
7875 initialization of the bb_vec_info to...
7876 (vect_slp_bb_region): ...here. Update call accordingly.
7877 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7878 than in vect_slp_analyze_bb_1.
7879
7880 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7881
7882 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7883 when processing the given datarefs for the first time and
7884 check_datarefs subsequently.
7885 (vect_slp_bb_region): New function, split out of...
7886 (vect_slp_bb): ...here. Don't recompute the region bounds and
7887 dataref sets when retrying with a different vector size.
7888
7889 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7890 Uroš Bizjak <ubizjak@gmail.com>
7891
7892 PR target/92140
7893 * config/i386/predicates.md (int_nonimmediate_operand): New special
7894 predicate.
7895 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7896 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7897 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7898 define_insn_and_split patterns.
7899
7900 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7901
7902 * config/rs6000/rs6000.md: Delete out--of-date comment about
7903 special-casing integer loads.
7904
7905 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7906
7907 * escaped_string.h (escaped_string): New header.
7908 * tree.c (escaped_string): Remove escaped_string class.
7909
7910 2019-10-18 Martin Sebor <msebor@redhat.com>
7911
7912 PR tree-optimization/92157
7913 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7914 compute_string_length to return a negative result.
7915
7916 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7917
7918 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7919 (negvsi3, negvdi3): Delete.
7920 (negdi2_compare): Delete.
7921
7922 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7923
7924 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7925 operations.
7926 (subdi3_compare1): Delete pattern.
7927 (subvsi3_borrow): New insn pattern.
7928 (subvsi3_borrow_imm): Likewise.
7929
7930 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7931
7932 * config/arm/arm.md (subv<mode>4): Delete.
7933 (subvdi4): New expander pattern.
7934 (subvsi4): Likewise. Handle some immediate values.
7935 (subvsi3_intmin): New insn pattern.
7936 (subvsi3): Likewise.
7937 (subvsi3_imm1): Likewise.
7938 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7939 idioms.
7940
7941 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7942
7943 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7944 incoming operands. Early split the calculation into SImode
7945 operations.
7946 (usubvsi3_borrow): New insn pattern.
7947 (usubvsi3_borrow_imm): Likewise.
7948
7949 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7950
7951 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7952 (usubvsi4): New pattern. Allow some immediate values for inputs.
7953 (usubvdi4): New pattern.
7954
7955 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7956
7957 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7958 or second operand of the PLUS inside a DImode equality test to be
7959 sign-extend when selecting CC_Vmode.
7960 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7961 instructions.
7962 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7963 expand patterns.
7964 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7965 (addsi3_cin_vout_0): Likewise.
7966 (adddi3_compareV): Delete.
7967
7968 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7969
7970 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7971 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7972 to transform this back into the summation version when that leads
7973 to smaller code.
7974
7975 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7976
7977 * config/arm/arm.md (addv<mode>4): Delete.
7978 (addvsi4): New pattern. Handle immediate values that the architecture
7979 supports.
7980 (addvdi4): New pattern.
7981 (addsi3_compareV): Rename to ...
7982 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7983 and use COMPARE rather than NE.
7984 (addsi3_compareV_imm): New pattern.
7985 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7986 a signed-overflow check.
7987
7988 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7989
7990 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7991 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7992 CC_ADCmode.
7993 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7994 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7995 with overflow.
7996 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7997 expand patterns.
7998 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7999 (addsi3_cin_cout_imm_insn): Likewise.
8000 (adddi3_compareC): Delete insn.
8001 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8002
8003 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8004
8005 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8006 * (uaddv<mode>4): Delete expansion pattern.
8007 (uaddvsi4): New pattern.
8008 (uaddvdi4): Likewise.
8009 (addsi3_compareC): Delete pattern, change callers to use
8010 addsi3_compare_op1.
8011 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8012 reduce the number of alternatives and re-work type attribute handling.
8013 (addsi3_compare_op2): Clean up constraints to reduce the number of
8014 alternatives and re-work type attribute handling.
8015 (compare_addsi2_op0): Likewise.
8016 (compare_addsi2_op1): Likewise.
8017
8018 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8019
8020 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8021 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8022 for DImode operands.
8023 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8024 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8025 CC_NCVmode.
8026 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8027 (arm_cmpdi_unsigned): Delete.
8028
8029 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8030
8031 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8032 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8033 unchanged only if that will be cheaper.
8034 (arm_select_cc_mode): Recognize a swapped comparison that will
8035 be regenerated using RSBS or RSCS. Relax restriction on selecting
8036 CC_RSBmode.
8037 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8038 a constant.
8039 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8040 is CC_RSBmode.
8041 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8042 as CCmode.
8043 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8044 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8045
8046 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8047
8048 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8049 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8050 need these modes.
8051 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8052 of EQ, NE, LT, GE, LTU and GEU.
8053 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8054 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8055 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8056 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8057 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8058
8059 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8060
8061 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8062 operand 2.
8063 (cstoredi4): Similarly, but for operand 3.
8064 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8065 canonicalization of unsigned compares with a constant on Arm.
8066 Prefer using const+1 and adjusting the comparison over swapping the
8067 operands whenever the original constant was not valid.
8068 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8069 register here.
8070 (arm_validize_comparison): Do not force invalid DImode operands to
8071 registers here.
8072
8073 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8074
8075 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8076 return CC_Zmode if comparing against a constant where one word is
8077 zero.
8078 (arm_gen_compare_reg): Split DImode handling to ...
8079 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8080 against simple constants.
8081 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8082
8083 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8084
8085 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8086 (rsbsi3_carryin_shift_alt): Likewise.
8087
8088 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8089
8090 * config/arm/arm.md (negscc_borrow): New pattern.
8091 (mov_negscc): Don't split if the insn would match negscc_borrow.
8092 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8093 (thumb2_mov_negscc_strict_it): Likewise.
8094
8095 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8096
8097 * config/arm/arm.c (arm_insn_cost): New function.
8098 (TARGET_INSN_COST): Override default definition.
8099
8100 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8101
8102 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8103 borrow operations.
8104
8105 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8106
8107 * config/arm/arm.c (strip_carry_operation): New function.
8108 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8109 for SImode.
8110
8111 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8112
8113 * config/arm/predicates.md (arm_carry_operation): New special
8114 predicate.
8115 * config/arm/iterators.md (LTUGEU): Delete iterator.
8116 (cnb): Delete code attribute.
8117 (optab): Delete ltu and geu elements.
8118 * config/arm/arm.md (addsi3_carryin): Renamed from
8119 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8120 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8121 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8122 (addsi3_carryin_clobercc): Similarly.
8123 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8124 Thumb2 state.
8125
8126 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8127
8128 * config/arm/arm.md (arm_subdi3): Delete insn.
8129 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8130
8131 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8132
8133 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8134 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8135 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8136 return CC_RSBmode.
8137 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8138 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8139 expand.
8140 (subdi3): Rewrite to early-expand the sub-operations.
8141 (rsb_im_compare): New pattern.
8142 (negdi2): Delete.
8143 (negdi2_insn): Delete.
8144 (arm_negsi2): Correct type attribute to alu_imm.
8145 (negsi2_0compare): New insn pattern.
8146 (negsi2_carryin): New insn pattern.
8147
8148 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8149
8150 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8151 operand 2.
8152
8153 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8154
8155 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8156 to match canonical form.
8157
8158 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8159
8160 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8161 (extend<mode>di2): Likewise.
8162
8163 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8164
8165 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8166 * config/arm/arm.c (arm_decompose_di_binop): New function.
8167 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8168 If not generating Thumb-1 code, decompose the operation into 32-bit
8169 pieces.
8170 * add0si_carryin_<optab>: New pattern.
8171
8172 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8173
8174 * arm.md (adddi3): Only accept register operands.
8175 (arm_adddi3): Convert to simple insn with no split. Do not accept
8176 constants.
8177 (adddi_sesidi_di): Delete patern.
8178 (adddi_zesidi_di): Likewise.
8179 (uaddv<mode>4): Use LTU as condition for branch.
8180 (adddi3_compareV): Convert to simple insn with no split.
8181 (addsi3_compareV_upper): Delete pattern.
8182 (adddi3_compareC): Convert to simple insn with no split. Correct
8183 flags setting expression.
8184 (addsi3_compareC_upper): Delete pattern.
8185 (addsi3_compareC): Correct flags setting expression.
8186 (subdi3_compare1): Convert to simple insn with no split.
8187 (subsi3_carryin_compare): Delete pattern.
8188 (arm_subdi3): Convert to simple insn with no split.
8189 (subdi_zesidi): Delete pattern.
8190 (subdi_di_sesidi): Delete pattern.
8191 (subdi_zesidi_di): Delete pattern.
8192 (subdi_sesidi_di): Delete pattern.
8193 (subdi_zesidi_zesidi): Delete pattern.
8194 (negvdi3): Use s_register_operand.
8195 (negdi2_compare): Convert to simple insn with no split.
8196 (negdi2_insn): Likewise.
8197 (negsi2_carryin_compare): Delete pattern.
8198 (negdi_zero_extendsidi): Delete pattern.
8199 (arm_cmpdi_insn): Convert to simple insn with no split.
8200 (negdi2): Don't call gen_negdi2_neon.
8201 * config/arm/neon.md (adddi3_neon): Delete pattern.
8202 (subdi3_neon): Delete pattern.
8203 (negdi2_neon): Delete pattern.
8204 (splits for negdi2_neon): Delete splits.
8205
8206 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8207
8208 PR middle-end/92153
8209 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8210 than after it.
8211
8212 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8213
8214 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8215 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8216 new multilib variants and new mappings.
8217
8218 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8219
8220 PR target/86040
8221 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8222
8223 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8224 Richard Sandiford <richard.sandiford@arm.com>
8225
8226 PR target/86753
8227 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8228 and define hashmap traits for it.
8229 (loop_vec_info::scalar_cond_masked_set): New member.
8230 (vect_record_loop_mask): Adjust prototype.
8231 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8232 Implement method.
8233 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8234 vect_record_loop_mask.
8235 (vectorizable_live_operation): Likewise.
8236 (vect_record_loop_mask): New param scalar_mask. Add entry
8237 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8238 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8239 Pass it as last arg to vect_record_loop_mask.
8240 (vectorizable_call): Pass scalar_mask as last arg to
8241 vect_record_loop_mask.
8242 (vectorizable_store): Likewise.
8243 (vectorizable_load): Likewise.
8244 (vectorizable_condition): Check if another part of vectorized code
8245 applies loop_mask to condition or to it's inverse, and if yes,
8246 apply loop_mask to result of vector comparison.
8247
8248 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8249
8250 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8251
8252 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8253
8254 PR tree-optimization/92056
8255 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8256 before calling compute_builtin_object_size.
8257
8258 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8259
8260 PR target/65342
8261 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8262 (movdi_low_st): Delete.
8263 * config/rs6000/rs6000.c
8264 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8265 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8266 * config/rs6000/rs6000.md (movsi_low): Delete.
8267
8268 2019-10-17 Jason Merrill <jason@redhat.com>
8269
8270 * gimplify.h (get_initialized_tmp_var): Add default argument to
8271 post_p.
8272 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8273 NULL post_p argument.
8274 * targhooks (std_gimplify_va_arg_expr): Likewise.
8275
8276 2019-10-17 Richard Biener <rguenther@suse.de>
8277
8278 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8279 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8280 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8281 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8282 * tree-vect-loop.c (vect_is_simple_reduction): Set
8283 STMT_VINFO_REDUC_CODE.
8284 (vectorizable_reduction): Remove dead and redundant code, use
8285 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8286
8287 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8288
8289 Fix breakage introduced by r276985.
8290
8291 * config/avr/avr.c (avr_option_override): Remove set of
8292 PARAM_ALLOW_STORE_DATA_RACES.
8293 * common/config/avr/avr-common.c (avr_option_optimization_table)
8294 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8295
8296 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8297
8298 * config/i386/i386.h (processor_costs): Add clear_ratio.
8299 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8300 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8301 of 6 and move_ratio in all cost models.
8302
8303 2019-10-17 Richard Biener <rguenther@suse.de>
8304
8305 * tree-vect-loop.c (check_reduction_path): Compute reduction
8306 operation here.
8307 (vect_is_simple_reduction): Remove special-case of single-stmt
8308 reduction path detection.
8309
8310 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8311
8312 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8313
8314 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8315
8316 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8317 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8318 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8319 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8320 New combine patterns.
8321 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8322 above.
8323 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8324
8325 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8326
8327 * tree-vrp.c (value_range_base::dump): Display +INF for both
8328 pointers and integers when appropriate.
8329
8330 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8331
8332 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8333 when to use versioning threshold.
8334
8335 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8336
8337 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8338 outlined code from ...
8339 (vect_analyze_loop_2): ... here.
8340
8341 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8342
8343 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8344 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8345 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8346
8347 2019-10-17 Richard Biener <rguenther@suse.de>
8348
8349 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8350 (vect_is_simple_reduction): Move all validity checks ...
8351 (vectorizable_reduction): ... here. Compute whether we
8352 need a fold-left reduction here.
8353 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8354 both overloads, check needs_fold_left_reduction_p directly.
8355 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8356
8357 2019-10-17 Richard Biener <rguenther@suse.de>
8358
8359 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8360 TARGET_MEM_REF creation.
8361
8362 2019-10-17 Richard Biener <rguenther@suse.de>
8363
8364 PR tree-optimization/92129
8365 * tree-vect-loop.c (vectorizable_reduction): Also fail
8366 on GIMPLE_SINGLE_RHS.
8367
8368 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8369
8370 PR tree-optimization/92056
8371 * tree-object-size.c (cond_expr_object_size): Return early if then_
8372 processing resulted in unknown size.
8373
8374 PR tree-optimization/92115
8375 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8376 temporary if it could trap.
8377
8378 2019-10-17 Richard Biener <rguenther@suse.de>
8379
8380 PR debug/91887
8381 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8382 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8383
8384 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8385
8386 * tree-ssa-strlen.c (maybe_invalidate): Use
8387 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8388
8389 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8390 Jim Wilson <jimw@sifive.com>
8391
8392 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8393 regs to SIBCALL_REGS.
8394 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8395 passing regs to SIBCALL_REGS.
8396
8397 2019-10-16 Martin Sebor <msebor@redhat.com>
8398
8399 PR tree-optimization/83821
8400 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8401 the length of a string when available.
8402 (handle_builtin_memset) Add argument.
8403 (handle_store, strlen_check_and_optimize_call): Same.
8404 (check_and_optimize_stmt): Same. Pass it to callees.
8405
8406 2019-10-16 Martin Sebor <msebor@redhat.com>
8407
8408 PR tree-optimization/91996
8409 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8410 information.
8411 (compare_nonzero_chars): Add an overload.
8412 (count_nonzero_bytes): Add an argument. Call overload above.
8413 Handle non-constant lengths in some range.
8414 (handle_store): Add an argument.
8415 (check_and_optimize_stmt): Pass an argument to handle_store.
8416
8417 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8418
8419 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8420
8421 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8422
8423 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8424 operands which correspond to the same input-output register to
8425 have the same pseudo assigned to them.
8426
8427 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8428
8429 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8430
8431 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8432
8433 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8434 Apply reasonable limit to symbol offsets.
8435
8436 2019-10-16 Richard Biener <rguenther@suse.de>
8437
8438 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8439 (vect_is_simple_reduction): Delay checking to
8440 vectorizable_reduction and relax the checking.
8441 (vectorizable_reduction): Check we have a simple use. Check
8442 for bogus condition reductions.
8443 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8444 are looking at the last stmt in a pattern sequence when
8445 filling in backedge PHI values.
8446
8447 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8448 Jiufu Guo <guojiufu@linux.ibm.com>
8449
8450 PR target/70010
8451 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8452 the callee explicitly disables some isa_flags the caller is using.
8453
8454 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8455
8456 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8457
8458 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8459
8460 * genmodes.c (mode_data::order): New field.
8461 (blank_mode): Update accordingly.
8462 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8463 (make_vector_modes): Likewise.
8464 (VECTOR_MODES): Update use accordingly.
8465 (cmp_modes): Sort by the new order field ahead of sorting by size.
8466 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8467 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8468 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8469 (aarch64_classify_vector_mode): Handle the new partial modes.
8470 (aarch64_vl_bytes): New function.
8471 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8472 when counting the number of registers in an SVE mode.
8473 (aarch64_class_max_nregs): Likewise.
8474 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8475 in registers yet.
8476 (aarch64_classify_address): Treat partial vectors analogously
8477 to full vectors.
8478 (aarch64_print_address_internal): Consolidate the printing of
8479 MUL VL addresses, using aarch64_vl_bytes as the number of
8480 bytes represented by "VL".
8481 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8482
8483 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8484
8485 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8486 rather than known_lt when choosing frame layouts.
8487
8488 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8489
8490 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8491 that all the adjustments add up to the full frame size.
8492 Use crtl->outgoing_args_size directly as the final adjustment
8493 where appropriate.
8494
8495 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8496
8497 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8498 "frame" reference instead of always referring directly to
8499 "cfun->machine->frame".
8500
8501 2019-10-16 Richard Biener <rguenther@suse.de>
8502
8503 PR tree-optimization/92119
8504 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8505 against missing bswap lhs.
8506
8507 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8508
8509 PR middle-end/92033
8510 * poly-int.h (constant_lower_bound_with_limit): New function.
8511 (constant_upper_bound_with_limit): Likewise.
8512 * doc/poly-int.texi: Document them.
8513 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8514 into the worst-case INTEGER_CST bounds.
8515
8516 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8517
8518 PR ipa/91088
8519 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8520 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8521 * ipa-predicat.h (struct expr_eval_op): New struct.
8522 (expr_eval_ops): New typedef.
8523 (struct condition): Add type and param_ops fields, remove size field.
8524 (add_condition): Replace size parameter with type parameter, add
8525 param_ops parameter.
8526 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8527 (predicate::add_clause): Add comparisons on type and param_ops.
8528 (dump_condition): Add debug dump for param_ops.
8529 (remap_after_inlining): Adjust call arguments to add_condition.
8530 (add_condition): Replace size parameter with type parameter, add
8531 param_ops parameter. Unshare constant value used in conditions.
8532 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8533 parameter expressions using param_ops.
8534 (decompose_param_expr): New function.
8535 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8536 to replace call to unmodified_parm_or_parm_agg_item.
8537 (set_switch_stmt_execution_predicate): Likewise.
8538 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8539 with type.
8540 (inline_read_section): Read param_ops from summary stream.
8541 (ipa_fn_summary_write): Write param_ops to summary stream.
8542
8543 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8544
8545 PR rtl-optimization/92107
8546 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8547 expression written.
8548
8549 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8550
8551 * config/darwin.c: Update description of fix and continue.
8552
8553 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8554
8555 * config/darwin.c (darwin_binds_local_p): Update to call
8556 default_binds_local_p_3 () directly. amend comments.
8557
8558 2019-10-15 Richard Biener <rguenther@suse.de>
8559
8560 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8561 (tree_is_indexable): Use it.
8562 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8563 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8564 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8565
8566 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8567
8568 * config/msp430/msp430.md (zero_extendqipsi2): New.
8569 (zero_extendqisi2): Optimize case where src register and base dst
8570 register are the same.
8571 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8572 (zero_extendpsisi2): Optimize r->m case.
8573 Add unnamed insn patterns to catch insns combine searches for when
8574 optimizing pointer manipulation.
8575
8576 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8577
8578 * config/msp430/msp430.md: Group zero_extend* insns together.
8579
8580 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8581
8582 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8583 constraint.
8584 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8585 POST_INC.
8586 (msp430_subreg): Likewise.
8587 (msp430_split_addsi): Likewise.
8588 (msp430_print_operand_addr): Likewise.
8589 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8590 (USE_STORE_POST_INCREMENT): Define.
8591 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8592 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8593 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8594 (msp430_general_dst_operand): New.
8595 (msp430_general_dst_nonv_operand): New.
8596 (msp430_nonsubreg_operand): Remove.
8597 (msp430_nonsubreg_dst_operand): New.
8598 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8599 of defunct msp430_nonsubreg_operand.
8600 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8601
8602 2019-10-15 Richard Biener <rguenther@suse.de>
8603
8604 PR tree-optimization/91929
8605 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8606 (get_or_alloc_expr_for_name): Initialize it.
8607 (get_or_alloc_expr_for_constant): Likewise.
8608 (phi_translate_1): Copy it.
8609 (create_expression_by_pieces): Use the original location
8610 of the expression for the inserted stmt.
8611 (compute_avail): Record the location of the stmt for the
8612 expressions created.
8613
8614 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8615
8616 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8617 before using tree_to_uhwi.
8618
8619 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8620
8621 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8622
8623 2019-10-15 Richard Biener <rguenther@suse.de>
8624
8625 PR tree-optimization/92094
8626 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8627 do not adjust the reduction definition def type.
8628 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8629 defines the latch argument of the PHI.
8630
8631 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8632
8633 PR target/92035
8634 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8635 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8636 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8637 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8638 _mm_maskz_roundscale_round_sd): New intrinsics.
8639 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8640 __builtin_ia32_rndscales?_mask_round builtins instead of
8641 __builtin_ia32_rndscales?_round.
8642 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8643 __builtin_ia32_rndscalesd_round): Remove.
8644 (__builtin_ia32_rndscaless_mask_round,
8645 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8646 * config/i386/sse.md
8647 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8648 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8649 ... this, adjust and add subst atrributes to make it maskable.
8650
8651 2019-10-15 Richard Biener <rguenther@suse.de>
8652
8653 PR middle-end/92046
8654 * common.opt (fallow-store-data-races): New.
8655 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8656 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8657 * doc/invoke.texi (fallow-store-data-races): Document.
8658 (--param allow-store-data-races): Remove docs.
8659 * opts.c (default_options_table): Enable -fallow-store-data-races
8660 at -Ofast.
8661 (default_options_optimization): Do not enable --param
8662 allow-store-data-races at -Ofast.
8663 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8664 instead of PARAM_ALLOW_STORE_DATA_RACES.
8665 * tree-ssa-loop-im.c (execute_sm): Likewise.
8666
8667 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8668
8669 PR tree-optimization/92085
8670 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8671 instead of calling it unconditionally after
8672 delete_dead_or_redundant_assignment and fix indentation.
8673
8674 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8675
8676 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8677 TARGET_VFP_DOUBLE.
8678 (*fmsub<SDF:mode>4): Likewise.
8679 *fnmsub<SDF:mode>4): Likewise.
8680 (*fnmadd<SDF:mode>4): Likewise.
8681
8682 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8683
8684 * doc/tree-ssa.texi: Update renamed macro name.
8685
8686 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8687
8688 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8689 vector constants.
8690
8691 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8692
8693 * config/darwin.c: Use unsigned ints for the picbase label
8694 counters, initialise the vars explicitly.
8695 (update_pic_label_number_if_needed): Move a variable declaration
8696 to where it's needed.
8697 (machopic_output_function_base_name): Use a more strict checking
8698 assert, and and unsigned int for the picbase label counter.
8699 (machopic_get_function_picbase): Likewise.
8700
8701 2019-10-14 Richard Biener <rguenther@suse.de>
8702
8703 PR middle-end/92046
8704 * dse.c (scan_insn): Use param max_active_local_stores.
8705 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8706 based on optimization level.
8707 * loop-invariant.c (move_loop_invariants): Adjust
8708 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8709 * opts.c (default_options_optimization): Do not adjust
8710 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8711 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8712
8713 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8714
8715 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8716
8717 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8718
8719 * config/arm/arm.c (arm_option_override): Don't override sched
8720 pressure algorithm.
8721
8722 2019-10-14 Richard Biener <rguenther@suse.de>
8723
8724 PR tree-optimization/92069
8725 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8726 cycles do not set vect_nested_cycle on the latch definition.
8727
8728 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8729
8730 * function-abi.h (expr_callee_abi): Declare.
8731 * function-abi.cc (expr_callee_abi): New function.
8732
8733 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8734
8735 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8736 into [1,MAX].
8737 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8738 non-zero being represented as [1,MAX].
8739
8740 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8741
8742 * tree-sra.c (dump_access): Add missing braces.
8743
8744 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8745
8746 * config/darwin.c (machopic_indirection_name): Rework the
8747 function to emit linker-visible symbols only for indirections
8748 in the data section. Clean up the code and update comments.
8749
8750 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8751
8752 * config/darwin.c (machopic_indirect_data_reference): Remove
8753 redundant code.
8754
8755 2019-10-13 Nathan Sidwell <nathan@acm.org>
8756
8757 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8758
8759 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8760
8761 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8762 c99_runtime.
8763
8764 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8765
8766 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8767 so non-virutal are before virutals.
8768 (output_function): Avoid body modifications.
8769
8770 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8771
8772 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8773 %r22. Load function address before global pointer.
8774 (pa_attr_length_indirect_call): Adjust length of inline versions of
8775 $$dyncall.
8776 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8777 before normal cases. Update inline $$dyncall sequences to preserve
8778 function descriptor address in register %r22.
8779 (TRAMPOLINE_CODE_SIZE): Adjust.
8780 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8781 register %r22 contains trampoline address.
8782 (pa_trampoline_init): Adjust offsets.
8783 (pa_trampoline_adjust_address): Likewise.
8784 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8785
8786 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8787
8788 PR target/67183
8789 * config/darwin.c (machopic_indirection): New field to flag
8790 non-lazy-symbol-pointers in the data section.
8791 (machopic_indirection_name): Compute if an indirection should
8792 appear in the data section.
8793 (machopic_output_data_section_indirection): New callback split
8794 from machopic_output_indirection.
8795 (machopic_output_stub_indirection): Likewise.
8796 (machopic_output_indirection): Retain the code for non-lazy
8797 symbol pointers in their regular section.
8798 (machopic_finish): Use the new callbacks to order the indirection
8799 output.
8800
8801 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8802
8803 * config/darwin-protos.h (machopic_finish): Delete.
8804 * config/darwin.c (machopic_finish): Make static.
8805
8806 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8807
8808 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8809 sections when building kernel extension code.
8810
8811 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8812
8813 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8814 later standard."
8815
8816 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8817
8818 * config/pa/pa.c (pa_option_override): Remove trailing comma
8819 from warning.
8820
8821 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8822
8823 PR middle-end/92063
8824 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8825 <case VEC_COND_EXPR>: Return false with *handled = false.
8826 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8827 recursing on the first operand.
8828 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8829 instead of tree_could_trap_p.
8830 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8831
8832 2019-10-11 Jim Wilson <jimw@sifive.com>
8833
8834 PR rtl-optimization/91860
8835 * combine.c (subst): If new_rtx is a constant, also check for
8836 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8837
8838 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8839
8840 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8841 INTVAL when calling store_bit_field.
8842
8843 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8844
8845 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8846 size.
8847
8848 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8849
8850 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8851 vectorizable_live_operation.
8852 (vectorizable_live_operation): Adjust parameters.
8853 * tree-vect-stmts.c (vect_init_vector,
8854 vect_gen_widened_results_half): Fix typo in function comment.
8855 (can_vectorize_live_stmts): Adjust function comment.
8856 Adjust parameters. Adjust call to vectorizable_live_operation.
8857 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8858 (vect_transform_stmt): Adjust function comment. Adjust call to
8859 can_vectorize_live_stmts.
8860 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8861
8862 2019-10-11 Richard Biener <rguenther@suse.de>
8863
8864 PR tree-optimization/90883
8865 PR tree-optimization/91091
8866 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8867 alias-sets both for recording VN table entries and continuing
8868 walking after translating through copies. Handle same-sized
8869 reads from SSA names by returning the plain SSA name.
8870 (eliminate_dom_walker::eliminate_stmt): Properly handle
8871 non-size precision stores in redundant store elimination.
8872
8873 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8874
8875 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8876 (ggc_collect): Dump later to not interfere with release_page dump.
8877 (ggc_trim): New function.
8878 * ggc-none.c (ggc_trim): New.
8879 * ggc.h (ggc_trim): Declare.
8880
8881 2019-10-11 Richard Biener <rguenther@suse.de>
8882
8883 PR tree-optimization/92066
8884 PR tree-optimization/92046
8885 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8886 Fix bogus cost model check.
8887
8888 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8889
8890 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8891 (LANG_HOOKS_DECLS): Add it.
8892 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8893 update comment for omp_is_optional_argument.
8894 * omp-general.c (omp_is_allocatable_or_ptr): New.
8895 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8896 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8897 Fortran's optional arguments and allocatable/pointer scalars
8898 with use_device_addr.
8899
8900 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8901
8902 PR target/77918
8903 * config/s390/2827.md: Add new opcodes.
8904 * config/s390/2964.md: Likewise.
8905 * config/s390/3906.md: Likewise.
8906 * config/s390/8561.md: Likewise.
8907 * config/s390/s390-builtins.def (s390_vfchesb): Use
8908 the new vec_cmpgev4sf_quiet_nocc.
8909 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8910 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8911 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8912 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8913 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8914 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8915 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8916 * config/s390/s390-modes.def (CCSFPS): New mode.
8917 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8918 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8919 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8920 (s390_expand_vec_compare): Use non-signaling patterns where
8921 necessary.
8922 (s390_reverse_condition): Support CCSFPS.
8923 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8924 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8925 (asm_fcmp_op): Likewise.
8926 (*smaxv2df3_vx): Use pattern for quiet comparison.
8927 (*sminv2df3_vx): Likewise.
8928 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8929 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8930 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8931 (vec_cmplt<mode>_quiet_nocc): New expander.
8932 (vec_cmpge<mode>_quiet_nocc): New pattern.
8933 (vec_cmple<mode>_quiet_nocc): New expander.
8934 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8935 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8936 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8937 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8938 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8939 (vec_cmpungt<mode>): New expander.
8940 (vec_cmpunge<mode>): Likewise.
8941 (vec_cmpuneq<mode>): Use quiet patterns.
8942 (vec_cmpltgt<mode>): Allow only on z14+.
8943 (vec_cmpordered<mode>): Use quiet patterns.
8944 (vec_cmpunordered<mode>): Likewise.
8945 (VEC_CMP_EXPAND): Add ungt and unge.
8946
8947 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8948
8949 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8950 parameter.
8951 * lto-streamer-out.c: Include tree-dfa.h.
8952 (output_cfg): Do not use cfun.
8953 (lto_prepare_function_for_streaming): New.
8954 (output_function): Do not push cfun; do not initialize loop optimizer.
8955 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8956 * passes.c (ipa_write_summaries): Use it.
8957 (ipa_write_optimization_summaries): Do not modify bodies.
8958 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8959 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8960 * tree-ssa-dse.c (pass_dse::execute): Update use of
8961 renumber_gimple_stmt_uids.
8962 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8963
8964 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8965
8966 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8967 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8968
8969 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8970
8971 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8972 macros.
8973 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8974 Also define DFP macros for these conditions.
8975 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8976 DEC128_SUBNORMAL_MIN): Do not define.
8977 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8978 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8979
8980 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8981 Sandra Loosemore <sandra@codesourcery.com>
8982
8983 PR middle-end/26241
8984 * doc/lto.texi (IPA): Reference to the IPA passes.
8985 * doc/passes.texi (Pass manager): Add node IPA passes and
8986 description for each IPA pass.
8987
8988 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8989
8990 * ipa-reference.c: Do not include splay-tree.h
8991 (reference_vars_to_consider): Turn to hash map.
8992 (get_static_name, ipa_init, analyze_function, propagate,
8993 stream_out_bitmap, ipa_reference_write_optimization_summary,
8994 ipa_reference_write_optimization_summary): Update.
8995
8996 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8997
8998 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8999
9000 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9001
9002 * config/darwin.c: Lookup Objective C metadata and force indirection
9003 for IVAR refs.
9004
9005 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9006
9007 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9008 addresses.
9009 (mem_operand_gpr): Add check for prefixed addresses.
9010 (mem_operand_ds_form): Add check for prefixed addresses.
9011 (rs6000_legitimate_offset_address_p): If we support prefixed
9012 addresses, check for a 34-bit offset instead of 16-bit.
9013 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9014 Do not allow load/store with update if the address is prefixed.
9015 (rs6000_mode_dependent_address): If we support prefixed
9016 addresses, check for a 34-bit offset instead of 16-bit.
9017
9018 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9019
9020 PR target/77918
9021 * config/s390/vector.md (vcond_comparison_operator): New
9022 predicate.
9023 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9024
9025 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9026
9027 PR 87488
9028 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9029 -D.
9030 * configure.ac (--with-documentation-root-url): New option.
9031 * configure: Regenerate.
9032 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9033 option URL, add it as a new string field of the diagnostic option.
9034 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9035 (print_option_information): If get_option_url is non-NULL, call
9036 it, and if the result is non-NULL, potentially emit an escape
9037 sequence to markup the option text with the resulting URL.
9038 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9039 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9040 example of JSON output.
9041 * opts-diagnostic.h (get_option_url): New decl.
9042 * opts.c (get_option_url): New function.
9043 * toplev.c (general_init): Initialize the get_option_url callback.
9044
9045 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9046
9047 PR 87488
9048 * common.opt (fdiagnostics-urls=): New option.
9049 (diagnostic-url.h): Add SourceInclude.
9050 (diagnostic_url_rule): New enum.
9051 * diagnostic-color.c: Include "diagnostic-url.h".
9052 (diagnostic_urls_enabled_p): New function.
9053 * diagnostic-url.h: New file.
9054 * diagnostic.c: Include "diagnostic-url.h".
9055 (diagnostic_urls_init): New function.
9056 * diagnostic.h (diagnostic_urls_init): New decl.
9057 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9058 -fdiagnostics-urls to the list.
9059 (-fdiagnostics-urls): New option.
9060 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9061 (driver::global_initializations): Call diagnostic_urls_init.
9062 * opts-global.c (init_options_once): Likewise.
9063 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9064 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9065 show_urls.
9066 (pp_begin_url): New function.
9067 (pp_end_url): New function.
9068 (selftest::test_urls): New selftest.
9069 (selftest::pretty_print_c_tests): Call it.
9070 * pretty-print.h (pretty_printer::show_urls): New field.
9071 (pp_begin_url): New decl.
9072 (pp_end_url): New decl.
9073
9074 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9075
9076 PR target/92022
9077 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9078
9079 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9080
9081 PR target/88630
9082 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9083 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9084 also for TARGET_FPU_SH4_300.
9085 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9086 TARGET_SH4_300.
9087 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9088 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9089 (*negsf2_i): Split into ...
9090 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9091 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9092 (**abssf2_i): Split into ...
9093 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9094 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9095 (*negdf2_i): Split into ...
9096 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9097 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9098 (**abssf2_i): Split into ...
9099 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9100
9101 2019-10-10 Richard Biener <rguenther@suse.de>
9102
9103 PR middle-end/92046
9104 * opts.c (finish_options): Do not influence global --params
9105 from options that are adjustable per function.
9106 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9107 Apply --param adjustment based on active cost-model.
9108 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9109 further store-sinking when vectorization or if-conversion
9110 are not enabled.
9111
9112 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9113
9114 PR middle-end/92037
9115 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9116 rather than ggc_alloc_cleared to alloc symbol table.
9117 * toplev.c (general_init): Likewise.
9118 * cgraph.h (symbol_table): Explicitly construct every field.
9119
9120 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9121
9122 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9123 (PF_Z15): ... this.
9124 * config.gcc: Add z15 as option for --with-arch and --with-tune
9125 configure switches.
9126 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9127 error reporting for unsupported builtins.
9128 * config/s390/s390-opts.h (enum processor_type): Rename
9129 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9130 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9131 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9132 Likewise.
9133 * config/s390/s390-builtins.def: Likewise.
9134 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9135 (s390_expand_builtin): Add missing check for unsupported builtins.
9136 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9137 (s390_rtx_costs): Likewise.
9138 (s390_get_sched_attrmask): Rename arch13 to z15.
9139 (s390_get_unit_mask): Likewise.
9140 (s390_is_fpd): Likewise.
9141 (s390_is_fxd): Likewise.
9142 * config/s390/s390.h (enum processor_flags): Likewise.
9143 * config/s390/s390.md: Likewise.
9144 * config/s390/vector.md: Likewise.
9145 * config/s390/vx-builtins.md: Likewise.
9146 * config/s390/s390.opt: Add z15 to processor_type value.
9147
9148 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9149
9150 PR target/91035
9151 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9152 prototype.
9153 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9154 ("split_stack_data", "split_stack_call")
9155 ("split_stack_call_<mode>", "split_stack_cond_call")
9156 ("split_stack_cond_call_<mode>"): Remove.
9157 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9158 insn definition.
9159 * config/s390/s390.c (s390_output_split_stack_data): New function.
9160 (s390_expand_split_stack_prologue): Use the merged expander.
9161
9162 2019-10-09 Martin Sebor <msebor@redhat.com>
9163
9164 PR tree-optimization/90879
9165 * builtins.c (check_access): Avoid using maxbound when null.
9166 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9167 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9168 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9169 conditional.
9170 (get_range_strlen): Overwrite initial maxbound when non-null.
9171 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9172 changes.
9173 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9174 (used_only_for_zero_equality): New function.
9175 (handle_builtin_memcmp): Call it.
9176 (determine_min_objsize): Return an integer instead of tree.
9177 (get_len_or_size, strxcmp_eqz_result): New functions.
9178 (maybe_warn_pointless_strcmp): New function.
9179 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9180 between a longer string and a smaller array.
9181 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9182
9183 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9184
9185 * config/darwin.c (darwin_override_options): Make the check for
9186 Objective-C ABI version more specific for 64bit code.
9187
9188 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9189
9190 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9191 indicate that the new symbol is an indirection.
9192 (machopic_indirect_call_target): Likewise.
9193 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9194 (MACHO_SYMBOL_INDIRECTION_P): New.
9195 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9196
9197 2019-10-08 Jason Merrill <jason@redhat.com>
9198
9199 * doc/invoke.texi: Document -fconcepts-ts.
9200
9201 2019-10-09 Richard Biener <rguenther@suse.de>
9202
9203 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9204 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9205
9206 2019-10-08 Richard Biener <rguenther@suse.de>
9207
9208 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9209 (_stmt_vec_info::force_single_cycle): Likewise.
9210 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9211 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9212 * tree-vect-loop.c (vectorizable_reduction): Set
9213 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9214 (vect_transform_reduction): Use them to remove redundant code.
9215 (vect_transform_cycle_phi): Likewise.
9216
9217 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9218
9219 PR tree-optimization/90836
9220 * match.pd (popcount): New pattern.
9221
9222 2019-10-08 Martin Sebor <msebor@redhat.com>
9223
9224 PR middle-end/92026
9225 PR middle-end/92014
9226 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9227 again once nbytes has been set. Set the access size when not yet set.
9228
9229 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9230
9231 * config/darwin.c (machopic_select_section): Remove dead code for
9232 old Objective-C section selection method, replace with unreachable.
9233
9234 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9235
9236 * config/darwin.c (machopic_indirect_data_reference): Check for
9237 required indirections before making direct access to defined
9238 values.
9239 (machopic_output_indirection): Place the indirected pointes for
9240 required indirections into the non-lazy symbol pointers section.
9241 (darwin_encode_section_info):
9242 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9243 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9244
9245 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9246
9247 PR target/91994
9248 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9249 instead of ALL_SSE_REG to check if function call preserves some
9250 256-bit SSE registers.
9251
9252 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9253
9254 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9255 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9256 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9257
9258 2019-10-08 Richard Biener <rguenther@suse.de>
9259
9260 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9261 (_stmt_vec_info::is_reduc_info): Add.
9262 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9263 (vectorizable_condition): Remove.
9264 (vectorizable_shift): Likewise.
9265 (vectorizable_reduction): Adjust.
9266 (info_for_reduction): New.
9267 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9268 (vect_analyze_scalar_cycles_1): ... here.
9269 (vect_analyze_loop_operations): Adjust.
9270 (needs_fold_left_reduction_p): Simplify for single caller.
9271 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9272 for nested cycles not part of double reductions.
9273 (vect_model_reduction_cost): Pass in the reduction type.
9274 (info_for_reduction): New function.
9275 (vect_create_epilog_for_reduction): Use it, access reduction
9276 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9277 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9278 (vectorize_fold_left_reduction): Remove pointless assert.
9279 (vectorizable_reduction): Analyze the full reduction when
9280 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9281 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9282 stmt code-generation to vectorizable_* in most cases. Verify
9283 code-generation only for cases handled by
9284 vect_transform_reductuon.
9285 (vect_transform_reduction): Use info_for_reduction to get at
9286 reduction meta. Simplify.
9287 (vect_transform_cycle_phi): Likewise.
9288 (vectorizable_live_operation): Likewise.
9289 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9290 at the PHI node for STMT_VINFO_REDUC_TYPE.
9291 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9292 longer necessary code.
9293 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9294 (vectorizable_condition): Likewise. Get at reduction related
9295 info via info_for_reduction.
9296 (vect_analyze_stmt): Adjust.
9297 (vect_transform_stmt): Likewise.
9298 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9299 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9300
9301 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9302
9303 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9304 -fno-fp-int-builtin-inexact default for C2X.
9305
9306 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9307 Richard Biener <rguenther@suse.de>
9308
9309 PR tree-optimization/91532
9310 * tree-if-conv.c: Include tree-ssa-dse.h.
9311 (ifcvt_local_dce): Change param from bb to loop,
9312 and call dse_classify_store.
9313 (tree_if_conversion): Pass loop instead of loop->header as arg
9314 to ifcvt_local_dce.
9315 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9316 (delete_dead_or_redundant_assignment): Remove static qualifier from
9317 declaration, and add prototype in tree-ssa-dse.h.
9318 (dse_store_status): Move to tree-ssa-dse.h.
9319 (dse_classify_store): Remove static qualifier and add new tree param
9320 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9321 * tree-ssa-dse.h: New header.
9322
9323 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9324
9325 * config/darwin.c (machopic_output_indirection): Don't put
9326 hidden symbol indirections into the .data section, use the
9327 non-lazy symbol pointers section as normal.
9328 (darwin_encode_section_info): Record if a symbol is hidden.
9329 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9330 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9331
9332 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9333
9334 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9335 predicates instead of accessing bits directly.
9336 (machopic_indirect_call_target): Likewise.
9337 (machopic_output_indirection): Likewise.
9338 (darwin_encode_section_info): Improve description. Use renamed
9339 symbol flags. Use predicate macros for variables and functions.
9340 * config/darwin.h:
9341 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9342 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9343 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9344 (MACHO_SYMBOL_VARIABLE_P): New.
9345 (MACHO_SYMBOL_DEFINED_P):New.
9346 (MACHO_SYMBOL_STATIC_P): New.
9347 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9348 (SYMBOL_FLAG_SUBT_DEP): New.
9349 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9350
9351 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9352
9353 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9354 (msp430_expand_epilogue): Likewise.
9355 * config/msp430/predicates.md: Likewise.
9356 * config/msp430/msp430.md: Likewise.
9357 Replace blocks of 8 spaces with tabs.
9358
9359 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9360
9361 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9362 * config/msp430/msp430.c (msp430_split_addsi): New.
9363 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9364 a block of C code for splitting addsi.
9365
9366 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9367
9368 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9369 ix86_expand_rounddf_32): Reorder functions.
9370 * config/i386/i386-protos.h: Update.
9371
9372 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9373
9374 * config.in: Regenerate.
9375 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9376 Add new "Yx" constraint.
9377 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9378 function.
9379 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9380 prototype.
9381 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9382 code/data region to be selected in the small memory model.
9383 (msp430_section_attr): Don't warn if the "section" and "lower"
9384 attributes are used together.
9385 (msp430_handle_generic_attribute): Likewise.
9386 (msp430_var_in_low_mem): New function.
9387 (TARGET_ENCODE_SECTION_INFO): Define.
9388 (msp430_encode_section_info): New function.
9389 (gen_prefix): Return early in the small memory model.
9390 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9391 ".lower" prefix if -m{code,data}-region=lower have been passed.
9392 (msp430_output_aligned_decl_common): Emit common symbols when
9393 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9394 set.
9395 (TARGET_ASM_FILE_END): Define.
9396 (msp430_file_end): New function.
9397 (msp430_do_not_relax_short_jumps): Allow relaxation when
9398 function will be in the lower region.
9399 (msp430_op_not_in_high_mem): New function.
9400 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9401 the 'X' operand selector.
9402 Clarify comment for 'x' operand selector.
9403 * config/msp430/msp430.h (LINK_SPEC): Propagate
9404 -m{code,data}-region to the linker via spec function
9405 msp430_propagate_region_opt.
9406 (msp430_propagate_region_opt): New prototype.
9407 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9408 (SYMBOL_FLAG_LOW_MEM): Define.
9409 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9410 selector.
9411 (zero_extendqihi2): Fix operand number used by "%X" selector.
9412 (zero_extendqisi2): Likewise.
9413 (zero_extendhisi2): Likewise.
9414 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9415 (movhi): Likewise.
9416 (addqi3): Likewise.
9417 (addhi3): Likewise.
9418 (addsi3): Likewise.
9419 (addhi3_cy): Likewise.
9420 (addchi4_cy): Likewise.
9421 (subqi3): Likewise.
9422 (subhi3): Likewise.
9423 (subsi3): Likewise.
9424 (bic<mode>3): Likewise.
9425 (and<mode>3): Likewise.
9426 (ior<mode>3): Likewise.
9427 (xor<mode>3): Likewise.
9428 (slli_1): Add missing "%X" operand selector.
9429 (slll_1): Likewise.
9430 (slll_2): Likewise.
9431 (srai_1): Likewise.
9432 (sral_1): Likewise.
9433 (sral_2): Likewise.
9434 (srli_1): Likewise.
9435 (srll_1): Likewise.
9436 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9437 selector.
9438 (cbranchhi4_real): Likewise.
9439 (cbranchqi4_reversed): Likewise.
9440 (cbranchhi4_reversed): Likewise.
9441 (*bitbranch<mode>4): Likewise.
9442 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9443 * config/msp430/msp430.opt (mcode-region=): Set default to
9444 MSP430_REGION_LOWER. Improve docstring.
9445 (mdata-region=): Likewise.
9446 (muse-lower-region-prefix): New option.
9447 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9448 mdata-region=none multilib.
9449 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9450 mdata-region=none multilib.
9451 MULTILIB_EXCEPTIONS: Remove.
9452 MULTILIB_REQUIRED: Define.
9453 * configure: Regenerate.
9454 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9455 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9456 * doc/extend.texi: Clarify comment for {upper,lower,either}
9457 function attributes.
9458 Add separate description for "lower" variable attribute.
9459
9460 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9461
9462 PR target/77918
9463 * optabs-tree.c (vcond_icode_p): New function.
9464 (vcond_eq_icode_p): Likewise.
9465 (expand_vec_cond_expr_p): Use vcond_icode_p and
9466 vcond_eq_icode_p.
9467 * optabs.c (can_vcond_compare_p): New function.
9468 * optabs.h (can_vcond_compare_p): Likewise.
9469
9470 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9471
9472 PR target/77918
9473 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9474 caller passes a non-trapping condition.
9475 (is_gimple_condexpr): Allow trapping conditions.
9476 (is_gimple_condexpr_1): New helper function.
9477 (is_gimple_condexpr_for_cond): New function, acts like old
9478 is_gimple_condexpr.
9479 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9480 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9481 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9482 * gimplify.c (gimplify_cond_expr): Use
9483 is_gimple_condexpr_for_cond.
9484 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9485 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9486 VEC_COND_EXPR.
9487 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9488 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9489 is_gimple_condexpr_for_cond, remove pointless tmp check
9490 (forward_propagate_into_cond): Remove pointless tmp check.
9491
9492 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9493
9494 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9495 match that of other gsi_next_* functions. Adjust the comment.
9496 (gsi_start_nonvirtual_phis): New function.
9497 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9498 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9499
9500 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9501
9502 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9503 setjmp situation here. Fix a verb's ending: "the exact variables or
9504 elements for which there are warnings depends" -> "... depend".
9505
9506 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9507
9508 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9509
9510 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9511
9512 * ipa-prop.c (ipa_vr::nonzero_p): New.
9513 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9514 non-zero range.
9515 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9516 * tree-vrp.c (range_has_numeric_bounds_p): New.
9517 (range_int_cst_p): Use range_has_numeric_bounds_p.
9518 (get_range_op_handler): New.
9519 (supported_types_p): New.
9520 (defined_ranges_p): New.
9521 (drop_undefines_to_varying): New.
9522 (range_fold_binary_symbolics_p): New.
9523 (range_fold_unary_symbolics_p): New.
9524 (range_fold_unary_expr): Extract out into above functions.
9525 (range_fold_binary_expr): Same.
9526 (value_range_base::normalize_addresses): New.
9527 (value_range_base::normalize_symbolics): Normalize addresses.
9528 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9529
9530 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9531
9532 * tree-vrp.c (value_range_base::singleton_p): Use
9533 value_range_base::num_pairs instead of vrp_val_is* to check
9534 if a range has one sub-range.
9535
9536 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9537
9538 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9539 DEF is not a true earlyclobber but is tied to a specific input
9540 operand, and so is effectively earlyclobber wrt inputs that have
9541 different values.
9542 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9543
9544 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9545
9546 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9547 (pod_mode): Mark operators likewise.
9548 (scalar_int_mode): Mark non-default constructors and
9549 operators with CONSTEXPR.
9550 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9551 (fixed_size_mode): Likewise.
9552
9553 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9554
9555 PR target/91994
9556 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9557 and wrap the unspec_volatile in a parallel.
9558 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9559 the unspec_volatile.
9560 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9561 unspec_volatile to be wrapped in a parallel.
9562 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9563 (ix86_add_reg_usage_to_vzerouppers): New functions.
9564 (rest_of_handle_insert_vzeroupper): Use them to add register
9565 usage information to the vzeroupper instructions.
9566
9567 2019-10-07 Richard Biener <rguenther@suse.de>
9568
9569 PR tree-optimization/91975
9570 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9571 handle invariants.
9572
9573 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9574
9575 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9576 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9577
9578 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9579
9580 * config/darwin.c (darwin_override_options): Adjust objective-c
9581 ABI version error messages to avoid punctuation and contracted
9582 negations.
9583
9584 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9585
9586 * ipa-inline.c: Fix type; compute size rather than self_size
9587 for size of caller function.
9588
9589 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9590
9591 PR target/59888
9592 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9593 choose const_data section for constants with relocations.
9594 (machopic_select_section): Pass relocation flag to
9595 darwin_rodata_section ().
9596
9597 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9598
9599 PR tree-optimization/91734
9600 * generic-match-head.c: Include fold-const-call.h.
9601 * match.pd (sqrt(x) cmp c): Check the boundary value and
9602 in case inexact computation of c*c affects comparison of the boundary,
9603 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9604 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9605 for -frounding-math. For c2, try the next smaller or larger floating
9606 point constant depending on comparison code and if it has the same
9607 sqrt as c2, use it instead of c2.
9608
9609 2019-10-04 Martin Sebor <msebor@redhat.com>
9610
9611 PR middle-end/91977
9612 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9613 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9614 uninitialized objects.
9615
9616 2019-10-04 Martin Sebor <msebor@redhat.com>
9617
9618 * builtins.c (compute_objsize): Add an argument.
9619 * tree-object-size.c (addr_object_size): Same.
9620 (compute_builtin_object_size): Same.
9621 * tree-object-size.h (compute_builtin_object): Same.
9622
9623 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9624
9625 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9626
9627 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9628
9629 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9630
9631 2019-10-04 Martin Jambor <mjambor@suse.cz>
9632
9633 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9634 fntype when switching to calling memcpy instead of memset.
9635
9636 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9637
9638 * hash-table.h (hash_table::empty_slow): Don't assign
9639 size_t values to int variables.
9640
9641 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9642
9643 * expr.c (convert_mode_scalar): Remove shadowing local var.
9644 (emit_block_move): Rename local vars.
9645 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9646 (emit_push_insn): Rename local vars.
9647 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9648 shadowing local vars.
9649 (store_constructor): Remove shadowing local vars. Rename local var.
9650 (store_field, expand_cond_expr_using_cmove,
9651 expand_expr_real_2): Remove shadowing local vars.
9652 (expand_expr_real_1,
9653 do_store_flag): Remove shadowing local vars. Rename local vars.
9654
9655 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9656
9657 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9658
9659 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9660
9661 * genmatch.c (commutate): Rename local var.
9662 (lower_cond): Reuse local var.
9663 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9664 dt_operand::gen, dt_operand::gen_gimple_expr,
9665 dt_simplify::gen): Add a param. Rename generated vars.
9666 (decision_tree::insert_operand,
9667 (capture_info::walk_match, capture_info::walk_result,
9668 capture_info::walk_c_expr): Rename local vars.
9669 (expr::gen_transform): Rename generated vars.
9670 Use snprintf. Rename local vars.
9671 (capture::gen_transform, dt_operand::get_name,
9672 dt_operand::gen_opname): Rename generated vars.
9673 (write_predicate): Adjust call to gen_kids.
9674 (parser::get_internal_capture_id): Rename generated vars.
9675 (parser::parse_expr): Rename local vars.
9676 (parser::parse_if): Remove local var.
9677 (parser::parse_pattern, add_operator): Rename local vars.
9678
9679 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9680
9681 * builtins.def (DEF_C2X_BUILTIN): New macro.
9682 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9683 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9684 (strndup): Use DEF_C2X_BUILTIN.
9685 * coretypes.h (enum function_class): Add function_c2x_misc.
9686
9687 2019-10-04 Maya Rashish <coypu@sdf.org>
9688
9689 * ira-color.c (update_costs_from_allocno): Call
9690 ira_init_register_move_cost_if_necessary.
9691
9692 2019-10-04 Jeff Law <law@redhat.com>
9693
9694 * config/h8300/h8300.md (cpymemsi): Disable.
9695 (movmd, movmd_internal_<mode>, movstr, movsd):
9696 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9697 (movmd splitter, movsd splitter): Likewise.
9698
9699 * range-op.cc (range_tests): Avoid two tests when ints and
9700 shorts are the same size.
9701
9702 2019-10-04 Richard Biener <rguenther@suse.de>
9703
9704 PR lto/91968
9705 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9706 BLOCK_VARS.
9707
9708 2019-10-04 Richard Biener <rguenther@suse.de>
9709
9710 PR tree-optimization/91982
9711 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9712 against EXTRACT_LAST_REDUCTION.
9713 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9714
9715 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9716
9717 * range-op.o (value_range_from_overflowed_bounds): Rename from
9718 adjust_overflow_bound.
9719 (value_range_with_overflow): Rename from
9720 create_range_with_overflow.
9721 (create_possibly_reversed_range): Adjusted for above renames.
9722 (operator_*::wi_fold): Same.
9723 (cross_product_operator::wi_cross_productor): Same.
9724
9725 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9726
9727 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9728 -Wshadow=compatible-local): Fix description.
9729 Add an example where -Wshadow=compatible-local does not
9730 warn.
9731
9732 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9733
9734 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9735
9736 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9737 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9738
9739 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9740
9741 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9742 can_move_by_pieces issue.
9743
9744 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9745
9746 PR target/87243
9747 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9748 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9749 is available and the user has not set one on the command line.
9750
9751 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9752
9753 PR target/91769
9754 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9755 instead of REGNO equality check on addr.reg.
9756
9757 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9758
9759 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9760 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9761 * doc/invoke.texi (inline-heuristics-hint-percent,
9762 inline-heuristics-hint-percent-O2): Document.
9763 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9764 hint attribute.
9765 (can_inline_edge_by_limits_p): Use it.
9766
9767 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9768
9769 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9770 to print CONST_DOUBLEs.
9771
9772 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9773
9774 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9775 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9776 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9777
9778 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9779
9780 * Makefile.in (OBJS): Add range.o and range-op.o.
9781 Remove wide-int-range.o.
9782 * function-tests.c (test_ranges): New.
9783 (function_tests_c_tests): Call test_ranges.
9784 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9785 range_fold_unary_expr instead of extract_range_from_unary_expr.
9786 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9787 * range-op.cc: New file.
9788 * range-op.h: New file.
9789 * range.cc: New file.
9790 * range.h: New file.
9791 * selftest.h (range_tests): New prototype.
9792 * ssa.h: Include range.h.
9793 * tree-vrp.c (value_range_base::value_range_base): New
9794 constructors.
9795 (value_range_base::singleton_p): Do not call
9796 ranges_from_anti_range until sure we will need to.
9797 (value_range_base::type): Rename gcc_assert to
9798 gcc_checking_assert.
9799 (vrp_val_is_max): New argument.
9800 (vrp_val_is_min): Same.
9801 (wide_int_range_set_zero_nonzero_bits): Move from
9802 wide-int-range.cc.
9803 (extract_range_into_wide_ints): Remove.
9804 (extract_range_from_multiplicative_op): Remove.
9805 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9806 from extract_range_from_binary_expr.
9807 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9808 from extract_range_from_binary_expr.
9809 (extract_range_from_binary_expr): Remove.
9810 (normalize_for_range_ops): New.
9811 (range_fold_binary_expr): New.
9812 (range_fold_unary_expr): New.
9813 (value_range_base::num_pairs): New.
9814 (value_range_base::lower_bound): New.
9815 (value_range_base::upper_bound): New.
9816 (value_range_base::upper_bound): New.
9817 (value_range_base::contains_p): New.
9818 (value_range_base::invert): New.
9819 (value_range_base::union_): New.
9820 (value_range_base::intersect): New.
9821 (range_compatible_p): New.
9822 (value_range_base::operator==): New.
9823 (determine_value_range_1): Call range_fold_*expr instead of
9824 extract_range_from_*expr.
9825 * tree-vrp.h (class value_range_base): Add new constructors.
9826 Add methods for union_, intersect, operator==, contains_p,
9827 num_pairs, lower_bound, upper_bound, invert.
9828 (vrp_val_is_min): Add handle_pointers argument.
9829 (vrp_val_is_max): Same.
9830 (extract_range_from_unary_expr): Remove.
9831 (extract_range_from_binary_expr): Remove.
9832 (range_fold_unary_expr): New.
9833 (range_fold_binary_expr): New.
9834 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9835 range_fold_binary_expr instead of extract_range_from_binary_expr.
9836 (vr_values::extract_range_basic): Same.
9837 (vr_values::extract_range_from_unary_expr): Call
9838 range_fold_unary_expr instead of extract_range_from_unary_expr.
9839 * wide-int-range.cc: Remove.
9840 * wide-int-range.h: Remove.
9841
9842 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9843
9844 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9845 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9846 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9847 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9848 macro.
9849
9850 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9851
9852 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9853 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9854 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9855 * glimits.h: Likewise.
9856
9857 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9858
9859 PR rtl-optimization/91976
9860 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9861 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9862 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9863
9864 2019-10-02 Martin Sebor <msebor@redhat.com>
9865
9866 PR tree-optimization/80936
9867 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9868
9869 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9870
9871 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9872 instead of reg_class_contents[ALL_REGS].
9873
9874 2019-09-30 Jason Merrill <jason@redhat.com>
9875
9876 Add some hash_map_safe_* functions like vec_safe_*.
9877 * hash-map.h (default_hash_map_size): New variable.
9878 (create_ggc): Use it as default argument.
9879 (hash_map_maybe_create, hash_map_safe_get)
9880 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9881
9882 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9883
9884 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9885 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9886 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9887 (can_inline_edge_by_limits_p): Use it.
9888 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9889 (want_inline_small_function_p): Use O2 bounds.
9890 (edge_badness): LIkewise.
9891 * opts.c (default_options): Add OPT_finline_functions.
9892 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9893 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9894 New parameters.
9895 * doc/invoke.texi (-finline-functions): Update documentation.
9896 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9897 inline-min-speedup-O2): Document.
9898 (early-inlining-insns-O2): Simplify docs.
9899
9900 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9901
9902 PR rtl-optimization/87047
9903 * ifcvt.c (average_cost): New static function. Use it...
9904 (noce_process_if_block): ... here.
9905
9906 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9907
9908 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9909 * config/rs6000/rs6000-string.c (expand_block_move): Add
9910 might_overlap parm.
9911 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9912 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9913
9914 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9915
9916 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9917 (expand_builtin_memcpy): Use might_overlap parm.
9918 (expand_builtin_mempcpy_args): Use might_overlap parm.
9919 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9920 (expand_builtin_memory_copy_args): Add might_overlap parm.
9921 * expr.c (emit_block_move_via_cpymem): Rename to
9922 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9923 or movmem optab as appropriate.
9924 (emit_block_move_hints): Add might_overlap parm, do the right
9925 thing for might_overlap==true.
9926 * expr.h (emit_block_move_hints): Update prototype.
9927
9928 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9929
9930 * tree-eh.h (unsplit_eh_edges): Declare.
9931 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9932 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9933 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9934 (struct store_immediate_info): Add lp_nr field.
9935 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9936 initialize lp_nr with it.
9937 (struct merged_store_group): Add lp_nr and only_constants fields.
9938 (merged_store_group::merged_store_group): Initialize them.
9939 (merged_store_group::can_be_merged_into): Deal with them.
9940 (pass_store_merging): Rename terminate_and_release_chain into
9941 terminate_and_process_chain.
9942 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9943 renaming and remove useless assertions.
9944 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9945 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9946 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9947 instead of always recomputing it and compare lp_nr.
9948 (imm_store_chain_info::output_merged_store): If the group is in an
9949 active EH region, register new stores if they can throw. Moreover,
9950 if the insertion has created new basic blocks, adjust the PHI nodes
9951 of the post landing pad.
9952 (imm_store_chain_info::output_merged_stores): If the original stores
9953 are in an active EH region, deregister them.
9954 (lhs_valid_for_store_merging_p): Prettify.
9955 (adjust_bit_pos): New function extracted from...
9956 (mem_valid_for_store_merging): ...here. Use it for the base address
9957 and also for the offset if it is the addition of a constant.
9958 (lp_nr_for_store): New function.
9959 (pass_store_merging::process_store): Change return type to bool.
9960 Call lp_nr_for_store to initialize the store info. Propagate the
9961 return status of various called functions to the return value.
9962 (store_valid_for_store_merging_p): New predicate.
9963 (enum basic_block_status): New enumeration.
9964 (get_status_for_store_merging): New function.
9965 (pass_store_merging::execute): If the function can throw and catch
9966 non-call exceptions, unsplit the EH edges on entry and clean up the
9967 CFG on exit if something changed. Call get_status_for_store_merging
9968 for every basic block and keep the chains open across basic blocks
9969 when possible. Terminate and process open chains at the end, if any.
9970
9971 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9972
9973 * reginfo.c (globalize_reg): Fix shadowed variable in
9974 function_abis walk.
9975
9976 2019-10-02 Martin Jambor <mjambor@suse.cz>
9977
9978 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9979 do not compute some stuff when set.
9980 (cgraph_node::create_edge): Likewise.
9981 (cgraph_node::create_indirect_edge): Renamed last parameter to
9982 coning_p and flipped its meaning, don't even calculate
9983 inline_failed when set.
9984 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9985 (symbol_table::::create_edge): Likewise.
9986 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9987 the default value.
9988 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9989 call graph edge creating functions.
9990
9991 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9992
9993 PR c++/91222
9994 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9995 namespace types.
9996
9997 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9998
9999 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10000
10001 2019-10-02 Richard Biener <rguenther@suse.de>
10002
10003 * tree-vectorizer.h (vect_transform_reduction): Declare.
10004 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10005 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10006 stmt transform to ...
10007 (vect_transform_reduction): ... this.
10008
10009 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10010
10011 * omp-low.c (lower_omp_target): Dereference optional argument
10012 to work with the right pointer.
10013
10014 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10015
10016 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10017 false.
10018 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10019 * langhooks.h (omp_is_optional_argument): New hook.
10020 * omp-general.c (omp_is_optional_argument): New.
10021 * omp-general.h (omp_is_optional_argument): New declaration.
10022 * omp-low.c (lower_omp_target): Create temporary for received value
10023 and take the address for new_var if the original variable was a
10024 DECL_BY_REFERENCE. Use size of referenced object when a
10025 pass-by-reference optional argument used as argument to firstprivate.
10026
10027 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10028
10029 PR tree-optimization/91940
10030 * tree-vect-patterns.c: Include tree-vector-builder.h and
10031 vec-perm-indices.h.
10032 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10033 unpromoting the argument back to uint16_t, or by converting into a
10034 rotate, or into shifts plus ior.
10035
10036 2019-10-02 Richard Biener <rguenther@suse.de>
10037
10038 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10039 New.
10040 (vect_transform_cycle_phi): Declare.
10041 * tree-vect-stmts.c (vect_transform_stmt): Call
10042 vect_transform_cycle_phi.
10043 * tree-vect-loop.c (vectorizable_reduction): Split out
10044 PHI transformation stage to ...
10045 (vect_transform_cycle_phi): ... here.
10046
10047 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10048
10049 PR middle-end/91957
10050 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10051 eliminable registers.
10052 (make_hard_regno_live): Likewise, and don't make them live.
10053
10054 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10055
10056 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10057 Call pp_emit_prefix.
10058 (layout::print_source_line): Likewise.
10059 (layout::start_annotation_line): Likewise.
10060 (diagnostic_show_locus): Remove call to temporarily clear the
10061 prefix.
10062 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10063 interaction of pp_set_prefix with rulers and fix-it hints.
10064 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10065 prefix when calling diagnostic_show_locus, rather than destroying
10066 it afterwards.
10067 (print_parseable_fixits): Temporarily clear prefix.
10068 * pretty-print.c (pp_format): Save and restore line_length, rather
10069 than assuming it is zero.
10070 (pp_output_formatted_text): Remove assertion that line_length is
10071 zero.
10072
10073 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10074
10075 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10076 Rename to ...
10077 (nonoverlapping_refs_since_match_p): ... this; handle also
10078 ARRAY_REFs.
10079 (alias_stats): Update stats.
10080 (dump_alias_stats): Likewise.
10081 (cheap_array_ref_low_bound): New function.
10082 (aliasing_matching_component_refs_p): Add partial_overlap
10083 argument;
10084 pass it to nonoverlapping_refs_since_match_p.
10085 (aliasing_component_refs_walk): Update call of
10086 aliasing_matching_component_refs_p
10087 (nonoverlapping_array_refs_p): New function.
10088 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10089 indirect_refs_may_alias_p): Update calls of
10090 nonoverlapping_refs_since_match_p.
10091
10092 2019-10-01 Maya Rashish <coypu@sdf.org>
10093
10094 PR target/85401
10095 * ira-color.c (allocno_copy_cost_saving): Call
10096 ira_init_register_move_cost_if_necessary.
10097
10098 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10099
10100 * Makefile.in (gnat_install_lib): New variable.
10101 * configure.ac: Substitute it.
10102 * configure: Regenerate.
10103
10104 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10105
10106 PR lto/91222
10107 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10108 is matched with non-C++ type
10109
10110 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10111
10112 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10113 after local CSE.
10114
10115 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10116
10117 * doc/invoke.texi (early-inlining-insns-O2): Document.
10118 (early-inlining-insns): Update.
10119 * params.def (early-inlining-insns-O2): New bound.
10120 (early-inlining-insns): Update docs.
10121 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10122
10123 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10124
10125 PR target/88562
10126 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10127 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10128 a memory access insn.
10129
10130 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10131
10132 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10133 vpmsumd.
10134
10135 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10136
10137 PR target/77918
10138 * config/s390/s390.c (s390_expand_vec_compare): Use
10139 gen_vec_cmpordered and gen_vec_cmpunordered.
10140 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10141 vec_unordered): Delete.
10142 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10143 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10144 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10145 (vec_cmp<code>): Generic dispatcher.
10146
10147 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10148
10149 PR target/77918
10150 * config/s390/vector.md (V_HW): Add V1TI in order to make
10151 vcond$a$b generate vcondv1tiv1tf.
10152
10153 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10154
10155 PR rtl-optimization/91948
10156 * ira-build.c (ira_create_allocno): Initialize
10157 ALLOCNO_CROSSED_CALLS_ABIS.
10158 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10159 than regno to ira_need_caller_save_p.
10160
10161 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10162
10163 * config/i386/i386-options.c
10164 (ix86_recompute_optlev_based_flags): New, moved out of...
10165 (ix86_option_override_internal): ... this. Call it.
10166 (ix86_override_options_after_change): Call it here too.
10167
10168 PR debug/91507
10169 * dwarf2out.c (override_type_for_decl_p): New.
10170 (gen_variable_die): Use it.
10171
10172 2019-10-01 Richard Biener <rguenther@suse.de>
10173
10174 * tree-vect-loop.c (vectorizable_reduction): Move variables
10175 to where they are used.
10176
10177 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10178
10179 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10180 (build_def_use): Use PC instead of CC0 in a comment.
10181
10182 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10183
10184 * rtl.def (CLOBBER_HIGH): Delete.
10185 * doc/rtl.texi (clobber_high): Remove documentation.
10186 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10187 (reg_is_clobbered_by_clobber_high): Delete.
10188 (gen_hard_reg_clobber_high): Likewise.
10189 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10190 * cfgexpand.c (expand_gimple_stmt): Likewise.
10191 * combine-stack-adj.c (single_set_for_csa): Likewise.
10192 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10193 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10194 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10195 * cse.c (invalidate_reg): Remove clobber_high parameter.
10196 (invalidate): Update call accordingly.
10197 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10198 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10199 (count_reg_usage, insn_live_p): Likewise.
10200 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10201 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10202 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10203 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10204 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10205 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10206 (mark_nonreg_stores_2): Likewise.
10207 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10208 (df_get_call_refs): Likewise.
10209 * dwarf2out.c (mem_loc_descriptor): Likewise.
10210 * emit-rtl.c (verify_rtx_sharing): Likewise.
10211 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10212 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10213 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10214 * genemit.c (gen_exp, gen_insn): Likewise.
10215 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10216 * haifa-sched.c (haifa_classify_rtx): Likewise.
10217 * ira-build.c (create_insn_allocnos): Likewise.
10218 * ira-costs.c (scan_one_insn): Likewise.
10219 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10220 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10221 * jump.c (mark_jump_label_1): Likewise.
10222 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10223 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10224 handling.
10225 (mark_not_eliminable): Likewise.
10226 * lra-lives.c (process_bb_lives): Likewise.
10227 * lra.c (new_insn_reg): Remove clobber_high parameter.
10228 (collect_non_operand_hard_regs): Likewise. Update call to new
10229 insn_reg. Remove CLOBBER_HIGH handling.
10230 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10231 to collect_non_operand_hard_regs.
10232 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10233 Update call to new_insn_reg.
10234 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10235 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10236 (move2add_note_store): Likewise.
10237 * print-rtl.c (print_pattern): Likewise.
10238 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10239 (if_test_bypass_p): Likewise.
10240 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10241 * reginfo.c (reg_scan_mark_refs): Likewise.
10242 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10243 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10244 (forget_old_reloads_1): Likewise.
10245 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10246 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10247 (dbr_schedule): Likewise.
10248 * resource.c (update_live_status, mark_referenced_resources)
10249 (mark_set_resources): Likewise.
10250 * rtl.c (copy_rtx): Likewise.
10251 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10252 (note_pattern_stores): Likewise.
10253 (reg_is_clobbered_by_clobber_high): Delete.
10254 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10255 CLOBBER_HIGH handling.
10256
10257 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10258
10259 PR target/91452
10260 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10261 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10262 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10263 Handle ARM_PCS_TLSDESC.
10264 (aarch64_tlsdesc_abi_id): New function.
10265 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10266 rtx instead of a list of clobbers and clobber_highs.
10267 (tlsdesc_small_<mode>): Update accordingly.
10268
10269 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10270
10271 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10272 extra callee_abi argument.
10273 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10274 Insert a CALLEE_ABI unspec into the call pattern as the second
10275 element in the PARALLEL.
10276 (aarch64_simd_call_p): Delete.
10277 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10278 the new CALLEE_ABI element of the PARALLEL.
10279 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10280 from the function type, if given.
10281 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10282 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10283 when passed the function_arg_info end marker.
10284 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10285 final argument of gen_sibcall.
10286 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10287 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10288 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10289 pattern.
10290 (call_value): Likewise operand 3.
10291 (sibcall): Likewise operand 2. Place the unspec before rather than
10292 after the return.
10293 (sibcall_value): Likewise operand 3.
10294 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10295 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10296 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10297 constraint strings.
10298 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10299
10300 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10301
10302 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10303 choose_hard_reg_mode.
10304 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10305
10306 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10307
10308 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10309 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10310 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10311
10312 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10313
10314 * diagnostic-show-locus.c (line_label::line_label): Initialize
10315 m_has_vbar.
10316 (line_label::comparator): Reverse the sort order by m_state_idx,
10317 so that when the list is walked backwards the labels appear in
10318 order of insertion into the rich_location.
10319 (line_label::m_has_vbar): New field.
10320 (layout::print_any_labels): When dealing with multiple labels at
10321 the same line and column, only print vertical bars for the one
10322 with the highest label_line.
10323 (selftest::test_one_liner_labels): Update test for multiple labels
10324 to expect the labels to be in the order of insertion into the
10325 rich_location. Add a test for many such labels, where the column
10326 numbers are out-of-order relative to the insertion order.
10327
10328 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10329
10330 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10331 (ix86_frame::expensive_count): Likewise.
10332 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10333 of use_fast_prologue_epilogue robust against incidental changes
10334 in function size.
10335
10336 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10337
10338 PR target/77918
10339 * config/s390/vector.md (vec_unordered<mode>): Call
10340 gen_vec_ordered<mode>.
10341
10342 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10343
10344 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10345 New pattern for ASRD.
10346 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10347 * internal-fn.def (IFN_DIV_POW2): New internal function.
10348 * optabs.def (sdiv_pow2_optab): New optab.
10349 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10350 Modify pattern to support new operation.
10351 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10352 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10353 Document new target selector.
10354
10355 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10356
10357 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10358 to test whether we're compiling a vector PCS function and to test
10359 whether the function needs to save a particular register.
10360 Remove the vector PCS handling of df_set_regs_ever_live.
10361 (aarch64_components_for_bb): Use crtl->abi to test whether
10362 the function needs to save a particular register.
10363 (aarch64_process_components): Use crtl->abi to test whether
10364 we're compiling a vector PCS function.
10365 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10366 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10367
10368 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10369
10370 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10371 Delete.
10372 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10373 whether the block calls a function that clobbers more registers
10374 than the current function is allowed to.
10375 (aarch64_use_simple_return_insn_p): Delete.
10376 * config/aarch64/aarch64.md (simple_return): Remove condition.
10377
10378 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10379
10380 * function-abi.h (function_abi_aggregator): New class.
10381 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10382 function.
10383 * ira.c (update_equiv_regs_prescan): New function. Call
10384 set_paradoxical_subreg here rather than...
10385 (update_equiv_regs): ...here.
10386 (ira): Call update_equiv_regs_prescan.
10387
10388 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10389
10390 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10391 IN_TARGET_CODE.
10392 (call_used_or_fixed_regs): Likewise.
10393 (call_used_or_fixed_reg_p): Likewise.
10394 * reginfo.c (regs_invalidated_by_call): New macro.
10395
10396 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10397
10398 * shrink-wrap.c: Include function-abi.h.
10399 (requires_stack_frame_p): Use crtl->abi to test whether the
10400 current function can use a register without saving it first.
10401
10402 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10403
10404 * sel-sched-ir.h (_def::crosses_call): Replace with...
10405 (_def::crossed_call_abis): ..this new field.
10406 (def_list_add): Take a mask of ABIs instead of a crosses_call
10407 boolean.
10408 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10409 of _def accordingly.
10410 * sel-sched.c: Include function-abi.h.
10411 (hard_regs_data::regs_for_call_clobbered): Delete.
10412 (reg_rename::crosses_call): Replace with...
10413 (reg_rename::crossed_call_abis): ...this new field.
10414 (fur_static_params::crosses_call): Replace with...
10415 (fur_static_params::crossed_call_abis): ...this new field.
10416 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10417 (init_hard_regs_data): Use crtl->abi to test which registers the
10418 current function would need to save before it uses them.
10419 (mark_unavailable_hard_regs): Update handling of call-clobbered
10420 registers, using call_clobbers_in_region to find out which registers
10421 might be call-clobbered (but without taking -fipa-ra into account
10422 for now). Remove separate handling of partially call-clobbered
10423 registers.
10424 (verify_target_availability): Use crossed_call_abis instead of
10425 crosses_call.
10426 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10427 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10428
10429 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10430
10431 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10432 function to test whether a register is fully or partly clobbered.
10433
10434 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10435
10436 * rtlanal.c: Include function-abi.h.
10437 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10438 function and clobbers_reg_p to test whether the register
10439 is call-clobbered.
10440 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10441 to get the ABI of the called function and full_reg_clobbers to
10442 get the set of fully call-clobbered registers. Warn about the
10443 pitfalls of using this mode.
10444
10445 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10446
10447 * reload.c: Include function-abi.h.
10448 (find_equiv_reg): Use clobbers_reg_p to test whether either
10449 of the equivalent registers is clobbered by a call.
10450 * reload1.c: Include function-abi.h.
10451 (reg_reloaded_call_part_clobbered): Delete.
10452 (reload): Use crtl->abi to test which registers would need
10453 saving in the prologue before use.
10454 (find_reg): Likewise.
10455 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10456 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10457 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10458
10459 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10460
10461 * regrename.h (du_head::call_clobber_mask): New field.
10462 (du_head::need_caller_save_reg): Replace with...
10463 (du_head::call_abis): ...this new field.
10464 * regrename.c: Include function-abi.h.
10465 (call_clobbered_in_chain_p): New function.
10466 (check_new_reg_p): Use crtl->abi when deciding whether a register
10467 is free for use after RA. Use call_clobbered_in_chain_p to test
10468 whether a candidate register would be clobbered by a call.
10469 (find_rename_reg): Don't add call-clobber conflicts here.
10470 (rename_chains): Check call_abis instead of need_caller_save_reg.
10471 (merge_chains): Update for changes to du_head.
10472 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10473 target. Record the ABI identifier in call_abis and the set of
10474 fully or partially clobbered registers in call_clobber_mask.
10475 Add fully-clobbered registers to hard_conflicts here rather
10476 than in find_rename_reg.
10477 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10478 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10479 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10480 function-abi.h.
10481 * config/c6x/c6x.c: Likewise.
10482
10483 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10484
10485 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10486 mode of the register when deciding whether it is no longer
10487 available after a call.
10488
10489 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10490
10491 * recog.c: Include function-abi.h.
10492 (peep2_find_free_register): Use crtl->abi when deciding whether
10493 a register is free for use after RA.
10494
10495 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10496
10497 * postreload-gcse.c: Include regs.h and function-abi.h.
10498 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10499 call insn target. Conservatively assume that partially-clobbered
10500 registers are altered.
10501
10502 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10503
10504 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10505 when deciding whether a register is free for use after RA.
10506 (reload_combine): Remove unnecessary use of fixed_reg_set.
10507 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10508 call insn target. Use reg_mode when testing whether a register
10509 is no longer available.
10510
10511 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10512
10513 * target.def (return_call_with_max_clobbers): Delete.
10514 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10515 * doc/tm.texi: Regenerate.
10516 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10517 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10518 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10519 (lra_reg::call_insn): Delete.
10520 * lra.c: Include function-abi.h.
10521 (initialize_lra_reg_info_element): Don't initialize the fields above.
10522 (lra): Use crtl->abi to test whether the current function needs to
10523 save a register in the prologue. Remove special pre-inheritance
10524 lra_create_live_ranges pass for flag_ipa_ra.
10525 * lra-assigns.c: Include function-abi.h
10526 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10527 function needs to save a register in the prologue.
10528 (lra_assign): Assert that registers aren't allocated to a
10529 conflicting register, rather than checking only for overlaps
10530 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10531 and for registers that are not live across a call.
10532 * lra-constraints.c (last_call_for_abi): New variable.
10533 (full_and_partial_call_clobbers): Likewise.
10534 (setup_next_usage_insn): Remove the register from
10535 full_and_partial_call_clobbers.
10536 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10537 whether the register needs a caller save.
10538 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10539 of call_used_or_fixed_regs.
10540 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10541 full_and_partial_call_clobbers.
10542 * lra-lives.c (check_pseudos_live_through_calls): Replace
10543 last_call_used_reg_set and call_insn arguments with an abi argument.
10544 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10545 as the set of conflicting registers.
10546 (calls_have_same_clobbers_p): Delete.
10547 (process_bb_lives): Track the ABI of the last call instead of an
10548 insn/HARD_REG_SET pair. Update calls to
10549 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10550 the set of registers that could be clobbered by an EH edge.
10551 Include partially-clobbered as well as fully-clobbered registers.
10552 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10553 * lra-remat.c: Include function-abi.h.
10554 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10555 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10556 registers and bitmap_view to combine them into dead_regs.
10557 (call_used_input_regno_present_p): Take a function_abi argument
10558 and use it to test whether a register is call-clobbered.
10559 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10560 call insn target. Update tje call to call_used_input_regno_present_p.
10561 (do_remat): Likewise.
10562 (lra_remat): Remove the initialization of call_used_regs_arr_len
10563 and call_used_regs_arr.
10564
10565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10566
10567 * loop-iv.c: Include regs.h and function-abi.h.
10568 (simplify_using_initial_values): Use insn_callee_abi to get the
10569 ABI of the call insn target. Conservatively assume that
10570 partially-clobbered registers are altered.
10571
10572 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10573
10574 * function-abi.h (call_clobbers_in_region): Declare.
10575 (call_clobbered_in_region_p): New function.
10576 * function-abi.cc (call_clobbers_in_region): Likewise.
10577 * ira-int.h: Include function-abi.h.
10578 (ira_allocno::crossed_calls_abis): New field.
10579 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10580 (ira_need_caller_save_regs): New function.
10581 (ira_need_caller_save_p): Likewise.
10582 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10583 of call_used_or_fixed_regs.
10584 (do_reload): Use crtl->abi to test whether the current function
10585 needs to save a register in the prologue. Count registers that
10586 need to be saved rather than registers that don't.
10587 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10588 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10589 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10590 (propagate_some_info_from_allocno): Likewise.
10591 (copy_info_to_removed_store_destinations): Likewise.
10592 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10593 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10594 (ira_build): Use ira_need_caller_save_regs instead of
10595 call_used_or_fixed_regs.
10596 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10597 whether the current function would need to save a register
10598 before using it.
10599 (calculate_spill_cost): Likewise.
10600 (allocno_reload_assign): Use ira_need_caller_save_regs and
10601 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10602 * ira-conflicts.c (ira_build_conflicts): Use
10603 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10604 as the set of call-clobbered registers. Remove the
10605 call_used_or_fixed_regs mask from the calculation of
10606 temp_hard_reg_set and mask its use instead. Remove special
10607 handling of partially-clobbered registers.
10608 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10609 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10610 calculate the set of conflicting registers for calls that
10611 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10612 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10613 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10614 Use eh_edge_abi to calculate the set of registers that could
10615 be clobbered by an EH edge. Include partially-clobbered as
10616 well as fully-clobbered registers.
10617
10618 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10619
10620 * haifa-sched.c: Include function-abi.h.
10621 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10622 the function would need to save a register before using it.
10623
10624 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10625
10626 * gcse.c: Include function-abi.h.
10627 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10628 the call insn target. Invalidate partially call-clobbered
10629 registers as well as fully call-clobbered ones.
10630
10631 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10632
10633 * function.c (aggregate_value_p): Work out which ABI the
10634 function is using before testing which registers are at least
10635 partly preserved by a call.
10636
10637 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10638
10639 * early-remat.c: Include regs.h and function-abi.h.
10640 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10641 registers here.
10642 (early_remat::restrict_remat_for_unavail_regs): New function.
10643 (early_remat::restrict_remat_for_call): Likewise.
10644 (early_remat::process_block): Before calling emit_remat_insns
10645 for a previous call in the block, invalidate any candidates
10646 that would clobber call-preserved registers.
10647 (early_remat::emit_remat_insns_for_block): Likewise for the
10648 final call in a block. Do the same thing for live-in registers
10649 when calling emit_remat_insns at the head of a block.
10650
10651 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10652
10653 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10654 whether the current function needs to save at least part of a
10655 register before using it.
10656 (df_get_exit_block_use_set): Likewise for epilogue restores.
10657
10658 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10659
10660 * df-problems.c: Include regs.h and function-abi.h.
10661 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10662 sparse_invalidated_by_eh and dense_invalidated_by_call to
10663 dense_invalidated_by_eh.
10664 (df_print_bb_index): Update accordingly.
10665 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10666 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10667 that are clobbered by an EH edge. Clobber partially-clobbered
10668 registers as well as fully-clobbered ones.
10669 (df_md_confluence_n): Likewise.
10670 (df_rd_local_compute): Likewise. Update for changes to
10671 df_rd_problem_data.
10672 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10673 of registers that are clobbered by an EH edge. Includde partially-
10674 clobbered registers as well as fully-clobbered ones.
10675
10676 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10677
10678 * cselib.c (cselib_process_insn): If we know what mode a
10679 register was set in, check whether it is clobbered in that
10680 mode by a call. Only fall back to reg_raw_mode if that fails.
10681
10682 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10683
10684 * cse.c: Include regs.h and function-abi.h.
10685 (invalidate_for_call): Take the call insn as an argument.
10686 Use insn_callee_abi to get the ABI of the call and invalidate
10687 partially clobbered registers as well as fully clobbered ones.
10688 (cse_insn): Update call accordingly.
10689
10690 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10691
10692 * combine.c: Include function-abi.h.
10693 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10694 of the target of call insns. Invalidate partially-clobbered
10695 registers as well as fully-clobbered ones.
10696
10697 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10698
10699 * cfgloopanal.c: Include regs.h and function-abi.h.
10700 (init_set_costs): Use default_function_abi to test whether
10701 a general register is call-clobbered.
10702
10703 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10704
10705 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10706 instead of the call-clobbered sets.
10707
10708 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10709
10710 * caller-save.c (setup_save_areas): Remove redundant |s of
10711 fixed_reg_set.
10712 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10713 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10714 value is useful.
10715
10716 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10717
10718 * rtl.h (predefined_function_abi): Declare.
10719 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10720 instead of a boolean call_save flag.
10721 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10722 accordingly.
10723 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10724 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10725 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10726 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10727 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10728 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10729 * reginfo.c (init_reg_modes_target): Likewise.
10730 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10731 instead of a boolean call_save flag.
10732 * targhooks.c: Include function-abi.h.
10733 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10734 using eh_edge_abi to choose the mode.
10735
10736 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10737
10738 * target.def (hard_regno_call_part_clobbered): Take an ABI
10739 identifier instead of an rtx_insn.
10740 * doc/tm.texi: Regenerate.
10741 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10742 (hook_bool_uint_uint_mode_false): New function.
10743 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10744 (hook_bool_uint_uint_mode_false): New function.
10745 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10746 Take an ABI identifier instead of an rtx_insn.
10747 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10748 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10749 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10750 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10751 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10752 Likewise.
10753 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10754 * cselib.c: Include function-abi.h.
10755 (cselib_process_insn): Update call to
10756 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10757 to get the appropriate ABI identifier.
10758 * function-abi.cc (predefined_function_abi::initialize): Update call
10759 to targetm.hard_regno_call_part_clobbered.
10760 * ira-conflicts.c (ira_build_conflicts): Likewise.
10761 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10762 * lra-constraints.c: Include function-abi.h.
10763 (need_for_call_save_p): Update call to
10764 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10765 to get the appropriate ABI identifier.
10766 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10767 * regcprop.c (copyprop_hardreg_forward_1): Update call
10768 to targetm.hard_regno_call_part_clobbered.
10769 * reginfo.c (choose_hard_reg_mode): Likewise.
10770 * regrename.c (check_new_reg_p): Likewise.
10771 * reload.c (find_equiv_reg): Likewise.
10772 * reload1.c (emit_reload_insns): Likewise.
10773 * sched-deps.c: Include function-abi.h.
10774 (deps_analyze_insn): Update call to
10775 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10776 to get the appropriate ABI identifier.
10777 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10778 call to targetm.hard_regno_call_part_clobbered.
10779 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10780
10781 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10782
10783 * config/i386/i386.c: Include function-abi.h.
10784 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10785 if they preserve some 256-bit or 512-bit SSE registers.
10786
10787 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10788
10789 * target.def (insn_callee_abi): New hook.
10790 (remove_extra_call_preserved_regs): Delete.
10791 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10792 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10793 * doc/tm.texi: Regenerate.
10794 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10795 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10796 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10797 insn argument.
10798 (aarch64_remove_extra_call_preserved_regs): Delete.
10799 (aarch64_insn_callee_abi): New function.
10800 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10801 (TARGET_INSN_CALLEE_ABI): New macro.
10802 * rtl.h (get_call_fndecl): Declare.
10803 (cgraph_rtl_info): Fix formatting. Tweak comment for
10804 function_used_regs. Remove function_used_regs_valid.
10805 * rtlanal.c (get_call_fndecl): Moved from final.c
10806 * function-abi.h (insn_callee_abi): Declare.
10807 (target_function_abi_info): Mention insn_callee_abi.
10808 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10809 way to get_call_reg_set_usage did.
10810 (insn_callee_abi): New function.
10811 * regs.h (get_call_reg_set_usage): Delete.
10812 * final.c: Include function-abi.h.
10813 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10814 function_used_regs before the main loop rather than afterwards.
10815 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10816 if function_used_regs ends up not being useful.
10817 (get_call_fndecl): Move to rtlanal.c
10818 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10819 * caller-save.c: Include function-abi.h.
10820 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10821 instead of get_call_reg_set_usage.
10822 * cfgcleanup.c: Include function-abi.h.
10823 (old_insns_match_p): Use insn_callee_abi instead of
10824 get_call_reg_set_usage.
10825 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10826 a tree.
10827 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10828 function_used_regs.
10829 * df-scan.c: Include function-abi.h.
10830 (df_get_call_refs): Use insn_callee_abi instead of
10831 get_call_reg_set_usage.
10832 * ira-lives.c: Include function-abi.h.
10833 (process_bb_node_lives): Use insn_callee_abi instead of
10834 get_call_reg_set_usage.
10835 * lra-lives.c: Include function-abi.h.
10836 (process_bb_lives): Use insn_callee_abi instead of
10837 get_call_reg_set_usage.
10838 * postreload.c: Include function-abi.h.
10839 (reload_combine): Use insn_callee_abi instead of
10840 get_call_reg_set_usage.
10841 * regcprop.c: Include function-abi.h.
10842 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10843 get_call_reg_set_usage.
10844 * resource.c: Include function-abi.h.
10845 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10846 instead of get_call_reg_set_usage.
10847 * var-tracking.c: Include function-abi.h.
10848 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10849 get_call_reg_set_usage.
10850
10851 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10852
10853 * target.def (fntype_abi): New target hook.
10854 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10855 * doc/tm.texi: Regenerate.
10856 * target.h (predefined_function_abi): Declare.
10857 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10858 if defined.
10859 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10860 * config/aarch64/aarch64.c: Include function-abi.h.
10861 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10862 (TARGET_FNTYPE_ABI): Define.
10863
10864 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10865
10866 * Makefile.in (OBJS): Add function-abi.o.
10867 (GTFILES): Add function-abi.h.
10868 * function-abi.cc: New file.
10869 * function-abi.h: Likewise.
10870 * emit-rtl.h (rtl_data::abi): New field.
10871 * function.c: Include function-abi.h.
10872 (prepare_function_start): Initialize crtl->abi.
10873 * read-rtl-function.c: Include regs.h and function-abi.h.
10874 (read_rtl_function_body): Initialize crtl->abi.
10875 (read_rtl_function_body_from_file_range): Likewise.
10876 * reginfo.c: Include function-abi.h.
10877 (init_reg_sets_1): Initialize default_function_abi.
10878 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10879 when making a register global.
10880 * target-globals.h (this_target_function_abi_info): Declare.
10881 (target_globals::function_abi_info): New field.
10882 (restore_target_globals): Copy it.
10883 * target-globals.c: Include function-abi.h.
10884 (default_target_globals): Initialize the function_abi_info field.
10885 (target_globals): Allocate it.
10886 (save_target_globals): Free it.
10887
10888 2019-09-30 Nick Clifton <nickc@redhat.com>
10889
10890 PR target/85978
10891 * config/frv/frv.c (frv_register_move_cost): Add break statements
10892 to avoid falling through to the wrong cases. Tidy code.
10893
10894 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10895
10896 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10897 For multi-registers modes, test how big each register part is.
10898
10899 2019-09-30 Nick Clifton <nickc@redhat.com>
10900
10901 PR target/59205
10902 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10903 (TARGET_ASM_SELECT_SECTION): Remove definition.
10904 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10905
10906 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10907
10908 * emit-rtl.c (init_raw_REG): New function.
10909 (gen_raw_REG): Use init_raw_REG.
10910 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10911 macros.
10912 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10913 * rtl.h (rtx_init): New function.
10914 (rtx_alloca): New function.
10915 (init_raw_REG): New function.
10916 (alloca_raw_REG): New macro.
10917
10918 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10919
10920 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10921 (pcrel_local_address): Replace pcrel_address predicate, use the
10922 new function address_to_insn_form.
10923 (pcrel_external_address): Replace with new implementation using
10924 address_to_insn_form..
10925 (prefixed_mem_operand): Delete predicate which is now unused.
10926 (pcrel_external_mem_operand): Delete predicate which is now
10927 unused.
10928 * config/rs6000/rs6000-protos.h (enum insn_form): New
10929 enumeration.
10930 (enum non_prefixed_form): New enumeration.
10931 (address_to_insn_form): New declaration.
10932 (prefixed_load_p): New declaration.
10933 (prefixed_store_p): New declaration.
10934 (prefixed_paddi_p): New declaration.
10935 (rs6000_asm_output_opcode): New declaration.
10936 (rs6000_final_prescan_insn): Move declaration and update calling
10937 signature.
10938 (address_is_prefixed): New helper inline function.
10939 * config/rs6000/rs6000.c(print_operand_address): Check for either
10940 PC-relative local symbols or PC-relative external symbols.
10941 (rs6000_emit_move): Support loading PC-relative addresses.
10942 (mode_supports_prefixed_address_p): Delete, no longer used.
10943 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10944 (address_to_insn_form): New function to decode an address format.
10945 (reg_to_non_prefixed): New function to identify what the
10946 non-prefixed memory instruction format is for a register.
10947 (prefixed_load_p): New function to identify prefixed loads.
10948 (prefixed_store_p): New function to identify prefixed stores.
10949 (prefixed_paddi_p): New function to identify prefixed load
10950 immediates.
10951 (next_insn_prefixed_p): New static state variable.
10952 (rs6000_final_prescan_insn): New function to determine if an insn
10953 uses a prefixed instruction.
10954 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10955 prefixed instruction.
10956 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10957 (ASM_OUTPUT_OPCODE): New target hook.
10958 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10959 prefixed instructions.
10960 (prefixed_length): New insn attribute for the size of prefixed
10961 instructions.
10962 (non_prefixed_length): New insn attribute for the size of
10963 non-prefixed instructions.
10964 (pcrel_local_addr): New insn to load up a local PC-relative
10965 address.
10966 (pcrel_extern_addr): New insn to load up an external PC-relative
10967 address.
10968 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10969 GPR and loading a 128-bit floating point type to a GPR.
10970
10971 2019-09-30 Richard Biener <rguenther@suse.de>
10972
10973 * gimple.c (gimple_get_lhs): For PHIs return the result.
10974 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10975 SLP instance as argument.
10976 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10977 double-reduction PHIs with vectorizable_lc_phi.
10978 (vect_analyze_loop_operations): Adjust.
10979 (vect_create_epilog_for_reduction): Remove all code not dealing
10980 with reduction LC PHI or epilogue generation.
10981 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10982 for live stmts of reductions.
10983 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10984 do not handle defs that are not vect_internal_def.
10985 (can_vectorize_live_stmts): Adjust.
10986 (vect_analyze_stmt): When the vectorized stmt defined a value
10987 used on backedges adjust the backedge uses of vectorized PHIs.
10988
10989 2019-09-30 Martin Jambor <mjambor@suse.cz>
10990
10991 PR ipa/91853
10992 * tree-inline.c (force_value_to_type): New function.
10993 (setup_one_parameter): Use force_value_to_type to convert type.
10994 * tree-inline.c (force_value_to_type): Declare.
10995 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10996 with register type mismatches.
10997
10998 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10999
11000 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11001 32-bit PowerPC.
11002 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11003 * config/rs6000/t-freebsd64: Make use of the above define and build
11004 the 32-bit libraries with secure-plt.
11005
11006 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11007
11008 PR target/91931
11009 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11010 gen_int_mode instead of GEN_INT.
11011
11012 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11013
11014 * config/darwin.c (gen_macho_low): Amend to include the mode
11015 argument.
11016 (machopic_indirect_data_reference): Amend gen_macho_low call
11017 to include mode argument
11018 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11019 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11020 the macho_high expander and two define_insn entries.
11021
11022 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11023
11024 PR bootstrap/90543
11025 * optc-save-gen.awk: Fix up printing string option differences.
11026
11027 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11028
11029 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11030 vec_perm cost to 1 for non-Power7 VSX architectures.
11031
11032 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11033
11034 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11035 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11036 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11037
11038 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11039
11040 * config/darwin.c (gen_macho_high): Amend to include the mode
11041 argument.
11042 (machopic_indirect_data_reference): Amend gen_macho_high call
11043 to include mode argument.
11044 (machopic_legitimize_pic_address): Likewise.
11045 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11046 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11047 the macho_high expander and two define_insn entries.
11048
11049 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11050
11051 PR target/86805
11052 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11053
11054 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11055
11056 PR target/80672
11057 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11058 std::string::compare instead of std::string::find.
11059
11060 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11061
11062 * configure: Regenerate.
11063
11064 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11065
11066 PR middle-end/91920
11067 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11068 variables as shared.
11069
11070 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11071
11072 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11073 replaces the expander and two define_insn entries.
11074 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11075 call.
11076 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11077
11078 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11079
11080 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11081 (fibonacci_heap::nodes): Likewise.
11082 (fibonacci_heap::min_key): Likewise.
11083 (fibonacci_heap::min): Likewise.
11084
11085 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11086
11087 * cgraph.c (cgraph_node::get_fun): Make const.
11088 * cgraph.h (cgraph_node::get_fun): Likewise.
11089
11090 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11091
11092 PR target/91919
11093 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11094 of SImode MULT.
11095
11096 2019-09-27 Richard Biener <rguenther@suse.de>
11097
11098 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11099 (STMT_VINFO_REDUC_FN): Likewise.
11100 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11101 STMT_VINFO_REDUC_FN.
11102 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11103 for condition reductions.
11104 (vect_create_epilog_for_reduction): Compute all required state
11105 from the stmt to be vectorized.
11106 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11107 invocation and remove then dead code. For single def-use chains
11108 record only a single vector stmt.
11109
11110 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11111
11112 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11113 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11114 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11115 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11116 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11117 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11118 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11119 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11120 (aarch64_general_builtin_rsqrt): Declare.
11121 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11122 New function.
11123 (aarch64_mangle_builtin_type): Rename to...
11124 (aarch64_general_mangle_builtin_type): ...this.
11125 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11126 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11127 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11128 aarch64_general_add_builtin instead of add_builtin_function.
11129 (aarch64_init_builtins): Rename to...
11130 (aarch64_general_init_builtins): ...this. Use
11131 aarch64_general_add_builtin instead of add_builtin_function.
11132 (aarch64_builtin_decl): Rename to...
11133 (aarch64_general_builtin_decl): ...this and remove the unused
11134 arguments.
11135 (aarch64_expand_builtin): Rename to...
11136 (aarch64_general_expand_builtin): ...this and remove the unused
11137 arguments.
11138 (aarch64_builtin_rsqrt): Rename to...
11139 (aarch64_general_builtin_rsqrt): ...this.
11140 (aarch64_fold_builtin): Rename to...
11141 (aarch64_general_fold_builtin): ...this. Take the function subcode
11142 and return type as arguments. Remove the "ignored" argument.
11143 (aarch64_gimple_fold_builtin): Rename to...
11144 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11145 subcode and gcall as arguments, and return the new function call.
11146 * config/aarch64/aarch64.c (aarch64_init_builtins)
11147 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11148 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11149 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11150 instead of aarch64_builtin_rsqrt.
11151 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11152 instead of aarch64_mangle_builtin_type.
11153
11154 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11155
11156 * target.def (check_builtin_call): New target hook.
11157 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11158 * doc/tm.texi: Regenerate.
11159
11160 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11161
11162 PR tree-optimization/91909
11163 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11164 reduc_index parameter. When handling COND_REDUCTION, make sure
11165 that the reduction phi operand is in the correct arm of the
11166 VEC_COND_EXPR.
11167 (vectorizable_reduction): Pass reduc_index to the above.
11168
11169 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11170
11171 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11172 New combine pattern.
11173
11174 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11175
11176 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11177 loop instruction into new basic block before the loop when basic
11178 block that precedes the loop is empty.
11179
11180 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11181
11182 * function.c (gimplify_parameters): Use build_clobber function.
11183 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11184 * tree-inline.c (expand_call_inline): Likewise.
11185 * tree-sra.c (clobber_subtree): Likewise.
11186 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11187 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11188 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11189 lower_omp_target): Likewise.
11190 * omp-expand.c (expand_omp_for_generic): Likewise.
11191 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11192
11193 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11194
11195 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11196 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11197 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11198 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11199 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11200 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11201 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11202 LD_ELEMREV_V16QI): Use the PURE attribute.
11203
11204 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11205
11206 * config/rs6000/darwin.md: Replace the expanders for
11207 load_macho_picbase and reload_macho_picbase with use of '@'
11208 and <mode> in their respective define_insns.
11209 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11210 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11211 Pmode to gen_load_macho_picbase.
11212 * config/rs6000/rs6000.md: Likewise.
11213
11214 2019-09-25 Richard Biener <rguenther@suse.de>
11215
11216 PR tree-optimization/91896
11217 * tree-vect-loop.c (vectorizable_reduction): The single
11218 def-use cycle optimization cannot apply when there's more
11219 than one pattern stmt involved.
11220
11221 2019-09-26 Richard Biener <rguenther@suse.de>
11222
11223 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11224 loop-closed PHIs that are vect_internal_def.
11225 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11226 Simplify.
11227 (vectorizable_lc_phi): New.
11228 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11229 (vect_transform_stmt): Likewise.
11230 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11231 (vectorizable_lc_phi): Declare.
11232
11233 2019-09-26 Richard Biener <rguenther@suse.de>
11234
11235 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11236 vectorizable_reduction for vect_double_reduction_def.
11237 (vect_transform_loop): Likewise.
11238 (vect_create_epilog_for_reduction): Move double-reduction
11239 PHI creation and preheader argument setting of PHIs ...
11240 (vectorizable_reduction): ... here. Also process
11241 vect_double_reduction_def PHIs, creating the vectorized
11242 PHI nodes, remembering the scalar adjustment computed for
11243 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11244 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11245 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11246 Initialize STMT_VINFO_REDUC_CODE.
11247 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11248 (_stmt_vec_info::reduc_code): Likewise.
11249 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11250 (STMT_VINFO_REDUC_CODE): Likewise.
11251
11252 2019-09-26 Matt Turner <mattst88@gmail.com>
11253
11254 PR driver/69471
11255 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11256 (mtune=): Add Negative(mtune=).
11257 (mcpu=): Add Negative(mcpu=).
11258 * config/arm/arm.opt: Likewise.
11259
11260 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11261
11262 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11263 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11264 Define.
11265 * config/arm/arm_acle.h: Define builtins for the above.
11266 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11267 (simd32_op): Handle the above.
11268 * config/arm/unspecs.md: Define unspecs for the above.
11269
11270 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11271
11272 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11273 (arm_<sup>xtb16): Likewise.
11274 (arm_usada8): Likewise.
11275 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11276 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11277 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11278 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11279 __sxtb16, __uxtab16, __uxtb16): Define.
11280 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11281 * config/arm/unspecs.md: Define unspecs for the above.
11282 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11283 (USXTB16): Likewise.
11284 (simd32_op): New int_attribute.
11285 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11286 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11287
11288 2019-09-26 Martin Jambor <mjambor@suse.cz>
11289
11290 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11291 internal_error.
11292
11293 2019-09-26 Martin Jambor <mjambor@suse.cz>
11294
11295 * ipa-sra.c (process_scan_results): Fix continue condition.
11296
11297 2019-09-26 Martin Liska <mliska@suse.cz>
11298
11299 PR tree-optimization/91885
11300 * tree-vectorizer.c (try_vectorize_loop_1): Add
11301 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11302
11303 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11304
11305 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11306 aarch64_plus_immediate rather than aarch64_uimm12_shift
11307 to test for valid PLUS immediates.
11308
11309 2019-09-25 Martin Jambor <mjambor@suse.cz>
11310
11311 * tree-sra.c (no_accesses_p): Remove.
11312 (no_accesses_representant): Likewise.
11313
11314 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11315
11316 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11317 consistenly.
11318 (vaba_s16): Likewise.
11319 (vaba_s32): Likewise.
11320 (vaba_u8): Likewise.
11321 (vaba_u16): Likewise.
11322 (vaba_u32): Likewise.
11323 (vabal_high_s8): Likewise.
11324 (vabal_high_s16): Likewise.
11325 (vabal_high_s32): Likewise.
11326 (vabal_high_u8): Likewise.
11327 (vabal_high_u16): Likewise.
11328 (vabal_high_u32): Likewise.
11329 (vabal_s8): Likewise.
11330 (vabal_s16): Likewise.
11331 (vabal_s32): Likewise.
11332 (vabal_u8): Likewise.
11333 (vabal_u16): Likewise.
11334 (vabal_u32): Likewise.
11335 (vabaq_s8): Likewise.
11336 (vabaq_s16): Likewise.
11337 (vabaq_s32): Likewise.
11338 (vabaq_u8): Likewise.
11339 (vabaq_u16): Likewise.
11340 (vabaq_u32): Likewise.
11341 (vabd_s8): Likewise.
11342 (vabd_s16): Likewise.
11343 (vabd_s32): Likewise.
11344 (vabd_u8): Likewise.
11345 (vabd_u16): Likewise.
11346 (vabd_u32): Likewise.
11347 (vabdl_high_s8): Likewise.
11348 (vabdl_high_s16): Likewise.
11349 (vabdl_high_s32): Likewise.
11350 (vabdl_high_u8): Likewise.
11351 (vabdl_high_u16): Likewise.
11352 (vabdl_high_u32): Likewise.
11353 (vabdl_s8): Likewise.
11354 (vabdl_s16): Likewise.
11355 (vabdl_s32): Likewise.
11356 (vabdl_u8): Likewise.
11357 (vabdl_u16): Likewise.
11358 (vabdl_u32): Likewise.
11359 (vabdq_s8): Likewise.
11360 (vabdq_s16): Likewise.
11361 (vabdq_s32): Likewise.
11362 (vabdq_u8): Likewise.
11363 (vabdq_u16): Likewise.
11364 (vabdq_u32): Likewise.
11365 (vaddlv_s8): Likewise.
11366 (vaddlv_s16): Likewise.
11367 (vaddlv_u8): Likewise.
11368 (vaddlv_u16): Likewise.
11369 (vaddlvq_s8): Likewise.
11370 (vaddlvq_s16): Likewise.
11371 (vaddlvq_s32): Likewise.
11372 (vaddlvq_u8): Likewise.
11373 (vaddlvq_u16): Likewise.
11374 (vaddlvq_u32): Likewise.
11375 (vcvtx_f32_f64): Likewise.
11376 (vcvtx_high_f32_f64): Likewise.
11377 (vcvtxd_f32_f64): Likewise.
11378 (vmla_n_f32): Likewise.
11379 (vmla_n_s16): Likewise.
11380 (vmla_n_s32): Likewise.
11381 (vmla_n_u16): Likewise.
11382 (vmla_n_u32): Likewise.
11383 (vmla_s8): Likewise.
11384 (vmla_s16): Likewise.
11385 (vmla_s32): Likewise.
11386 (vmla_u8): Likewise.
11387 (vmla_u16): Likewise.
11388 (vmla_u32): Likewise.
11389 (vmlal_high_n_s16): Likewise.
11390 (vmlal_high_n_s32): Likewise.
11391 (vmlal_high_n_u16): Likewise.
11392 (vmlal_high_n_u32): Likewise.
11393 (vmlal_high_s8): Likewise.
11394 (vmlal_high_s16): Likewise.
11395 (vmlal_high_s32): Likewise.
11396 (vmlal_high_u8): Likewise.
11397 (vmlal_high_u16): Likewise.
11398 (vmlal_high_u32): Likewise.
11399 (vmlal_n_s16): Likewise.
11400 (vmlal_n_s32): Likewise.
11401 (vmlal_n_u16): Likewise.
11402 (vmlal_n_u32): Likewise.
11403 (vmlal_s8): Likewise.
11404 (vmlal_s16): Likewise.
11405 (vmlal_s32): Likewise.
11406 (vmlal_u8): Likewise.
11407 (vmlal_u16): Likewise.
11408 (vmlal_u32): Likewise.
11409 (vmlaq_n_f32): Likewise.
11410 (vmlaq_n_s16): Likewise.
11411 (vmlaq_n_s32): Likewise.
11412 (vmlaq_n_u16): Likewise.
11413 (vmlaq_n_u32): Likewise.
11414 (vmlaq_s8): Likewise.
11415 (vmlaq_s16): Likewise.
11416 (vmlaq_s32): Likewise.
11417 (vmlaq_u8): Likewise.
11418 (vmlaq_u16): Likewise.
11419 (vmlaq_u32): Likewise.
11420 (vmls_n_f32): Likewise.
11421 (vmls_n_s16): Likewise.
11422 (vmls_n_s32): Likewise.
11423 (vmls_n_u16): Likewise.
11424 (vmls_n_u32): Likewise.
11425 (vmls_s8): Likewise.
11426 (vmls_s16): Likewise.
11427 (vmls_s32): Likewise.
11428 (vmls_u8): Likewise.
11429 (vmls_u16): Likewise.
11430 (vmls_u32): Likewise.
11431 (vmlsl_high_n_s16): Likewise.
11432 (vmlsl_high_n_s32): Likewise.
11433 (vmlsl_high_n_u16): Likewise.
11434 (vmlsl_high_n_u32): Likewise.
11435 (vmlsl_high_s8): Likewise.
11436 (vmlsl_high_s16): Likewise.
11437 (vmlsl_high_s32): Likewise.
11438 (vmlsl_high_u8): Likewise.
11439 (vmlsl_high_u16): Likewise.
11440 (vmlsl_high_u32): Likewise.
11441 (vmlsl_n_s16): Likewise.
11442 (vmlsl_n_s32): Likewise.
11443 (vmlsl_n_u16): Likewise.
11444 (vmlsl_n_u32): Likewise.
11445 (vmlsl_s8): Likewise.
11446 (vmlsl_s16): Likewise.
11447 (vmlsl_s32): Likewise.
11448 (vmlsl_u8): Likewise.
11449 (vmlsl_u16): Likewise.
11450 (vmlsl_u32): Likewise.
11451 (vmlsq_n_f32): Likewise.
11452 (vmlsq_n_s16): Likewise.
11453 (vmlsq_n_s32): Likewise.
11454 (vmlsq_n_u16): Likewise.
11455 (vmlsq_n_u32): Likewise.
11456 (vmlsq_s8): Likewise.
11457 (vmlsq_s16): Likewise.
11458 (vmlsq_s32): Likewise.
11459 (vmlsq_u8): Likewise.
11460 (vmlsq_u16): Likewise.
11461 (vmlsq_u32): Likewise.
11462 (vmovl_high_s8): Likewise.
11463 (vmovl_high_s16): Likewise.
11464 (vmovl_high_s32): Likewise.
11465 (vmovl_high_u8): Likewise.
11466 (vmovl_high_u16): Likewise.
11467 (vmovl_high_u32): Likewise.
11468 (vmovl_s8): Likewise.
11469 (vmovl_s16): Likewise.
11470 (vmovl_s32): Likewise.
11471 (vmovl_u8): Likewise.
11472 (vmovl_u16): Likewise.
11473 (vmovl_u32): Likewise.
11474 (vmovn_high_s16): Likewise.
11475 (vmovn_high_s32): Likewise.
11476 (vmovn_high_s64): Likewise.
11477 (vmovn_high_u16): Likewise.
11478 (vmovn_high_u32): Likewise.
11479 (vmovn_high_u64): Likewise.
11480 (vmovn_s16): Likewise.
11481 (vmovn_s32): Likewise.
11482 (vmovn_s64): Likewise.
11483 (vmovn_u16): Likewise.
11484 (vmovn_u32): Likewise.
11485 (vmovn_u64): Likewise.
11486 (vmull_high_n_s16): Likewise.
11487 (vmull_high_n_s32): Likewise.
11488 (vmull_high_n_u16): Likewise.
11489 (vmull_high_n_u32): Likewise.
11490 (vmull_high_p8): Likewise.
11491 (vmull_high_s8): Likewise.
11492 (vmull_high_s16): Likewise.
11493 (vmull_high_s32): Likewise.
11494 (vmull_high_u8): Likewise.
11495 (vmull_high_u16): Likewise.
11496 (vmull_high_u32): Likewise.
11497 (vmull_n_s16): Likewise.
11498 (vmull_n_s32): Likewise.
11499 (vmull_n_u16): Likewise.
11500 (vmull_n_u32): Likewise.
11501 (vmull_p8): Likewise.
11502 (vmull_s8): Likewise.
11503 (vmull_s16): Likewise.
11504 (vmull_s32): Likewise.
11505 (vmull_u8): Likewise.
11506 (vmull_u16): Likewise.
11507 (vmull_u32): Likewise.
11508 (vpadal_s8): Likewise.
11509 (vpadal_s16): Likewise.
11510 (vpadal_s32): Likewise.
11511 (vpadal_u8): Likewise.
11512 (vpadal_u16): Likewise.
11513 (vpadal_u32): Likewise.
11514 (vpadalq_s8): Likewise.
11515 (vpadalq_s16): Likewise.
11516 (vpadalq_s32): Likewise.
11517 (vpadalq_u8): Likewise.
11518 (vpadalq_u16): Likewise.
11519 (vpadalq_u32): Likewise.
11520 (vpaddl_s8): Likewise.
11521 (vpaddl_s16): Likewise.
11522 (vpaddl_s32): Likewise.
11523 (vpaddl_u8): Likewise.
11524 (vpaddl_u16): Likewise.
11525 (vpaddl_u32): Likewise.
11526 (vpaddlq_s8): Likewise.
11527 (vpaddlq_s16): Likewise.
11528 (vpaddlq_s32): Likewise.
11529 (vpaddlq_u8): Likewise.
11530 (vpaddlq_u16): Likewise.
11531 (vpaddlq_u32): Likewise.
11532 (vpaddq_s8): Likewise.
11533 (vpaddq_s16): Likewise.
11534 (vpaddq_s32): Likewise.
11535 (vpaddq_s64): Likewise.
11536 (vpaddq_u8): Likewise.
11537 (vpaddq_u16): Likewise.
11538 (vpaddq_u32): Likewise.
11539 (vpaddq_u64): Likewise.
11540 (vqdmulh_n_s16): Likewise.
11541 (vqdmulh_n_s32): Likewise.
11542 (vqdmulhq_n_s16): Likewise.
11543 (vqdmulhq_n_s32): Likewise.
11544 (vqmovn_high_s16): Likewise.
11545 (vqmovn_high_s32): Likewise.
11546 (vqmovn_high_s64): Likewise.
11547 (vqmovn_high_u16): Likewise.
11548 (vqmovn_high_u32): Likewise.
11549 (vqmovn_high_u64): Likewise.
11550 (vqmovun_high_s16): Likewise.
11551 (vqmovun_high_s32): Likewise.
11552 (vqmovun_high_s64): Likewise.
11553 (vqrdmulh_n_s16): Likewise.
11554 (vqrdmulh_n_s32): Likewise.
11555 (vqrdmulhq_n_s16): Likewise.
11556 (vqrdmulhq_n_s32): Likewise.
11557 (vrsqrte_u32): Likewise.
11558 (vrsqrteq_u32): Likewise.
11559 (vtst_p8): Likewise.
11560 (vtst_p16): Likewise.
11561 (vtst_p64): Likewise.
11562 (vtstq_p8): Likewise.
11563 (vtstq_p16): Likewise.
11564 (vtstq_p64): Likewise.
11565 (vaddlv_s32): Likewise.
11566 (vaddlv_u32): Likewise.
11567 (vqtbl1_p8): Likewise.
11568 (vqtbl1_s8): Likewise.
11569 (vqtbl1_u8): Likewise.
11570 (vqtbl1q_p8): Likewise.
11571 (vqtbl1q_s8): Likewise.
11572 (vqtbl1q_u8): Likewise.
11573 (vqtbx1_s8): Likewise.
11574 (vqtbx1_u8): Likewise.
11575 (vqtbx1_p8): Likewise.
11576 (vqtbx1q_s8): Likewise.
11577 (vqtbx1q_u8): Likewise.
11578 (vqtbx1q_p8): Likewise.
11579 (vtbl1_s8): Likewise.
11580 (vtbl1_u8): Likewise.
11581 (vtbl1_p8): Likewise.
11582 (vtbl2_s8): Likewise.
11583 (vtbl2_u8): Likewise.
11584 (vtbl2_p8): Likewise.
11585 (vtbl3_s8): Likewise.
11586 (vtbl3_u8): Likewise.
11587 (vtbl3_p8): Likewise.
11588 (vtbl4_s8): Likewise.
11589 (vtbl4_u8): Likewise.
11590 (vtbl4_p8): Likewise.
11591 (vtbx2_s8): Likewise.
11592 (vtbx2_u8): Likewise.
11593 (vtbx2_p8): Likewise.
11594 (vld1_f32): Likewise.
11595 (vld1_f64): Likewise.
11596 (vld1_p8): Likewise.
11597 (vld1_p16): Likewise.
11598 (vld1_p64): Likewise.
11599 (vld1_s8): Likewise.
11600 (vld1_s16): Likewise.
11601 (vld1_s32): Likewise.
11602 (vld1_s64): Likewise.
11603 (vld1_u8): Likewise.
11604 (vld1_u16): Likewise.
11605 (vld1_u32): Likewise.
11606 (vld1_u64): Likewise.
11607 (vld1q_f32): Likewise.
11608 (vld1q_f64): Likewise.
11609 (vld1q_p8): Likewise.
11610 (vld1q_p16): Likewise.
11611 (vld1q_p64): Likewise.
11612 (vld1q_s8): Likewise.
11613 (vld1q_s16): Likewise.
11614 (vld1q_s32): Likewise.
11615 (vld1q_s64): Likewise.
11616 (vld1q_u8): Likewise.
11617 (vld1q_u16): Likewise.
11618 (vld1q_u32): Likewise.
11619 (vld1q_u64): Likewise.
11620 (vpmax_s8): Likewise.
11621 (vpmax_s16): Likewise.
11622 (vpmax_s32): Likewise.
11623 (vpmax_u8): Likewise.
11624 (vpmax_u16): Likewise.
11625 (vpmax_u32): Likewise.
11626 (vpmaxq_s8): Likewise.
11627 (vpmaxq_s16): Likewise.
11628 (vpmaxq_s32): Likewise.
11629 (vpmaxq_u8): Likewise.
11630 (vpmaxq_u16): Likewise.
11631 (vpmaxq_u32): Likewise.
11632 (vpmax_f32): Likewise.
11633 (vpmaxq_f32): Likewise.
11634 (vpmaxq_f64): Likewise.
11635 (vpmaxqd_f64): Likewise.
11636 (vpmaxs_f32): Likewise.
11637 (vpmaxnm_f32): Likewise.
11638 (vpmaxnmq_f32): Likewise.
11639 (vpmaxnmq_f64): Likewise.
11640 (vpmaxnmqd_f64): Likewise.
11641 (vpmaxnms_f32): Likewise.
11642 (vpmin_s8): Likewise.
11643 (vpmin_s16): Likewise.
11644 (vpmin_s32): Likewise.
11645 (vpmin_u8): Likewise.
11646 (vpmin_u16): Likewise.
11647 (vpmin_u32): Likewise.
11648 (vpminq_s8): Likewise.
11649 (vpminq_s16): Likewise.
11650 (vpminq_s32): Likewise.
11651 (vpminq_u8): Likewise.
11652 (vpminq_u16): Likewise.
11653 (vpminq_u32): Likewise.
11654 (vpmin_f32): Likewise.
11655 (vpminq_f32): Likewise.
11656 (vpminq_f64): Likewise.
11657 (vpminqd_f64): Likewise.
11658 (vpmins_f32): Likewise.
11659 (vpminnm_f32): Likewise.
11660 (vpminnmq_f32): Likewise.
11661 (vpminnmq_f64): Likewise.
11662 (vpminnmqd_f64): Likewise.
11663 (vpminnms_f32): Likewise.
11664 (vmla_f32): Likewise.
11665 (vmlaq_f32): Likewise.
11666 (vmlaq_f64): Likewise.
11667 (vmls_f32): Likewise.
11668 (vmlsq_f32): Likewise.
11669 (vmlsq_f64): Likewise.
11670 (vqtbl2_s8): Likewise.
11671 (vqtbl2_u8): Likewise.
11672 (vqtbl2_p8): Likewise.
11673 (vqtbl2q_s8): Likewise.
11674 (vqtbl2q_u8): Likewise.
11675 (vqtbl2q_p8): Likewise.
11676 (vqtbl3_s8): Likewise.
11677 (vqtbl3_u8): Likewise.
11678 (vqtbl3_p8): Likewise.
11679 (vqtbl3q_s8): Likewise.
11680 (vqtbl3q_u8): Likewise.
11681 (vqtbl3q_p8): Likewise.
11682 (vqtbl4_s8): Likewise.
11683 (vqtbl4_u8): Likewise.
11684 (vqtbl4_p8): Likewise.
11685 (vqtbl4q_s8): Likewise.
11686 (vqtbl4q_u8): Likewise.
11687 (vqtbl4q_p8): Likewise.
11688 (vqtbx2_s8): Likewise.
11689 (vqtbx2_u8): Likewise.
11690 (vqtbx2_p8): Likewise.
11691 (vqtbx2q_s8): Likewise.
11692 (vqtbx2q_u8): Likewise.
11693 (vqtbx2q_p8): Likewise.
11694 (vqtbx3_s8): Likewise.
11695 (vqtbx3_u8): Likewise.
11696 (vqtbx3_p8): Likewise.
11697 (vqtbx3q_s8): Likewise.
11698 (vqtbx3q_u8): Likewise.
11699 (vqtbx3q_p8): Likewise.
11700 (vqtbx4_s8): Likewise.
11701 (vqtbx4_u8): Likewise.
11702 (vqtbx4_p8): Likewise.
11703 (vqtbx4q_s8): Likewise.
11704 (vqtbx4q_u8): Likewise.
11705 (vqtbx4q_p8): Likewise.
11706 (vrev16_p8): Likewise.
11707 (vrev16_s8): Likewise.
11708 (vrev16_u8): Likewise.
11709 (vrev16q_p8): Likewise.
11710 (vrev16q_s8): Likewise.
11711 (vrev16q_u8): Likewise.
11712 (vrev32_p8): Likewise.
11713 (vrev32_p16): Likewise.
11714 (vrev32_s8): Likewise.
11715 (vrev32_s16): Likewise.
11716 (vrev32_u8): Likewise.
11717 (vrev32_u16): Likewise.
11718 (vrev32q_p8): Likewise.
11719 (vrev32q_p16): Likewise.
11720 (vrev32q_s8): Likewise.
11721 (vrev32q_s16): Likewise.
11722 (vrev32q_u8): Likewise.
11723 (vrev32q_u16): Likewise.
11724 (vrev64_f32): Likewise.
11725 (vrev64_p8): Likewise.
11726 (vrev64_p16): Likewise.
11727 (vrev64_s8): Likewise.
11728 (vrev64_s16): Likewise.
11729 (vrev64_s32): Likewise.
11730 (vrev64_u8): Likewise.
11731 (vrev64_u16): Likewise.
11732 (vrev64_u32): Likewise.
11733 (vrev64q_f32): Likewise.
11734 (vrev64q_p8): Likewise.
11735 (vrev64q_p16): Likewise.
11736 (vrev64q_s8): Likewise.
11737 (vrev64q_s16): Likewise.
11738 (vrev64q_s32): Likewise.
11739 (vrev64q_u8): Likewise.
11740 (vrev64q_u16): Likewise.
11741 (vrev64q_u32): Likewise.
11742 (vsha1cq_u32): Likewise.
11743 (vsha1mq_u32): Likewise.
11744 (vsha1pq_u32): Likewise.
11745 (vsha1h_u32): Likewise.
11746 (vsha1su0q_u32): Likewise.
11747 (vsha1su1q_u32): Likewise.
11748 (vsha256hq_u32): Likewise.
11749 (vsha256h2q_u32): Likewise.
11750 (vsha256su0q_u32): Likewise.
11751 (vsha256su1q_u32): Likewise.
11752 (vmull_p64): Likewise.
11753 (vmull_high_p64): Likewise.
11754 (vsqrt_f32): Likewise.
11755 (vsqrtq_f32): Likewise.
11756 (vsqrt_f64): Likewise.
11757 (vsqrtq_f64): Likewise.
11758 (vst1_f32): Likewise.
11759 (vst1_f64): Likewise.
11760 (vst1_p8): Likewise.
11761 (vst1_p16): Likewise.
11762 (vst1_p64): Likewise.
11763 (vst1_s8): Likewise.
11764 (vst1_s16): Likewise.
11765 (vst1_s32): Likewise.
11766 (vst1_s64): Likewise.
11767 (vst1_u8): Likewise.
11768 (vst1_u16): Likewise.
11769 (vst1_u32): Likewise.
11770 (vst1_u64): Likewise.
11771 (vst1q_f32): Likewise.
11772 (vst1q_f64): Likewise.
11773 (vst1q_p8): Likewise.
11774 (vst1q_p16): Likewise.
11775 (vst1q_p64): Likewise.
11776 (vst1q_s8): Likewise.
11777 (vst1q_s16): Likewise.
11778 (vst1q_s32): Likewise.
11779 (vst1q_s64): Likewise.
11780 (vst1q_u8): Likewise.
11781 (vst1q_u16): Likewise.
11782 (vst1q_u32): Likewise.
11783 (vst1q_u64): Likewise.
11784 (vst1_s64_x2): Likewise.
11785 (vst1_u64_x2): Likewise.
11786 (vst1_f64_x2): Likewise.
11787 (vst1_s8_x2): Likewise.
11788 (vst1_p8_x2): Likewise.
11789 (vst1_s16_x2): Likewise.
11790 (vst1_p16_x2): Likewise.
11791 (vst1_s32_x2): Likewise.
11792 (vst1_u8_x2): Likewise.
11793 (vst1_u16_x2): Likewise.
11794 (vst1_u32_x2): Likewise.
11795 (vst1_f16_x2): Likewise.
11796 (vst1_f32_x2): Likewise.
11797 (vst1_p64_x2): Likewise.
11798 (vst1q_s8_x2): Likewise.
11799 (vst1q_p8_x2): Likewise.
11800 (vst1q_s16_x2): Likewise.
11801 (vst1q_p16_x2): Likewise.
11802 (vst1q_s32_x2): Likewise.
11803 (vst1q_s64_x2): Likewise.
11804 (vst1q_u8_x2): Likewise.
11805 (vst1q_u16_x2): Likewise.
11806 (vst1q_u32_x2): Likewise.
11807 (vst1q_u64_x2): Likewise.
11808 (vst1q_f16_x2): Likewise.
11809 (vst1q_f32_x2): Likewise.
11810 (vst1q_f64_x2): Likewise.
11811 (vst1q_p64_x2): Likewise.
11812 (vst1_s64_x3): Likewise.
11813 (vst1_u64_x3): Likewise.
11814 (vst1_f64_x3): Likewise.
11815 (vst1_s8_x3): Likewise.
11816 (vst1_p8_x3): Likewise.
11817 (vst1_s16_x3): Likewise.
11818 (vst1_p16_x3): Likewise.
11819 (vst1_s32_x3): Likewise.
11820 (vst1_u8_x3): Likewise.
11821 (vst1_u16_x3): Likewise.
11822 (vst1_u32_x3): Likewise.
11823 (vst1_f16_x3): Likewise.
11824 (vst1_f32_x3): Likewise.
11825 (vst1_p64_x3): Likewise.
11826 (vst1q_s8_x3): Likewise.
11827 (vst1q_p8_x3): Likewise.
11828 (vst1q_s16_x3): Likewise.
11829 (vst1q_p16_x3): Likewise.
11830 (vst1q_s32_x3): Likewise.
11831 (vst1q_s64_x3): Likewise.
11832 (vst1q_u8_x3): Likewise.
11833 (vst1q_u16_x3): Likewise.
11834 (vst1q_u32_x3): Likewise.
11835 (vst1q_u64_x3): Likewise.
11836 (vst1q_f16_x3): Likewise.
11837 (vst1q_f32_x3): Likewise.
11838 (vst1q_f64_x3): Likewise.
11839 (vst1q_p64_x3): Likewise.
11840 (vst2_s64): Likewise.
11841 (vst2_u64): Likewise.
11842 (vst2_f64): Likewise.
11843 (vst2_s8): Likewise.
11844 (vst2_p8): Likewise.
11845 (vst2_s16): Likewise.
11846 (vst2_p16): Likewise.
11847 (vst2_s32): Likewise.
11848 (vst2_u8): Likewise.
11849 (vst2_u16): Likewise.
11850 (vst2_u32): Likewise.
11851 (vst2_f16): Likewise.
11852 (vst2_f32): Likewise.
11853 (vst2_p64): Likewise.
11854 (vst2q_s8): Likewise.
11855 (vst2q_p8): Likewise.
11856 (vst2q_s16): Likewise.
11857 (vst2q_p16): Likewise.
11858 (vst2q_s32): Likewise.
11859 (vst2q_s64): Likewise.
11860 (vst2q_u8): Likewise.
11861 (vst2q_u16): Likewise.
11862 (vst2q_u32): Likewise.
11863 (vst2q_u64): Likewise.
11864 (vst2q_f16): Likewise.
11865 (vst2q_f32): Likewise.
11866 (vst2q_f64): Likewise.
11867 (vst2q_p64): Likewise.
11868 (vst3_s64): Likewise.
11869 (vst3_u64): Likewise.
11870 (vst3_f64): Likewise.
11871 (vst3_s8): Likewise.
11872 (vst3_p8): Likewise.
11873 (vst3_s16): Likewise.
11874 (vst3_p16): Likewise.
11875 (vst3_s32): Likewise.
11876 (vst3_u8): Likewise.
11877 (vst3_u16): Likewise.
11878 (vst3_u32): Likewise.
11879 (vst3_f16): Likewise.
11880 (vst3_f32): Likewise.
11881 (vst3_p64): Likewise.
11882 (vst3q_s8): Likewise.
11883 (vst3q_p8): Likewise.
11884 (vst3q_s16): Likewise.
11885 (vst3q_p16): Likewise.
11886 (vst3q_s32): Likewise.
11887 (vst3q_s64): Likewise.
11888 (vst3q_u8): Likewise.
11889 (vst3q_u16): Likewise.
11890 (vst3q_u32): Likewise.
11891 (vst3q_u64): Likewise.
11892 (vst3q_f16): Likewise.
11893 (vst3q_f32): Likewise.
11894 (vst3q_f64): Likewise.
11895 (vst3q_p64): Likewise.
11896 (vst4_s64): Likewise.
11897 (vst4_u64): Likewise.
11898 (vst4_f64): Likewise.
11899 (vst4_s8): Likewise.
11900 (vst4_p8): Likewise.
11901 (vst4_s16): Likewise.
11902 (vst4_p16): Likewise.
11903 (vst4_s32): Likewise.
11904 (vst4_u8): Likewise.
11905 (vst4_u16): Likewise.
11906 (vst4_u32): Likewise.
11907 (vst4_f16): Likewise.
11908 (vst4_f32): Likewise.
11909 (vst4_p64): Likewise.
11910 (vst4q_s8): Likewise.
11911 (vst4q_p8): Likewise.
11912 (vst4q_s16): Likewise.
11913 (vst4q_p16): Likewise.
11914 (vst4q_s32): Likewise.
11915 (vst4q_s64): Likewise.
11916 (vst4q_u8): Likewise.
11917 (vst4q_u16): Likewise.
11918 (vst4q_u32): Likewise.
11919 (vst4q_u64): Likewise.
11920 (vst4q_f16): Likewise.
11921 (vst4q_f32): Likewise.
11922 (vst4q_f64): Likewise.
11923 (vst4q_p64): Likewise.
11924 (vtbx4_s8): Likewise.
11925 (vtbx4_u8): Likewise.
11926 (vtbx4_p8): Likewise.
11927 (vtrn_f32): Likewise.
11928 (vtrn_p8): Likewise.
11929 (vtrn_p16): Likewise.
11930 (vtrn_s8): Likewise.
11931 (vtrn_s16): Likewise.
11932 (vtrn_s32): Likewise.
11933 (vtrn_u8): Likewise.
11934 (vtrn_u16): Likewise.
11935 (vtrn_u32): Likewise.
11936 (vtrnq_f32): Likewise.
11937 (vtrnq_p8): Likewise.
11938 (vtrnq_p16): Likewise.
11939 (vtrnq_s8): Likewise.
11940 (vtrnq_s16): Likewise.
11941 (vtrnq_s32): Likewise.
11942 (vtrnq_u8): Likewise.
11943 (vtrnq_u16): Likewise.
11944 (vtrnq_u32): Likewise.
11945 (vrsqrte_f16): Likewise.
11946 (vrsqrteq_f16): Likewise.
11947 (vsqrt_f16): Likewise.
11948 (vsqrtq_f16): Likewise.
11949 (vabd_f16): Likewise.
11950 (vabdq_f16): Likewise.
11951 (vpadd_f16): Likewise.
11952 (vpaddq_f16): Likewise.
11953 (vpmax_f16): Likewise.
11954 (vpmaxq_f16): Likewise.
11955 (vpmaxnm_f16): Likewise.
11956 (vpmaxnmq_f16): Likewise.
11957 (vpmin_f16): Likewise.
11958 (vpminq_f16): Likewise.
11959 (vpminnm_f16): Likewise.
11960 (vpminnmq_f16): Likewise.
11961 (vrsqrts_f16): Likewise.
11962 (vrsqrtsq_f16): Likewise.
11963
11964 2019-09-25 Richard Biener <rguenther@suse.de>
11965
11966 PR tree-optimization/91896
11967 * tree-vect-loop.c (vectorizable_reduction): The single
11968 def-use cycle optimization cannot apply when there's more
11969 than one pattern stmt involved.
11970
11971 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11972
11973 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11974 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11975 (reload_macho_picbase_<mode>): Likewise.
11976
11977 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11978
11979 * config/rs6000/rs6000.md: Move darwin.md include until
11980 after the definition of the mode iterators.
11981
11982 2019-09-23 Martin Sebor <msebor@redhat.com>
11983
11984 PR tree-optimization/91570
11985 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11986 non-constant minlen, maxlen and maxbound.
11987
11988 2019-09-24 Richard Biener <rguenther@suse.de>
11989
11990 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11991 Rename to...
11992 (_stmt_vec_info::cond_reduc_code): ... this.
11993 (_stmt_vec_info::induc_cond_initial_val): Add.
11994 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11995 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11996 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11997 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11998 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11999 the reduction code.
12000 (vect_create_epilog_for_reduction): Drop special
12001 induction condition reduction params, pass in reduction code
12002 and simplify.
12003 (vectorizable_reduction): Perform condition reduction kind
12004 selection only at analysis time. Adjust passing on state.
12005
12006 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12007
12008 * config/aarch64/aarch64.md (mov<mode>): Don't call
12009 aarch64_split_dimode_const_store on volatile MEM.
12010
12011 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12012
12013 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12014 Update hwcap string for fp16fml.
12015
12016 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12017
12018 PR middle-end/91866
12019 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12020 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12021
12022 2019-09-24 Martin Liska <mliska@suse.cz>
12023
12024 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12025 instead of if-elseif-elseif-...
12026 * gimple-expr.c (extract_ops_from_tree): Likewise.
12027 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12028 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12029
12030 2019-09-24 Martin Jambor <mjambor@suse.cz>
12031
12032 PR ipa/91831
12033 * ipa-param-manipulation.c (carry_over_param): Make a method of
12034 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12035 in case of a context mismatch.
12036 (ipa_param_body_adjustments::common_initialization): Adjust call to
12037 carry_over_param.
12038 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12039 private method carry_over_param.
12040
12041 2019-09-24 Martin Jambor <mjambor@suse.cz>
12042
12043 PR ipa/91832
12044 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12045
12046 2019-09-24 Richard Biener <rguenther@suse.de>
12047
12048 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12049 base.
12050
12051 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12052
12053 * config/arm/t-arm (arm-builtins.o): Add dependency on
12054 arm_acle_builtins.def.
12055
12056 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12057
12058 PR target/91823
12059 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12060 canonical CONST_INTs. Use gen_rtvec.
12061
12062 2019-09-23 Richard Biener <rguenther@suse.de>
12063
12064 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12065 avoid adjusting by + 0 or * 1.
12066 (vect_create_epilog_for_reduction): Get reduction code only
12067 when necessary. Deal with adjustment_def only when necessary.
12068
12069 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12070
12071 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12072 memmodel index.
12073
12074 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12075
12076 PR ipa/91835
12077 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12078 "ipa-sra".
12079
12080 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12081
12082 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12083 code. Merge code blocks with common conditionals. Use declared
12084 macro instead of a magic number for PIC level.
12085
12086 2019-09-21 Martin Sebor <msebor@redhat.com>
12087
12088 PR middle-end/91830
12089 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12090 Simplify computation of the offset of the referenced subobject.
12091
12092 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12093
12094 * config/darwin.c (machopic_legitimize_pic_address): Check
12095 for lra not reload.
12096
12097 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12098
12099 * ira-conflicts.c (can_use_same_reg_p): New function.
12100 (process_reg_shuffles): Take an insn parameter. Ignore cases
12101 in which input operand op_num could seemingly never be allocated
12102 to the same register as the destination.
12103 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12104
12105 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12106
12107 * simplify-rtx.c (neg_const_int): Replace with...
12108 (neg_poly_int_rtx): ...this new function.
12109 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12110 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12111 (simplify_plus_minus): Likewise for constant terms here.
12112
12113 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12114
12115 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12116 HOST_WIDE_PRINT_UNSIGNED.
12117
12118 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12119
12120 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12121 character.
12122
12123 2019-09-20 Maya Rashish <coypu@sdf.org>
12124
12125 PR target/86811
12126 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12127 Define to speculation_safe_value_not_needed.
12128
12129 2019-09-20 Richard Biener <rguenther@suse.de>
12130 Uros Bizjak <ubizjak@gmail.com>
12131
12132 PR target/91814
12133 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12134 previous change.
12135 (general_scalar_chain::convert_op): Force not suitable memory
12136 operands to a register.
12137
12138 2019-09-20 Richard Biener <rguenther@suse.de>
12139
12140 PR tree-optimization/91821
12141 * tree-vect-loop.c (check_reduction_path): Check we can compute
12142 reduc_idx.
12143 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12144 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12145 operands in canonical order.
12146 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12147 STMT_VINFO_REDUC_IDX.
12148 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12149 (STMT_VINFO_REDUC_IDX): Likewise.
12150
12151 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12152
12153 PR target/91269
12154 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12155
12156 2019-09-20 Richard Biener <rguenther@suse.de>
12157
12158 PR tree-optimization/91822
12159 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12160 parameter.
12161 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12162 for reduc_index in nested cycles, adjust vectorizable_condition
12163 calls.
12164 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12165 parameter.
12166 (vect_analyze_stmt): Adjust.
12167 (vect_transform_stmt): Likewise.
12168
12169 2019-09-20 Richard Biener <rguenther@suse.de>
12170
12171 PR target/91767
12172 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12173 Ensure there's a sequence point between allocating the new register
12174 and passing a reference to a reg via regno_reg_rtx.
12175
12176 2019-09-20 Martin Jambor <mjambor@suse.cz>
12177
12178 * coretypes.h (cgraph_edge): Declare.
12179 * ipa-param-manipulation.c: Rewrite.
12180 * ipa-param-manipulation.h: Likewise.
12181 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12182 (OBJS): Added ipa-sra.o.
12183 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12184 and ref_p, added fields param_adjustments and performed_splits.
12185 (struct cgraph_clone_info): Remove ags_to_skip and
12186 combined_args_to_skip, new field param_adjustments.
12187 (cgraph_node::create_clone): Changed parameters to use
12188 ipa_param_adjustments.
12189 (cgraph_node::create_virtual_clone): Likewise.
12190 (cgraph_node::create_virtual_clone_with_body): Likewise.
12191 (tree_function_versioning): Likewise.
12192 (cgraph_build_function_type_skip_args): Removed.
12193 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12194 using ipa_param_adjustments.
12195 (clone_of_p): Likewise.
12196 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12197 (build_function_decl_skip_args): Likewise.
12198 (duplicate_thunk_for_node): Adjust parameters using
12199 ipa_param_body_adjustments, copy param_adjustments instead of
12200 args_to_skip.
12201 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12202 (cgraph_node::create_virtual_clone): Likewise.
12203 (cgraph_node::create_version_clone_with_body): Likewise.
12204 (cgraph_materialize_clone): Likewise.
12205 (symbol_table::materialize_all_clones): Likewise.
12206 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12207 ipa_replace_map check.
12208 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12209 (initialize_node_lattices): Make aware that some parameters might have
12210 already been removed.
12211 (want_remove_some_param_p): New function.
12212 (create_specialized_node): Convert to using ipa_param_adjustments and
12213 deal with possibly pre-existing adjustments.
12214 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12215 (output_node_opt_summary): Do not stream removed fields. Stream
12216 parameter adjustments instead of argumetns to skip.
12217 (input_node_opt_summary): Likewise.
12218 (input_node_opt_summary): Likewise.
12219 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12220 * lto-streamer.h (lto_section_type): Likewise.
12221 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12222 param_body_adjs.
12223 (copy_decl_to_var): Declare.
12224 * tree-inline.c (update_clone_info): Do not remap old_tree.
12225 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12226 statements, walk all extra generated statements and remap their
12227 operands.
12228 (redirect_all_calls): Add killed SSA names to a hash set.
12229 (remap_ssa_name): Do not remap killed SSA names.
12230 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12231 half of functionality moved to ipa_param_body_adjustments.
12232 (copy_decl_to_var): Make exported.
12233 (copy_body): Destroy killed_new_ssa_names hash set.
12234 (expand_call_inline): Remap performed splits.
12235 (update_clone_info): Likewise.
12236 (tree_function_versioning): Simplify tree_map processing. Updated to
12237 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12238 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12239 for the new interface.
12240 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12241 (simd_clone_compute_base_data_type): Likewise.
12242 (simd_clone_init_simd_arrays): Adjust for the new interface.
12243 (simd_clone_adjust_argument_types): Likewise.
12244 (struct modify_stmt_info): Likewise.
12245 (ipa_simd_modify_stmt_ops): Likewise.
12246 (ipa_simd_modify_function_body): Likewise.
12247 (simd_clone_adjust): Likewise.
12248 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12249 (type_internals_preclude_sra_p): Make public.
12250 * tree-sra.h: New file.
12251 * ipa-inline-transform.c (save_inline_function_body): Update to
12252 refelct new tree_function_versioning signature.
12253 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12254 ipa_param_adjustments to get current parameter indices.
12255 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12256 (ipcp_update_bits): Likewise.
12257 (ipcp_update_vr): Likewise.
12258 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12259 * ipa-sra.c: New file.
12260 * multiple_target.c (create_target_clone): Update to reflet new type
12261 of create_version_clone_with_body.
12262 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12263 tree_function_versioning.
12264 (modify_function): Update to reflect new type of
12265 tree_function_versioning.
12266 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12267 * passes.def: Remove old IPA-SRA and add new one.
12268 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12269 (make_pass_ipa_sra): Declare.
12270 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12271 ipa_sra_retvalues.
12272 * doc/invoke.texi (ipa-sra-max-replacements): New.
12273
12274 2019-09-19 Martin Sebor <msebor@redhat.com>
12275
12276 PR middle-end/91631
12277 * builtins.c (component_size): Correct trailing array computation,
12278 rename to component_ref_size and move...
12279 (compute_objsize): Adjust.
12280 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12281 (builtin_access::strict): Do not consider memmove.
12282 (builtin_access::write_off): New function.
12283 (builtin_memref::builtin_memref): Initialize refsize.
12284 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12285 refsize.
12286 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12287 Handle refsize.
12288 (builtin_access::builtin_access): Initialize dstoff to destination
12289 refeence offset here instead of in maybe_diag_overlap. Adjust
12290 referencess even to unrelated objects. Adjust sizrange of bounded
12291 string functions to reflect bound. For strcat, adjust destination
12292 sizrange by that of source.
12293 (builtin_access::strcat_overlap): Adjust offsets and sizes
12294 to reflect the increase in destination sizrange above.
12295 (builtin_access::overlap): Do not set dstoff here but instead
12296 in builtin_access::builtin_access.
12297 (check_bounds_or_overlap): Use builtin_access::write_off.
12298 (maybe_diag_access_bounds): Add argument. Add informational notes.
12299 (dump_builtin_memref, dump_builtin_access): New functions.
12300 * tree.c (component_ref_size): ...to here.
12301 * tree.h (component_ref_size): Declare.
12302 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12303 nul in the size of the source string.
12304
12305 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12306
12307 PR c/67224
12308 * doc/cpp.texi: Document support for extended characters in
12309 identifiers.
12310 * doc/cppopts.texi: Likewise.
12311
12312 2019-09-19 Richard Biener <rguenther@suse.de>
12313
12314 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12315 (check_reduction_path): New overload having the path as result.
12316 (vect_is_simple_reduction): From the detected reduction
12317 path build a SLP reduction chain if possible.
12318
12319 2019-09-19 Richard Biener <rguenther@suse.de>
12320
12321 PR target/91814
12322 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12323 Force operand to a register if it isn't nonimmediate_operand.
12324
12325 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12326
12327 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12328 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12329 (logical_op): Remove code attribute.
12330 (logical_OP): Likewise.
12331
12332 2019-09-19 Martin Liska <mliska@suse.cz>
12333
12334 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12335 Use proper casting.
12336
12337 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12338
12339 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12340 registers with %R.
12341
12342 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12343 for NE comparison of TImode values.
12344 (aarch64_emit_load_exclusive): Add support for TImode.
12345 (aarch64_emit_store_exclusive): Likewise.
12346 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12347 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12348 Change iterator from ALLI to ALLI_TI.
12349 (@atomic_compare_and_swap<JUST_TI>): New.
12350 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12351 (aarch64_load_exclusive_pair): New.
12352 (aarch64_store_exclusive_pair): New.
12353 * config/aarch64/iterators.md (JUST_TI): New.
12354
12355 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12356 strong_zero_p for aarch64_track_speculation; unify some code paths;
12357 use aarch64_gen_compare_reg instead of open-coding.
12358
12359 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12360 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12361 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12362 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12363 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12364 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12365 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12366 (atomic_<atomic_op><ALLI>): Likewise.
12367 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12368 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12369 * doc/invoke.texi: Document -moutline-atomics.
12370
12371 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12372
12373 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12374 trivial predicate for condition branch.
12375 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12376 for switch case.
12377 (compute_bb_predicates): Update predicate based on post-dominating
12378 relationship.
12379 (analyze_function_body): Calculate post-dominating information.
12380
12381 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12382
12383 * tree-vectorizer.h (vectorizable_condition): Take an int
12384 reduction index instead of a boolean flag.
12385 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12386 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12387 reductions if the reduction accumulator is the "then" rather
12388 than the "else" value.
12389 (vect_analyze_stmt): Update call accordingly.
12390 (vect_transform_stmt): Likewise.
12391 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12392 asserting that the index is > 0.
12393
12394 2019-09-19 Martin Liska <mliska@suse.cz>
12395
12396 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12397 (sort_congruence_classes_by_decl_uid): Likewise.
12398 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12399 easier sorting.
12400 (sem_item_optimizer::merge_classes): Likewise.
12401
12402 2019-09-19 Richard Biener <rguenther@suse.de>
12403
12404 PR tree-optimization/91812
12405 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12406 volatile loads.
12407
12408 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12409
12410 * defaults.h (TARGET_UNIT): New macro.
12411 (target_unit): New type.
12412 * rtl.h (native_encode_rtx, native_decode_rtx)
12413 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12414 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12415 * rtlanal.c (subreg_lsb_1): Delete.
12416 (subreg_size_lsb): New function.
12417 * simplify-rtx.c: Include rtx-vector-builder.h
12418 (simplify_immed_subreg): Delete.
12419 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12420 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12421 functions.
12422 (simplify_subreg): Use them.
12423 (test_vector_subregs_modes, test_vector_subregs_repeating)
12424 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12425 (test_vector_subregs): New functions.
12426 (test_vector_ops): Call test_vector_subregs for integer vector
12427 modes with at least 2 elements.
12428
12429 2019-09-19 Richard Biener <rguenther@suse.de>
12430
12431 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12432 LOOP_VINFO_OPERANDS_SWAPPED.
12433 (parloops_is_simple_reduction): Likewise.
12434 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12435 initialize operands_swapped.
12436 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12437 (vect_is_slp_reduction): Do not swap operands.
12438 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12439 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12440
12441 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12442
12443 PR target/87007
12444 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12445 Add avx_partial_xmm_update.
12446
12447 2019-09-18 Jim Wilson <jimw@sifive.com>
12448
12449 PR target/91683
12450 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12451 (riscv_move_integer): Likewise.
12452 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12453 riscv_move_integer arg.
12454 (riscv_legitimize_move): Likewise.
12455 (riscv_force_temporary): New parameter in_splitter. Don't call
12456 force_reg if true.
12457 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12458 arg.
12459 (riscv_add_offset): Likewise.
12460 (riscv_split_symbol): New parameter in_splitter. Pass to
12461 riscv_force_temporary.
12462 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12463 arg.
12464 (riscv_move_integer): New parameter in_splitter. New local
12465 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12466 in_splitter TRUE.
12467 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12468 riscv_split_symbol, and riscv_force_temporary args.
12469 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12470 riscv_move_integer arg.
12471 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12472
12473 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12474
12475 PR target/90878
12476 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12477 hard register store cost to 6.
12478
12479 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12480
12481 PR target/91446
12482 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12483 pseudo register store cost from 3 to 6 to make it the same as
12484 QImode and HImode.
12485
12486 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12487
12488 PR target/91738
12489 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12490 (one_cmpldi2): Likewise.
12491 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12492 of the constant parts is simple.
12493 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12494 (logical_op): Add new code attribute.
12495 (logical_OP): Likewise.
12496 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12497 (arm_iordi_operand): Add predicate.
12498 (arm_xordi_operand): Add predicate.
12499
12500 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12501
12502 * config/arm/arm.md (maddsidi4): Remove expander.
12503 (mulsidi3adddi): Remove pattern.
12504 (mulsidi3adddi_v6): Likewise.
12505 (mulsidi3_nov6): Likewise.
12506 (mulsidi3_v6): Likewise.
12507 (umulsidi3): Remove expander.
12508 (umulsidi3_nov6): Remove pattern.
12509 (umulsidi3_v6): Likewise.
12510 (umulsidi3adddi): Likewise.
12511 (umulsidi3adddi_v6): Likewise.
12512 (<Us>mulsidi3): Add combined expander.
12513 (<Us>maddsidi4): Likewise.
12514 (<US>mull): Add combined umull and smull pattern.
12515 (<US>mlal): Likewise.
12516 * config/arm/iterators.md (Us): Add new iterator.
12517
12518 2019-09-18 Richard Biener <rguenther@suse.de>
12519
12520 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12521 swapping.
12522 (vectorize_fold_left_reduction): Remove assert.
12523 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12524 operand in position 2. Remove assert.
12525
12526 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12527
12528 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12529 (smulsi3_highpart_nov6): Remove pattern.
12530 (smulsi3_highpart_v6): Likewise.
12531 (umulsi3_highpart): Likewise.
12532 (umulsi3_highpart_nov6): Likewise.
12533 (umulsi3_highpart_v6): Likewise.
12534 (<US>mull_high): Add new combined multiply pattern.
12535
12536 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12537
12538 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12539 (arm_mulsi3_v6): Likewise.
12540 (mulsi3addsi_v6): Likewise.
12541 (mulsi3subsi): Likewise.
12542 (mul): Add new multiply pattern.
12543 (mla): Likewise.
12544 (mls): Likewise.
12545
12546 2019-09-18 Richard Biener <rguenther@suse.de>
12547
12548 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12549 (parloops_valid_reduction_input_p): Copy from
12550 valid_reduction_input_p.
12551 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12552 (parloops_needs_fold_left_reduction_p): Copy from
12553 needs_fold_left_reduction_p.
12554 (parloops_is_simple_reduction): Copy from
12555 vect_is_simple_reduction.
12556 (parloops_force_simple_reduction): Copy from
12557 vect_force_simple_reduction.
12558 (gather_scalar_reductions): Adjust.
12559 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12560 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12561
12562 2019-09-18 Richard Biener <rguenther@suse.de>
12563
12564 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12565 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12566 static.
12567 (vect_create_epilog_for_reduction): Remove dead code.
12568
12569 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12570
12571 * varasm.c (assemble_real): Generate canonical const_ints.
12572
12573 2019-09-18 Richard Biener <rguenther@suse.de>
12574
12575 PR lto/91763
12576 * lto-streamer-in.c (input_eh_regions): Move EH init to
12577 lto_materialize_function.
12578 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12579 Likewise.
12580
12581 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12582
12583 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12584 are INTEGER_CSTs.
12585
12586 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12587
12588 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12589 of checking specifically for INTEGER_CST.
12590
12591 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12592
12593 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12594 sizes instead of uhwi sizes.
12595
12596 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12597
12598 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12599 (add_const_value_attribute): Handle CONST_POLY_INT.
12600
12601 2019-09-18 Martin Liska <mliska@suse.cz>
12602
12603 * dbgcnt.def (store_merging): New counter.
12604 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12605 Use it in store merging.
12606
12607 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12608
12609 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12610 function.
12611 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12612 * config/arm/arm.c (arm_sched_variable_issue): New function.
12613 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12614
12615 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12616
12617 * config/arm/types.md (no_reservation): New reservation.
12618 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12619 no_insn here.
12620 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12621 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12622 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12623 * config/arm/arm1020e.md (1020alu_op): Likewise.
12624 * config/arm/arm1026ejs.md (alu_op): Likewise.
12625 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12626 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12627 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12628 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12629 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12630 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12631 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12632 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12633 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12634 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12635 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12636 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12637 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12638 * config/arm/fa526.md (526_alu_op): Likewise.
12639 * config/arm/fa606te.md (606te_alu_op): Likewise.
12640 * config/arm/fa626te.md (626te_alu_op): Likewise.
12641 * config/arm/fa726te.md (726te_alu_op): Likewise.
12642 * config/arm/xgene1.md (xgene1_nop): Likewise.
12643
12644 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12645
12646 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12647 "no_insn" to "branch".
12648
12649 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12650
12651 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12652
12653 2019-09-17 Richard Biener <rguenther@suse.de>
12654
12655 PR debug/91772
12656 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12657 was missing generate locations only once.
12658
12659 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12660
12661 PR ipa/91089
12662 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12663 option.
12664 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12665 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12666 for switch default case using range analysis information.
12667
12668 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12669
12670 PR target/91749
12671 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12672 mode attributed is supported by FDPIC.
12673
12674 2019-09-17 Richard Biener <rguenther@suse.de>
12675
12676 PR tree-optimization/91790
12677 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12678 use the correct DR for setting up realignment.
12679
12680 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12681
12682 PR target/91719
12683 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12684 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12685 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12686 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12687
12688 2019-09-16 Jason Merrill <jason@redhat.com>
12689
12690 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12691
12692 2019-09-16 Martin Liska <mliska@suse.cz>
12693
12694 * gimple-fold.c (or_comparisons_1): Remove rules moved
12695 to ...
12696 * match.pd: ... here.
12697
12698 2019-09-16 Martin Liska <mliska@suse.cz>
12699
12700 * gimple-fold.c (or_comparisons_1): Remove rules
12701 moved to ...
12702 * match.pd: ... here.
12703
12704 2019-09-16 Martin Liska <mliska@suse.cz>
12705
12706 * genmatch.c (dt_node::append_simplify): Do not print
12707 warning when we have duplicate patterns belonging
12708 to a same simplify rule.
12709 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12710 (maybe_fold_comparisons_from_match_pd): Handle
12711 tcc_comparison as a results.
12712 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12713
12714 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12715 Qi Feng <ffengqi@linux.ibm.com>
12716
12717 PR middle-end/88784
12718 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12719 (x > y && x == XXX_MIN): Optimize into 'false'.
12720 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12721 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12722 (x < y && x == XXX_MAX): Optimize into 'false'.
12723 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12724 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12725 (x <= y || x != XXX_MIN): Optimize into 'true'.
12726 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12727 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12728 (x >= y || x != XXX_MAX): Optimize into 'true'.
12729 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12730
12731 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12732 Martin Liska <mliska@suse.cz>
12733
12734 * gimple-fold.c (and_comparisons_1): Add type as first
12735 argument.
12736 (and_var_with_comparison): Likewise.
12737 (and_var_with_comparison_1): Likewise.
12738 (or_comparisons_1): Likewise.
12739 (or_var_with_comparison): Likewise.
12740 (or_var_with_comparison_1): Likewise.
12741 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12742 (maybe_fold_or_comparisons): Likewise.
12743 (maybe_fold_comparisons_from_match_pd): New.
12744 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12745 (maybe_fold_or_comparisons): Likewise.
12746 * gimple.c (gimple_size): Make it public and add num_ops argument.
12747 (gimple_init): New function.
12748 (gimple_alloc): Call gimple_init.
12749 * gimple.h (gimple_size): New.
12750 (gimple_init): Likewise.
12751 * tree-if-conv.c (fold_or_predicates): Pass type.
12752 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12753 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12754 (optimize_vec_cond_expr): Likewise.
12755 (ovce_extract_ops): Return type of conditional expression.
12756 * tree-ssanames.c (init_ssa_name_imm_use): New.
12757 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12758 * tree-ssanames.h (init_ssa_name_imm_use): New.
12759
12760 2019-09-16 Richard Biener <rguenther@suse.de>
12761
12762 PR tree-optimization/91756
12763 PR tree-optimization/87132
12764 * tree-ssa-alias.h (enum translate_flags): New.
12765 (get_continuation_for_phi): Use it instead of simple bool flag.
12766 (walk_non_aliased_vuses): Likewise.
12767 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12768 (get_continuation_for_phi): When looking across backedges only
12769 disallow valueization.
12770 (walk_non_aliased_vuses): Adjust.
12771 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12772 if requested.
12773
12774 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12775
12776 PR middle-end/80791
12777 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12778 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12779 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12780 * target.def (have_count_reg_decr_p): New hook.
12781 (doloop_cost_for_generic): Likewise.
12782 (doloop_cost_for_address): Likewise.
12783 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12784 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12785 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12786 * doc/tm.texi: Regenerate.
12787 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12788 addend.
12789 (record_group): Init doloop_p.
12790 (add_candidate_1): Add optional argument doloop, change the handlings
12791 accordingly.
12792 (add_candidate): Likewise.
12793 (generic_predict_doloop_p): Update attribute.
12794 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12795 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12796 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12797 MIN_EXPR.
12798 (get_computation_cost): Update for doloop IV cand extra cost.
12799 (determine_group_iv_cost_cond): Update for doloop IV cand.
12800 (determine_iv_cost): Likewise.
12801 (ivopts_estimate_reg_pressure): Likewise.
12802 (may_eliminate_iv): Update handlings for doloop IV cand.
12803 (add_iv_candidate_for_doloop): New function.
12804 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12805 (iv_ca_set_no_cp): Update for doloop IV cand.
12806 (iv_ca_set_cp): Likewise.
12807 (iv_ca_dump): Dump register cost.
12808 (find_doloop_use): New function.
12809 (analyze_and_mark_doloop_use): Likewise.
12810 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12811
12812 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12813
12814 PR middle-end/91708
12815 * cse.c (cse_insn): Do not replace anything with a
12816 MEM.
12817
12818 2019-09-13 Ian Lance Taylor <iant@golang.org>
12819
12820 * doc/invoke.texi (Optimize Options): Fix typo.
12821
12822 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12823
12824 PR tree-optimization/89386
12825 * config/i386/sse.md (smulhrs<mode>3): New expander.
12826 (smulhrsv4hi3): Ditto.
12827
12828 2019-09-12 Richard Biener <rguenther@suse.de>
12829
12830 PR tree-optimization/91750
12831 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12832 in the type of the evolution.
12833
12834 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12835
12836 PR tree-optimization/89386
12837 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12838 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12839 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12840 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12841 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12842 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12843 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12844 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12845 (su, r): Handle the unspecs above.
12846 (bt): New int attribute.
12847 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12848 * internal-fn.c (first_commutative_argument): Commutativity info for
12849 above.
12850 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12851 (umulhrs_optab): New optabs.
12852 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12853 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12854 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12855 function.
12856 (vect_vect_recog_func_ptrs): Add it.
12857
12858 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12859
12860 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12861 code.
12862
12863 2019-09-11 Nathan Sidwell <nathan@acm.org>
12864
12865 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12866 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12867
12868 2019-09-11 Richard Biener <rguenther@suse.de>
12869
12870 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12871 * lto-wrapper.c (merge_and_complain): Pick up -g.
12872 (append_compiler_options): Likewise.
12873 (run_gcc): Re-instantiate handling -g0 at link-time.
12874 * doc/invoke.texi (flto): Document debug info generation.
12875
12876 2019-09-11 Richard Biener <rguenther@suse.de>
12877
12878 PR tree-optimization/90387
12879 * vr-values.c (vr_values::extract_range_basic): After inlining
12880 simplify non-constant __builtin_constant_p to false.
12881
12882 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12883
12884 PR rtl-optimization/89795
12885 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12886 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12887
12888 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12889
12890 PR tree-optimization/91723
12891 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12892 instead of pointer equality when checking if argument vectypes are
12893 the same.
12894
12895 PR middle-end/91725
12896 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12897 of get_nonzero_bits, only call it for integral types.
12898
12899 2019-09-11 Richard Biener <rguenther@suse.de>
12900
12901 Revert
12902 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12903
12904 * match.pd: Add flag_unsafe_math_optimizations check
12905 before deciding on the widest type in a binary math operation.
12906
12907 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12908
12909 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12910 and CALL_REALLY_USED_REGISTERS must be defined, and that
12911 CALL_REALLY_USED_REGISTERS is preferred.
12912 * doc/tm.texi: Regenerate.
12913 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12914 (call_really_used_regs): Likewise.
12915 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12916 CALL_REALLY_USED_REGISTERS are defined.
12917 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12918 initial value if defined.
12919 (initial_call_really_used_regs): Delete.
12920 (saved_call_really_used_regs): Likewise.
12921 (CALL_REALLY_USED_REGNO_P): Likewise.
12922 (init_reg_sets): Remove handling of call_really_used_regs.
12923 (save_register_info, restore_register_info, globalize_reg): Likewise.
12924 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12925 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12926 outside operand_reg_set.
12927 (fix_register): Don't change call_used_regs if
12928 CALL_REALLY_USED_REGISTERS is defined.
12929 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12930 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12931 instead of call_really_used_regs.
12932 (csky_conditional_register_usage): Remove the old handling of
12933 call_used_regs and change the handling of call_really_used_regs
12934 to use call_used_regs instead.
12935 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12936 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12937 making a register fixed.
12938 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12939 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12940 instead of call_really_used_regs.
12941 (m32r_conditional_register_usage): Don't set call_used_regs when
12942 making a register fixed.
12943 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12944 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12945 instead of call_really_used_regs.
12946 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12947 (mips_cfun_call_saved_reg_p): Likewise.
12948 (mips_swap_registers): Remove the old handling of call_used_regs
12949 and change the handling of call_really_used_regs to use call_used_regs
12950 instead.
12951 (mips_conditional_register_usage): Likewise.
12952 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12953 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12954 instead of call_really_used_regs.
12955 (mn10300_get_live_callee_saved_regs): Likewise.
12956 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12957 (mn10300_conditional_register_usage): Don't set call_used_regs when
12958 making a register fixed.
12959 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12960 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12961 Remove the old handling of call_used_regs and change the handling
12962 of call_really_used_regs to use call_used_regs instead.
12963 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12964 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12965 instead of call_really_used_regs.
12966 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12967 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12968 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12969 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12970 (s390_conditional_register_usage): Remove the old handling of
12971 call_used_regs and change the handling of call_really_used_regs
12972 to use call_used_regs instead.
12973 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12974 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12975 (sh_fix_range, reg_unused_after): Likewise.
12976 (sh_conditional_register_usage): Remove the old handling of
12977 call_used_regs and change the handling of call_really_used_regs
12978 to use call_used_regs instead.
12979 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12980 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12981 call_used_regs when making a register fixed.
12982 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12983 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12984 call_used_regs when making a register fixed.
12985 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12986 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12987 set call_used_regs when making a register fixed.
12988 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12989 * config/visium/visium.c (visium_conditional_register_usage): Remove
12990 the old handling of call_used_regs and change the handling of
12991 call_really_used_regs to use call_used_regs instead.
12992
12993 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12994
12995 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12996 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12997 * reginfo.c (call_used_regs): New macro.
12998
12999 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13000
13001 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13002 fixed_regs test.
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): Likewise.
13006 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13007 (ft32_expand_epilogue): Likewise.
13008 * config/i386/i386.c (ix86_save_reg): Likewise.
13009 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13010 (moxie_expand_epilogue): Likewise.
13011 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13012 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13013 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13014
13015 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13016
13017 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13018 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13019 instead of testing call_used_regs directly.
13020 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13021 (aarch64_components_for_bb): Likewise.
13022 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13023 * config/arc/arc.c (arc_must_save_register): Likewise.
13024 (arc_epilogue_uses): Likewise.
13025 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13026 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13027 (arm_compute_save_reg0_reg12_mask): Likewise.
13028 (arm_compute_save_core_reg_mask): Likewise.
13029 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13030 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13031 (cmse_nonsecure_entry_clear_before_return): Likewise.
13032 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13033 (arm_expand_epilogue): Likewise.
13034 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13035 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13036 (_reg_unused_after): Likewise.
13037 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13038 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13039 (add_to_reg, hwloop_optimize): Likewise.
13040 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13041 (bpf_expand_epilogue): Likewise.
13042 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13043 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13044 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13045 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13046 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13047 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13048 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13049 * config/frv/frv.c (frv_stack_info): Likewise.
13050 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13051 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13052 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13053 (move_callee_saved_registers): Likewise.
13054 * config/h8300/h8300.c (byte_reg): Likewise.
13055 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13056 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13057 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13058 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13059 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13060 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13061 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13062 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13063 * config/m32c/m32c.c (need_to_save): Likewise.
13064 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13065 * config/mcore/mcore.c (calc_live_regs): Likewise.
13066 * config/microblaze/microblaze.c (microblaze_must_save_register):
13067 Likewise.
13068 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13069 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13070 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13071 (mmix_expand_epilogue): Likewise.
13072 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13073 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13074 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13075 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13076 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13077 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13078 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13079 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13080 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13081 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13082 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13083 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13084 * config/rl78/rl78.c (need_to_save): Likewise.
13085 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13086 (rs6000_stack_info, generate_set_vrsave): Likewise.
13087 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13088 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13089 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13090 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13091 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13092 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13093 (save_local_or_in_reg_p): Likewise.
13094 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13095 (xstormy16_epilogue_uses): Likewise.
13096 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13097 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13098 * config/v850/v850.c (compute_register_save_size): Likewise.
13099 * config/vax/vax.c (vax_expand_prologue): Likewise.
13100 * config/visium/visium.c (visium_save_reg_p): Likewise.
13101 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13102 * cselib.c (cselib_process_insn): Likewise.
13103 * df-scan.c (df_get_entry_block_def_set): Likewise.
13104 * function.c (aggregate_value_p): Likewise.
13105 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13106 * ira-lives.c (process_bb_node_lives): Likewise.
13107 * ira.c (do_reload): Likewise.
13108 * lra-lives.c (process_bb_lives): Likewise.
13109 * lra-remat.c (lra_remat): Likewise.
13110 * lra.c (lra): Likewise.
13111 * postreload.c (reload_combine_recognize_pattern): Likewise.
13112 (reload_cse_move2add): Likewise.
13113 * recog.c (peep2_find_free_register): Likewise.
13114 * regrename.c (check_new_reg_p): Likewise.
13115 * reload.c (find_equiv_reg): Likewise.
13116 * reload1.c (reload, find_reg): Likewise.
13117 * sel-sched.c (init_hard_regs_data): Likewise.
13118
13119 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13120
13121 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13122 regs_invalidated_by_call & ~fixed_reg_set instead of
13123 call_used_or_fixed_regs & ~fixed_reg_set.
13124 * config/sh/sh.c (output_stack_adjust): Likewise.
13125
13126 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13127
13128 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13129 (call_used_reg_set): Delete.
13130 (call_used_or_fixed_regs): New macro.
13131 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13132 of call_used_reg_set.
13133 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13134 instead of call_used_regs.
13135 (save_call_clobbered_regs): Likewise.
13136 * cfgcleanup.c (old_insns_match_p): Likewise.
13137 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13138 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13139 Likewise.
13140 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13141 * config/sh/sh.c (output_stack_adjust): Likewise.
13142 * final.c (collect_fn_hard_reg_usage): Likewise.
13143 * ira-build.c (ira_build): Likewise.
13144 * ira-color.c (calculate_saved_nregs): Likewise.
13145 (allocno_reload_assign, calculate_spill_cost): Likewise.
13146 * ira-conflicts.c (ira_build_conflicts): Likewise.
13147 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13148 * ira-lives.c (process_bb_node_lives): Likewise.
13149 * ira.c (setup_reg_renumber): Likewise.
13150 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13151 * lra-constraints.c (need_for_call_save_p): Likewise.
13152 (need_for_split_p, inherit_in_ebb): Likewise.
13153 * lra-lives.c (process_bb_lives): Likewise.
13154 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13155 * postreload.c (reload_combine): Likewise.
13156 * regrename.c (find_rename_reg): Likewise.
13157 * reload1.c (reload_as_needed): Likewise.
13158 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13159 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13160 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13161
13162 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13163
13164 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13165 (no_caller_save_reg_set): Delete.
13166 * caller-save.c (init_caller_save): Don't initialize it.
13167 * ira-conflicts.c (ira_build_conflicts): Calculate
13168 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13169
13170 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13171
13172 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13173 (target_hard_regs::x_savable_regs): New field.
13174 (call_fixed_reg_set): Delete.
13175 (savable_regs): New macro,
13176 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13177 (init_reg_sets_1): Likewise. Initialize savable_regs.
13178 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13179 for all registers. Set savable_regs instead of call_fixed_reg_set.
13180 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13181 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13182 * config/sh/sh.c (output_stack_adjust): Likewise.
13183
13184 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13185
13186 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13187 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13188 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13189
13190 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13191
13192 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13193 * rtlanal.c (get_call_rtx_from): Likewise.
13194 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13195 than the pattern to get_call_rtx_from.
13196 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13197 an rtx_insn * instead of an rtx.
13198 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13199
13200 2019-09-10 Martin Liska <mliska@suse.cz>
13201
13202 * common.opt: Use newly added WarnRemoved.
13203 * config/aarch64/aarch64.opt: Likewise.
13204 * config/arm/arm.opt: Likewise.
13205 * config/i386/i386.opt: Likewise.
13206 * config/ia64/ia64.opt: Likewise.
13207 * config/rs6000/rs6000.opt: Likewise.
13208 * doc/options.texi: Document WarnRemoved properly.
13209 * dwarf2out.c (gen_producer_string): Handle renamed
13210 OPT_SPECIAL_warn_removed.
13211 * lto-opts.c (lto_write_options): Likewise.
13212 * lto-wrapper.c (merge_and_complain): Likewise.
13213 * opts-common.c (decode_cmdline_option): Likewise.
13214 (prune_options): Likewise.
13215 (read_cmdline_option): Likewise.
13216 (control_warning_option): Likewise.
13217 * opts.c (print_filtered_help): Likewise.
13218 * optc-gen.awk: Parse for WarnRemoved and make usage
13219 of Deprecated an error.
13220 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13221
13222 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13223
13224 * doc/install.texi: Fix syntax for html generation.
13225
13226 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13227
13228 PR middle-end/91680
13229 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13230 the shift type to type.
13231
13232 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13233
13234 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13235 FDPIC mode.
13236 (stack_protect_combined_test_insn): Likewise.
13237
13238 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13239 Mickaël Guêné <mickael.guene@st.com>
13240
13241 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13242 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13243 (load_tp_soft_fdpic): New pattern.
13244 (load_tp_soft): Disable in FDPIC mode.
13245
13246 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13247 Mickaël Guêné <mickael.guene@st.com>
13248
13249 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13250 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13251 (arm_call_tls_get_addr): Add FDPIC support.
13252 (legitimize_tls_address): Likewise.
13253 (arm_emit_tls_decoration): Likewise.
13254
13255 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13256 Mickaël Guêné <mickael.guene@st.com>
13257
13258 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13259 support.
13260 (arm_trampoline_init): Likewise.
13261 (arm_trampoline_adjust_address): Likewise.
13262 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13263
13264 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13265 Mickaël Guêné <mickael.guene@st.com>
13266
13267 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13268 (legitimize_pic_address): Enforce binding rules on function
13269 pointers in FDPIC mode.
13270 (arm_assemble_integer): Likewise.
13271
13272 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13273 Mickaël Guêné <mickael.guene@st.com>
13274
13275 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13276 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13277 FDPIC.
13278
13279 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13280 Mickaël Guêné <mickael.guene@st.com>
13281
13282 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13283 field.
13284
13285 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13286 Mickaël Guêné <mickael.guene@st.com>
13287
13288 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13289 in FDPIC mode.
13290 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13291 new function.
13292 * config/arm/arm.c (arm_option_override): Define pic register to
13293 FDPIC_REGNUM.
13294 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13295 have no decl or go through PLT.
13296 (calculate_pic_address_constant): New function.
13297 (legitimize_pic_address): Call calculate_pic_address_constant.
13298 (arm_load_pic_register): Handle TARGET_FDPIC.
13299 (arm_is_segment_info_known): New function.
13300 (arm_pic_static_addr): Add support for FDPIC.
13301 (arm_load_function_descriptor): New function.
13302 (arm_emit_call_insn): Add support for FDPIC.
13303 (arm_assemble_integer): Add support for FDPIC.
13304 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13305 Define. (FDPIC_REGNUM): New define.
13306 * config/arm/arm.md (call): Add support for FDPIC.
13307 (call_value): Likewise.
13308 (restore_pic_register_after_call): New pattern.
13309 (untyped_call): Disable if FDPIC.
13310 (untyped_return): Likewise.
13311 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13312
13313 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13314 Mickaël Guêné <mickael.guene@st.com>
13315
13316 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13317 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13318 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13319 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13320 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13321 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13322 * config/arm/uclinuxfdpiceabi.h: New file.
13323
13324 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13325
13326 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13327
13328 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13329 Mickaël Guêné <mickael.guene@st.com>
13330
13331 * config/arm/arm.opt: Add -mfdpic option.
13332 * doc/invoke.texi: Add documentation for -mfdpic.
13333
13334 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13335
13336 * expmed.c (extract_bit_field): Update function comment
13337 regarding alt_rtl.
13338 * expr.c (expand_expr_real): Update function comment
13339 regarding alt_rtl.
13340 (expand_misaligned_mem_ref): New helper function.
13341 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13342 Remove duplicate assignment to "base" at case MEM_REF.
13343 Remove a shadowed variable "unsignedp" at case VCE.
13344
13345 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13346
13347 * regset.h (regs_invalidated_by_call_regset): Delete.
13348 (fixed_reg_set_regset): Likewise.
13349 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13350 (fixed_reg_set_regset, persistent_obstack): Likewise.
13351 (init_reg_sets_1, globalize_reg): Update accordingly.
13352 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13353 instead of a bitmap.
13354 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13355 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13356 instead of regs_invalidated_by_call_regset.
13357 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13358 * df-scan.c (df_scan_start_dump): Likewise.
13359 * dse.c (copy_fixed_regs): Likewise.
13360 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13361
13362 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13363
13364 * array-traits.h: New file.
13365 * coretypes.h (array_traits, bitmap_view): New types.
13366 * bitmap.h: Include "array-traits.h"
13367 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13368 (base_bitmap_view, bitmap_view): New classes.
13369 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13370 * hard-reg-set.h: Include array-traits.h.
13371 (array_traits<HARD_REG_SET>): New struct.
13372 * regset.h (IOR_REG_SET_HRS): New macro.
13373 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13374 rather than iterating over each hard register.
13375 * sched-deps.c (sched_analyze_insn): Likewise.
13376 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13377
13378 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13379
13380 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13381 instead of a HARD_REG_SET *.
13382 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13383 (ira_build): Update call accordingly.
13384 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13385
13386 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13387
13388 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13389 (HARD_REG_SET::operator!=): Likewise.
13390 (hard_reg_set_equal_p): Delete.
13391 * cfgcleanup.c (old_insns_match_p): Use == instead of
13392 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13393 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13394 (add_allocno_hard_regs_to_forest): Likewise.
13395 (setup_allocno_available_regs_num): Likewise.
13396 * ira.c (setup_pressure_classes): Likewise.
13397 (setup_allocno_and_important_classes): Likewise.
13398 (setup_reg_class_relations): Likewise.
13399 * lra-lives.c (process_bb_lives): Likewise.
13400 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13401
13402 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13403
13404 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13405 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13406 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13407 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13408 Likewise.
13409 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13410 * ira.c (setup_reg_renumber): Likewise.
13411 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13412 * regrename.c (regrename_find_superclass): Likewise.
13413 * reload1.c (find_reg): Likewise.
13414
13415 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13416
13417 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13418 * caller-save.c (setup_save_areas): Use "&~" instead of
13419 AND_COMPL_HARD_REG_SET.
13420 (save_call_clobbered_regs): Likewise.
13421 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13422 Likewise.
13423 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13424 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13425 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13426 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13427 (mips_conditional_register_usage): Likewise.
13428 * config/sh/sh.c (output_stack_adjust): Likewise.
13429 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13430 (setup_profitable_hard_regs): Likewise.
13431 (get_conflict_and_start_profitable_regs): Likewise.
13432 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13433 (ira_build_conflicts): Likewise.
13434 * ira-costs.c (restrict_cost_classes): Likewise.
13435 (setup_regno_cost_classes_by_aclass): Likewise.
13436 * ira-lives.c (process_bb_node_lives): Likewise.
13437 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13438 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13439 (setup_allocno_and_important_classes, setup_class_translate_array)
13440 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13441 Likewise.
13442 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13443 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13444 (process_alt_operands, inherit_in_ebb): Likewise.
13445 * lra-eliminations.c (update_reg_eliminate): Likewise.
13446 * lra-lives.c (process_bb_lives): Likewise.
13447 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13448 * resource.c (find_dead_or_set_registers): Likewise.
13449 (mark_target_live_regs): Likewise.
13450 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13451 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13452 (implicit_clobber_conflict_p): Likewise.
13453 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13454 (try_shrink_wrapping): Likewise.
13455
13456 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13457
13458 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13459 (HARD_REG_SET::operator|=): Likewise.
13460 (IOR_HARD_REG_SET): Delete.
13461 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13462 IOR_HARD_REG_SET.
13463 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13464 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13465 * final.c (collect_fn_hard_reg_usage): Likewise.
13466 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13467 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13468 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13469 (propagate_some_info_from_allocno): Likewise.
13470 (copy_info_to_removed_store_destinations): Likewise.
13471 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13472 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13473 (fast_allocation): Likewise.
13474 * ira-conflicts.c (ira_build_conflicts): Likewise.
13475 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13476 (process_bb_node_lives): Likewise.
13477 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13478 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13479 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13480 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13481 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13482 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13483 (process_bb_lives): Likewise.
13484 * lra-spills.c (assign_spill_hard_regs): Likewise.
13485 * postreload.c (reload_combine): Likewise.
13486 * reginfo.c (init_reg_sets_1): Likewise.
13487 * regrename.c (merge_overlapping_regs, find_rename_reg)
13488 (merge_chains): Likewise.
13489 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13490 (find_reload_regs, finish_spills, choose_reload_regs_init)
13491 (emit_reload_insns): Likewise.
13492 * reorg.c (redundant_insn): Likewise.
13493 * resource.c (find_dead_or_set_registers, mark_set_resources)
13494 (mark_target_live_regs): Likewise.
13495 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13496 * sched-deps.c (sched_analyze_insn): Likewise.
13497 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13498 (find_best_reg_for_expr): Likewise.
13499 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13500
13501 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13502
13503 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13504 (HARD_REG_SET::operator&): Likewise.
13505 (AND_HARD_REG_SET): Delete.
13506 * caller-save.c (setup_save_areas): Use "&" instead of
13507 AND_HARD_REG_SET.
13508 (save_call_clobbered_regs): Likewise.
13509 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13510 * config/m32c/m32c.c (reduce_class): Likewise.
13511 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13512 * final.c (get_call_reg_set_usage): Likewise.
13513 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13514 (setup_left_conflict_sizes_p): Likewise.
13515 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13516 (ira_build_conflicts): Likewise.
13517 * ira-costs.c (restrict_cost_classes): Likewise.
13518 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13519 (setup_reg_class_relations): Likewise.
13520 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13521 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13522 * resource.c (find_dead_or_set_registers): Likewise.
13523 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13524
13525 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13526
13527 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13528 (COMPL_HARD_REG_SET): Delete.
13529 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13530 of COMPL_HARD_REG_SET.
13531 (try_rename_operands): Likewise.
13532 * config/sh/sh.c (push_regs): Likewise.
13533 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13534 * lra-constraints.c (contains_reg_p): Likewise.
13535 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13536
13537 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13538
13539 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13540 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13541 of COPY_HARD_REG_SET.
13542 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13543 (epiphany_conditional_register_usage): Likewise.
13544 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13545 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13546 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13547 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13548 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13549 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13550 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13551 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13552 * config/sh/sh.c (output_stack_adjust): Likewise.
13553 * final.c (collect_fn_hard_reg_usage): Likewise.
13554 (get_call_reg_set_usage): Likewise.
13555 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13556 (ira_flattening): Likewise.
13557 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13558 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13559 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13560 (ira_reassign_pseudos): Likewise.
13561 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13562 (ira_build_conflicts): Likewise.
13563 * ira-costs.c (restrict_cost_classes): Likewise.
13564 (setup_regno_cost_classes_by_aclass): Likewise.
13565 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13566 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13567 (setup_stack_reg_pressure_class, setup_pressure_classes)
13568 (setup_allocno_and_important_classes, setup_class_translate_array)
13569 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13570 (ira_setup_eliminable_regset): Likewise.
13571 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13572 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13573 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13574 (process_alt_operands, inherit_in_ebb): Likewise.
13575 * lra-lives.c (process_bb_lives): Likewise.
13576 * lra-spills.c (assign_spill_hard_regs): Likewise.
13577 * lra.c (lra): Likewise.
13578 * mode-switching.c (new_seginfo): Likewise.
13579 * postreload.c (reload_combine): Likewise.
13580 * reg-stack.c (straighten_stack): Likewise.
13581 * reginfo.c (save_register_info, restore_register_info): Likewise.
13582 (init_reg_sets_1, record_subregs_of_mode): Likewise
13583 * regrename.c (create_new_chain, rename_chains): Likewise.
13584 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13585 (find_reload_regs): Likewise.
13586 * resource.c (find_dead_or_set_registers): Likewise.
13587 (mark_target_live_regs): Likewise.
13588 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13589
13590 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13591
13592 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13593 (note_pattern_stores): Declare.
13594 (note_stores): Take an rtx_insn *.
13595 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13596 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13597 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13598 (note_stores): Take an rtx_insn * as argument and process
13599 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13600 (note_pattern_stores): ...this.
13601 (find_first_parameter_load): Pass the insn rather than
13602 its pattern to note_stores.
13603 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13604 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13605 (insert_one_insn): Likewise.
13606 * combine.c (combine_instructions): Likewise.
13607 (likely_spilled_retval_p): Likewise.
13608 (try_combine): Use note_pattern_stores instead of note_stores.
13609 (record_dead_and_set_regs): Pass the insn rather than its pattern
13610 to note_stores.
13611 (reg_dead_at_p): Likewise.
13612 * config/bfin/bfin.c (workaround_speculation): Likewise.
13613 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13614 rather than an rtx.
13615 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13616 instead of note_stores.
13617 (frv_optimize_membar_local): Pass the insn rather than its pattern
13618 to note_stores.
13619 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13620 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13621 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13622 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13623 (mips_reorg_process_insns): Likewise.
13624 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13625 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13626 rather than rtxes.
13627 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13628 its pattern to note_stores.
13629 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13630 of note_stores.
13631 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13632 the insn to note_stores.
13633 (prescan_insns_for_dce): Update call accordingly.
13634 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13635 to note_stores.
13636 * df-problems.c (can_move_insns_across): Likewise.
13637 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13638 * function.c (assign_parm_setup_reg): Likewise.
13639 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13640 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13641 (single_set_gcse): Likewise.
13642 * ira.c (validate_equiv_mem): Likewise.
13643 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13644 for no_equiv.
13645 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13646 pattern to note_stores.
13647 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13648 * loop-iv.c (simplify_using_initial_values): Likewise.
13649 * mode-switching.c (optimize_mode_switching): Likewise.
13650 * optabs.c (emit_libcall_block_1): Likewise.
13651 (expand_atomic_compare_and_swap): Likewise.
13652 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13653 (record_opr_changes): Likewise. Remove explicit handling of
13654 CALL_INSN_FUNCTION_USAGE.
13655 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13656 * regcprop.c (kill_clobbered_values): Likewise.
13657 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13658 to note_stores.
13659 * regrename.c (build_def_use): Likewise.
13660 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13661 for mark_not_eliminable.
13662 (reload_as_needed): Pass the insn rather than its pattern
13663 to note_stores.
13664 (emit_output_reload_insns): Likewise.
13665 * resource.c (mark_target_live_regs): Likewise.
13666 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13667 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13668 instead of note_stores.
13669 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13670 its pattern to note_stores.
13671 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13672 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13673
13674 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13675
13676 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13677 than a #define. Use a structure rather than an array as the
13678 fallback definition. Remove special cases for low array sizes.
13679 (const_hard_reg_set): New typedef.
13680 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13681 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13682 (hard_reg_set_empty_p): Likewise.
13683 (SET_HARD_REG_BIT): Use a function rather than a macro to
13684 handle the case in which HARD_REG_SET is a structure.
13685 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13686 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13687 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13688 (IOR_COMPL_HARD_REG_SET): Likewise.
13689 (hard_reg_set_iterator::pset): Constify the pointer target.
13690 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13691 of a "const HARD_REG_SET". Update the handling of non-integer
13692 HARD_REG_SETs.
13693 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13694 * reload.h: Likewise.
13695 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13696 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13697 of a "const HARD_REG_SET".
13698 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13699 (range_in_hard_reg_set_p): Likewise.
13700 * ira-costs.c (restrict_cost_classes): Likewise.
13701 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13702 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13703 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13704 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13705 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13706 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13707 take an unsigned int and open-code the HARD_REG_SET operations.
13708
13709 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13710
13711 * Makefile.in (OBJS): Remove bt-load.o.
13712 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13713 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13714 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13715 document that the option no longer does anything.
13716 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13717 * target.def (branch_target_register_class): Delete.
13718 (branch_target_register_callee_saved): Likewise.
13719 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13720 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13721 * doc/tm.texi: Regenerate.
13722 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13723 (make_pass_branch_target_load_optimize2): Likewise.
13724 * passes.def (pass_branch_target_load_optimize1): Likewise.
13725 (pass_branch_target_load_optimize2): Likewise.
13726 * targhooks.h (default_branch_target_register_class): Likewise.
13727 * targhooks.c (default_branch_target_register_class): Likewise.
13728 * opt-suggestions.c (test_completion_valid_options): Remove
13729 -fbtr-bb-exclusive from the list of test options.
13730 * bt-load.c: Remove.
13731
13732 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13733
13734 * match.pd: Add flag_unsafe_math_optimizations check
13735 before deciding on the widest type in a binary math operation.
13736
13737 2019-09-09 Martin Liska <mliska@suse.cz>
13738
13739 * config/i386/i386.opt: Update comment of removed
13740 options that are preserved only for backward
13741 compatibility.
13742
13743 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13744
13745 PR target/87853
13746 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13747 instead of __v16qs.
13748
13749 PR target/91704
13750 * config/i386/avxintrin.h (__v32qs): New typedef.
13751 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13752 instead of __v32qi.
13753
13754 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13755
13756 * doc/invoke.texi (Option Summary): Cover eBPF.
13757 (eBPF Options): New section.
13758 * doc/extend.texi (BPF Built-in Functions): Likewise.
13759 (BPF Kernel Helpers): Likewise.
13760
13761 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13762
13763 * config.gcc: Support for bpf-*-* targets.
13764 * common/config/bpf/bpf-common.c: New file.
13765 * config/bpf/t-bpf: Likewise.
13766 * config/bpf/predicates.md: Likewise.
13767 * config/bpf/constraints.md: Likewise.
13768 * config/bpf/bpf.opt: Likewise.
13769 * config/bpf/bpf.md: Likewise.
13770 * config/bpf/bpf.h: Likewise.
13771 * config/bpf/bpf.c: Likewise.
13772 * config/bpf/bpf-protos.h: Likewise.
13773 * config/bpf/bpf-opts.h: Likewise.
13774 * config/bpf/bpf-helpers.h: Likewise.
13775 * config/bpf/bpf-helpers.def: Likewise.
13776
13777 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13778
13779 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13780 indirect_calls.
13781
13782 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13783
13784 * opt-functions.awk (integer_range_info): Make sure values are in
13785 numeric context before operating with them.
13786
13787 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13788
13789 * genemit.c (gen_split): Print the filename and line number where the
13790 splitter (or peephole2) was defined, to the dump file.
13791
13792 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13793
13794 PR tree-optimization/91665
13795 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13796 incompatible with the type of PHI result.
13797
13798 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13799
13800 PR target/91684
13801 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13802 gen_unaligned_storedi for 4-byte aligned addresses.
13803
13804 2019-09-06 Jim Wilson <jimw@sifive.com>
13805
13806 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13807 change.
13808
13809 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13810
13811 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13812
13813 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13814
13815 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13816 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13817
13818 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13819
13820 PR target/91654
13821 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13822 cost of SSE->integer and integer->SSE moves from 2 to 6.
13823 (core_cost): Ditto.
13824
13825 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13826
13827 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13828 before testing TYPE_TRANSPARENT_AGGR.
13829 * calls.c (initialize_argument_information, load_register_parameters):
13830 Likewise.
13831
13832 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13833
13834 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13835 high regs.
13836 (cmp_ior): Likewise.
13837
13838 2019-09-06 Martin Liska <mliska@suse.cz>
13839
13840 * doc/match-and-simplify.texi: Separate tuples with ;.
13841
13842 2019-09-06 Martin Liska <mliska@suse.cz>
13843
13844 PR c++/91125
13845 * Makefile.in: Remove tlink.o.
13846 * collect2.c (do_link): New function isolated
13847 from do_tlink.
13848 (main): Use.
13849 * collect2.h (do_tlink): Remove declaration of do_tlink.
13850 * doc/extend.texi: Remove documentation of -frepo.
13851 * doc/invoke.texi: Likewise.
13852 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13853 * tlink.c: Remove.
13854
13855 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13856 Jim Wilson <jimw@sifive.com>
13857
13858 PR target/91635
13859 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13860 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13861 paradoxical_subreg_p (operands[0]).
13862 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13863 use as intermediate value.
13864
13865 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13866
13867 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13868 (sync_compare_and_swap<mode>_insn): Likewise.
13869
13870 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13871
13872 PR middle-end/91615
13873 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13874 without movmisalign optab.
13875
13876 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13877
13878 PR middle-end/91001
13879 PR middle-end/91105
13880 PR middle-end/91106
13881 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13882 types, use type of their first field instead of type of
13883 args[i].tree_value.
13884
13885 2019-09-05 Richard Biener <rguenther@suse.de>
13886
13887 PR rtl-optimization/91656
13888 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13889 of early out.
13890
13891 2019-09-05 Richard Biener <rguenther@suse.de>
13892
13893 PR middle-end/90501
13894 * tree-inline.c (declare_return_variable): Mark the return
13895 slot as addressable after building an address of it.
13896
13897 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13898
13899 * doc/install.texi: Update and clarify requirements to build GNAT.
13900
13901 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13902
13903 PR middle-end/91577
13904 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13905 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13906 call to be in memory.
13907 (pass_expand::execute): Call discover_nonconstant_array_refs before
13908 setting currently_expanding_to_rtl.
13909
13910 2019-09-04 Caroline Tice <cmtice@google.com>
13911
13912 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13913 specified together.
13914
13915 2019-09-04 Marek Polacek <polacek@redhat.com>
13916
13917 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13918
13919 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13920
13921 PR target/32413
13922 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13923 for QI and HImode moves between SSE and general registers.
13924
13925 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13926
13927 PR c/78736
13928 * doc/invoke.texi: Document -Wenum-conversion.
13929
13930 2019-09-04 Richard Biener <rguenther@suse.de>
13931
13932 PR rtl-optimization/36262
13933 * postreload-gcse.c: Include intl.h and gcse.h.
13934 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13935 to avoid linear list walk.
13936 (record_last_mem_set_info): Gate off if not computing transparentness.
13937 (get_bb_avail_insn): If transparentness isn't computed give up
13938 early.
13939 (gcse_after_reload_main): Skip compute_transp and extended PRE
13940 if gcse_or_cprop_is_too_expensive says so.
13941
13942 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13943
13944 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13945 noinit section.
13946 (msp430_select_section): Handle decls with the "noinit" attribute with
13947 default_elf_select_section.
13948 Handle SECCAT_RODATA_MERGE_* section types with
13949 default_elf_select_section.
13950 Add comments about handling of unsupported section types.
13951 (msp430_section_type_flags): Remove handling of the noinit section.
13952
13953 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13954
13955 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13956 conflicting msp430-specific attributes.
13957 (msp430_section_attr): Likewise.
13958 Add warnings about conflicts with generic "noinit" and "section"
13959 attributes.
13960 Fix grammar in -mlarge error message.
13961 (msp430_data_attr): Rename to msp430_persist_attr.
13962 Add warnings about conflicts with generic "noinit" and "section"
13963 attributes.
13964 Add warning for when variable is not initialized.
13965 Chain conditionals which prevent the attribute being added.
13966 (ATTR_EXCL): New helper.
13967 (attr_reent_exclusions): New exclusion table.
13968 (attr_naked_exclusions): Likewise.
13969 (attr_crit_exclusions): Likewise.
13970 (attr_lower_exclusions): Likewise.
13971 (attr_upper_exclusions): Likewise.
13972 (attr_either_exclusions): Likewise.
13973 (attr_persist_exclusions): Likewise.
13974 (msp430_attribute_table): Update with exclusion rules.
13975 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13976 has a section.
13977
13978 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13979
13980 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13981 (msp430_handle_generic_attribute): New function.
13982 * doc/tm.texi: Regenerate.
13983 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13984 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13985 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13986 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13987
13988 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13989
13990 PR tree-optimization/91504
13991 * match.pd: Add ((~a & b) ^a) --> (a | b).
13992
13993 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13994
13995 PR target/91604
13996 * config/i386/i386-expand.c (split_double_mode): If there is more than
13997 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13998 already split matching MEM operand instead of calling adjust_address
13999 again.
14000
14001 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14002
14003 * config.gcc: Obsolete spu target. Remove references to spu.
14004 * configure.ac: Remove references to spu.
14005 * configure: Regenerate.
14006 * config/spu/: Remove directory.
14007 * common/config/spu/: Remove directory.
14008
14009 * doc/extend.texi: Remove references to spu.
14010 * doc/invoke.texi: Likewise.
14011 * doc/md.texi: Likewise.
14012 * doc/sourcebuild.texi: Likewise.
14013
14014 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14015
14016 PR middle-end/91603
14017 PR middle-end/91612
14018 PR middle-end/91613
14019 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14020 and SSA_NAME referring to CONSTANT_P correctly.
14021
14022 2019-09-03 Richard Biener <rguenther@suse.de>
14023
14024 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14025 (vn_nary_op_insert): Likewise.
14026 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14027 (vn_nary_op_lookup): Likewise.
14028 (vn_nary_op_insert): Likewise.
14029
14030 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14031
14032 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14033 (*op0, 1) instead of XEXP (*op1, 0).
14034
14035 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14036
14037 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14038 (aarch64_fjcvtzs): New define_insn.
14039 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14040 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14041 Add AARCH64_JSCVT.
14042 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14043 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14044 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14045 __ARM_FEATURE_JCVT where appropriate.
14046 * config/aarch64/arm_acle.h (__jcvt): Define.
14047
14048 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14049
14050 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14051 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14052 (aarch64_<frintnzs_op><mode>): New define_insn.
14053 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14054 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14055 __ARM_FEATURE_FRINT when appropriate.
14056 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14057 frint32x, frint64z, frint64x.
14058 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14059 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14060 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14061 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14062 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14063 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14064 * config/aarch64/iterators.md (VSFDF): Define.
14065 (FRINTNZX): Likewise.
14066 (frintnzs_op): Likewise.
14067
14068 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14069
14070 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14071 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14072 Cortex-A34.
14073 * config/aarch64/aarch64-tune.md: Regenerated.
14074 * doc/invoke.texi: Document the new processors.
14075
14076 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14077
14078 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14079 string.
14080 (ssbs): Likewise.
14081 (sve2): Likewise.
14082 (sve2-sm4): Likewise.
14083 (sveaes): Likewise.
14084 (svesha3): Likewise.
14085 (svebitperm): Likewise.
14086
14087 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14088 Richard Biener <rguenther@suse.de>
14089
14090 PR tree-optimization/91597
14091 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14092 BIT_AND_EXPR optimization for pointers, even if both operand
14093 ranges don't include NULL, the result can be NULL.
14094
14095 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14096
14097 PR middle-end/91605
14098 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14099 (non_mem_decl_p): ...this.
14100 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14101 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14102 unconditionally as before.
14103
14104 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14105
14106 PR target/91323
14107 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14108 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14109 * tree.def (LTGT_EXPR): Likewise.
14110 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14111
14112 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14113
14114 PR go/91617
14115 * fold-const.c (range_check_type): For enumeral and boolean
14116 type, pass 1 to type_for_size langhook instead of
14117 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14118 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14119 (build_range_check): Don't call unsigned_type_for for pointer types.
14120 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14121 range_check_type result.
14122
14123 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14124
14125 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14126 (replace_ref): Do not replace a chain of only two candidates which are
14127 valid memory references.
14128
14129 2019-09-02 Martin Liska <mliska@suse.cz>
14130
14131 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14132 Bail out when we'll end up with the same number of clusters as
14133 at the beginning.
14134 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14135 (jump_table_cluster::can_be_handled): Remove the guard
14136 as it's already handled in ::is_enabled. Allocate output
14137 after early bail out.
14138
14139 2019-09-02 Martin Liska <mliska@suse.cz>
14140
14141 PR gcov-profile/91601
14142 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14143 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14144 also negative edges.
14145 (circuit): Handle also negative edges as they can happen
14146 in some situations.
14147
14148 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14149
14150 PR target/91472
14151 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14152 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14153 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14154
14155 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14156
14157 PR middle-end/91623
14158 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14159 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14160 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14161 zero vector.
14162
14163 PR lto/91572
14164 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14165 GIMPLE_ASM TREE_LIST operands.
14166
14167 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14168
14169 * doc/generic.texi (Unary and Binary Expressions): Mark up
14170 an instance of TYPE_MIN.
14171
14172 2019-08-31 Stafford Horne <shorne@gmail.com>
14173
14174 * config/or1k/constraints.md (t): New constraint.
14175 * config/or1k/or1k.h (GOT_REGS): New register class.
14176 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14177
14178 2019-08-30 Jim Wilson <jimw@sifive.com>
14179
14180 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14181 and -fpic and -mplt then disable -msave-restore and warn.
14182
14183 2019-08-30 Martin Sebor <msebor@redhat.com>
14184
14185 PR middle-end/91599
14186 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14187 the statement doesn't have one.
14188 * gimple-pretty-print.c (percent_G_format): Same.
14189
14190 PR middle-end/91584
14191 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14192 before using them to validate MEM_REF offset.
14193
14194 2019-08-30 Marek Polacek <polacek@redhat.com>
14195
14196 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14197
14198 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14199
14200 * config/arm/arm.md (unaligned_loaddi,
14201 unaligned_storedi): New unspec insn patterns.
14202 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14203 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14204 and unaligned_storedi for 4-byte aligned memory.
14205 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14206 4-byte aligned memory.
14207
14208 2019-08-30 Martin Jambor <mjambor@suse.cz>
14209
14210 tree-optimization/91579
14211 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14212 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14213 appropriate.
14214 (arg_needs_copy_p): Removed.
14215 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14216 arg_needs_copy_p.
14217 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14218
14219 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14220
14221 * config/i386/i386-features.c
14222 (general_scalar_chain::compute_convert_gain):
14223 Correct cost for double-word shifts.
14224 (general_scalar_to_vector_candidate_p): Reject count operands
14225 greater or equal to mode bitsize.
14226
14227 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14228
14229 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14230 for moves between SSE and non-general registers and between
14231 mask and non-general registers.
14232 (ix86_register_move_cost): Remove stalled comment.
14233
14234 2019-08-29 Richard Biener <rguenther@suse.de>
14235
14236 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14237 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14238
14239 2019-08-29 Richard Biener <rguenther@suse.de>
14240
14241 PR bootstrap/91580
14242 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14243 Do not emit scalar copies for debug-insns, instead replace
14244 their uses with the reg copy used in the chain or reset them
14245 if there is a reaching definition outside of the chain as well.
14246
14247 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14248
14249 PR target/91560
14250 * config/i386/i386-expand.c (expand_vec_perm_movs,
14251 expand_vec_perm_blend, expand_vec_perm_vpermil,
14252 expand_vec_perm_pshufb, expand_vec_perm_1,
14253 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14254 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14255 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14256 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14257 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14258 comments - replace ix86_expand_vec_perm_builtin_1 with
14259 ix86_expand_vec_perm_const_1.
14260 (expand_vec_perm2_vperm2f128_vblend): New function.
14261 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14262 expand_vec_perm2_vperm2f128_vblend as last resort.
14263 (canonicalize_perm): Formatting fix.
14264
14265 PR tree-optimization/91351
14266 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14267 unsigned_type_for.
14268 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14269 range_check_type returns NULL.
14270 * tree-switch-conversion.c (switch_conversion::build_one_array):
14271 Use range_check_type instead of unsigned_type_for, don't perform
14272 linear opt if it returns NULL.
14273 (bit_test_cluster::find_bit_tests): Formatting fix.
14274 (bit_test_cluster::emit): Use range_check_type instead of
14275 unsigned_type_for.
14276 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14277 returns NULL.
14278
14279 2019-08-29 Richard Biener <rguenther@suse.de>
14280
14281 PR tree-optimization/91568
14282 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14283 (vect_update_max_nunits): Add overload for poly_uint64.
14284 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14285 (vect_build_slp_tree): Record max_nunits into the subtree
14286 and merge it upwards.
14287 (vect_print_slp_tree): Print max_nunits.
14288
14289 2019-08-28 Marek Polacek <polacek@redhat.com>
14290
14291 Implement P1152R4: Deprecating some uses of volatile.
14292 PR c++/91361
14293 * doc/invoke.texi: Document -Wvolatile.
14294
14295 2019-08-28 Marek Polacek <polacek@redhat.com>
14296
14297 PR c++/91360 - Implement C++20 P1143R2: constinit.
14298 * doc/invoke.texi: Document -Wc++20-compat.
14299
14300 2019-08-28 Martin Sebor <msebor@redhat.com>
14301
14302 PR tree-optimization/91457
14303 * builtins.c (component_size): New function.
14304 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14305 * builtins.h (compute_objsize): Add argument.
14306 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14307 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14308 (vrp_prop::check_mem_ref): Same.
14309 (vrp_prop::search_for_addr_array): Set no-warning bit.
14310 (check_array_bounds): Same.
14311
14312 2019-08-28 Martin Sebor <msebor@redhat.com>
14313
14314 PR driver/80545
14315 * opts-common.c (option_enabled): Correct checking for language
14316 options.
14317
14318 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14319
14320 * config/i386/i386.c (ix86_register_move_cost): Do not
14321 limit the cost of moves to/from XMM register to minimum 8.
14322
14323 2019-08-28 Martin Jambor <mjambor@suse.cz>
14324
14325 PR ipa/91468
14326 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14327 checking assert a normal assert to test it really is redundant.
14328 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14329 redundant test.
14330 (update_jump_functions_after_inlining): Removed combining unary
14331 arithmetic operations with an ancestor jump function.
14332 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14333 instead of t.
14334
14335 2019-08-28 Richard Biener <rguenther@suse.de>
14336
14337 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14338 add the MD problem.
14339
14340 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14341 Richard Biener <rguenther@suse.de>
14342
14343 * expr.c (expand_assignment): Handle misaligned DECLs.
14344 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14345 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14346 too.
14347 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14348 * varasm.c (build_constant_desc): Align constants of misaligned types.
14349 * config/arm/predicates.md (aligned_operand): New predicate.
14350 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14351 aligned_operand to check restrictions on memory addresses.
14352 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14353 * config/arm/vec-common.md (mov<VALL>): Likewise.
14354
14355 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14356
14357 PR libgomp/91530
14358 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14359 V_128 iterator instead of VI_128.
14360
14361 2019-08-28 Martin Liska <mliska@suse.cz>
14362
14363 PR tree-optimization/90970
14364 * builtins.c (check_access): Remove assignment to maxread
14365 as it hasn't been used since when it was introduced in r255755.
14366
14367 2019-08-27 Martin Sebor <msebor@redhat.com>
14368
14369 PR tree-optimization/91567
14370 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14371 of unknown strings.
14372 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14373 to PTRDIFF_MAX - 2.
14374
14375 2019-08-27 Jeff Law <law@redhat.com>
14376
14377 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14378 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14379
14380 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14381
14382 PR target/91528
14383 * config/i386/i386-features.c (convert_scalars_to_vector):
14384 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14385 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14386 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14387 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14388
14389 2019-08-27 Richard Biener <rguenther@suse.de>
14390
14391 * config/i386/i386-features.h
14392 (general_scalar_chain::~general_scalar_chain): Add.
14393 (general_scalar_chain::insns_conv): New bitmap.
14394 (general_scalar_chain::n_sse_to_integer): New.
14395 (general_scalar_chain::n_integer_to_sse): Likewise.
14396 (general_scalar_chain::make_vector_copies): Adjust signature.
14397 * config/i386/i386-features.c
14398 (general_scalar_chain::general_scalar_chain): Outline,
14399 initialize new members.
14400 (general_scalar_chain::~general_scalar_chain): New.
14401 (general_scalar_chain::mark_dual_mode_def): Record insns
14402 we need to insert conversions at and count them.
14403 (general_scalar_chain::compute_convert_gain): Account
14404 for conversion instructions at chain boundary.
14405 (general_scalar_chain::make_vector_copies): Generate a single
14406 copy for a def by a specific insn.
14407 (general_scalar_chain::convert_registers): First populate
14408 defs_map, then make copies at out-of chain insns.
14409
14410 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14411
14412 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14413 comment.
14414 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14415
14416 2019-08-27 Martin Liska <mliska@suse.cz>
14417
14418 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14419 loop.
14420 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14421 Enclose in anonymous namespace.
14422 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14423 hard_register initialization in braces.
14424 * tree-vrp.h (value_range_base::supports_type_p): Return false
14425 for function with boolean return type.
14426
14427 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14428
14429 * config/i386/i386.c (emit_i387_cw_initialization)
14430 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14431
14432 2019-08-26 Martin Sebor <msebor@redhat.com>
14433
14434 PR c++/83431
14435 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14436 (sprintf_dom_walker): Remove class.
14437 (get_int_range): Make argument const.
14438 (directive::fmtfunc, directive::set_precision): Same.
14439 (format_none): Same.
14440 (build_intmax_type_nodes): Same.
14441 (adjust_range_for_overflow): Same.
14442 (format_floating): Same.
14443 (format_character): Same.
14444 (format_string): Same.
14445 (format_plain): Same.
14446 (get_int_range): Cast away constness.
14447 (format_integer): Same.
14448 (get_string_length): Call get_range_strlen_dynamic. Handle
14449 null lendata.maxbound.
14450 (should_warn_p): Adjust argument scope qualifier.
14451 (maybe_warn): Same.
14452 (format_directive): Same.
14453 (parse_directive): Same.
14454 (is_call_safe): Same.
14455 (try_substitute_return_value): Same.
14456 (sprintf_dom_walker::handle_printf_call): Rename...
14457 (handle_printf_call): ...to this. Initialize target to host charmap
14458 here instead of in pass_sprintf_length::execute.
14459 (struct call_info): Make global.
14460 (sprintf_dom_walker::compute_format_length): Make global.
14461 (sprintf_dom_walker::handle_gimple_call): Same.
14462 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14463 * print-rtl.c (print_pattern): Reduce the number of spaces to
14464 avoid -Wformat-truncation.
14465 * tree-pass.h (make_pass_warn_printf): New function.
14466 * tree-ssa-strlen.c (strlen_optimize): New variable.
14467 (get_string_length): Add comments.
14468 (get_range_strlen_dynamic): New function.
14469 (check_and_optimize_call): New function.
14470 (handle_integral_assign): New function.
14471 (strlen_check_and_optimize_stmt): Factor code out into
14472 strlen_check_and_optimize_call and handle_integral_assign.
14473 (strlen_dom_walker::evrp): New member.
14474 (strlen_dom_walker::before_dom_children): Use evrp member.
14475 (strlen_dom_walker::after_dom_children): Use evrp member.
14476 (printf_strlen_execute): New function.
14477 (pass_strlen::gate): Update to handle printf calls.
14478 (dump_strlen_info): New function.
14479 (pass_data_warn_printf): New variable.
14480 (pass_warn_printf): New class.
14481 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14482 (handle_printf_call): Same.
14483 * tree-vrp.c (value_range_base::type): Adjust assertion.
14484 * vr-values.c (vr_values::update_value_range): Use type of the first
14485 argument rather than the second.
14486
14487 2019-08-26 Richard Biener <rguenther@suse.de>
14488
14489 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14490 Remove.
14491 (convert_scalars_to_vector): Do not call it.
14492
14493 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14494 Uros Bizjak <ubizjak@gmail.com>
14495
14496 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14497 CASE_MATHFN_FLOATN for roundeven.
14498 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14499 I387_ROUNDEVEN.
14500 (ix86_mode_needed): Likewise.
14501 (ix86_mode_after): Likewise.
14502 (ix86_mode_entry): Likewise.
14503 (ix86_mode_exit): Likewise.
14504 (ix86_emit_mode_set): Likewise.
14505 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14506 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14507 (ix86_entity): Add I387_ROUNDEVEN.
14508 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14509 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14510 (define_int_iterator): Likewise.
14511 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14512 (define_constant): Define ROUND_ROUNDEVEN mode.
14513 (define_attr): Add roundeven mode for i387_cw.
14514 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14515 * internal-fn.def (ROUNDEVEN): New builtin function.
14516 * optabs.def (roundeven_optab): New optab.
14517
14518 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14519
14520 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14521 for ROUNDEVEN.
14522 * builtins.def: Added function definitions for roundeven function
14523 variants.
14524 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14525 function call. Adjust condition for floor, ceil, trunc and round.
14526 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14527 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14528 (integer_valued_real_call_p): Added case for roundeven function.
14529 * real.c (is_even): New function. Returns true if real number is even,
14530 otherwise returns false.
14531 (is_halfway_below): New function. Returns true if real number is
14532 halfway between two integers, else return false.
14533 (real_roundeven): New function. Round real number to nearest integer,
14534 rounding halfway cases towards even.
14535 * real.h (real_value): Added descriptive comments. Added function
14536 declaration for roundeven function.
14537 * doc/extend.texi (Other Builtins): List roundeven variants among
14538 functions which can be handled as builtins.
14539
14540 2019-08-26 Richard Biener <rguenther@suse.de>
14541
14542 PR target/91522
14543 PR target/91527
14544 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14545 New member.
14546 (general_scalar_chain::replace_with_subreg): Remove.
14547 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14548 (general_scalar_chain::convert_reg): Adjust signature.
14549 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14550 iterate over all defs of a reg.
14551 (general_scalar_chain::replace_with_subreg): Remove.
14552 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14553 (general_scalar_chain::make_vector_copies): Populate defs_map,
14554 place copy only after defs that are used as vectors in the chain.
14555 (general_scalar_chain::convert_reg): Emit a copy for a specific
14556 def in a specific instruction.
14557 (general_scalar_chain::convert_op): All reg uses are converted here.
14558 (general_scalar_chain::convert_insn): Emit copies for scalar
14559 uses of defs here. Replace uses with the copies we created.
14560 Replace and convert the def. Adjust REG_DEAD notes, remove
14561 REG_EQUIV/EQUAL notes.
14562 (general_scalar_chain::convert_registers): Only handle copies
14563 into the chain here.
14564
14565 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14566
14567 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14568
14569 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14570
14571 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14572 Add nop_convert case.
14573 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14574 Fold all statements if requested.
14575 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14576 Allow to fold all statements.
14577 * tree-vrp.c (class vrp_folder):
14578 Let substitute_and_fold_engine fold all statements.
14579
14580 2019-08-26 Richard Biener <rguenther@suse.de>
14581
14582 PR tree-optimization/91526
14583 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14584 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14585 TODO_update_address_taken.
14586
14587 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14588
14589 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14590 __STDC_HOSTED__.
14591
14592 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14593
14594 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14595 machine mode for unspec_volatile operand.
14596
14597 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14598
14599 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14600 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14601 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14602 (prefer_neon_for_64bits): Remove.
14603 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14604 (tune_params): Remove PREF_NEON_64_FALSE uses.
14605 (arm_option_override): Remove prefer_neon selection code.
14606 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14607 * config/arm/arm-protos.h (tune_params): Remove
14608 prefer_neon_for_64bits.
14609 (prefer_neon_for_64bits): Remove.
14610
14611 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14612
14613 PR pch/61250
14614 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14615 and issue any diagnostics needed before collecting the pre-PCH
14616 state.
14617
14618 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14619
14620 PR middle-end/91283
14621 * common.opt (fexcess-precision=): Add Optimization flag. Use
14622 flag_excess_precision variable instead of
14623 flag_excess_precision_cmdline.
14624 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14625 member.
14626 (flag_excess_precision): Don't define.
14627 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14628 flag_excess_precision_cmdline. Remove comment.
14629 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14630 and x_flag_excess_precision instead of
14631 frontend_set_flag_excess_precision_cmdline and
14632 x_flag_excess_precision_cmdline.
14633 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14634 x_flag_excess_precision_cmdline.
14635 * toplev.c (init_excess_precision): Remove.
14636 (lang_dependent_init_target): Don't call it.
14637
14638 2019-08-23 Martin Liska <mliska@suse.cz>
14639
14640 * lto-wrapper.c (run_gcc): When setting jobserver
14641 set also parallel to 1. This was done so before r273908.
14642
14643 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14644
14645 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14646 (cortex-a76ae): Likewise.
14647 (cortex-a77): Likewise
14648 * config/arm/arm-tables.opt: Regenerate.
14649 * config/arm/arm-tune.md: Likewise.
14650 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14651 cortex-a77 CPU options.
14652
14653 2019-08-23 Martin Liska <mliska@suse.cz>
14654
14655 * profile.c (instrument_values): Do not set
14656 0 as last argument.
14657 * tree-profile.c (gimple_gen_interval_profiler): Remove
14658 last argument.
14659 (gimple_gen_pow2_profiler): Likewise.
14660 (gimple_gen_topn_values_profiler): Likewise.
14661 (gimple_gen_ic_profiler): Likewise.
14662 (gimple_gen_time_profiler): Likewise.
14663 (gimple_gen_average_profiler): Likewise.
14664 (gimple_gen_ior_profiler): Likewise.
14665 * value-prof.c (dump_histogram_value): Use default
14666 in switch statement instead of HIST_TYPE_MAX.
14667 (stream_in_histogram_value): Likewise.
14668 (gimple_duplicate_stmt_histograms): Do not
14669 use NULL for implicitly set arguments.
14670 (gimple_divmod_values_to_profile): Do not use
14671 reserve+quick_push.
14672 (gimple_indirect_call_to_profile): Likewise.
14673 (gimple_find_values_to_profile): Use implicit
14674 function call arguments.
14675 * value-prof.h (gimple_alloc_histogram_value):
14676 Set default values.
14677 (gimple_gen_interval_profiler): Remove last argument.
14678 (gimple_gen_pow2_profiler): Likewise.
14679 (gimple_gen_topn_values_profiler): Likewise.
14680 (gimple_gen_ic_profiler): Likewise.
14681 (gimple_gen_time_profiler): Likewise.
14682 (gimple_gen_average_profiler): Likewise.
14683 (gimple_gen_ior_profiler): Likewise.
14684
14685 2019-08-22 Martin Sebor <msebor@redhat.com>
14686
14687 PR middle-end/91490
14688 * builtins.c (c_strlen): Rename argument and introduce new local.
14689 Set no-warning bit on original argument.
14690 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14691 Fold empty and zero constructors into empty strings.
14692 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14693 for missing initializers.
14694 * tree.c (build_string_literal): Handle optional argument.
14695 * tree.h (build_string_literal): Add defaulted argument.
14696 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14697 no-warning bit on original expression.
14698
14699 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14700
14701 PR target/91481
14702 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14703 and UNSPEC_DARN_RAW.
14704 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14705 UNSPECV_DARN_RAW.
14706 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14707 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14708 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14709
14710 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14711
14712 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14713 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14714 * config/rs6000/rs6000.md (unspec): ... here.
14715 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14716 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14717 cmpeqb, *cmpeqb_internal): Delete, move to...
14718 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14719 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14720 cmpeqb, *cmpeqb_internal): ... here.
14721
14722 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14723
14724 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14725 intrinsics if __ARM_FP.
14726 Use __ARM_FEATURE_CRC32 ifdef guard.
14727
14728 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14729
14730 * config/arm/arm.md (neon_for_64bits): Remove.
14731 (avoid_neon_for_64bits): Remove.
14732 (arm_adddi3): Always split early.
14733 (arm_subdi3): Always split early.
14734 (negdi2): Remove Neon expansion.
14735 (split zero_extend): Split before reload.
14736 (split sign_extend): Split before reload.
14737
14738 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14739
14740 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14741 (qhs_extenddi_cstr): Likewise.
14742 * config/arm/arm.md (ashldi3): Always expand early.
14743 (ashlsi3): Likewise.
14744 (ashrsi3): Likewise.
14745 (zero_extend<mode>di2): Remove Neon variants.
14746 (extend<mode>di2): Likewise.
14747 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14748 (signed_shift_di3_neon): Likewise.
14749 (unsigned_shift_di3_neon): Likewise.
14750 (ashrdi3_neon_imm_noclobber): Likewise.
14751 (lshrdi3_neon_imm_noclobber): Likewise.
14752 (<shift>di3_neon): Likewise.
14753 (split extend): Remove DI extend split patterns.
14754
14755 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14756
14757 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14758 (split not): Add DImode not splitter.
14759 (anddi3): Remove pattern.
14760 (anddi3_insn): Likewise.
14761 (anddi_zesidi_di): Likewise.
14762 (anddi_sesdi_di): Likewise.
14763 (anddi_notdi_di): Likewise.
14764 (anddi_notzesidi_di): Likewise.
14765 (anddi_notsesidi_di): Likewise.
14766 (iordi3): Likewise.
14767 (iordi3_insn): Likewise.
14768 (iordi_zesidi_di): Likewise.
14769 (iordi_sesidi_di): Likewise.
14770 (xordi3): Likewise.
14771 (xordi3_insn): Likewise.
14772 (xordi_sesidi_di): Likewise.
14773 (xordi_zesidi_di): Likewise.
14774 (one_cmpldi2): Likewise.
14775 (one_cmpldi2_insn): Likewise.
14776 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14777 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14778 alternative.
14779 (iwmmxt_xordi3): Likewise.
14780 (iwmmxt_anddi3): Likewise.
14781 * config/arm/neon.md (orndi3_neon): Remove pattern.
14782 (anddi_notdi_di): Likewise.
14783 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14784 (arm_iordi_operand_neon): Likewise.
14785 (arm_xordi_operand_neon): Likewise.
14786 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14787 (iordi_notzesidi_di): Likewise.
14788 (iordi_notdi_zesidi): Likewise.
14789 (iordi_notsesidi_di): Likewise.
14790
14791 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14792
14793 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14794 insn.
14795 (iorsi3_compare0_scratch): Likewise.
14796
14797 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14798
14799 * config/aarch64/aarch64-simd-builtins.def:
14800 (ld1x4): New.
14801 (st1x4): Likewise.
14802 * config/aarch64/aarch64-simd.md:
14803 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14804 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14805 (aarch64_ld1_x4_<mode>): Likewise.
14806 (aarch64_st1_x4_<mode>): Likewise.
14807 * config/aarch64/arm_neon.h:
14808 (vld1_s8_x4): New function.
14809 (vld1q_s8_x4): Likewise.
14810 (vld1_s16_x4): Likewise.
14811 (vld1q_s16_x4): Likewise.
14812 (vld1_s32_x4): Likewise.
14813 (vld1q_s32_x4): Likewise.
14814 (vld1_u8_x4): Likewise.
14815 (vld1q_u8_x4): Likewise.
14816 (vld1_u16_x4): Likewise.
14817 (vld1q_u16_x4): Likewise.
14818 (vld1_u32_x4): Likewise.
14819 (vld1q_u32_x4): Likewise.
14820 (vld1_f16_x4): Likewise.
14821 (vld1q_f16_x4): Likewise.
14822 (vld1_f32_x4): Likewise.
14823 (vld1q_f32_x4): Likewise.
14824 (vld1_p8_x4): Likewise.
14825 (vld1q_p8_x4): Likewise.
14826 (vld1_p16_x4): Likewise.
14827 (vld1q_p16_x4): Likewise.
14828 (vld1_s64_x4): Likewise.
14829 (vld1_u64_x4): Likewise.
14830 (vld1_p64_x4): Likewise.
14831 (vld1q_s64_x4): Likewise.
14832 (vld1q_u64_x4): Likewise.
14833 (vld1q_p64_x4): Likewise.
14834 (vld1_f64_x4): Likewise.
14835 (vld1q_f64_x4): Likewise.
14836 (vst1_s8_x4): Likewise.
14837 (vst1q_s8_x4): Likewise.
14838 (vst1_s16_x4): Likewise.
14839 (vst1q_s16_x4): Likewise.
14840 (vst1_s32_x4): Likewise.
14841 (vst1q_s32_x4): Likewise.
14842 (vst1_u8_x4): Likewise.
14843 (vst1q_u8_x4): Likewise.
14844 (vst1_u16_x4): Likewise.
14845 (vst1q_u16_x4): Likewise.
14846 (vst1_u32_x4): Likewise.
14847 (vst1q_u32_x4): Likewise.
14848 (vst1_f16_x4): Likewise.
14849 (vst1q_f16_x4): Likewise.
14850 (vst1_f32_x4): Likewise.
14851 (vst1q_f32_x4): Likewise.
14852 (vst1_p8_x4): Likewise.
14853 (vst1q_p8_x4): Likewise.
14854 (vst1_p16_x4): Likewise.
14855 (vst1q_p16_x4): Likewise.
14856 (vst1_s64_x4): Likewise.
14857 (vst1_u64_x4): Likewise.
14858 (vst1_p64_x4): Likewise.
14859 (vst1q_s64_x4): Likewise.
14860 (vst1q_u64_x4): Likewise.
14861 (vst1q_p64_x4): Likewise.
14862 (vst1_f64_x4): Likewise.
14863 (vst1q_f64_x4): Likewise.
14864
14865 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14866
14867 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14868
14869 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14870 Richard Sandiford <richard.sandiford@arm.com>
14871
14872 PR target/88839
14873 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14874 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14875
14876 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14877
14878 PR target/90724
14879 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14880 in reg if it fails aarch64_plus_operand predicate.
14881
14882 2019-08-21 Richard Biener <rguenther@suse.de>
14883
14884 PR tree-optimization/91482
14885 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14886 BUILT_IN_ASSUME_ALIGNED calls.
14887
14888 2019-08-21 Richard Biener <rguenther@suse.de>
14889
14890 PR target/91498
14891 PR target/91503
14892 * config/i386/i386-features.c
14893 (general_scalar_chain::make_vector_copies): Copy stack temporary
14894 rtx when using it multiple times.
14895 (general_scalar_chain::convert_reg): Likewise.
14896
14897 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14898
14899 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14900
14901 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14902
14903 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14904 catch more redundant zero initialization cases.
14905 (dse_dom_walker::dse_optimize_stmt): Likewise.
14906
14907 2019-08-20 Richard Biener <rguenther@suse.de>
14908
14909 PR lto/91307
14910 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14911 by collect2 when targetm.have_ctors_dtors which avoids dragging
14912 in temporary filenames from LTO input objects.
14913
14914 2019-08-20 Richard Biener <rguenther@suse.de>
14915
14916 PR tree-optimization/37242
14917 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14918 to (T)a + (T)b if we know that a + b does not overflow.
14919
14920 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14921
14922 PR rtl-optimization/91347
14923 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14924 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14925
14926 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14927
14928 * calls.h (function_arg_info): Add a pass_by_reference field,
14929 defaulting to false.
14930 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14931 when applying pass-by-reference semantics.
14932 (initialize_argument_information): Likewise.
14933 (emit_library_call_value_1): Likewise.
14934 * function.c (assign_parm_data_one): Remove passed_pointer field.
14935 (assign_parm_find_data_types): Don't set it.
14936 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14937 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14938 arg.pass_by_reference instead of passed_pointer.
14939
14940 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14941
14942 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14943 into a single function_arg_info, updating its fields when we
14944 apply pass-by-reference and promotion semantics. Use the
14945 function_arg_info to track the mode rather than keeping it in
14946 a separate local variable.
14947 (initialize_argument_information): Likewise. Base the final
14948 arg_to_skip on this new function_arg_info rather than creating
14949 a new one from scratch.
14950
14951 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14952
14953 * function.c (assign_parm_data_one): Replace passed_type,
14954 promoted_mode and named_arg with a function_arg_info field.
14955 (assign_parm_find_data_types): Remove local variables and
14956 assign directly to "data". Make data->passed_mode shadow
14957 data->arg.mode until promotion, then assign the promoted
14958 mode to data->arg.mode.
14959 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14960 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14961 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14962 (assign_parm_setup_block, assign_parm_setup_reg)
14963 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14964 arg.mode instead of promoted_mode, arg.type instead of passed_type
14965 and arg.named instead of named_arg. Use data->arg for
14966 function_arg_info structures that had the field values passed_type,
14967 promoted_mode and named_arg. Base other function_arg_infos on
14968 data->arg, changing the necessary properties.
14969
14970 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14971
14972 * calls.h (apply_pass_by_reference_rules): Declare.
14973 * calls.c (apply_pass_by_reference_rules): New function.
14974 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14975 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14976 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14977 * function.c (assign_parm_find_data_types): Likewise.
14978 * var-tracking.c (prepare_call_arguments): Likewise.
14979
14980 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14981
14982 * target.def (must_pass_in_stack): Take a function_arg_info instead
14983 of a mode and a type.
14984 * doc/tm.texi: Regenerate.
14985 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14986 instead of a mode and a type.
14987 (must_pass_in_stack_var_size_or_pad): Likewise.
14988 * calls.c (must_pass_in_stack_var_size): Likewise.
14989 (must_pass_in_stack_var_size_or_pad): Likewise.
14990 (initialize_argument_information): Update call to
14991 targetm.calls.must_pass_in_stack.
14992 (must_pass_va_arg_on_stack): Likewise.
14993 * function.c (assign_parm_find_entry_rtl): Likewise.
14994 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14995 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14996 (alpha_function_arg_advance): Likewise.
14997 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14998 (cr16_function_arg_advance): Likewise.
14999 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15000 (cris_arg_partial_bytes): Likewise.
15001 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15002 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15003 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15004 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15005 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15006 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15007 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15008 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15009 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15010 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15011 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15012 instead of a mode and a type.
15013 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15014 (fr30_num_arg_regs): Likewise.
15015 (fr30_setup_incoming_varargs): Update calls accordingly.
15016 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15017 (fr30_function_arg_advance): Likewise.
15018 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15019 instead of a mode and a type.
15020 * config/gcn/gcn.c (num_arg_regs): Likewise.
15021 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15022 num_arg_regs and targetm.calls.must_pass_in_stack.
15023 (gcn_arg_partial_bytes): Likewise.
15024 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15025 function_arg_info instead of a mode and a type.
15026 (classify_argument): Update call accordingly.
15027 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15028 function_arg_info instead of a mode and a type.
15029 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15030 Likewise.
15031 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15032 (rs6000_parm_needs_stack): Update call accordingly.
15033 (setup_incoming_varargs): Likewise.
15034
15035 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15036
15037 * target.def (callee_copies): Take a function_arg_info instead
15038 of a mode, type and named flag.
15039 * doc/tm.texi: Regenerate.
15040 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15041 instead of a mode, type and named flag.
15042 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15043 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15044 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15045 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15046 instead of a mode, type and named flag.
15047 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15048 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15049 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15050 * calls.h (reference_callee_copied): Take a function_arg_info
15051 instead of a mode, type and named flag.
15052 * calls.c (reference_callee_copied): Likewise.
15053 (initialize_argument_information): Update call accordingly.
15054 (emit_library_call_value_1): Likewise.
15055 * function.c (gimplify_parameters): Likewise.
15056 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15057 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15058 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15059 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15060 (TARGET_CALLEE_COPIES): Define to
15061 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15062 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15063 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15064 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15065 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15066 instead of a mode, type and named flag.
15067 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15068 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15069 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15070 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15071 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15072 (TARGET_CALLEE_COPIES): Define to
15073 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15074 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15075 instead of a mode, type and named flag.
15076 * config/sh/sh.c (sh_callee_copies): Likewise.
15077 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15078 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15079 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15080
15081 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15082
15083 * target.def (function_arg_advance): Take a function_arg_info instead
15084 of a mode, type and named flag.
15085 * doc/tm.texi: Regenerate.
15086 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15087 instead of a mode, type and named flag.
15088 * targhooks.c (default_function_arg_advance): Likewise.
15089 * calls.c (initialize_argument_information): Update call to
15090 targetm.calls.function_arg_advance.
15091 (emit_library_call_value_1): Likewise.
15092 * dse.c (get_call_args): Likewise.
15093 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15094 * function.c (assign_parms, gimplify_parameters): Likewise.
15095 * var-tracking.c (prepare_call_arguments): Likewise.
15096 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15097 function_arg_info instead of a mode, type and named flag.
15098 (aarch64_setup_incoming_varargs): Update call accordingly.
15099 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15100 function_arg_info instead of a mode, type and named flag.
15101 (alpha_setup_incoming_varargs): Update call accordingly.
15102 * config/arc/arc.c (arc_function_arg_advance): Take a
15103 function_arg_info instead of a mode, type and named flag.
15104 (arc_setup_incoming_varargs): Update call accordingly.
15105 * config/arm/arm.c (arm_function_arg_advance): Take a
15106 function_arg_info instead of a mode, type and named flag.
15107 (cmse_func_args_or_return_in_stack): Update call accordingly.
15108 (arm_function_ok_for_sibcall): Likewise.
15109 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15110 * config/avr/avr.c (avr_function_arg_advance): Take a
15111 function_arg_info instead of a mode, type and named flag.
15112 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15113 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15114 (c6x_call_saved_register_used): Update call accordingly.
15115 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15116 function_arg_info instead of a mode, type and named flag.
15117 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15118 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15119 (csky_setup_incoming_varargs): Update call accordingly.
15120 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15121 function_arg_info instead of a mode, type and named flag.
15122 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15123 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15124 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15125 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15126 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15127 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15128 (ix86_setup_incoming_varargs): Update call accordingly.
15129 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15130 function_arg_info instead of a mode, type and named flag.
15131 (ia64_setup_incoming_varargs): Update call accordingly.
15132 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15133 function_arg_info instead of a mode, type and named flag.
15134 (iq2000_expand_prologue): Update call accordingly.
15135 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15136 function_arg_info instead of a mode, type and named flag.
15137 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15138 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15139 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15140 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15141 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15142 Likewise.
15143 (microblaze_expand_prologue): Update call accordingly.
15144 * config/mips/mips.c (mips_function_arg_advance): Take a
15145 function_arg_info instead of a mode, type and named flag.
15146 (mips_setup_incoming_varargs): Update call accordingly.
15147 (mips_output_args_xfer): Likewise.
15148 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15149 function_arg_info instead of a mode, type and named flag.
15150 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15151 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15152 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15153 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15154 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15155 (nios2_setup_incoming_varargs): Update call accordingly.
15156 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15157 function_arg_info instead of a mode, type and named flag.
15158 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15159 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15160 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15161 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15162 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15163 (riscv_setup_incoming_varargs): Update call accordingly.
15164 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15165 function_arg_info instead of a mode, type and named flag.
15166 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15167 Likewise.
15168 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15169 (rs6000_parm_needs_stack): Update call accordingly.
15170 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15171 instead of a mode, type and named flag.
15172 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15173 (s390_call_saved_register_used): Update call accordingly.
15174 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15175 instead of a mode, type and named flag.
15176 (sh_output_mi_thunk): Update call accordingly.
15177 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15178 function_arg_info instead of a mode, type and named flag.
15179 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15180 (spu_setup_incoming_varargs): Update call accordingly.
15181 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15182 function_arg_info instead of a mode, type and named flag.
15183 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15184 (tilegx_setup_incoming_varargs): Update call accordingly.
15185 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15186 function_arg_info instead of a mode, type and named flag.
15187 (tilegx_setup_incoming_varargs): Update call accordingly.
15188 * config/v850/v850.c (v850_function_arg_advance): Take a
15189 function_arg_info instead of a mode, type and named flag.
15190 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15191 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15192 (visium_setup_incoming_varargs): Update call accordingly.
15193 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15194 function_arg_info instead of a mode, type and named flag.
15195
15196 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15197
15198 * target.def (function_arg, function_incoming_arg): Take a
15199 function_arg_info instead of a mode, tree and named flag.
15200 * doc/tm.texi: Regenerate.
15201 * targhooks.h (default_function_arg): Take a function_arg_info
15202 instead of a mode, tree and named flag.
15203 (default_function_incoming_arg): Likewise.
15204 * targhooks.c (default_function_arg): Likewise.
15205 (default_function_incoming_arg): Likewise.
15206 * calls.h (function_arg_info::end_marker_p): New function.
15207 (function_arg_info::end_marker): Likewise.
15208 * calls.c (prepare_call_address, initialize_argument_information)
15209 (expand_call, emit_library_call_value_1): Update calls to
15210 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15211 * dse.c: Include calls.h.
15212 (get_call_args): Update call to targetm.calls.function_arg.
15213 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15214 * var-tracking.c (prepare_call_arguments): Likewise.
15215 * function.c (assign_parm_find_entry_rtl): Update call to
15216 targetm.calls.function_incoming_arg.
15217 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15218 function_arg_info instead of a mode, tree and named flag.
15219 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15220 * config/arc/arc.c (arc_function_arg): Likewise.
15221 * config/arm/arm.c (arm_function_arg): Likewise.
15222 (cmse_func_args_or_return_in_stack): Update call accordingly.
15223 (arm_function_ok_for_sibcall): Likewise.
15224 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15225 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15226 instead of a mode, tree and named flag.
15227 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15228 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15229 (c6x_call_saved_register_used): Update call accordingly.
15230 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15231 instead of a mode, tree and named flag.
15232 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15233 (cris_function_arg_1): Likewise.
15234 * config/csky/csky.c (csky_function_arg): Likewise.
15235 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15236 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15237 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15238 (frv_function_arg_1): Likewise.
15239 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15240 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15241 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15242 * config/i386/i386.c (ix86_function_arg): Likewise.
15243 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15244 (ia64_function_arg_1): Likewise.
15245 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15246 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15247 accordingly.
15248 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15249 instead of a mode, tree and named flag.
15250 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15251 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15252 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15253 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15254 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15255 (microblaze_expand_prologue): Update call accordingly.
15256 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15257 instead of a mode, tree and named flag.
15258 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15259 (mmix_function_arg_1): Likewise.
15260 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15261 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15262 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15263 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15264 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15265 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15266 (nvptx_function_incoming_arg): Likewise.
15267 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15268 * config/pa/pa.c (pa_function_arg): Likewise.
15269 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15270 * config/pru/pru.c (pru_function_arg): Likewise.
15271 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15272 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15273 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15274 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15275 (rs6000_parm_needs_stack): Update call accordingly.
15276 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15277 instead of a mode, tree and named flag.
15278 * config/s390/s390.c (s390_function_arg): Likewise.
15279 (s390_call_saved_register_used): Update call accordingly.
15280 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15281 instead of a mode, tree and named flag.
15282 (sh_output_mi_thunk): Update call accordingly.
15283 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15284 (sparc_function_incoming_arg): Take a function_arg_info instead of
15285 a mode, tree and named flag.
15286 * config/spu/spu.c (spu_function_arg): Likewise.
15287 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15288 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15289 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15290 * config/v850/v850.c (v850_function_arg): Likewise.
15291 * config/vax/vax.c (vax_function_arg): Likewise.
15292 * config/visium/visium.c (visium_function_arg): Likewise.
15293 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15294 (xtensa_function_incoming_arg): Likewise.
15295
15296 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15297
15298 * target.def (setup_incoming_varargs): Take a function_arg_info
15299 instead of a mode and tree.
15300 * doc/tm.texi: Regenerate.
15301 * targhooks.h (default_setup_incoming_varargs): Take a
15302 function_arg_info instead of a mode and tree.
15303 * targhooks.c (default_setup_incoming_varargs): Likewise.
15304 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15305 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15306 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15307 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15308 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15309 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15310 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15311 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15312 Likewise.
15313 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15314 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15315 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15316 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15317 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15318 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15319 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15320 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15321 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15322 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15323 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15324 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15325 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15326 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15327 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15328 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15329 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15330 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15331 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15332 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15333 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15334 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15335 * function.c (assign_parms_setup_varargs): Update call to
15336 targetm.calls.setup_incoming_varargs.
15337
15338 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15339
15340 * target.def (pass_by_reference): Take a function_arg_info instead
15341 of a mode, type and named flag.
15342 * doc/tm.texi: Regenerate.
15343 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15344 accordingly.
15345 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15346 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15347 function_arg_info instead of a mode, type and named flag.
15348 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15349 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15350 mode, type and named flag.
15351 * calls.c (pass_by_reference): Likewise.
15352 (pass_va_arg_by_reference): Update call accordingly.
15353 (initialize_argument_information): Likewise.
15354 (emit_library_call_value_1): Likewise.
15355 * function.c (assign_parm_find_data_types): Likewise.
15356 * var-tracking.c (prepare_call_arguments): Likewise.
15357 * stor-layout.c: Include calls.h.
15358 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15359 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15360 function_arg_info instead of a mode, type and named flag.
15361 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15362 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15363 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15364 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15365 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15366 (c6x_call_saved_register_used): Update call to pass_by_reference.
15367 * config/cris/cris.c (cris_pass_by_reference): Take a
15368 function_arg_info instead of a mode, type and named flag.
15369 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15370 function_arg_info instead of a mode, type and named flag.
15371 (epiphany_arg_partial_bytes): Update call accordingly.
15372 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15373 function_arg_info instead of a mode, type and named flag.
15374 (ft32_arg_partial_bytes): Update call accordingly.
15375 * config/i386/i386.c (ix86_pass_by_reference): Take a
15376 function_arg_info instead of a mode, type and named flag.
15377 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15378 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15379 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15380 (m32r_return_in_memory): Update call accordingly.
15381 * config/mips/mips.c (mips_pass_by_reference): Take a
15382 function_arg_info instead of a mode, type and named flag.
15383 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15384 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15385 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15386 (moxie_arg_partial_bytes): Update call accordingly.
15387 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15388 function_arg_info instead of a mode, type and named flag.
15389 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15390 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15391 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15392 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15393 (riscv_return_in_memory): Update call accordingly.
15394 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15395 function_arg_info instead of a mode, type and named flag.
15396 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15397 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15398 * config/s390/s390.c (s390_pass_by_reference): Take a
15399 function_arg_info instead of a mode, type and named flag.
15400 (s390_call_saved_register_used): Update call accordingly.
15401 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15402 instead of a mode, type and named flag.
15403 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15404 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15405 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15406 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15407 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15408 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15409
15410 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15411
15412 * target.def (arg_partial_bytes): Take a function_arg_info instead
15413 of a mode, type and named flag.
15414 * doc/tm.texi: Regenerate.
15415 * target.h (function_arg_info): Declare.
15416 * calls.h (function_arg_info): New class.
15417 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15418 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15419 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15420 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15421 * calls.c (initialize_argument_information): Update call to
15422 targetm.calls.partial_bytes.
15423 (emit_library_call_value_1): Likewise.
15424 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15425 * function.c (assign_parm_find_entry_rtl): Likewise.
15426 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15427 function_arg_info instead of a mode, type and named flag.
15428 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15429 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15430 (cmse_func_args_or_return_in_stack): Update accordingly.
15431 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15432 function_arg_info instead of a mode, type and named flag.
15433 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15434 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15435 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15436 * config/fr30/fr30.c: Include calls.h.
15437 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15438 type and named flag.
15439 * config/frv/frv.c: Include calls.h.
15440 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15441 type and named flag.
15442 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15443 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15444 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15445 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15446 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15447 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15448 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15449 Likewise.
15450 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15451 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15452 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15453 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15454 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15455 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15456 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15457 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15458 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15459 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15460 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15461 (rs6000_parm_needs_stack): Update call accordingly.
15462 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15463 function_arg_info instead of a mode, type and named flag.
15464 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15465 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15466
15467 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15468
15469 * calls.h (must_pass_va_arg_in_stack): Declare.
15470 * calls.c (must_pass_va_arg_in_stack): New function.
15471 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15472 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15473 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15474 Likewise.
15475 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15476
15477 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15478
15479 * calls.h (pass_va_arg_by_reference): Declare.
15480 * calls.c (pass_va_arg_by_reference): New function.
15481 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15482 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15483 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15484 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15485 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15486 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15487 (mips_gimplify_va_arg_expr): Likewise.
15488 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15489 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15490 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15491 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15492 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15493 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15494 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15495 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15496 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15497 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15498 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15499
15500 2019-08-20 Richard Biener <rguenther@suse.de>
15501
15502 PR target/91498
15503 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15504 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15505 (convert_scalars_to_vector): Add timode_p parameter and use it
15506 to guard TImode-only operation.
15507 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15508 (pass_stv::execute): Pass down timode_p.
15509
15510 2019-08-20 Lili Cui <lili.cui@intel.com>
15511
15512 * common/config/i386/i386-common.c
15513 (processor_names): Add tigerlake and cooperlake.
15514 (processor_alias_table): Add tigerlake and cooperlake.
15515 * config.gcc: Add -march=tigerlake and cooperlake.
15516 * config/i386/driver-i386.c
15517 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15518 Add "has_avx" to classify processor.
15519 * config/i386/i386-builtins.c (processor_model) :
15520 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15521 (arch_names_table): Add tigerlake and cooperlake.
15522 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15523 and PROCESSOR_COOPERLAKE.
15524 * config/i386/i386-c.c
15525 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15526 * config/i386/i386-options.c
15527 (m_TIGERLAKE): Define.
15528 (m_COOPERLAKE): Ditto.
15529 (m_CORE_AVX512): Ditto.
15530 (processor_cost_table): Add cascadelake.
15531 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15532 * config/i386/i386.h
15533 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15534 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15535 (PTA_MOVDIRI): Ditto.
15536 (PTA_MOVDIR64B): Ditto.
15537 (PTA_COOPERLAKE): Ditto.
15538 (PTA_TIGERLAKE): Ditto.
15539 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15540 * doc/extend.texi: Add tigerlake and cooperlake.
15541 * doc/invoke.texi: Add tigerlake and cooperlake.
15542
15543 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15544
15545 * doc/install.texi (Specific, alpha): Remove note to use
15546 binutils 2.11.2 or later.
15547
15548 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15549
15550 PR middle-end/89544
15551 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15552 when possible.
15553
15554 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15555
15556 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15557 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15558 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15559 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15560 * config/aarch64/constraints.md (Dt): New constraint
15561 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15562
15563 2019-08-19 Richard Biener <rguenther@suse.de>
15564
15565 PR tree-optimization/91403
15566 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15567 cases we can handle with tail-recursion...
15568 (follow_ssa_edge_expr): ... here. Do so.
15569
15570 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15571
15572 PR target/91441
15573 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15574 implemented for -fsanitize=kernel-address, and merge check logic
15575 with -fsanitize=address.
15576
15577 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15578
15579 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15580 for cpu and machine. Factor 64/32b builtins.
15581
15582 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15583
15584 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15585 gone, point to sourceforge.net.
15586
15587 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15588
15589 * doc/ux.texi (User Experience Guidelines): Update reference.
15590
15591 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15592
15593 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15594 not LGPL".
15595
15596 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15597
15598 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15599 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15600
15601 2019-08-16 Martin Sebor <msebor@redhat.com>
15602
15603 * tree.def (TYPE_SIZE): Clarify.
15604 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15605
15606 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15607
15608 PR tree-optimization/91109
15609 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15610 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15611 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15612
15613 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15614
15615 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15616 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15617 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15618 (uavg<mode>3_ceil): New expander.
15619 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15620 mode iterator when creating CONST1_RTX.
15621 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15622 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15623 mode iterator for const1_operand predicate.
15624
15625 2019-08-16 Richard Biener <rguenther@suse.de>
15626
15627 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15628 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15629 follow_ssa_edge.
15630 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15631 (analyze_evolution_in_loop): Likewise.
15632 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15633 (follow_ssa_edge_expr): ... here. Refactor code.
15634
15635 2019-08-16 Richard Biener <rguenther@suse.de>
15636
15637 PR target/91469
15638 * config/i386/i386-features.c
15639 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15640
15641 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15642
15643 PR other/91255
15644 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15645 only if subst_name matches curr_attr string.
15646
15647 2019-08-16 Richard Biener <rguenther@suse.de>
15648
15649 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15650 stmt at gsi_p, instead replace it with a NOP removed later.
15651 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15652 that became dead because of that.
15653
15654 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15655
15656 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15657 for which we can't represent a range.
15658 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15659 set_varying.
15660 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15661 Set VR_UNDEFINED if type is not supported.
15662 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15663 * tree-vrp.c (value_range_base::check): Assert that a varying has
15664 min/max set.
15665 (value_range_base::equal_p): Early bail for undefines.
15666 (value_range_base::set_varying): Accept a type.
15667 (value_range::set_varying): Same.
15668 (value_range_base::type): VARYING can have a type, while UNDEFINE
15669 is typeless.
15670 (value_range_base::dump): Print type for VARYING nodes.
15671 (value_range_base::set): Add type to VARYING.
15672 (extract_range_from_multiplicative_op): Pass type to set_varying.
15673 (extract_range_from_binary_expr): Same.
15674 (value_range_base::intersect_helper): Same.
15675 (value_range_base::union_helper): Same.
15676 (value_range_base::normalize_symbolics): Same.
15677 (determine_value_range_1): Same.
15678 * tree-vrp.h (class value_range_base): Add type to set_varying.
15679 Add prototype for dump(void).
15680 Add prototype for supports_type_p.
15681 (class value_range): Add type to set_varying.
15682 Add prototype for dump(void).
15683 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15684 set_varying.
15685 (vr_values::get_lattice_entry): Set varying even if propagation
15686 finished.
15687 Pass type to set_varying.
15688 (vr_values::get_value_range): Remove vr_const_varying.
15689 Reallocate the lattice if needed.
15690 (vr_values::update_value_range): Pass type to set_varying.
15691 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15692 (vr_values::extract_range_from_binary_expr): Same.
15693 (vr_values::extract_range_from_unary_expr): Same.
15694 (vr_values::extract_range_from_cond_expr): Same.
15695 (vr_values::check_for_binary_op_overflow): Same.
15696 (vr_values::extract_range_basic): Same.
15697 (vr_values::extract_range_from_assignment): Same.
15698 (vr_values::vr_values): Increase size of num_vr_values.
15699 (vr_values::extract_range_from_phi_node): Pass type to
15700 set_varying.
15701
15702 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15703
15704 PR target/90878
15705 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15706 for costs of hard register moves.
15707 (ix86_register_move_cost): Likewise.
15708 * config/i386/i386.h (processor_costs): Move costs of hard
15709 register moves to hard_register. Add int_load, int_store,
15710 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15711 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15712 for costs of RTL expressions.
15713 * config/i386/x86-tune-costs.h: Move costs of hard register
15714 moves to hard_register. Duplicate int_load, int_store,
15715 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15716 sse_load, sse_store for costs of RTL expressions.
15717
15718 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15719
15720 * target.def (setup_incoming_vararg_bounds): Remove.
15721 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15722 * doc/tm.texi: Regenerate.
15723 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15724 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15725 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15726 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15727
15728 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15729
15730 MSP430: Fix lines over 80 characters long in
15731 config/msp430/*.{c,h} files
15732
15733 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15734 specifier in string.
15735 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15736 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15737 redundant old comment.
15738 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15739 Split line more than 80 characters long.
15740 * config/msp430/msp430.c (msp430_option_override): Likewise.
15741 (msp430_return_in_memory): Likewise.
15742 (msp430_gimplify_va_arg_expr): Likewise.
15743 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15744 (msp430_legitimate_constant): Likewise.
15745 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15746 (msp430_attr): Likewise.
15747 (msp430_data_attr): Likewise.
15748 (msp430_start_function): Likewise.
15749 (gen_prefix): Likewise.
15750 (msp430_init_sections): Likewise.
15751 (msp430_select_section): Likewise.
15752 (msp430_function_section): Likewise.
15753 (msp430_unique_section): Likewise.
15754 (msp430_output_aligned_decl_common): Likewise.
15755 (msp430_do_not_relax_short_jumps): Likewise.
15756 (msp430_init_builtins): Likewise.
15757 (msp430_expand_delay_cycles): Likewise.
15758 (msp430_expand_prologue): Likewise.
15759 (msp430_expand_epilogue): Likewise.
15760 (msp430_expand_helper): Likewise.
15761 (msp430_split_movsi): Likewise.
15762 (msp430_print_operand): Likewise.
15763 (msp430_return_addr_rtx): Likewise.
15764 (msp430x_extendhisi): Likewise.
15765 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15766 (ASM_SPEC): Likewise.
15767 Remove very obvious comments.
15768 (LIB_SPEC): Split line more than 80 characters long.
15769 (EH_RETURN_HANDLER_RTX): Likewise.
15770 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15771
15772 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15773
15774 MSP430: Fix whitespace errors and incorrect indentation in
15775 config/msp430/*.{c,h} files
15776
15777 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15778 (msp430_select_hwmult_lib): Likewise.
15779 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15780 (msp430_extract_mcu_data): Likewise.
15781 (struct t_msp430_mcu_data): Likewise.
15782 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15783 before left square bracket.
15784 (msp430_option_override): Fix indentation.
15785 (msp430_hard_regno_nregs_with_padding): Likewise.
15786 (msp430_initial_elimination_offset): Likewise.
15787 (msp430_special_register_convention_p): Remove whitespace before left
15788 square bracket and after exclamation mark.
15789 (msp430_evaluate_arg): Likewise.
15790 (msp430_callee_copies): Fix indentation.
15791 (msp430_gimplify_va_arg_expr): Likewise.
15792 (msp430_function_arg_advance): Remove whitespace before left square
15793 bracket.
15794 (reg_ok_for_addr): Likewise.
15795 (msp430_preserve_reg_p): Likewise.
15796 (msp430_compute_frame_info): Likewise.
15797 (msp430_asm_output_addr_const_extra): Add space between function name
15798 and open parenthesis.
15799 (has_section_name): Fix indentation.
15800 (msp430_attr): Remove trailing whitespace.
15801 (msp430_section_attr): Likewise.
15802 (msp430_data_attr): Likewise.
15803 (struct msp430_attribute_table): Fix comment and whitespace.
15804 (msp430_start_function): Remove whitespace before left square bracket.
15805 Add space between function name and open parenthesis.
15806 (msp430_select_section): Remove trailing whitespace.
15807 (msp430_section_type_flags): Remove trailing whitespace.
15808 (msp430_unique_section): Remove space before closing parenthesis.
15809 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15810 (msp430_builtins): Remove whitespace before left square bracket.
15811 (msp430_init_builtins): Fix indentation.
15812 (msp430_expand_prologue): Remove whitespace before left square bracket.
15813 Remove space before closing parenthesis.
15814 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15815 (msp430_split_movsi): Remove space before closing parenthesis.
15816 (helper_function_name_mappings): Fix indentation.
15817 (msp430_use_f5_series_hwmult): Fix whitespace.
15818 (use_32bit_hwmult): Likewise.
15819 (msp430_no_hwmult): Likewise.
15820 (msp430_output_labelref): Remove whitespace before left square bracket.
15821 (msp430_print_operand_raw): Likewise.
15822 (msp430_print_operand_addr): Likewise.
15823 (msp430_print_operand): Add two spaces after '.' in comment.
15824 Fix trailing whitespace.
15825 (msp430x_extendhisi): Fix indentation.
15826 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15827 tab.
15828 (PC_REGNUM): Likewise.
15829 (STACK_POINTER_REGNUM): Likewise.
15830 (CC_REGNUM): Likewise.
15831
15832 2019-08-15 Richard Biener <rguenther@suse.de>
15833
15834 PR target/91454
15835 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15836 helper.
15837 (general_scalar_chain::make_vector_copies): Use it.
15838
15839 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15840
15841 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15842
15843 2019-08-15 Martin Liska <mliska@suse.cz>
15844
15845 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15846 operators with no arguments.
15847 (eliminate_unnecessary_stmts): Likewise here.
15848
15849 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15850
15851 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15852 <case COMPARE>: Revert 2019-08-14 change.
15853 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15854 for (TARGET_64BIT || mode != DImode).
15855
15856 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15857
15858 * tree-vrp.c (value_range_base::set): Merge in code from
15859 value_range_base::set_and_canonicalize.
15860 Enforce canonicalization at set time.
15861 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15862 (value_range_base::set_undefined): Inline call to set().
15863 (value_range_base::set_varying): Same.
15864 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15865 (vrp_val_max): New argument handle_pointers.
15866 (vrp_val_min): Same.
15867 (ranges_from_anti_range): Same.
15868 (extract_range_into_wide_ints): Use tree argument instead of sign
15869 and precision.
15870 (extract_range_from_multiplicative_op): Take in tree type instead
15871 of precision and sign. Adapt function for canonicalized ranges.
15872 (extract_range_from_binary_expr): Pass type to
15873 extract_range_from_multiplicative_op.
15874 Adapt for canonicalized ranges.
15875 (extract_range_from_unary_expr): Same.
15876 (value_range_base::intersect_helper): Adjust for canonicalized
15877 ranges.
15878 (value_range_base::union_helper): Same.
15879 (value_range_base::normalize_symbolics): New.
15880 * tree-vrp.h (class value_range_base): Remove
15881 set_and_canonicalize.
15882 New prototype for normalize_symbolics.
15883 (class value_range): Remove set_and_canonicalize.
15884 (vrp_val_min): Adjust prototype.
15885 (vrp_val_max): Same.
15886 * vr-values.c
15887 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15888 instead of set_and_canonicalize.
15889
15890 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15891
15892 PR middle-end/91444
15893 * tree-vect-stmts.c (vectorizable_call): Check that the function
15894 is a BUILT_IN_MD function before passing it to
15895 targetm.vectorize.builtin_md_vectorized_function.
15896
15897 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15898
15899 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15900 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15901 (aarch64_select_early_remat_modes): Use it.
15902
15903 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15904
15905 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15906 16 for SVE predicates even if they are fixed-length.
15907
15908 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15909
15910 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15911 operand order match the MOV /Z alias.
15912
15913 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15914
15915 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15916 the vector pattern as an aarch64_svpattern argument. Update the
15917 overloaded caller accordingly.
15918 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15919 (aarch64_output_sve_vector_inc_dec): Likewise.
15920
15921 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15922
15923 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15924 multiplication case, try to compute VG * (lowest set bit) directly
15925 rather than always basing the multiplication on VG. Use
15926 expand_mult for the multiplication if we can.
15927
15928 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15929
15930 * config/aarch64/aarch64-protos.h
15931 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15932 (aarch64_sve_inc_dec_immediate_p): Rename to...
15933 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15934 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15935 (aarch64_output_sve_scalar_inc_dec): Declare.
15936 (aarch64_output_sve_inc_dec_immediate): Rename to...
15937 (aarch64_output_sve_vector_inc_dec): ...this.
15938 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15939 (aarch64_output_sve_scalar_inc_dec): New functions.
15940 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15941 arguments. Only handle true ADDVL and ADDPL instructions;
15942 don't emit an INC or DEC.
15943 (aarch64_sve_inc_dec_immediate_p): Rename to...
15944 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15945 (aarch64_output_sve_inc_dec_immediate): Rename to...
15946 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15947 aarch64_sve_vector_inc_dec_immediate_p.
15948 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15949 (aarch64_sve_plus_immediate): New predicates.
15950 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15951 rather than aarch64_sve_addvl_addpl_immediate.
15952 (aarch64_sve_inc_dec_immediate): Rename to...
15953 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15954 aarch64_sve_vector_inc_dec_immediate_p.
15955 (aarch64_sve_add_operand): Update accordingly.
15956 * config/aarch64/constraints.md (Uai): New constraint.
15957 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15958 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15959 operand into a register if it satisfies aarch64_sve_plus_immediate.
15960 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15961 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15962 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15963 aarch64_output_sve_vector_inc_dec instead of
15964 aarch64_output_sve_inc_dec_immediate.
15965
15966 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15967
15968 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15969 (UNSPEC_REVW): New constants.
15970 (elem_bits): New mode attribute.
15971 (SVE_INT_UNARY): New int iterator.
15972 (optab): Handle UNSPEC_REV[BHW].
15973 (sve_int_op): New int attribute.
15974 (min_elem_bits): Handle VNx16QI and the predicate modes.
15975 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15976 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15977 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15978 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15979 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15980 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15981 unspecs based on the total width of the reversed data.
15982 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15983 reinterpret followed by a subreg on big-endian targets.
15984
15985 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15986 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15987
15988 * config/aarch64/aarch64-sve.md
15989 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15990 alternatives in which one of the inputs is in the same register
15991 as the output.
15992
15993 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15994
15995 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15996 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15997
15998 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15999
16000 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16001 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16002
16003 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16004 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16005
16006 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16007 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16008 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16009
16010 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16011 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16012
16013 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16014 Add an alternative that uses reversed shifts.
16015
16016 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16017
16018 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16019 struct.
16020
16021 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16022
16023 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16024 a commutativity marker.
16025
16026 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16027 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16028
16029 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16030 (aarch64_prepare_sve_cond_int_fma): Declare.
16031 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16032 (aarch64_prepare_sve_int_fma): New functions.
16033 (aarch64_prepare_sve_cond_int_fma): Likewise.
16034 * config/aarch64/aarch64-sve.md
16035 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16036 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16037 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16038 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16039 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16040 (*madd<mode>): Rename to...
16041 (*fma<mode>4): ...this.
16042 (*msub<mode>): Rename to...
16043 (*fnma<mode>4): ...this.
16044
16045 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16046 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16047
16048 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16049 Print 2.0 naturally.
16050 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16051 * config/aarch64/predicates.md
16052 (aarch64_sve_float_negated_arith_immediate): New predicate,
16053 renamed from aarch64_sve_float_arith_with_sub_immediate.
16054 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16055 positive and negative constants.
16056 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16057 or an aarch64_sve_float_arith_with_sub_immediate.
16058 * config/aarch64/constraints.md (vsN): Use
16059 aarch64_sve_float_negated_arith_immediate.
16060 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16061 iterator.
16062 (sve_pred_fp_rhs2_immediate): New int attribute.
16063 * config/aarch64/aarch64-sve.md
16064 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16065 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16066 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16067 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16068 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16069 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16070
16071 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16072 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16073
16074 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16075 (*aarch64_cond_abd<SVE_F:mode>_3)
16076 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16077
16078 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16079 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16080
16081 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16082 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16083
16084 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16085 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16086
16087 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16088 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16089 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16090 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16091 optabs.
16092 * optabs.h (create_convert_operand_from): Expand comment.
16093 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16094 when mapping scalar rtxes to vector operands.
16095 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16096 ashiftrt and lshiftrt.
16097 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16098 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16099 (*cond_<optab><mode>_any_const): New patterns.
16100
16101 2019-08-15 Martin Liska <mliska@suse.cz>
16102
16103 PR ipa/91438
16104 * cgraph.c (cgraph_node::remove): When setting
16105 n->origin = NULL for all nested functions, reset
16106 also next_nested.
16107
16108 2019-08-15 Martin Liska <mliska@suse.cz>
16109
16110 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16111 and next_nested.
16112
16113 2019-08-15 Martin Liska <mliska@suse.cz>
16114
16115 PR ipa/91404
16116 * passes.c (order): Remove.
16117 (uid_hash_t): Likewise).
16118 (remove_cgraph_node_from_order): Remove from set
16119 of pointers (cgraph_node *).
16120 (insert_cgraph_node_to_order): New.
16121 (duplicate_cgraph_node_to_order): New.
16122 (do_per_function_toporder): Register all 3 cgraph hooks.
16123 Skip removed_nodes now as we know about all of them.
16124
16125 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16126
16127 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16128 <case E_V8QImode>: Use vector_set path for
16129 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16130 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16131 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16132
16133 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16134
16135 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16136
16137 2019-08-14 Martin Sebor <msebor@redhat.com>
16138
16139 PR tree-optimization/91294
16140 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16141 source length as exact.
16142
16143 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16144
16145 * doc/extend.texi: Add "noinit" attribute documentation.
16146 * doc/sourcebuild.texi: Add noinit effective target documentation.
16147 * varasm.c (default_section_type_flags): Add support for "noinit"
16148 section.
16149 (default_elf_select_section): Add support for "noinit" attribute.
16150 * config/msp430/msp430.c (msp430_attribute_table): Remove
16151 "noinit" entry.
16152
16153 2019-08-14 Richard Biener <rguenther@suse.de>
16154 Uroš Bizjak <ubizjak@gmail.com>
16155
16156 PR target/91154
16157 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16158 mode arguments.
16159 (scalar_chain::smode): New member.
16160 (scalar_chain::vmode): Likewise.
16161 (dimode_scalar_chain): Rename to...
16162 (general_scalar_chain): ... this.
16163 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16164 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16165 base with TImode and V1TImode.
16166 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16167 (general_scalar_chain::vector_const_cost): Adjust for SImode
16168 chains.
16169 (general_scalar_chain::compute_convert_gain): Likewise. Add
16170 {S,U}{MIN,MAX} support.
16171 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16172 (general_scalar_chain::make_vector_copies): Likewise. Handle
16173 non-DImode chains appropriately.
16174 (general_scalar_chain::convert_reg): Likewise.
16175 (general_scalar_chain::convert_op): Likewise.
16176 (general_scalar_chain::convert_insn): Likewise. Add
16177 fatal_insn_not_found if the result is not recognized.
16178 (convertible_comparison_p): Pass in the scalar mode and use that.
16179 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16180 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16181 (scalar_to_vector_candidate_p): Remove by inlining into single
16182 caller.
16183 (general_remove_non_convertible_regs): Rename from
16184 dimode_remove_non_convertible_regs.
16185 (remove_non_convertible_regs): Remove by inlining into single caller.
16186 (convert_scalars_to_vector): Handle SImode and DImode chains
16187 in addition to TImode chains.
16188 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16189 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16190 (*<maxmin>di3_doubleword): Likewise.
16191
16192 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16193 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16194
16195 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16196 (*cond_bic<mode>_any): New patterns.
16197
16198 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16199
16200 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16201 take the equivalent mask, as well as a bit count.
16202 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16203 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16204 (aarch64_sve_pred_and_operand): New predicates.
16205 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16206 code attribute.
16207 * config/aarch64/aarch64-sve.md
16208 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16209 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16210
16211 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16212
16213 * config/aarch64/aarch64-sve.md
16214 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16215 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16216 New patterns.
16217
16218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16219 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16220
16221 * config/aarch64/aarch64-sve.md
16222 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16223 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16224
16225 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16226 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16227
16228 * config/aarch64/aarch64-sve.md
16229 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16230 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16231
16232 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16233
16234 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16235 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16236 New pattern.
16237
16238 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16239 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16240
16241 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16242
16243 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16244 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16245
16246 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16247 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16248 (aarch64_print_operand): Add support for %I.
16249 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16250 Bitcast floating-point constants to the corresponding integer constant.
16251 (aarch64_float_const_representable_p): Handle vectors as well
16252 as scalars.
16253 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16254 for the new vcond_mask_<mode><vpred> expander.
16255 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16256 test aarch64_float_const_representable_p.
16257 (aarch64_sve_reg_or_dup_imm): New predicate.
16258 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16259 gen_vcond_mask_<mode><vpred> instead of
16260 gen_aarch64_sve_dup<mode>_const.
16261 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16262 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16263 for operands 1 and 2 respectively. Force operand 2 into a
16264 register if operand 1 is a register. Fold old define_insn...
16265 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16266 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16267 floating-point constants that can be moved as integers. Add
16268 alternatives for MOV /M and FMOV /M.
16269 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16270 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16271 1 and 2 respectively.
16272 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16273 as scalars.
16274 (vss): New constraint.
16275
16276 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16277
16278 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16279 (aarch64_sve_float_maxmin_operand): New predicates.
16280 * config/aarch64/constraints.md (vsB): New constraint.
16281 (vsM): Fix typo.
16282 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16283 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16284 UNSPEC_COND_FMINNM.
16285 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16286 Use aarch64_sve_float_maxmin_operand for operand 2.
16287 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16288 Add alternatives for the constant forms.
16289
16290 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16291
16292 * config/aarch64/constraints.md (vsb): New constraint.
16293 (vsm): Generalize description.
16294 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16295 iterator.
16296 (sve_imm_con): Handle smax, smin, umax and umin.
16297 (sve_imm_prefix): New code attribute.
16298 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16299 (aarch64_sve_vsb_operand): New predicates.
16300 (aarch64_sve_mul_immediate): Rename to...
16301 (aarch64_sve_vsm_immediate): ...this.
16302 (aarch64_sve_mul_operand): Rename to...
16303 (aarch64_sve_vsm_operand): ...this.
16304 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16305 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16306 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16307 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16308 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16309 add movprfx support for the immediate alternatives.
16310 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16311 of the above.
16312 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16313 for operand 3.
16314
16315 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16316
16317 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16318 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16319 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16320
16321 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16322
16323 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16324 (optab, sve_int_op): Handle them.
16325 * config/aarch64/aarch64-sve.md: Expand comment.
16326
16327 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16328
16329 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16330 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16331 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16332
16333 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16334
16335 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16336 (aarch64_expand_sve_const_pred_trn): New functions.
16337 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16338 use the above functions when the parameter is true.
16339 (aarch64_expand_sve_const_pred): Update call accordingly.
16340 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16341 Rename to...
16342 (@aarch64_sve_<perm_insn><mode>): ...this.
16343
16344 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16345
16346 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16347 Declare.
16348 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16349 (aarch64_sve_emit_int_cmp): New functions.
16350 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16351 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16352 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16353 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16354 (UNSPEC_PRED_Z): New unspec.
16355 (set_clobber_cc_nzc): Delete.
16356 * config/aarch64/aarch64-sve.md: Add a block comment about
16357 UNSPEC_PRED_Z.
16358 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16359 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16360 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16361 UNSPEC_MERGE_PTRUE.
16362 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16363 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16364 check for compatible predicates.
16365 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16366 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16367 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16368 comparisons above.
16369
16370 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16371
16372 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16373 * config/aarch64/aarch64-sve.md: Add a section describing it.
16374 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16375 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16376 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16377 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16378 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16379 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16380 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16381 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16382 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16383 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16384 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16385 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16386 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16387 (aarch64_evpc_rev_local): Update accordingly.
16388
16389 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16390
16391 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16392 iterators.
16393 (SVE_BHSI, SVE_SDI): Tweak comment.
16394 (SVE_HSDI): Likewise. Fix definition.
16395 (SVE_SDF): New mode iterator.
16396 (elem_bits): New mode attribute.
16397 (SVE_COND_FCVT): New int iterator.
16398 * config/aarch64/aarch64-sve.md
16399 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16400 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16401 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16402 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16403 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16404 ...these new patterns.
16405 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16406 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16407 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16408 Merge into...
16409 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16410 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16411 ...these new patterns.
16412 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16413 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16414 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16415 ...this new pattern.
16416 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16417 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16418 ...this new pattern.
16419 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16420
16421 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16422
16423 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16424 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16425 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16426 unspecs.
16427 (optab, su): Handle them.
16428 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16429 * config/aarch64/aarch64-sve.md
16430 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16431 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16432 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16433 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16434 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16435 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16436 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16437 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16438 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16439 FIXUORS.
16440 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16441 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16442 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16443 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16444 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16445 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16446 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16447 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16448 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16449 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16450 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16451 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16452 of UNSPEC_FLOAT_CONVERT.
16453 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16454 aarch64_sve_extend<mode><Vwide>2.
16455
16456 2019-08-14 Richard Biener <rguenther@suse.de>
16457
16458 PR target/91154
16459 * config/i386/i386-features.c
16460 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16461 individual instruction gain. Fix reg-reg copy GRP cost. Use
16462 ix86_cost->sse_op for vector instruction costs.
16463
16464 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16465
16466 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16467 (cmp_op): Handle it.
16468 (SVE_COND_FP_CMP): Rename to...
16469 (SVE_COND_FP_CMP_I0): ...this.
16470 (SVE_FP_CMP): Remove.
16471 * config/aarch64/aarch64-sve.md
16472 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16473 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16474 using unspecs to represent the comparison.
16475 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16476 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16477 accordingly.
16478 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16479 (aarch64_unspec_cond_code): Move after integer code. Handle
16480 UNORDERED.
16481 (aarch64_emit_sve_predicated_cond): Replace with...
16482 (aarch64_emit_sve_fp_cond): ...this new function.
16483 (aarch64_emit_sve_or_conds): Replace with...
16484 (aarch64_emit_sve_or_fp_conds): ...this new function.
16485 (aarch64_emit_sve_inverted_cond): Replace with...
16486 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16487 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16488
16489 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16490
16491 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16492 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16493 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16494 SVE_HSD instead of SVE_SD.
16495
16496 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16497 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16498
16499 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16500 iterator.
16501 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16502 attributes.
16503 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16504 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16505 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16506 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16507 (*div<SVE_F:mode>3): Generalize to...
16508 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16509
16510 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16511 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16512
16513 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16514 constants.
16515 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16516 predicate.
16517 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16518 Declare.
16519 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16520 function.
16521 * config/aarch64/aarch64-sve.md: Add a block comment about the
16522 handling of predicated FP operations.
16523 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16524 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16525 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16526 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16527 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16528 operand.
16529 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16530 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16531 operand.
16532 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16533 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16534 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16535 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16536 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16537 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16538 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16539 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16540 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16541 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16542 strictness operands. Use aarch64_sve_pred_dominates_p to check
16543 whether the predicate on the conditional operation is suitable
16544 for merging. Split patterns into the canonical equal-predicate form.
16545 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16546 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16547
16548 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16549 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16550
16551 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16552 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16553 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16554 rtx codes.
16555 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16556 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16557 unspecs.
16558
16559 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16560 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16561
16562 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16563 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16564 actually has, rather than relying on REG_EQUAL notes.
16565 Make the insn operand order match the SVE operand order.
16566 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16567 the SVE operand order.
16568
16569 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16570
16571 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16572 (aarch64_emit_set_immediate): Likewise.
16573 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16574 (aarch64_pfalse_reg): Likewise.
16575 (aarch64_convert_sve_data_to_pred): New function.
16576 (aarch64_sve_move_pred_via_while): Take an optional target register
16577 and the required register mode.
16578 (aarch64_expand_sve_const_pred_1): New function.
16579 (aarch64_expand_sve_const_pred): Likewise.
16580 (aarch64_expand_mov_immediate): Build an all-true predicate
16581 if the significant bits of the immediate are all true. Use
16582 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16583 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16584 before register allocation.
16585 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16586 a VNx16BI PTRUE when splitting the memory alternative.
16587 (vec_duplicate<mode>): Update accordingly.
16588 (*pred_cmp<cmp_op><mode>): Rename to...
16589 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16590
16591 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16592
16593 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16594 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16595 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16596 (UNSPEC_PTEST): New unspec.
16597 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16598 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16599 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16600 * config/aarch64/aarch64-sve.md: Add a new section describing the
16601 handling of UNSPEC_PTEST.
16602 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16603 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16604 (ptest_ptrue<mode>): Replace with...
16605 (aarch64_ptest<mode>): ...this new pattern.
16606 (cbranch<mode>4): Update after above changes.
16607 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16608 UNSPEC_PTEST_PTRUE.
16609 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16610 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16611 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16612
16613 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16614
16615 PR lto/91287
16616 * builtins.c (builtin_with_linkage_p): New function.
16617 * builtins.h (builtin_with_linkage_p): New function.
16618 * symtab.c (write_symbol): Remove redundant assert.
16619 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16620 Remove FIXME and use builtin_with_linkage_p.
16621
16622 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16623
16624 PR middle-end/91421
16625 * tree-core.h (function_decl::function_code): Change type to
16626 unsigned int.
16627 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16628 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16629 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16630 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16631 is BUILT_IN_NORMAL.
16632 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16633 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16634 (fndecl_built_in_p): Change the type of the "name" argument to
16635 unsigned int.
16636 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16637 after check for DECL_BUILT_IN_CLASS.
16638 * cgraphclones.c (build_function_decl_skip_args): Use
16639 set_decl_built_in_function.
16640 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16641 * ipa-split.c (split_function): Likewise.
16642 * langhooks.c (add_builtin_function_common): Likewise.
16643 * omp-simd-clone.c (simd_clone_create): Likewise.
16644 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16645 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16646 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16647 DECL_FUNCTION_CODE.
16648 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16649 instead of DECL_FUNCTION_CODE.
16650 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16651 instead of DECL_FUNCTION_CODE.
16652 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16653 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16654 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16655 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16656 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16657 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16658 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16659 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16660 (alpha_gimple_fold_builtin): Likewise.
16661 * config/arc/arc.c (arc_expand_builtin): Likewise.
16662 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16663 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16664 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16665 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16666 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16667 * config/frv/frv.c (frv_expand_builtin): Likewise.
16668 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16669 (gcn_expand_builtin): Likewise.
16670 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16671 (fold_builtin_cpu): Likewise.
16672 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16673 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16674 (ix86_gimple_fold_builtin): Likewise.
16675 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16676 (ia64_expand_builtin): Likewise.
16677 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16678 * config/mips/mips.c (mips_expand_builtin): Likewise.
16679 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16680 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16681 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16682 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16683 * config/pa/pa.c (pa_expand_builtin): Likewise.
16684 * config/pru/pru.c (pru_expand_builtin): Likewise.
16685 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16686 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16687 Likewise.
16688 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16689 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16690 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16691 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16692 (rs6000_builtin_reciprocal): Likewise.
16693 * config/rx/rx.c (rx_expand_builtin): Likewise.
16694 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16695 * config/s390/s390.c (s390_expand_builtin): Likewise.
16696 * config/sh/sh.c (sh_expand_builtin): Likewise.
16697 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16698 (sparc_fold_builtin): Likewise.
16699 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16700 * config/spu/spu.c (spu_expand_builtin): Likewise.
16701 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16702 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16703 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16704 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16705 (xtensa_expand_builtin): Likewise.
16706
16707 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16708
16709 PR middle-end/91421
16710 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16711 before the DECL_FUNCTION_CODE.
16712 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16713 to check for a BUILT_IN_ALLOCA call.
16714 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16715 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16716 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16717 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16718 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16719 for BUILT_IN_NORMAL functions.
16720 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16721 test for BUILT_IN_TM_ABORT.
16722 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16723 to check for a BUILT_IN_STACK_RESTORE call.
16724 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16725 * tree-ssa-threadedge.c
16726 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16727 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16728 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16729 test for a BUILT_IN_NORMAL call instead of a negative test for
16730 an internal function call.
16731
16732 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16733
16734 * tree.h (build_vector_a_then_b): Declare.
16735 * tree.c (build_vector_a_then_b): New function.
16736 * fold-const-call.c (fold_while_ult): Likewise.
16737 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16738 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16739 (aarch64_svpattern): New enum.
16740 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16741 constants through aarch64_expand_mov_immediate.
16742 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16743 than general_operand as the predicate for operand 1.
16744 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16745 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16746 insn_type.
16747 (simd_immediate_info::simd_immediate_info): New overload that
16748 takes a scalar_int_mode and an svpattern.
16749 (simd_immediate_info::u): Add a "pattern" field.
16750 (svpattern_token): New function.
16751 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16752 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16753 (aarch64_sve_move_pred_via_while): New functions.
16754 (aarch64_expand_mov_immediate): Try using
16755 aarch64_sve_move_pred_via_while for predicates that contain N ones
16756 followed by M zeros but that do not correspond to a VLnnn pattern.
16757 (aarch64_sve_pred_valid_immediate): New function.
16758 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16759 with PTRUE and PFALSE.
16760 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16761 forms.
16762
16763 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16764
16765 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16766 flag.
16767 (darwin_override_options): Likewise.
16768 * config/darwin.h: Likewise.
16769 * config/darwin.opt: Likewise.
16770 * config/i386/i386.c (output_pic_addr_const): Likewise.
16771 * config/rs6000/darwin.h: Likewise.
16772 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16773 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16774 ... this TARGET_MACHO_SYMBOL_STUBS.
16775 (FUNCTION_PROFILER):Likewise.
16776 * config/i386/i386.h: Likewise.
16777
16778 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16779
16780 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16781 <case E_V2SImode>: Use vec_extr path for
16782 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16783 <case E_V8QImode>: Ditto.
16784 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16785 Use SWI48 mode iterator. Use %k to output operand 0.
16786 (*mmx_pextrw): New insn pattern.
16787 (*mmx_pextrb): Ditto.
16788 (*mmx_pextrb_zext): Ditto.
16789
16790 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16791
16792 * target.def (libc_has_function, libc_has_fast_function): Improve
16793 documentation strings.
16794 * doc/tm.texi: Regenerate.
16795
16796 2019-08-13 Caroline Tice <cmtice@google.com>
16797
16798 PR other/91396
16799 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16800 vtv_end.o or vtv_end_preinit.o files if !static.
16801
16802 2019-08-13 Olivier Hainque <hainque@adacore.com>
16803
16804 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16805
16806 2019-08-13 Olivier Hainque <hainque@adacore.com>
16807
16808 * rtlanal.c (tablejump_casesi_pattern): New function, to
16809 determine if a tablejump insn is a casesi dispatcher. Extracted
16810 from patch_jump_insn.
16811 * rtl.h (tablejump_casesi_pattern): Declare.
16812 * cfgrtl.c (patch_jump_insn): Use it.
16813 * dwarf2cfi.c (create_trace_edges): Use it.
16814
16815 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16816
16817 PR target/81800
16818 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16819 operand is larger than a long int.
16820
16821 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16822
16823 * machmode.h (opt_mode::else_mode): New function.
16824 (opt_mode::else_blk): Use it.
16825 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16826 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16827 (aarch64_gen_stepped_int_parallel): Likewise.
16828 (aarch64_stepped_int_parallel_p): Likewise.
16829 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16830 argument.
16831 * config/aarch64/aarch64.c
16832 (aarch64_expand_sve_widened_duplicate): Delete.
16833 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16834 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16835 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16836 argument. Use early returns in the !CONST_INT_P handling.
16837 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16838 than handling some inline.
16839 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16840 from...
16841 (aarch64_simd_container_mode): ...here.
16842 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16843 (aarch64_sve_ld1rq_operand_p): New functions.
16844 * config/aarch64/predicates.md (descending_int_parallel)
16845 (aarch64_sve_ld1rq_operand): New predicates.
16846 * config/aarch64/constraints.md (UtQ): New constraint.
16847 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16848 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16849 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16850 (@aarch64_sve_reinterpret<mode>): New expander.
16851 (*aarch64_sve_reinterpret<mode>): New pattern.
16852 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16853 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16854 (*sve_ld1rq<Vesize>): Replace with...
16855 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16856
16857 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16858
16859 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16860 16:12.
16861
16862 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16863
16864 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16865 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16866 (msp430_check_path_for_devices): New.
16867 (parse_devices_csv_1): New.
16868 (parse_devices_csv): New.
16869 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16870 MCU data in devices.csv before using the hard-coded data.
16871 Warn if devices.csv isn't found and the MCU wasn't found in the
16872 hard-coded data either.
16873 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16874 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16875 Search for devices.csv on -I and -L paths.
16876 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16877 msp430_set_driver_var.
16878 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16879 -mdevices-csv-loc=.
16880 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16881 searched for devices.csv.
16882 (mwarn-devices-csv): Document option.
16883
16884 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16885
16886 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16887 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16888 Use a single Dn alternative instead of separate Dz and Dm
16889 alternatives. Use aarch64_output_sve_move_immediate.
16890 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16891 function.
16892 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16893 for predicates too.
16894 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16895 (aarch64_output_ptrue): Delete.
16896
16897 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16898
16899 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16900 INDEX.
16901 (simd_immediate_info::value, simd_immediate_info::step)
16902 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16903 with...
16904 (simd_immediate_info::u): ...this new union.
16905 (simd_immediate_info::simd_immediate_info): Update accordingly.
16906 (aarch64_output_simd_mov_immediate): Likewise.
16907 (aarch64_output_sve_mov_immediate): Likewise.
16908
16909 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16910
16911 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16912 extra_gcc_objs.
16913 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16914 (msp430_select_cpu): New spec function.
16915 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16916 MCU data.
16917 * config/msp430/msp430-devices.c: New file.
16918 * config/msp430/msp430-devices.h: New file.
16919 * config/msp430/msp430.c: Remove msp430_mcu_data.
16920 (msp430_option_override): Use msp430_extract_mcu_data to extract
16921 MCU data.
16922 (msp430_use_f5_series_hwmult): Likewise.
16923 (use_32bit_hwmult): Likewise.
16924 (msp430_no_hwmult): Likewise.
16925 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16926 assembler.
16927 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16928 and -mcpu option.
16929 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16930 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16931 Remove hard-coded MCU multilib data.
16932
16933 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16934
16935 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16936 based on the mode instead of testing properties of it.
16937
16938 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16939
16940 * doc/md.texi: Document the x and y constraints for AArch64.
16941 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16942 (FP_LO8_REGS): New reg_class.
16943 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16944 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16945 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16946 * config/aarch64/predicates.md (aarch64_simd_register): Use
16947 FP_REGNUM_P instead of checking the classes manually.
16948 * config/aarch64/constraints.md (y): New constraint.
16949
16950 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16951
16952 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16953 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16954 * config/aarch64/aarch64-simd.md
16955 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16956 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16957 from the asm template.
16958 * config/aarch64/aarch64-sve.md
16959 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16960 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16961 from the asm template.
16962 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16963 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16964 from the asm template.
16965 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16966
16967 2019-08-13 Martin Liska <mliska@suse.cz>
16968
16969 * value-prof.c (gimple_ic_transform): Add new line.
16970 Print details with MSG_NOTE.
16971
16972 2019-08-13 Martin Liska <mliska@suse.cz>
16973
16974 * doc/invoke.texi: Document automatic detection of jobserver.
16975 * lto-wrapper.c (run_gcc): Detect jobserver always.
16976
16977 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16978
16979 * config/i386/i386-expand.c (ix86_expand_vector_set)
16980 <case E_V2SImode>: Use vec_merge path for
16981 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16982 <case E_V8QImode>: Ditto.
16983 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16984 (*mmx_pinsrb): Ditto.
16985
16986 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16987
16988 PR target/83250
16989 PR target/91340
16990 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16991 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16992 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16993 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16994 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16995
16996 2019-08-12 Richard Biener <rguenther@suse.de>
16997
16998 PR lto/91375
16999 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17000 flag_devirtualize.
17001
17002 2019-08-12 Richard Biener <rguenther@suse.de>
17003
17004 PR driver/91130
17005 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17006 lang_mask option, always use CL_DRIVER.
17007 (get_options_from_collect_gcc_options): Adjust.
17008 (find_and_merge_options): Likewise.
17009 (run_gcc): Likewise.
17010
17011 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17012
17013 * ipa-predicate.c (add_condition): Restore inverted test.
17014
17015 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17016
17017 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17018 (enum omp_clause_device_type_kind): New enum.
17019 (struct tree_omp_clause): Add subcode.device_type_kind.
17020 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17021 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17022 for device_type clause.
17023 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17024 * tree-pretty-print.c (dump_omp_clause): Likewise.
17025
17026 PR target/91408
17027 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17028 vector_operand.
17029
17030 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17031
17032 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17033 handling spilled pseudos.
17034
17035 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17036
17037 PR target/91386
17038 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17039 to preserve the contents of the original insns.
17040
17041 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17042
17043 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17044 (addsi3_compare_op2): Likewise.
17045
17046 2019-08-09 Martin Liska <mliska@suse.cz>
17047
17048 * alias.c (alias_ptr_types_compatible_p): Strengten
17049 type comparison in LTO mode.
17050
17051 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17052
17053 PR middle-end/90313
17054 * tree-tailcall.c (find_tail_calls): Reject calls that might
17055 read from an escaped RESULT_DECL.
17056
17057 2019-08-09 Martin Liska <mliska@suse.cz>
17058
17059 * doc/invoke.texi: Document the option value.
17060 * lto-wrapper.c (run_gcc): Set auto_parallel
17061 only with -flto=auto.
17062
17063 2019-08-09 Martin Liska <mliska@suse.cz>
17064
17065 * opts.c (common_handle_option): Error for an invalid argument
17066 to -flto=.
17067
17068 2019-08-09 Martin Liska <mliska@suse.cz>
17069
17070 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17071 use dump_printf to report optimization.
17072 (sem_variable::merge): Likwise.
17073 (sem_item_optimizer::merge_classes): Use dump_printf to report
17074 ICF hits.
17075
17076 2019-08-09 Martin Liska <mliska@suse.cz>
17077
17078 * value-prof.c (gimple_divmod_fixed_value_transform):
17079 Use dump_printf_loc.
17080 (gimple_mod_pow2_value_transform): Likewise.
17081 (gimple_mod_subtract_transform): Likewise.
17082 (init_node_map): Likewise.
17083 (gimple_ic_transform): Likewise.
17084 (gimple_stringops_transform): Likewise.
17085
17086 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17087
17088 * doc/extend.texi: Add const qualifier to ld intrinsics.
17089
17090 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17091
17092 * config/rs6000/dfp.md (D64_D128): Rename to ...
17093 (DDTD): ... this, throughout.
17094 (dfp_suffix): Rename to ...
17095 (q): ... this, throughout.
17096
17097 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17098
17099 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17100 (dfp_suffix): Ditto.
17101 (adddd3, addtd3): Merge to ...
17102 (add<mode>3 for D64_D128): ... this.
17103 (subdd3, subtd3): Merge to ...
17104 (sub<mode>3 for D64_D128): ... this.
17105 (muldd3, multd3): Merge to ...
17106 (mul<mode>3 for D64_D128): ... this.
17107 (divdd3, divtd3): Merge to ...
17108 (div<mode>3 for D64_D128): ... this.
17109 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17110 (*cmp<mode>_internal1 for D64_D128): ... this.
17111 (ftruncdd2, ftrunctd2): Merge to ...
17112 (ftrunc<mode>2 for D64_D128): ... this.
17113 (fixdddi2, fixtddi2): Merge to ...
17114 (fix<mode>di2 for D64_D128): ... this.
17115
17116 2019-08-08 Jim Wilson <jimw@sifive.com>
17117
17118 PR target/91229
17119 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17120 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17121 Pass into recursive call.
17122 (riscv_flatten_aggregate_argument): New arg. Pass to
17123 riscv_flatten_aggregate_field.
17124 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17125 riscv_flatten_aggregate_argument twice, with false and true as last
17126 arg. Process result twice. Compare results and warn if different.
17127 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17128
17129 2019-08-08 Martin Liska <mliska@suse.cz>
17130
17131 PR bootstrap/91352
17132 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17133 * lto-wrapper.c (jobserver_active_p): Likewise.
17134
17135 2019-08-08 Martin Liska <mliska@suse.cz>
17136
17137 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17138 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17139 (create_version_clone_with_body): Likewise.
17140
17141 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17142
17143 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17144 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17145 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17146 GOVD_EXPLICIT flags.
17147 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17148 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17149 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17150 call install_var_field with mask 11 instead of 3.
17151 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17152 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17153
17154 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17155
17156 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17157 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17158
17159 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17160
17161 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17162 MOVPRFX alternatives. Make the GPR alternatives more expensive
17163 than the FPR ones.
17164
17165 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17166
17167 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17168 Disparage the GPR alternative relative to the FPR one.
17169 Fix handling of 8-bit and 16-bit FPR values.
17170
17171 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17172
17173 * config/aarch64/iterators.md (BITWISEV): Delete.
17174 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17175 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17176 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17177 UNSPEC_FMINNMV, UNSPEC_FMINV.
17178 (bit_reduc_op): Delete.
17179 (sve_int_op): New int attribute.
17180 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17181 UNSPEC_FMINNMV, UNSPEC_FMINV.
17182 * config/aarch64/aarch64-sve.md
17183 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17184 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17185 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17186 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17187 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17188 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17189 new patterns.
17190 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17191 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17192 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17193 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17194 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17195 new patterns.
17196
17197 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17198
17199 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17200 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17201 (fms<mode>4, *fms<mode>4): Replace with...
17202 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17203 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17204 Use unspecs instead of rtx codes.
17205 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17206 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17207
17208 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17209
17210 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17211 int iterator.
17212 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17213 * config/aarch64/aarch64-sve.md
17214 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17215 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17216 use a single unspec for the rhs.
17217 (*<su><maxmin><mode>3): Delete.
17218 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17219
17220 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17221
17222 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17223 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17224 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17225 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17226 (optab, sve_fp_op): Handle them.
17227 (SVE_FP_UNARY): Delete.
17228 (optab): Remove sqrt entry.
17229 (sve_fp_op): Remove neg, abs and sqrt entries.
17230 (SVE_COND_FP_UNARY): New int iterator.
17231 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17232 (*<frint_pattern><mode>2): Delete.
17233 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17234 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17235 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17236 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17237
17238 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17239
17240 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17241
17242 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17243
17244 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17245 (UNSPEC_COND_FADD): ...this.
17246 (UNSPEC_COND_SUB): Rename to...
17247 (UNSPEC_COND_FSUB): ...this.
17248 (UNSPEC_COND_MUL): Rename to...
17249 (UNSPEC_COND_FMUL): ...this.
17250 (UNSPEC_COND_DIV): Rename to...
17251 (UNSPEC_COND_FDIV): ...this.
17252 (UNSPEC_COND_MAX): Rename to...
17253 (UNSPEC_COND_FMAXNM): ...this.
17254 (UNSPEC_COND_MIN): Rename to...
17255 (UNSPEC_COND_FMINNM): ...this.
17256 (UNSPEC_COND_LT): Rename to...
17257 (UNSPEC_COND_FCMLT): ...this.
17258 (UNSPEC_COND_LE): Rename to...
17259 (UNSPEC_COND_FCMLE): ...this.
17260 (UNSPEC_COND_EQ): Rename to...
17261 (UNSPEC_COND_FCMEQ): ...this.
17262 (UNSPEC_COND_NE): Rename to...
17263 (UNSPEC_COND_FCMNE): ...this.
17264 (UNSPEC_COND_GE): Rename to...
17265 (UNSPEC_COND_FCMGE): ...this.
17266 (UNSPEC_COND_GT): Rename to...
17267 (UNSPEC_COND_FCMGT): ...this.
17268 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17269 (sve_fp_op_rev): Update accordingly.
17270 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17271
17272 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17273
17274 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17275 banner comments.
17276 * config/aarch64/check-sve-md.awk: New file.
17277 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17278 (insn-conditions.md): Depend on it.
17279
17280 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17281
17282 PR target/91385
17283 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17284 (*negsi2_cmpz_zext): Ditto.
17285
17286 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17287
17288 * config/aarch64/iterators.md (commutative): Remove.
17289
17290 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17291
17292 PR driver/91130
17293 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17294 processing COLLECT_GCC_OPTIONS.
17295 (run_gcc): Likewise.
17296
17297 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17298
17299 PR tree-optimization/91109
17300 * lra-remat.c (update_scratch_ops): Remove assignment of the
17301 hard register.
17302
17303 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17304
17305 * data-streamer.h (streamer_write_poly_uint64): Declare.
17306 (streamer_read_poly_uint64): Likewise.
17307 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17308 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17309 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17310 (add_condition): Take a poly_int64 size.
17311 * ipa-predicate.c (add_condition): Likewise.
17312 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17313 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17314 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17315 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17316 condition::size as a poly_int64.
17317 (unmodified_parm_1): Take a poly_int64 size pointer.
17318 (unmodified_parm): Likewise.
17319 (unmodified_parm_or_parm_agg_item): Likewise.
17320 (set_cond_stmt_execution_predicate): Update accordingly.
17321 (set_switch_stmt_execution_predicate): Likewise.
17322 (will_be_nonconstant_expr_predicate): Likewise.
17323 (will_be_nonconstant_predicate): Likewise.
17324 (inline_read_section): Stream condition::size as a poly_int.
17325 (ipa_fn_summary_write): Likewise.
17326
17327 2019-08-07 Martin Liska <mliska@suse.cz>
17328
17329 * fold-const.c (twoval_comparison_p): Replace int
17330 with bool as a return type.
17331 (simple_operand_p): Likewise.
17332 (operand_equal_p): Replace int with bool as a return type.
17333 * fold-const.h (operand_equal_p): Likewise.
17334
17335 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17336
17337 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17338 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17339 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17340 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17341 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17342 * tree-pretty-print.c (dump_omp_clause): Likewise.
17343 * tree-nested.c (convert_nonlocal_omp_clauses,
17344 convert_local_omp_clauses): Likewise.
17345 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17346 Likewise.
17347 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17348 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17349 clause with array or reference to array types, no matter what type
17350 except for reference it has.
17351
17352 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17353
17354 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17355
17356 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17357
17358 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17359 (arch_canonicalize): Support rv32g and rv64g and fix error
17360 handling.
17361
17362 2019-08-06 Martin Liska <mliska@suse.cz>
17363
17364 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17365 and DECL_IS_OPERATOR_DELETE_P.
17366
17367 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17368
17369 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17370 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17371 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17372 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17373 (gimplify_omp_for): Don't do C++ random access iterator clause
17374 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17375 don't predetermine the artificial iterator in case of C++ random
17376 access iterators as lastprivate, but private. For OMP_LOOP, force
17377 bind expr around simd body and force for_pre_body before the
17378 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17379 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17380 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17381 diff var of C++ random access iterators. Handle
17382 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17383 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17384 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17385 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17386 * omp-low.c (lower_rec_input_clauses): For
17387 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17388 variables instead of default constructing them.
17389 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17390 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17391 is_taskloop_ctx check from the assert to the guarding condition.
17392
17393 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17394
17395 * config/riscv/multilib-generator: (canonical_order): New.
17396 (arch_canonicalize): Dito.
17397 Apply arch_canonicalize for alts.
17398
17399 2019-08-05 Martin Sebor <msebor@redhat.com>
17400
17401 * doc/extend.texi (Common Variable Attributes): Document alias
17402 attribute.
17403
17404 2019-08-05 Marek Polacek <polacek@redhat.com>
17405
17406 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17407 * doc/invoke.texi: Document -Wcomma-subscript.
17408
17409 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17410
17411 * tree-core.h (tree_function_decl): Make function_code an
17412 independent field. Group the remaining bitfields into bytes
17413 and move decl_type so that it contines to be at a byte boundary.
17414 Leave 12 bits for future expansion.
17415
17416 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17417
17418 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17419 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17420 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17421 IFN_MASK_STORE.
17422
17423 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17424
17425 * gimple.h (gimple_move_vops): Declare.
17426 * gimple.c (gimple_move_vops): New function
17427 * gimple-fold.c (replace_call_with_call_and_fold)
17428 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17429 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17430 (gimple_fold_call): Use it.
17431 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17432 * tree-call-cdce.c (use_internal_fn): Likewise.
17433 * tree-if-conv.c (predicate_load_or_store): Likewise.
17434 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17435 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17436 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17437 (update_call_from_tree): Likewise.
17438 * tree-vect-stmts.c (vectorizable_load): Likewise.
17439 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17440
17441 2019-08-05 Martin Liska <mliska@suse.cz>
17442
17443 PR c++/91334
17444 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17445 with not arguments.
17446 (eliminate_unnecessary_stmts): Likewise.
17447
17448 2019-08-05 Richard Biener <rguenther@suse.de>
17449
17450 PR middle-end/91169
17451 * fold-const.c (get_array_ctor_element_at_index): Create
17452 offset_ints according to the sign of the index type and treat
17453 that as signed if it is obviously so.
17454
17455 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17456
17457 PR target/91341
17458 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17459 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17460 _mm256_storeu2_m128i): New function.
17461
17462 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17463
17464 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17465 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17466
17467 2019-08-05 Alan Modra <amodra@gmail.com>
17468
17469 PR target/91349
17470 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17471 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17472
17473 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17474
17475 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17476 bug that was fixed in Tcl 8.6.1.
17477
17478 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17479
17480 * config/rs6000/future.md: New file.
17481 * config/rs6000/rs6000.md: Include future.md.
17482 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17483
17484 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17485
17486 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17487 check to use targetm.slow_unaligned_access instead.
17488
17489 * function.c (assign_param_data_one): Remove unused data members.
17490
17491 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17492
17493 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17494 build_distinct_type_copy.
17495 (simd_clone_adjust_argument_types): Ditto.
17496 (simd_clone_adjust): Call build_distinct_type_copy here.
17497 (expand_simd_clones): Ditto.
17498
17499 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17500
17501 PR target/91201
17502 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17503
17504 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17505
17506 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17507 from 'const void *'.
17508 (sort_locs_in_loop_postorder_cmp): Likewise.
17509
17510 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17511
17512 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17513 (hot-bb-count-ws-permille): Likewise.
17514 (hot-bb-frequency-fraction): Likewise.
17515 (unlikely-bb-count-fraction): Likewise.
17516 * params.def (hot-bb-count-fraction): Rework description.
17517 (hot-bb-count-ws-permille): Likewise.
17518 (hot-bb-frequency-fraction): Likewise.
17519 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17520 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17521
17522 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17523
17524 PR target/91323
17525 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17526 Return false.
17527
17528 2019-08-02 Richard Biener <rguenther@suse.de>
17529
17530 * vec.h (vec::sort): Add gcc_qsort_r support.
17531 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17532 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17533 to gcc_qsort_r style callback.
17534 (sort_locs_in_loop_postorder_cmp): Likewise.
17535 (analyze_memory_references): Use gcc_sort_r interfaces.
17536 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17537
17538 2019-08-02 Martin Liska <mliska@suse.cz>
17539
17540 PR lto/91313
17541 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17542 to detect working job server.
17543 (driver::detect_jobserver): Test whether jobserver
17544 is active from GCC driver. That will prevent situation where
17545 GCC is invoked from a LD plugin and the linker already uses
17546 file descriptors suggested by make. That leads to a wrong
17547 detection.
17548 * gcc.h (driver): Add detect_jobserver.
17549 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17550 not scanning for --jobserver-auth prefix.
17551
17552 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17553
17554 PR tree-optimization/91201
17555 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17556 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17557 extraction.
17558
17559 2019-08-01 Martin Sebor <msebor@redhat.com>
17560
17561 PR c++/90947
17562 * tree.c (type_initializer_zero_p): Define.
17563 * tree.h (type_initializer_zero_p): New function.
17564
17565 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17566
17567 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17568
17569 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17570
17571 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17572 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17573 * predict.c (maybe_hot_count_p): Likewise.
17574 (maybe_hot_bb_p): Tweak comment.
17575 (maybe_hot_edge_p): Likewise.
17576 (probably_never_executed): Likewise. Minor tweak.
17577 (probably_never_executed_bb_p): Likewise.
17578 (unlikely_executed_edge_p): Likewise.
17579 (probably_never_executed_edge_p): Likewise.
17580 (optimize_function_for_size_p): Likewise.
17581 (optimize_function_for_speed_p): Likewise.
17582 (function_optimization_type): Likewise.
17583 (optimize_bb_for_size_p): Likewise.
17584 (optimize_bb_for_speed_p): Likewise.
17585 (bb_optimization_type): Likewise.
17586 (optimize_edge_for_size_p): Likewise.
17587 (optimize_edge_for_speed_p): Likewise.
17588 (optimize_insn_for_size_p): Likewise.
17589 (optimize_insn_for_speed_p): Likewise.
17590 (optimize_loop_for_size_p): Likewise.
17591 (optimize_loop_for_speed_p): Likewise.
17592 (optimize_loop_nest_for_speed_p): Likewise.
17593 (optimize_loop_nest_for_size_p): Likewise.
17594 (predictable_edge_p): Likewise.
17595 (handle_missing_profiles): Minor tweak.
17596
17597 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17598
17599 * config/rs6000/predicates.md (pcrel_external_address): Update
17600 comment.
17601
17602 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17603
17604 PR target/85693
17605 * config/i386/mmx.md (usadv8qi): New expander.
17606
17607 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17608
17609 PR c++/90590
17610 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17611 with reserved names that are in a system header.
17612
17613 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17614
17615 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17616 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17617 (*vec_extractv2si_0_zext): Ditto.
17618 (*vec_extractv2si_1): Add (rm,x) alternative.
17619 (*vec_extractv2si_1_zext): New insn pattern.
17620 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17621 insn constraint.
17622
17623 2019-08-01 Richard Biener <rguenther@suse.de>
17624
17625 * domwalk.c (bb_postorder): Remove static variable.
17626 (cmp_bb_postorder): Adjust.
17627 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17628 (dom_walker::walk): Adjust.
17629
17630 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17631
17632 * sort.cc (sort_r_ctx): New struct.
17633 (reorder23): Make templated on context type.
17634 (reorder45): Ditto.
17635 (cmp1): Ditto. Adjust signature.
17636 (netsort): Ditto.
17637 (mergesort): Ditto.
17638 [CHECKING_P] (cmp2to3): New static function. Use it...
17639 (gcc_qsort) [CHECKING_P]: ...here.
17640 (gcc_sort_r): New function.
17641 * system.h (sort_r_cmp_fn): New function typedef.
17642 (qsort_chk): Adjust signature.
17643 (gcc_sort_r): Declare.
17644 * vec.c (qsort_chk_error): Adjust.
17645 (qsort_chk): Adjust.
17646
17647 2019-08-01 Richard Biener <rguenther@suse.de>
17648
17649 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17650 (compute_antic): Localize it here.
17651
17652 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17653
17654 * common/config/riscv/riscv-common.c: Check -march string ends
17655 with null.
17656
17657 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17658
17659 * ipa-devirt.c (type_warning_cmp): Make static.
17660 (decl_warning_cmp): Ditto.
17661
17662 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17663
17664 PR target/91050
17665 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17666 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17667 use of deleted rs6000_dejagnu_cpu_index variable.
17668 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17669 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17670 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17671 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17672 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17673 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17674
17675 2019-07-31 Richard Biener <rguenther@suse.de>
17676
17677 PR tree-optimization/91280
17678 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17679 Decompose MEM_REF manually for offset handling.
17680
17681 2019-07-31 Richard Biener <rguenther@suse.de>
17682
17683 PR tree-optimization/91293
17684 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17685 of reduction stmts.
17686
17687 2019-07-31 Matt Thomas <matt@3am-software.com>
17688 Nick Hudson <nick@nthcliff.demon.co.uk>
17689 Matthew Green <mrg@eterna.com.au>
17690 Maya Rashish <coypu@sdf.org>
17691
17692 * config.gcc (hppa*-*-netbsd*): New target.
17693 * config/pa/pa-netbsd.h: New file.
17694 * config/pa/pa32-netbsd.h: New file.
17695
17696 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17697
17698 PR tree-optimization/91201
17699 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17700
17701 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17702
17703 * config/gcn/gcn-valu.md
17704 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17705 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17706 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17707 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17708 struct ilist. Add nops for delayeduse insns.
17709 * config/gcn/gcn.md (delayeduse): New attribute.
17710 (*movbi): Remove s_waitcnt from stores.
17711 (*mov<mode>_insn): Likewise.
17712 (*movti_insn): Likewise. Add delayeduse attribute.
17713 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17714 (atomic_store<mode>): Remove or adjust s_waitcnt.
17715
17716 2019-07-31 Richard Biener <rguenther@suse.de>
17717
17718 * vr-values.h (vr_values::swap_vr_value): New.
17719 (vr_values::free_value_range): likewise.
17720 * vr-values.c (vr_values::swap_vr_value): Implement.
17721 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17722 Do not return a range or take a var.
17723 (evrp_range_analyzer::stack): Change back to recording a non-const
17724 value_range *.
17725 * gimple-ssa-evrp-analyze.c
17726 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17727 value-range.
17728 (evrp_range_analyzer::pop_to_marker): Adjust.
17729 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17730 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17731 no longer needed value-range.
17732
17733 2019-07-31 Martin Liska <mliska@suse.cz>
17734
17735 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17736 have size and (or) alignment as 2nd and later arguments.
17737 Mark all of them as necessary.
17738
17739 2019-07-31 Richard Biener <rguenther@suse.de>
17740
17741 PR tree-optimization/91178
17742 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17743 Use tail-recursion.
17744
17745 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17746
17747 PR tree-optimization/91201
17748 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17749 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17750 TARGET_AVX512F.
17751 (reduc_plus_scal_<mode>): Improve formatting by introducing
17752 a temporary.
17753
17754 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17755
17756 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17757 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17758 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17759 (aarch64_init_tme_builtins): New.
17760 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17761 (aarch64_expand_builtin_tme): New.
17762 (aarch64_expand_builtin): Handle TME builtins.
17763 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17764 __ARM_FEATURE_TME when enabled.
17765 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17766 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17767 (TARGET_TME): New.
17768 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17769 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17770 UNSPECV_TCANCEL.
17771 (tstart, ttest, tcommit, tcancel): New instructions.
17772 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17773 (__tcancel, __ttest): New.
17774 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17775 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17776 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17777 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17778 * config/arm/types.md: Add new tme type attr.
17779 * doc/invoke.texi: Document "tme".
17780
17781 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17782
17783 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17784 warn_unused_result attribute.
17785 (cmse_check_address_range): Add warn_unused_result attribute.
17786
17787 2019-07-31 Richard Biener <rguenther@suse.de>
17788
17789 PR tree-optimization/91257
17790 * tree-vrp.c (union_ranges): Unify equality and less tests
17791 by using compare_values. Re-order cheap tests first.
17792
17793 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17794
17795 PR middle-end/91301
17796 * gimplify.c (gimplify_omp_for): If for class iterator on
17797 distribute parallel for there is no data sharing clause
17798 on inner_for_stmt, look for private clause on combined
17799 parallel too and if found, move it to inner_for_stmt.
17800
17801 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17802
17803 * lra-int.h (lra_operand_data): Remove early_clobber field.
17804 (lra_insn_reg): Likewise.
17805 * lra.c (debug_operand_data): Update accordingly.
17806 (setup_operand_alternative): Likewise.
17807 (new_insn_reg): Likewise. Remove early_clobber parameter.
17808 (collect_non_operand_hard_regs): Update call accordingly.
17809 Don't assign to lra_insn_reg::early_clobber.
17810 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17811 and update calls to new_insn_reg.
17812 (lra_update_insn_regno_info): Update calls accordingly.
17813 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17814 alternative number as a parameter and test whether the operand
17815 is earlyclobbered in that particular alternative.
17816 (process_alt_operands): Update call accordingly. Use per-alternative
17817 checks for earyclobber here too.
17818 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17819 against zero for IRA_UNKNOWN_ALT.
17820
17821 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17822
17823 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17824
17825 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17826
17827 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17828 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17829
17830 2019-07-30 Martin Liska <mliska@suse.cz>
17831
17832 PR ipa/89330
17833 * cgraph.c (cgraph_edge::make_direct): Use
17834 edge->indirect_unknown_callee as edge->resolve_speculation can
17835 deallocate edge which is this pointer.
17836
17837 2019-07-30 Richard Biener <rguenther@suse.de>
17838
17839 PR tree-optimization/91257
17840 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17841
17842 2019-07-30 Martin Liska <mliska@suse.cz>
17843
17844 * doc/invoke.texi: Document new behavior.
17845 * lto-wrapper.c (cpuset_popcount): New function
17846 is a copy of libgomp/config/linux/proc.c.
17847 (init_num_threads): Likewise.
17848 (run_gcc): Automatically detect core count for -flto.
17849 (jobserver_active_p): New function.
17850
17851 2019-07-30 Richard Biener <rguenther@suse.de>
17852
17853 PR tree-optimization/91257
17854 * bitmap.h (bitmap_ior_into_and_free): Declare.
17855 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17856 whether to add the unliked element to the freelist.
17857 (bitmap_list_insert_element_after): Add defaulted param for
17858 an already allocated element.
17859 (bitmap_ior_into_and_free): New function.
17860 * tree-ssa-structalias.c (condense_visit): Reduce the
17861 ponts-to and edge bitmaps of the SCC members in a
17862 logarithmic fashion rather than all to one.
17863
17864 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17865
17866 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17867 parameter. When nonnull, make sure that the addition or subtraction
17868 has the same condition.
17869 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17870 for CFN_COND_MUL too.
17871
17872 2019-07-30 Richard Biener <rguenther@suse.de>
17873
17874 PR tree-optimization/91291
17875 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17876 constant values.
17877
17878 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17879
17880 PR middle-end/91216
17881 * omp-low.c (global_nonaddressable_vars): New variable.
17882 (use_pointer_for_field): For global decls, if they are non-addressable,
17883 remember it in the global_nonaddressable_vars bitmap, if they are
17884 addressable and in the global_nonaddressable_vars bitmap, ignore their
17885 TREE_ADDRESSABLE bit.
17886 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17887 vars in global_nonaddressable_vars bitmap.
17888 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17889
17890 PR target/91150
17891 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17892 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17893 comparison to unsigned HOST_WIDE_INT before shifting it left.
17894
17895 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17896
17897 * config/i386/i386.md (movstrict<mode>): Use register_operand
17898 predicate for operand 0. Add expander condition. Assert that
17899 operand 0 is a SUBREG RTX.
17900 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17901 Update operand constraints and insn condition.
17902 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17903 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17904 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17905 Update operand 0 constraints.
17906 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17907
17908 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17909
17910 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17911 when -m{code,data}-region are used without -mlarge.
17912 * config/msp430/msp430.c (msp430_option_override): Error when a
17913 non-default code or data region is used without -mlarge.
17914 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17915 attributes when they are used without -mlarge.
17916
17917 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17918
17919 PR target/70320
17920 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17921
17922 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17923
17924 PR middle-end/91242
17925 * wide-int.h (generic_wide_int::sext_elt): New function.
17926 * inchash.h (hash::add_wide_int): Use it instead of elt.
17927
17928 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17929
17930 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17931 CODE_FOR_arm_##.
17932 * config/arm/arm.md (<crc_variant>): Rename to...
17933 (arm_<crc_variant>): ... This.
17934 (<cdp>): Rename to...
17935 (arm_<cdp>): ... This.
17936 (<ldc>): Rename to...
17937 (arm_<ldc>): ... This.
17938 (<stc>): Rename to...
17939 (arm_<stc>): ... This.
17940 (<mcr>): Rename to...
17941 (arm_<mcr>): ... This.
17942 (<mrc>): Rename to...
17943 (arm_<mrc>): ... This.
17944 (<mcrr>): Rename to...
17945 (arm_<mcrr>): ... This.
17946 (<mrrc>): Rename to...
17947 (arm_<mrrc>): ... This.
17948
17949 2019-07-29 Richard Biener <rguenther@suse.de>
17950
17951 PR tree-optimization/91257
17952 * tree-ssa-sccvn.h (struct vn_avail): New.
17953 (struct vn_ssa_aux): Add avail member.
17954 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17955 member, add m_avail_freelist one.
17956 (rpo_elim::~rpo_elim): Remove.
17957 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17958 data structure.
17959 (rpo_elim::eliminate_push_avail): Likewise.
17960 (do_unwind): Likewise.
17961 (do_rpo_vn): Likewise.
17962
17963 2019-07-29 Richard Biener <rguenther@suse.de>
17964
17965 PR tree-optimization/91257
17966 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17967 most cases, instead call compare_values which handles the
17968 symbolic ranges we handle specially.
17969 (compare_values_warnv): Do not call operand_less_p but open-code
17970 the effective fold calls. Avoid converting so much.
17971
17972 2019-07-29 Martin Liska <mliska@suse.cz>
17973
17974 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17975 remove LHS of operator new call. It's handled latter.
17976
17977 2019-07-29 Richard Biener <rguenther@suse.de>
17978
17979 PR tree-optimization/91267
17980 * vr-values.c (vr_values::update_value_range): Add early return
17981 for effectively VARYING lattice entry.
17982
17983 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17984
17985 PR debug/86638
17986 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17987 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17988 necessary if keep_all_vdefs_p is true.
17989 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17990 that keep_all_vdefs_p is false.
17991 (mark_all_reaching_defs_necessary): Likewise.
17992 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17993
17994 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17995
17996 * common.opt (Og): Change the initial value of flag_dse to 0.
17997 * opts.c (default_options_table): Move OPT_ftree_dse from
17998 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17999 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18000 entry before the OPT_ftree_sra entry.
18001 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18002 of flags disabled by Og.
18003
18004 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18005
18006 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18007 variables for -Og.
18008
18009 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18010
18011 * doc/sourcebuild.texi (check-function-bodies): Document.
18012
18013 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18014
18015 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18016 VEC_DUPLICATE of a fixed-length vector even if the result
18017 is variable-length. Likewise fold a duplicate of a
18018 variable-length vector if the variable-length vector is
18019 itself a duplicate of a fixed-length sequence.
18020 (test_vector_ops_duplicate): Test more cases.
18021
18022 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18023
18024 * vector-builder.h (vector_builder): Add a shape template parameter.
18025 (vector_builder::new_unary_operation): New function, generalizing
18026 the old tree_vector_builder function.
18027 (vector_builder::new_binary_operation): Likewise.
18028 (vector_builder::binary_encoded_nelts): Likewise.
18029 * int-vector-builder.h (int_vector_builder): Update template
18030 parameters to vector_builder.
18031 (int_vector_builder::shape_nelts): New function.
18032 * rtx-vector-builder.h (rtx_vector_builder): Update template
18033 parameters to vector_builder.
18034 (rtx_vector_builder::shape_nelts): New function.
18035 (rtx_vector_builder::nelts_of): Likewise.
18036 (rtx_vector_builder::npatterns_of): Likewise.
18037 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18038 * tree-vector-builder.h (tree_vector_builder): Update template
18039 parameters to vector_builder.
18040 (tree_vector_builder::shape_nelts): New function.
18041 (tree_vector_builder::nelts_of): Likewise.
18042 (tree_vector_builder::npatterns_of): Likewise.
18043 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18044 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18045 (tree_vector_builder::new_binary_operation): Delete.
18046 (tree_vector_builder::binary_encoded_nelts): Likewise.
18047 * simplify-rtx.c: Include rtx-vector-builder.h.
18048 (distributes_over_addition_p): New function.
18049 (simplify_const_unary_operation)
18050 (simplify_const_binary_operation): Generalize handling of vector
18051 constants to include variable-length vectors.
18052 (test_vector_ops_series): Add more tests.
18053
18054 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18055
18056 PR lto/91222
18057 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18058 than INDENTIFIER_POINTER.
18059
18060 2019-07-28 Martin Liska <mliska@suse.cz>
18061
18062 PR ipa/89330
18063 * cgraph.c (symbol_table::create_edge): Always allocate
18064 a cgraph_edge.
18065 (symbol_table::free_edge): Store summary_id to
18066 edge_released_summary_ids if != -1;
18067 * cgraph.h (NEXT_FREE_NODE): Remove.
18068 (SET_NEXT_FREE_NODE): Likewise.
18069 (NEXT_FREE_EDGE): Likewise.
18070 (symbol_table::release_symbol): Store summary_id to
18071 cgraph_released_summary_ids if != -1;
18072 (symbol_table::allocate_cgraph_symbol): Always allocate
18073 a cgraph_node.
18074
18075 2019-07-28 Alan Modra <amodra@gmail.com>
18076
18077 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18078 gen_sibcall.
18079
18080 2019-07-28 Alan Modra <amodra@gmail.com>
18081
18082 PR target/91135
18083 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18084 define.
18085 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18086 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18087 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18088
18089 2019-07-28 Alan Modra <amodra@gmail.com>
18090
18091 PR target/91050
18092 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18093 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18094 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18095 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18096 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18097 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18098 in asm_default spec.
18099 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18100 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18101
18102 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18103
18104 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18105
18106 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18107
18108 PR target/89517
18109 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18110 * config/aarch64/aarch64-option-extensions.def: Add new comments
18111 and restore easier to read options.
18112
18113 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18114
18115 * convert.c (convert_to_real_1): Move part of conversion code...
18116 * match.pd: ...To here.
18117
18118 2019-07-26 Martin Jambor <mjambor@suse.cz>
18119
18120 PR ipa/89330
18121 * ipa-inline-transform.c (check_speculations_1): New function.
18122 (push_all_edges_in_set_to_vec): Likewise.
18123 (check_speculations): Use check_speculations_1, new parameter
18124 new_edges.
18125 (inline_call): Pass new_edges to check_speculations.
18126 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18127 NULL.
18128 (speculation_useful_p): Early return true if edge is inlined, remove
18129 later checks for inline_failed.
18130
18131 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18132
18133 PR rtl-optimization/91223
18134 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18135 matching with INOUT operand.
18136
18137 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18138
18139 * stmt.c (expand_case): Try to narrow the index type if it's larger
18140 than a word. Tidy up.
18141
18142 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18143
18144 * cif-code.def (NEVER_CALL): New code.
18145 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18146 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18147
18148 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18149
18150 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18151 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18152
18153 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18154
18155 * ipa-devirt.c (add_type_duplicate): Fix return value.
18156
18157 2019-07-25 Richard Biener <rguenther@suse.de>
18158
18159 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18160 type parameter and use it instead of guessing expression
18161 type from the first operand.
18162 (extract_range_from_binary_expr): Pass expr_type down.
18163
18164 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18165
18166 * config/arm/arm.md (SATrev): Change to code attribute.
18167 (*satsi_<SAT:code>): Adjust for the above.
18168 (*satsi_<SAT:code>_shift): Likewise.
18169
18170 2019-07-25 Richard Biener <rguenther@suse.de>
18171
18172 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18173 Make value_range * temporary const.
18174 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18175 Likewise.
18176 (evrp_range_analyzer::record_ranges_from_): Likewise.
18177 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18178 deal with having recorded a const one.
18179 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18180 Return a const value_range *.
18181 (evrp_range_analyzer::pop_value_range): Likewise.
18182 (evrp_range_analyzer::stack): Record const value_range *s.
18183 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18184 Adjust.
18185 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18186 (format_integer): Likewise.
18187 (sprintf_dom_walker::handle_gimple_call): Likewise.
18188 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18189 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18190 (vrp_prop::get_value_range): Adjust.
18191 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18192 modifying the lattice in-place.
18193 (vrp_prop::visit_stmt): Likewise.
18194 * vr-values.c (vr_values::get_lattice_entry): New private method.
18195 (vr_values::get_value_range): Wrap it and return a const
18196 value_range *.
18197 (vr_values::set_def_to_varying): New.
18198 (vr_values::set_defs_to_varying): Use it.
18199 (vr_values::update_value_range): Likewise.
18200 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18201 (values::op_with_constant_singleton_va): Likewise.
18202 (vr_values::extract_range_for_var_from_co): Likewise.
18203 (vr_values::extract_range_from_ssa_name): Likewise.
18204 (vr_values::extract_range_from_cond_expr): Likewise.
18205 (vr_values::extract_range_basic): Likewise.
18206 (compare_ranges): Take const value_range *, adjust.
18207 (compare_range_with_value): Likewise.
18208 (vrp_valueize): Adjust.
18209 (vrp_valueize_1): Likewise.
18210 (vr_values::get_vr_for_comparison): Return a const value_range *.
18211 (vr_values::compare_name_with_value): Adjust.
18212 (vr_values::compare_names): Likewise.
18213 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18214 Likewise.
18215 (vr_values::vrp_evaluate_conditional): Likewise.
18216 (find_case_label_ranges): Take a const value_range *.
18217 (vr_values::vrp_visit_switch_stmt): Adjust.
18218 (vr_values::extract_range_from_phi_node): Likewise.
18219 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18220 (vr_values::simplify_abs_using_ranges): Likewise.
18221 (test_for_singularity): Take a const value_range *.
18222 (range_fits_type_p): Likewise.
18223 (vr_values::simplify_cond_using_ranges_1): Adjust.
18224 (vr_values::simplify_cond_using_ranges_2): Likewise.
18225 (vr_values::simplify_switch_using_ranges): Likewise.
18226 (vr_values::simplify_float_conversion_usi): Likewise.
18227 (vr_values::two_valued_val_range_p): Likewise.
18228 * vr-values.h (vr_values::get_value_range): Return a const
18229 value_range *.
18230 (vr_values::set_def_to_varying): New.
18231 (vr_values::get_lattice_entry): New private method.
18232 (vr_values::get_vr_for_comparison): Return a const value_range *.
18233
18234 2019-07-25 Martin Liska <mliska@suse.cz>
18235 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18236
18237 PR c++/23383
18238 * common.opt: Add -fallocation-dce
18239 * gimple.c (gimple_call_operator_delete_p): New.
18240 * gimple.h (gimple_call_operator_delete_p): Likewise.
18241 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18242 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18243 DECL_IS_OPERATOR_DELETE_P.
18244 (mark_all_reaching_defs_necessary_1): Likewise.
18245 (propagate_necessity): Likewise.
18246 (eliminate_unnecessary_stmts): Handle
18247 gimple_call_operator_delete_p.
18248 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18249 Add packing of OPERATOR_DELETE.
18250 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18251 Similarly here.
18252 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18253 (DECL_SET_IS_OPERATOR_DELETE): New.
18254 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18255
18256 2019-07-25 Martin Liska <mliska@suse.cz>
18257
18258 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18259 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18260 * coverage.c (coverage_begin_function): Likewise.
18261 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18262 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18263 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18264 (sem_item::hash_referenced_symbol_properties): Likewise.
18265 * lto-streamer-out.c (hash_tree): Likewise.
18266 * predict.c (expr_expected_value_1): Likewise.
18267 * tree-inline.c (expand_call_inline): Likewise.
18268 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18269 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18270 * tree-core.h (enum function_decl_type): New enum.
18271 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18272 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18273 (set_function_decl_type): Likewise.
18274 (DECL_IS_OPERATOR_NEW_P): New.
18275 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18276 (DECL_LAMBDA_FUNCTION): Likewise.
18277 (DECL_LAMBDA_FUNCTION_P): Likewise.
18278 (DECL_IS_OPERATOR_NEW): Remove.
18279 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18280
18281 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18282
18283 * ipa-profile.c (get_most_common_single_value): Use
18284 get_nth_most_common_value.
18285 * profile.c (sort_hist_value): New function.
18286 (compute_value_histograms): Call sort_hist_value to sort the
18287 values after loading from disk.
18288 * value-prof.c (get_most_common_single_value): Rename to ...
18289 get_nth_most_common_value. Add input params n, return
18290 the n_th value and count.
18291 (gimple_divmod_fixed_value_transform): Use
18292 get_nth_most_common_value.
18293 (gimple_ic_transform): Likewise.
18294 (gimple_stringops_transform): Likewise.
18295 * value-prof.h (get_most_common_single_value): Add input params
18296 n, default to 0.
18297
18298 2019-07-25 Richard Biener <rguenther@suse.de>
18299
18300 PR tree-optimization/91236
18301 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18302 size of CONSTRUCTOR write. Fix buffer size we pass to
18303 native_encode_expr.
18304
18305 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18306
18307 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18308 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18309 r273773.
18310
18311 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18312
18313 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18314 explicitly disabled with --disable-initfini-array.
18315
18316 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18317
18318 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18319 if-exists.
18320
18321 2019-07-24 Martin Sebor <msebor@redhat.com>
18322
18323 PR tree-optimization/91183
18324 PR tree-optimization/86688
18325 * builtins.c (compute_objsize): Handle MEM_REF.
18326 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18327 (get_min_string_length): Remove.
18328 (count_nonzero_bytes): New function.
18329 (handle_char_store): Rename...
18330 (handle_store): to this. Handle multibyte stores via integer types.
18331 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18332 function name.
18333
18334 2019-07-24 Martin Sebor <msebor@redhat.com>
18335
18336 PR driver/80545
18337 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18338 (diagnostic_report_diagnostic): Same.
18339 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18340 (diagnostic_context::lang_mask): New data member.
18341 * ipa-pure-const.c (suggest_attribute): Use
18342 lang_hooks.option_lang_mask ().
18343 * opts-common.c (option_enabled): Handle new argument.
18344 (get_option_state): Pass an additional argument.
18345 * opts.c (print_filtered_help): Print supported languages for
18346 unsupported options. Adjust printing of current state.
18347 * opts.h (option_enabled): Add argument.
18348 * toplev.c (print_switch_values): Use lang_mask.
18349 (general_init): Set global_dc->lang_mask.
18350
18351 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18352
18353 PR bootstrap/87030
18354 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18355
18356 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18357
18358 * cgraphunit.c (symbol_table::compile): Start and stop
18359 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18360 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18361
18362 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18363
18364 * gimplify.c (flag_instrument_functions_exclude_p): Include
18365 namespace/class information in the printable name.
18366 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18367 to tokens entered into the vector.
18368
18369 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18370
18371 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18372 (get_static_chain): Call it instead of build_simple_mem_ref.
18373 (get_frame_field): Likewise.
18374 (get_nonlocal_debug_decl): Likewise.
18375 (convert_nonlocal_reference_op): Likewise.
18376
18377 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18378
18379 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18380 declaration.
18381 (arc_compute_frame_size): Millicode is disabled when compiling
18382 ISR.
18383 (arc_return_address_register): Likewise.
18384 (arc_compute_function_type): Likewise.
18385 (arc_compute_frame_size): Likewise.
18386 (secondary_reload_info): Likewise.
18387 (arc_get_unalign): Likewise.
18388 (arc_can_use_return_insn): Declare.
18389 * config/arc/arc.c (AUX_LP_START): Define
18390 (AUX_LP_END): Likewise.
18391 (arc_frame_info): Update gmask member to 64-bit datum.
18392 (GMASK_LEN): Update.
18393 (arc_compute_function_type): Make it static, move it forward.
18394 (arc_must_save_register): Update, consider the extra regs.
18395 (arc_compute_millicode_save_restore_regs): Update to use the 64
18396 bit gmask.
18397 (arc_compute_frame_size): Likewise.
18398 (arc_enter_leave_p): Likewise.
18399 (arc_save_callee_saves): Likewise.
18400 (arc_restore_callee_saves): Likewise.
18401 (arc_save_callee_enter): Likewise.
18402 (arc_restore_callee_leave): Likewise.
18403 (arc_save_callee_milli): Likewise.
18404 (arc_restore_callee_milli): Likewise.
18405 (arc_expand_prologue): Add new interrupt handling.
18406 (arc_return_address_register): Make it static, move it forward.
18407 (arc_expand_epilogue): Add new interrupt handling.
18408 (arc_get_unalign): Delete.
18409 (arc_epilogue_uses): Make sure we do not remove the extra
18410 saved/restored registers when interrupt.
18411 (arc_can_use_return_insn): New function.
18412 (push_reg): Likewise.
18413 (pop_reg): Likewise.
18414 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18415 procedures.
18416 (arc_restore_callee_saves): Likewise, but restoring.
18417 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18418 (R33_REG): Likewise.
18419 (R34_REG): Likewise.
18420 (R35_REG): Likewise.
18421 (R36_REG): Likewise.
18422 (R37_REG): Likewise.
18423 (R38_REG): Likewise.
18424 (R39_REG): Likewise.
18425 (R45_REG): Likewise.
18426 (R46_REG): Likewise.
18427 (R47_REG): Likewise.
18428 (R48_REG): Likewise.
18429 (R49_REG): Likewise.
18430 (R50_REG): Likewise.
18431 (R51_REG): Likewise.
18432 (R52_REG): Likewise.
18433 (R53_REG): Likewise.
18434 (R54_REG): Likewise.
18435 (R55_REG): Likewise.
18436 (R56_REG): Likewise.
18437 (R58_REG): Likewise.
18438 (type): Add rtie attribute.
18439 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18440 (movsi_insn): Accept moves to lp_count.
18441 (rtie): Update pattern.
18442 (simple_return): Simplify it, don't use this pattern as a return
18443 from an interrupt.
18444 (arc600_rtie): New pattern.
18445 (p_return_i): Clean up.
18446 (return): Likewise.
18447 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18448 family CPUs.
18449 * config/arc/predicates.md (move_src_operand): Consider lp_count
18450 as a register.
18451
18452 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18453
18454 * config/s390/predicates.md (addv_const_operand): New predicate.
18455 * config/s390/s390-modes.def (CCO): New condition code mode.
18456 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18457 (s390_branch_condition_mask): Likewise.
18458 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18459 ("mulv<mode>4"): New expanders.
18460 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18461 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18462 pattern definitions.
18463
18464 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18465
18466 PR middle-end/91166
18467 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18468 (define_predicates): Add entry for uniform_vector_p.
18469 (vec_same_elem_p): New match pattern.
18470
18471 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18472
18473 PR bootstrap/87030
18474 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18475 * config/i386/darwin32-biarch.h .. to here.
18476 * config/i386/darwin64-biarch.h: Adjust comments.
18477 * config/rs6000/darwin32-biarch.h: Likewise.
18478 * config/rs6000/darwin64-biarch.h: Likewise.
18479 * config.gcc: Missed commit from r273746
18480 (*-*-darwin*): Don't include CPU t-darwin here.
18481 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18482 an error message if i686-darwin configuration is attempted for
18483 Darwin >= 18.
18484
18485 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18486
18487 PR bootstrap/87030
18488 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18489 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18490 an error message if i686-darwin configuration is attempted for
18491 Darwin >= 18.
18492 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18493 (powerpc-*-darwin*): Use biarch files where needed.
18494 (powerpc64-*-darwin*): Likewise.
18495 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18496 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18497 arch case.
18498 * config/i386/darwin32-biarch.h: New.
18499 * config/i386/darwin64.h: Rename.
18500 * config/i386/darwin64-biarch.h: To this.
18501 * config/i386/t-darwin: Rename.
18502 * config/i386/t-darwin32-biarch: To this.
18503 * config/i386/t-darwin64: Rename.
18504 * config/i386/t-darwin64-biarch: To this.
18505 * config/rs6000/darwin32-biarch.h: New.
18506 * config/rs6000/darwin64.h: Rename.
18507 * config/rs6000/darwin64-biarch.h: To this.
18508 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18509 arch case.
18510 * config/rs6000/t-darwin8: Rename.
18511 * config/rs6000/t-darwin32-biarch: To this.
18512 * config/rs6000/t-darwin64 Rename.
18513 * config/rs6000/t-darwin64-biarch: To this.
18514
18515 2019-07-23 Martin Sebor <msebor@redhat.com>
18516
18517 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18518
18519 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18520
18521 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18522 (rh): New alias for it.
18523
18524 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18525
18526 * gdbhooks.py: Pass replace=True to
18527 gdb.printing.register_pretty_printer.
18528
18529 2019-07-23 Richard Biener <rguenther@suse.de>
18530
18531 PR debug/91231
18532 * lto-streamer-in.c (input_function): Drop inline-entry markers
18533 that ended up with an unknown location block.
18534
18535 2019-07-23 Richard Biener <rguenther@suse.de>
18536
18537 PR tree-optimization/83518
18538 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18539 init from a constant even when partial defs are already recorded.
18540
18541 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18542
18543 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18544 * config/i386/znver1.md: Enable patterns for znver2 and add store
18545 variants which use extra AGU unit.
18546
18547 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18548
18549 * config/i386/i386-options.c (ix86_option_override_internal): Default
18550 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18551 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18552 for ZNVER2.
18553
18554 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18555
18556 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18557 (znver2_costs): Update 256 bit SSE costs and multiplication.
18558
18559 2019-07-23 Jan Beulich <jbeulich@suse.com>
18560
18561 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18562 Require only AVX512F.
18563 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18564 alternative expanding to vpternlog.
18565
18566 2019-07-23 Martin Liska <mliska@suse.cz>
18567
18568 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18569 to -flto in dwarf producer string.
18570
18571 2019-07-23 Richard Biener <rguenther@suse.de>
18572
18573 * tree-cfg.c (label_for_bb): Remove global var.
18574 (main_block_label): Take label_for_bb as argument.
18575 (cleanup_dead_labels_eh): Likewise, adjust.
18576 (cleanup_dead_labels): Adjust.
18577
18578 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18579
18580 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18581 Configurations): Add documentation for __builtin_mtfsf.
18582
18583 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18584
18585 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18586 * config/riscv/riscv.c (riscv_constant_alignment): Use
18587 riscv_align_data_type.
18588 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18589 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18590 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18591 * config/riscv/riscv.opt (malign-data): New.
18592 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18593
18594 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18595
18596 * cgraph.c (dump_graphviz): New function.
18597 * cgraph.h (dump_graphviz): New function.
18598 * symtab.c (dump_graphviz): New function.
18599
18600 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18601
18602 * config/aarch64/aarch64-simd.md
18603 (*aarch64_simd_sra<mode>): New.
18604 * config/aarch64/iterators.md
18605 (SHIFTRT): New iterator.
18606 (sra_op): New attribute.
18607
18608 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18609
18610 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18611 callee-saved regs R4->R10 in an interrupt function that calls another
18612 function.
18613
18614 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18615
18616 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18617 (_mm_blendv_epi8): New.
18618
18619 2019-07-22 Richard Biener <rguenther@suse.de>
18620
18621 PR tree-optimization/91221
18622 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18623 restrict partial-def handling of empty constructors and
18624 memset to refs with known offset.
18625
18626 2019-07-22 Jan Beulich <jbeulich@suse.com>
18627
18628 * config/i386/sse.md (ternlogsuffix): New.
18629 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18630 AVX512F is in use.
18631 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18632
18633 2019-07-22 Martin Liska <mliska@suse.cz>
18634
18635 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18636 comment.
18637 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18638
18639 2019-07-22 Martin Liska <mliska@suse.cz>
18640
18641 * lto-section-in.c (lto_get_section_data):
18642 Use new function get_compression.
18643 * lto-streamer-out.c (produce_lto_section): Use
18644 set_compression to encode compression algorithm.
18645 * lto-streamer.h (struct lto_section): Do not
18646 use bitfields in the format.
18647
18648 2019-07-22 Martin Liska <mliska@suse.cz>
18649
18650 PR driver/91172
18651 * opts-common.c (decode_cmdline_option): Decode
18652 argument of -Werror and check it for a wrong language.
18653 * opts-global.c (complain_wrong_lang): Remove such case.
18654
18655 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18656
18657 * config/arc/arc.c (prepare_move_operands): Always use an
18658 intermediate register when storing a TLS symbols.
18659
18660 2019-07-22 Stafford Horne <shorne@gmail.com>
18661
18662 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18663 force_reg.
18664
18665 2019-07-22 Stafford Horne <shorne@gmail.com>
18666
18667 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18668 and munordered-float validations.
18669 * config/or1k/constraints.md (d): New register constraint.
18670 * config/or1k/predicates.md (fp_comparison_operator): New.
18671 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18672 operands.
18673 (or1k_expand_compare): Normalize unordered comparisons.
18674 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18675 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18676 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18677 * config/or1k/or1k.md (type): Add fpu.
18678 (fpu): New instruction reservation.
18679 (F, f, fr, fi, FI, FOP, fop): New.
18680 (<fop><F:mode>3): New ALU instruction definition.
18681 (float<fi><F:mode>2): New conversion instruction definition.
18682 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18683 (fpcmpcc): New code iterator.
18684 (*sf_fp_insn): New instruction definition.
18685 (cstore<F:mode>4): New expand definition.
18686 (cbranch<F:mode>4): New expand definition.
18687 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18688 munordered-float): New options.
18689 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18690 munordered-float.
18691
18692 2019-07-22 Stafford Horne <shorne@gmail.com>
18693
18694 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18695 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18696 documenation to be more clear.
18697 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18698 more clear.
18699 * config/or1k/or1k.opt (mrori): New option.
18700 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18701 msfimm, mshftimm): Rewrite documentation to be more clear.
18702 * config/or1k/or1k.md (insn_support): Add ror and rori.
18703 (enabled): Add conditions for ror and rori.
18704 (rotrsi3): Replace condition for shftimm with ror and rori.
18705
18706 2019-07-22 Stafford Horne <shorne@gmail.com>
18707
18708 PR target/90363
18709 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18710 (extend<mode>si2): Update predicate.
18711 * config/or1k/predicates.md (volatile_mem_operand): New.
18712 (reg_or_mem_operand): New.
18713
18714 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18715
18716 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18717 * config/rs6000/rs6000-call.c: ... to here.
18718
18719 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18720
18721 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18722 memory.
18723
18724 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18725
18726 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18727
18728 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18729
18730 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18731
18732 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18733
18734 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18735 (any_memory_operand): New predicate.
18736 (reg_or_mem_operand): Use it.
18737
18738 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18739
18740 PR target/91204
18741 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18742
18743 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18744
18745 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18746 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18747
18748 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18749
18750 * tree.def (OMP_LOOP): New tree code.
18751 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18752 (enum omp_clause_bind_kind): New enum.
18753 (struct tree_omp_clause): Add subcode.bind_kind.
18754 * tree.h (OMP_LOOP_CHECK): Rename to ...
18755 (OMP_LOOPING_CHECK): ... this.
18756 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18757 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18758 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18759 (OMP_CLAUSE_BIND_KIND): Define.
18760 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18761 bind clause entries.
18762 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18763 * tree-pretty-print.c (dump_omp_clause): Likewise.
18764 (dump_generic_node): Handle OMP_LOOP.
18765 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18766 (in_omp_construct): New variable.
18767 (is_gimple_stmt): Handle OMP_LOOP.
18768 (gimplify_scan_omp_clauses): For lastprivate don't set
18769 check_non_private if code == OMP_LOOP. For reduction clause
18770 on OMP_LOOP combined with parallel or teams propagate as shared
18771 on the combined construct. Handle OMP_CLAUSE_BIND.
18772 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18773 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18774 for constructs from a loop construct to gimplify_scan_omp_clauses.
18775 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18776 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18777 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18778 to match the implicit ORT_TARGET construct around whole body.
18779 Temporarily clear in_omp_construct when processing body.
18780 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18781 etc. temporarily set in_omp_construct when processing body.
18782 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18783 * omp-low.c (struct omp_context): Add loop_p.
18784 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18785 in that the original var might be private.
18786 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18787 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18788 addition of loop construct.
18789 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18790
18791 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18792 lastprivate non-addressable iterator of a collapse(1) simd.
18793
18794 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18795
18796 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18797 as in rs6000.c.
18798
18799 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18800
18801 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18802 refer to default conditions. Warn for the 'y' spec which is ignored
18803 by current linkers.
18804
18805 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18806
18807 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18808 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18809 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18810 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18811 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18812 init_cumulative_args, rs6000_promote_function_mode,
18813 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18814 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18815 rs6000_function_arg_boundary, rs6000_parm_offset,
18816 rs6000_parm_start, rs6000_arg_size,
18817 rs6000_darwin64_record_arg_advance_flush,
18818 rs6000_darwin64_record_arg_advance_recurse,
18819 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18820 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18821 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18822 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18823 rs6000_finish_function_arg, rs6000_function_arg,
18824 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18825 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18826 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18827 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18828 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18829 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18830 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18831 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18832 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18833 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18834 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18835 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18836 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18837 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18838 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18839 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18840 get_element_number, altivec_expand_vec_set_builtin,
18841 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18842 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18843 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18844 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18845 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18846 rs6000_expand_builtin, rs6000_vector_type,
18847 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18848 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18849 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18850 to rs6000-call.c.
18851 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18852 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18853 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18854 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18855 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18856 init_cumulative_args, rs6000_promote_function_mode,
18857 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18858 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18859 rs6000_function_arg_boundary, rs6000_parm_offset,
18860 rs6000_parm_start, rs6000_arg_size,
18861 rs6000_darwin64_record_arg_advance_flush,
18862 rs6000_darwin64_record_arg_advance_recurse,
18863 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18864 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18865 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18866 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18867 rs6000_finish_function_arg, rs6000_function_arg,
18868 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18869 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18870 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18871 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18872 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18873 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18874 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18875 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18876 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18877 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18878 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18879 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18880 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18881 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18882 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18883 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18884 get_element_number, altivec_expand_vec_set_builtin,
18885 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18886 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18887 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18888 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18889 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18890 rs6000_expand_builtin, rs6000_vector_type,
18891 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18892 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18893 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18894 to here from rs6000.c.
18895 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18896 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18897 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18898 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18899 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18900 rs6000_return_in_memory, rs6000_return_in_msb,
18901 rs6000_pass_by_reference, setup_incoming_varargs,
18902 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18903 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18904 rs6000_function_arg_padding, rs6000_function_arg,
18905 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18906 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18907 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18908 rs6000_passes_long_double, rs6000_passes_vector,
18909 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18910 altivec_builtin_mask_for_load) Add declarations.
18911 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18912 * config/config.gcc: Add new source file rs6000-call.c to garbage
18913 collector and extra_objs.
18914
18915 2019-07-19 Jeff Law <law@redhat.com>
18916
18917 PR tree-optimization/86061
18918 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18919 strncpy. Drop some trivial dead code.
18920 (maybe_trim_memstar_call): Handle strncpy.
18921
18922 2019-07-19 Richard Biener <rguenther@suse.de>
18923
18924 PR tree-optimization/91211
18925 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18926 memset encoding size.
18927
18928 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18929
18930 PR target/91204
18931 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18932
18933 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18934
18935 PR ipa/91194
18936 * ipa-inline.c (recursive_inlining): Fix limits check.
18937
18938 2019-07-19 Richard Biener <rguenther@suse.de>
18939
18940 PR tree-optimization/91200
18941 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18942 no PHI nodes in middle-bb.
18943
18944 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18945
18946 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18947 to +sve-bitperm.
18948 * config/aarch64/aarch64-option-extensions.def: Likewise.
18949
18950 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18951
18952 PR middle-end/91190
18953 * function.c (insert_temp_slot_address): Store into the hash table
18954 a copy of address to avoid RTL sharing issues.
18955
18956 2019-07-19 Richard Biener <rguenther@suse.de>
18957
18958 PR tree-optimization/91207
18959 Revert
18960 2019-07-17 Richard Biener <rguenther@suse.de>
18961
18962 PR tree-optimization/91178
18963 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18964 loads with a gap larger than the vector size always use
18965 VMAT_STRIDED_SLP.
18966 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18967 avoid loading vectors that are only contained in the gap
18968 and thus are not needed.
18969
18970 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18971
18972 * config/i386/i386.md (*addqi_2_slp): Remove.
18973 (*<code>qi_2_slp): Ditto.
18974
18975 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18976
18977 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18978 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18979 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18980 Rename function from rs6000_prefixed_address.
18981 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18982 TARGET_HAS_TOC.
18983 (TARGET_TOC): Likewise.
18984 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18985 rs6000.h.
18986 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18987 TARGET_HAS_TOC.
18988 (TARGET_TOC): Likewise.
18989 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18990 rs6000.h.
18991 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18992 TARGET_HAS_TOC.
18993 (TARGET_TOC): Likewise.
18994 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18995 check to require -mcmodel=medium for pc-relative addressing.
18996 (create_TOC_reference): Add assertion for TARGET_TOC.
18997 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18998 TARGET_NO_TOC.
18999 (rs6000_emit_move): Likewise.
19000 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19001 to 'TOC_alias_set'.
19002 (get_TOC_alias_set): Likewise.
19003 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19004 TARGET_NO_TOC.
19005 (rs6000_can_eliminate): Likewise.
19006 (rs6000_prefixed_address_mode_p): Rename function from
19007 rs6000_prefixed_address.
19008 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19009 TARGET_HAS_TOC and not pc-relative.
19010 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19011 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19012 TARGET_HAS_TOC.
19013 (TARGET_TOC): Likewise.
19014 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19015 rs6000.h.
19016
19017 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19018
19019 PR target/91188
19020 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19021 for operand 0. Do not use (match_dup) to match operand 1 with
19022 operand 0. Add check in insn constraint that either input operand
19023 matches operand 0. Use SWI12 mode iterator to also handle
19024 HImode operands.
19025 (*and<mode>_1_slp): Ditto.
19026 (*<code>qi_1_slp): Ditto.
19027 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19028 Do not use (match_dup) to match operand 1 with operand 0. Add
19029 check in insn constraint that operand 1 matches operand 0.
19030 Use SWI12 mode iterator to also handle HImode operands.
19031 (*ashl<mode>3_1_slp): Ditto.
19032 (*<shift_insn><mode>3_1_slp): Ditto.
19033 (*<rotate_insn><mode>3_1_slp): Ditto.
19034
19035 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19036
19037 * config/arm/arm-builtins.c
19038 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19039 (arm_expand_unop_builtin): Likewise.
19040 * config/arm/crypto.md
19041 (crypto_sha1h): Convert from define_insn to define_expand.
19042 (crypto_<crypto_pattern>): Likewise.
19043 (crypto_sha1h_lb): New define_insn.
19044 (crypto_<crypto_pattern>_lb): Likewise.
19045
19046 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19047
19048 PR target/90317
19049 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19050 (vsha1cq_u32): Likewise.
19051 (vsha1pq_u32): Likewise.
19052 (vsha1mq_u32): Likewise.
19053 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19054 vec select.
19055 (crypto_sha1c): Correct vec select.
19056 (crypto_sha1m): Likewise.
19057 (crypto_sha1p): Likewise.
19058
19059 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19060
19061 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19062 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19063 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19064 (subdi_zesidi_zesidi): Likewise.
19065 (negdi2_compare, negdi2_insn): Likewise.
19066 (negdi_extensidi): Likewise.
19067 (negdi_zero_extendsidi): Likewise.
19068 (arm_cmpdi_insn): Likewise.
19069 (subsi3_carryin): Use arm_borrow_operation.
19070 (subsi3_carryin_const): Likewise.
19071 (subsi3_carryin_const0): Likewise.
19072 (subsi3_carryin_compare): Likewise.
19073 (subsi3_carryin_compare_const): Likewise.
19074 (subsi3_carryin_compare_const0): Likewise.
19075 (subsi3_carryin_shift): Likewise.
19076 (rsbsi3_carryin_shift): Likewise.
19077 (negsi2_carryin_compare): Likewise.
19078
19079 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19080
19081 PR tree-optimization/91137
19082 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19083 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19084 Init, use and fini the above new field.
19085 (determine_base_object_1): New function.
19086 (determine_base_object): Reimplement using walk_tree.
19087
19088 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19089
19090 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19091 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19092 CLEANUP_FORCE_FAST_DCE is set.
19093 * ifcvt.c (rest_of_handle_if_conversion): Pass
19094 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19095 if-conversion succeeded.
19096
19097 2019-07-18 Richard Biener <rguenther@suse.de>
19098
19099 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19100 branches to make code less indented.
19101
19102 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19103
19104 PR middle-end/81824
19105 * attribs.c (decls_mismatched_attributes): Simplify the logic
19106 that avoids duplicates and false positives.
19107
19108 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19109
19110 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19111 data into data section when generating PIC code.
19112 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19113 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19114 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19115 return 2 for SOM and 0 for other targets.
19116
19117 2019-07-17 Jeff Law <law@redhat.com>
19118
19119 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19120 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19121 avoid unexpected switch statement fallthru.
19122
19123 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19124
19125 * config/i386/i386.md (*add<dwi>3_doubleword):
19126 Remove redundant constraints.
19127 (*add<mode>_1): Ditto.
19128 (*addhi_1): Ditto.
19129 (*addqi_1): Ditto.
19130 (*addqi_1_slp): Ditto.
19131 (*add<mode>_2): Ditto.
19132 (*addv<mode>4): Ditto.
19133 (*sub<dwi>3_doubleword): Ditto.
19134 (*sub<mode>_1): Ditto.
19135 (*subqi_1_slp): Ditto.
19136 (*sub<mode>_2): Ditto.
19137 (*subv<mode>4): Ditto.
19138 (*sub<mode>_3): Ditto.
19139 (@add<mode>3_carry): Ditto.
19140 (@sub<mode>3_carry): Ditto.
19141 (*add<mode>3_cc_overflow_1): Ditto.
19142 (*add<mode>3_zext_cc_overflow_2): Ditto.
19143 (*anddi_1): Ditto.
19144 (*and<mode>_1): Ditto.
19145 (*andqi_1): Ditto.
19146 (*andqi_1_slp): Ditto.
19147 (*anddi_2): Ditto.
19148 (*andqi_2_maybe_si): Ditto.
19149 (*and<mode>_2): Ditto.
19150 (*andqi_2_slp): Ditto.
19151 (*<code><mode>_1): Ditto.
19152 (*<code>qi_1): Ditto.
19153 (*<code>qi_1_slp): Ditto.
19154 (*<code><mode>_2): Ditto.
19155 (*<code>qi_2_slp): Ditto.
19156
19157 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19158
19159 * alias.c (record_component_aliases): Do not simplify pointed-to
19160 types of ODR types.
19161
19162 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19163
19164 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19165 partial reg stall on alternative 2.
19166
19167 2019-07-17 Richard Biener <rguenther@suse.de>
19168
19169 PR tree-optimization/91178
19170 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19171 lower SSA names to avoid quadratic behavior in the common case.
19172 * tree-data-ref.c (split_constant_offset): Add limit argument
19173 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19174 (split_constant_offset_1): Add limit argument and use it to
19175 limit SSA def walking. Optimize the common plus/minus case.
19176
19177 2019-07-17 Richard Biener <rguenther@suse.de>
19178
19179 PR tree-optimization/91178
19180 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19181 loads with a gap larger than the vector size always use
19182 VMAT_STRIDED_SLP.
19183 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19184 avoid loading vectors that are only contained in the gap
19185 and thus are not needed.
19186
19187 2019-07-17 Richard Biener <rguenther@suse.de>
19188
19189 PR tree-optimization/91180
19190 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19191 computation for memset partial defs.
19192
19193 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19194
19195 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19196 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19197 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19198 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19199 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19200 * omp-grid.c (grid_process_grid_body,
19201 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19202 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19203 == GF_OMP_FOR_KIND_SIMD.
19204 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19205 check_omp_nesting_restrictions, scan_omp_1_stmt,
19206 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19207 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19208 omp_find_scan): Likewise.
19209 * omp-expand.c (expand_omp_for): Likewise.
19210 * omp-general.c (omp_extract_for_data): Likewise.
19211
19212 PR tree-optimization/91157
19213 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19214 a vector boolean with scalar mode.
19215 (expand_vector_condition): Handle first operand being a vector boolean
19216 with scalar mode.
19217 (expand_vector_operations_1): For comparisons, don't bail out early
19218 if the return type is vector boolean with scalar mode, but comparison
19219 operand type is not.
19220
19221 2019-07-17 Richard Biener <rguenther@suse.de>
19222
19223 PR tree-optimization/91181
19224 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19225 IFN_LOADs as calls.
19226
19227 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19228
19229 * config/i386/i386.md (*testdi_1): Match CCZmode for
19230 constants that might have the SImode sign bit set.
19231 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19232 Use correct constraints for pentium pairing.
19233 (*test<mode>_1): Ditto.
19234
19235 2019-07-16 Jeff Law <law@redhat.com>
19236
19237 PR rtl-optimization/91173
19238 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19239 SSA_NAME with a constant value, fold its value into the offset
19240 and clear the base before calling gen_addr_rtx.
19241
19242 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19243
19244 PR rtl-optimization/91164
19245 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19246 invalidate dominance info.
19247
19248 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19249
19250 * read-md.h (md_reader::record_potential_iterator_use): Add a
19251 file_location parameter.
19252 * read-rtl.c (attribute_use::loc): New field.
19253 (map_attr_string): Take a file_location parameter. Report cases
19254 in which attributes map to multiple distinct values.
19255 (apply_attribute_uses): Update call accordingly.
19256 (md_reader::handle_overloaded_name): Likewise.
19257 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19258 nonnull strings.
19259 (record_attribute_use): Take a file_location parameter.
19260 Initialize attribute_use::loc.
19261 (md_reader::record_potential_iterator_use): Take a file_location
19262 parameter. Update call to record_attribute_use.
19263 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19264 (rtx_reader::read_rtx_code): Likewise.
19265 (rtx_reader::read_rtx_operand): Likewise. Record a location
19266 for implicitly-expanded empty strings.
19267
19268 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19269
19270 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19271 Use file_location instead of separate fields.
19272 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19273 separate filename and line number.
19274 * read-md.c (ptr_loc): As above.
19275 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19276 (md_reader::fprint_md_ptr_loc): Likewise.
19277 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19278 instead of a separate filename and line number.
19279 (md_reader::read_string): Update call accordingly.
19280
19281 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19282
19283 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19284 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19285 leaving the choice between SFDF and P implicit.
19286 (*mov<mode>_update2): Likewise.
19287 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19288 rather than leaving the choice betweem IBM128 and GPR implicit.
19289 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19290 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19291 QHSI implicit.
19292 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19293 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19294 * config/rs6000/vsx.md
19295 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19296 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19297 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19298 and VSX_EXTRACT_I implicit.
19299
19300 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19301
19302 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19303 Explicitly use <MOVEP1:MODE> for the mode attribute.
19304
19305 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19306
19307 PR bootstrap/91176
19308 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19309
19310 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19311
19312 PR target/91050
19313 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19314 .machine directive.
19315
19316 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19317
19318 * config/i386/i386.md (@test<mode>_ccno_1):
19319 Rename from test<mode>_ccno_1.
19320 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19321 (*testqi_1_maybe_si): Remove modrm attribute.
19322 (*test<mode>_1): Ditto.
19323 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19324 gen_test_ccno_1 and gen_extend_insn.
19325
19326 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19327
19328 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19329 to 0.
19330
19331 2019-07-15 Richard Biener <rguenther@suse.de>
19332
19333 PR middle-end/91162
19334 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19335 node make sure to replace all uses with something valid.
19336
19337 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19338
19339 PR tree-optimization/88497
19340 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19341 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19342 function undistribute_bitref_for_vector.
19343 (undistribute_bitref_for_vector): New function.
19344 (cleanup_vinfo_map): Likewise.
19345 (sort_by_mach_mode): Likewise.
19346
19347 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19348
19349 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19350 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19351 and testdi_ccno_1 using SWI48 mode attribute.
19352 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19353 x86_64_szext_general_operand.
19354 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19355 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19356 instead of genera_operand mode attribute.
19357
19358 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19359
19360 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19361 fopen and fclose to their respective types.
19362 (DotFn.invoke): Ditto.
19363
19364 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19365
19366 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19367 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19368 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19369 (array_index_predicate): Remove.
19370 (analyze_function_body): Account cost for variable ofsetted array
19371 indexing.
19372 (estimate_node_size_and_time): Do not compute array index hint.
19373 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19374 (inline_read_section): Do not read array index hint.
19375 (ipa_fn_summary_write): Do not write array index hint.
19376 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19377 * ipa-cp.c (hint_time_bonus): Remove.
19378 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19379 (ipa_fnsummary): Remove array_index.
19380 * ipa-inline.c (want_inline_small_function_p): Do not use
19381 array_index.
19382 (edge_badness): Likewise.
19383 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19384
19385 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19386
19387 PR target/91148
19388 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19389 superfluous "builtin function" phrasing.
19390
19391 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19392
19393 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19394 Break out from ...
19395 (aliasing_component_refs_walk): Break out from ...
19396 (aliasing_component_refs_p): ... here.
19397
19398 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19399
19400 PR target/91148
19401 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19402 "builtin function" phrasing.
19403
19404 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19405
19406 PR target/90723
19407 * recog.h (temporary_volatile_ok): New class.
19408 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19409 volatile_ok temporarily to true using temporary_volatile_ok.
19410 * expr.c (emit_block_move_via_cpymem): Likewise.
19411 * optabs.c (maybe_legitimize_operand): Likewise.
19412
19413 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19414
19415 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19416 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19417 uses inside of order(concurrent) constructs.
19418 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19419 OMP_CLAUSE_ORDER is seen.
19420 * omp-low.c (struct omp_context): Add order_concurrent member.
19421 (scan_sharing_clauses): Set ctx->order_concurrent if
19422 OMP_CLAUSE_ORDER is seen.
19423 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19424 of simd order(concurrent). Diagnose constructs not allowed inside of
19425 for order(concurrent).
19426 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19427 complaining about static double setjmp (double); or class static
19428 methods or non-global namespace setjmps.
19429 (omp_runtime_api_call): New function.
19430 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19431 order(concurrent) loops.
19432
19433 2019-07-12 Martin Sebor <msebor@redhat.com>
19434
19435 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19436 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19437 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19438 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19439
19440 2019-07-12 Jan Hubicka <jh@suse.cz>
19441
19442 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19443 (indirect_refs_may_alias_p): ... here.
19444 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19445 mem refs in the access paths.
19446
19447 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19448
19449 PR tree-optimization/89430
19450 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19451 store elimination for local variable without address escape.
19452
19453 2019-07-12 Jeff Law <law@redhat.com>
19454
19455 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19456 for the ".far" section.
19457
19458 2019-07-12 Richard Biener <rguenther@suse.de>
19459
19460 PR tree-optimization/91145
19461 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19462 chain check.
19463
19464 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19465
19466 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19467 rather than this_state as the lowering context for the ELSE
19468 seq in a GIMPLE_EH_ELSE.
19469
19470 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19471
19472 * vector-builder.h (vector_builder::elt): Allow already-supplied
19473 elements to be read back before building is complete.
19474
19475 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19476
19477 PR rtl-optimization/91136
19478 * df-core.c (ACCESSING REFS): Fix typos in comment.
19479 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19480 the beginning of the block to the initial set of live registers.
19481
19482 2019-07-12 Richard Biener <rguenther@suse.de>
19483
19484 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19485 * fold-const.c (get_array_ctor_element_at_index): Add
19486 ctor_idx output parameter informing the caller where in
19487 the constructor the element was (not) found. Add early exit
19488 for when the ctor is sorted.
19489 * gimple-fold.c (fold_array_ctor_reference): Support constant
19490 folding across multiple array elements.
19491
19492 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19493
19494 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19495 doesn't have location, set the current location to the function's end.
19496
19497 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19498
19499 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19500 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19501 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19502 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19503 * config/aarch64/aarch64-simd.md
19504 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19505 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19506 * config/aarch64/aarch64-sve.md
19507 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19508 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19509
19510 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19511
19512 * doc/md.texi: Document that @ patterns can have different
19513 numbers of operands.
19514 * genemit.c (handle_overloaded_gen): Handle this case.
19515 * genopinit.c (handle_overloaded_gen): Likewise.
19516 * gensupport.c (replace_operands_with_dups): Iterate over
19517 the new rtx's format rather than the old one's.
19518
19519 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19520
19521 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19522 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19523 order clause entries.
19524 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19525 * tree-pretty-print.c (dump_omp_clause): Likewise.
19526 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19527 Likewise.
19528 * omp-low.c (scan_sharing_clauses): Likewise.
19529 * tree-nested.c (convert_nonlocal_omp_clauses,
19530 convert_local_omp_clauses): Likewise.
19531
19532 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19533
19534 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19535 fallthrough target of current basic block isn't the placed
19536 right next.
19537
19538 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19539
19540 PR target/90980
19541 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19542 (_mm512_storeu_epi64): Likewise.
19543 (_mm512_loadu_epi32): Likewise.
19544 (_mm512_storeu_epi32): Likewise.
19545 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19546 (_mm_storeu_epi64): Likewise.
19547 (_mm256_storeu_epi32): Likewise.
19548 (_mm_storeu_epi32): Likewise.
19549
19550 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19551
19552 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19553
19554 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19555
19556 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19557 Handle Modula-2.
19558
19559 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19560
19561 PR target/91124
19562 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19563 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19564 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19565 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19566 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19567 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19568 define_insns.
19569 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19570 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19571 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19572 define_insns.
19573 (sse2_cvttpd2dq<mask_name>): Change into ...
19574 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19575 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19576 (*sse2_cvtpd2dq<mask_name>): Change into ...
19577 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19578 Add "C" constraint to const0_operand.
19579 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19580 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19581 changes.
19582
19583 PR target/91124
19584 * config/i386/i386-builtin-types.def
19585 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19586 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19587 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19588 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19589 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19590 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19591 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19592 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19593 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19594 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19595 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19596 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19597 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19598 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19599 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19600 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19601 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19602 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19603 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19604 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19605 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19606 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19607 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19608 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19609 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19610 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19611 __builtin_ia32_vpdpbusd_v4si_maskz,
19612 __builtin_ia32_vpdpbusds_v16si_mask,
19613 __builtin_ia32_vpdpbusds_v16si_maskz,
19614 __builtin_ia32_vpdpbusds_v8si_mask,
19615 __builtin_ia32_vpdpbusds_v8si_maskz,
19616 __builtin_ia32_vpdpbusds_v4si_mask,
19617 __builtin_ia32_vpdpbusds_v4si_maskz,
19618 __builtin_ia32_vpdpwssd_v16si_mask,
19619 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19620 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19621 __builtin_ia32_vpdpwssd_v4si_maskz,
19622 __builtin_ia32_vpdpwssds_v16si_mask,
19623 __builtin_ia32_vpdpwssds_v16si_maskz,
19624 __builtin_ia32_vpdpwssds_v8si_mask,
19625 __builtin_ia32_vpdpwssds_v8si_maskz,
19626 __builtin_ia32_vpdpwssds_v4si_mask,
19627 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19628 suffixed types rather than *_INT.
19629 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19630 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19631 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19632 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19633 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19634 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19635
19636 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19637
19638 * tree-vrp.c (intersect_ranges): If we know the intersection is
19639 empty, there is no need to conservatively add anything else to
19640 the set.
19641
19642 2019-07-11 Richard Biener <rguenther@suse.de>
19643
19644 PR middle-end/91131
19645 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19646 when the object is volatile and we have not cleared it even though
19647 there are no nonzero elements.
19648
19649 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19650
19651 * config/rs6000/predicates.md (cint34_operand): Update
19652 SIGNED_34BIT_OFFSET_P call.
19653 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19654 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19655 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19656 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19657 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19658 argument.
19659 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19660 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19661 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19662 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19663 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19664
19665 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19666
19667 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19668 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19669 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19670 (DEF_MIN_OSX_VERSION): New.
19671
19672 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19673
19674 * fold-const.c (fold_relational_const): Fix folding of
19675 vector-to-scalar NE_EXPRs.
19676 (test_vector_folding): Add more tests.
19677
19678 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19679
19680 PR target/91060
19681 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19682 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19683 (vec_setv2di_internal): Reexpress as...
19684 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19685 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19686 rather than gen_neon_vset_lane<mode>.
19687
19688 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19689
19690 PR target/91102
19691 * lra-constraints.c (process_alt_operands): Don't match user
19692 defined regs only if they are early clobbers.
19693
19694 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19695
19696 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19697
19698 2019-07-10 Richard Biener <rguenther@suse.de>
19699
19700 PR tree-optimization/91126
19701 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19702 native encoding offset for BYTES_BIG_ENDIAN.
19703 (vn_reference_lookup_3): Likewise.
19704
19705 2019-07-10 Richard Biener <rguenther@suse.de>
19706
19707 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19708 LHS whenever possible.
19709
19710 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19711
19712 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19713 from ...; work also on duplicated types.
19714 (nonoverlapping_component_refs_since_match): ... here
19715 (ncr_type_uid): Break out from ...
19716 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19717 available.
19718 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19719 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19720
19721 2019-07-09 Martin Sebor <msebor@redhat.com>
19722
19723 PR tree-optimization/90989
19724 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19725 optimization to just single character stores.
19726
19727 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19728
19729 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19730 Swap operands only once.
19731
19732 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19733
19734 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19735 for both call instructions.
19736
19737 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19738
19739 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19740 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19741
19742 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19743
19744 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19745 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19746 function from rs6000-logue.c back to rs6000.c.
19747 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19748
19749 2019-07-09 Martin Sebor <msebor@redhat.com>
19750
19751 PR c++/61339
19752 * auto-profile.c: Change class-key of PODs to struct and others
19753 to class.
19754 * basic-block.h: Same.
19755 * bitmap.c (bitmap_alloc): Same.
19756 * bitmap.h: Same.
19757 * builtins.c (expand_builtin_prefetch): Same.
19758 (expand_builtin_interclass_mathfn): Same.
19759 (expand_builtin_strlen): Same.
19760 (expand_builtin_mempcpy_args): Same.
19761 (expand_cmpstr): Same.
19762 (expand_builtin___clear_cache): Same.
19763 (expand_ifn_atomic_bit_test_and): Same.
19764 (expand_builtin_thread_pointer): Same.
19765 (expand_builtin_set_thread_pointer): Same.
19766 * caller-save.c (setup_save_areas): Same.
19767 (replace_reg_with_saved_mem): Same.
19768 (insert_restore): Same.
19769 (insert_save): Same.
19770 (add_used_regs): Same.
19771 * cfg.c (get_bb_copy): Same.
19772 (set_loop_copy): Same.
19773 * cfg.h: Same.
19774 * cfganal.h: Same.
19775 * cfgexpand.c (alloc_stack_frame_space): Same.
19776 (add_stack_var): Same.
19777 (add_stack_var_conflict): Same.
19778 (add_scope_conflicts_1): Same.
19779 (update_alias_info_with_stack_vars): Same.
19780 (expand_used_vars): Same.
19781 * cfghooks.c (redirect_edge_and_branch_force): Same.
19782 (delete_basic_block): Same.
19783 (split_edge): Same.
19784 (make_forwarder_block): Same.
19785 (force_nonfallthru): Same.
19786 (duplicate_block): Same.
19787 (lv_flush_pending_stmts): Same.
19788 * cfghooks.h: Same.
19789 * cfgloop.c (flow_loops_cfg_dump): Same.
19790 (flow_loop_nested_p): Same.
19791 (superloop_at_depth): Same.
19792 (get_loop_latch_edges): Same.
19793 (flow_loop_dump): Same.
19794 (flow_loops_dump): Same.
19795 (flow_loops_free): Same.
19796 (flow_loop_nodes_find): Same.
19797 (establish_preds): Same.
19798 (flow_loop_tree_node_add): Same.
19799 (flow_loop_tree_node_remove): Same.
19800 (flow_loops_find): Same.
19801 (find_subloop_latch_edge_by_profile): Same.
19802 (find_subloop_latch_edge_by_ivs): Same.
19803 (mfb_redirect_edges_in_set): Same.
19804 (form_subloop): Same.
19805 (merge_latch_edges): Same.
19806 (disambiguate_multiple_latches): Same.
19807 (disambiguate_loops_with_multiple_latches): Same.
19808 (flow_bb_inside_loop_p): Same.
19809 (glb_enum_p): Same.
19810 (get_loop_body_with_size): Same.
19811 (get_loop_body): Same.
19812 (fill_sons_in_loop): Same.
19813 (get_loop_body_in_dom_order): Same.
19814 (get_loop_body_in_custom_order): Same.
19815 (release_recorded_exits): Same.
19816 (get_loop_exit_edges): Same.
19817 (num_loop_branches): Same.
19818 (remove_bb_from_loops): Same.
19819 (find_common_loop): Same.
19820 (delete_loop): Same.
19821 (cancel_loop): Same.
19822 (verify_loop_structure): Same.
19823 (loop_preheader_edge): Same.
19824 (loop_exit_edge_p): Same.
19825 (single_exit): Same.
19826 (loop_exits_to_bb_p): Same.
19827 (loop_exits_from_bb_p): Same.
19828 (get_loop_location): Same.
19829 (record_niter_bound): Same.
19830 (get_estimated_loop_iterations_int): Same.
19831 (max_stmt_executions_int): Same.
19832 (likely_max_stmt_executions_int): Same.
19833 (get_estimated_loop_iterations): Same.
19834 (get_max_loop_iterations): Same.
19835 (get_max_loop_iterations_int): Same.
19836 (get_likely_max_loop_iterations): Same.
19837 * cfgloop.h (simple_loop_desc): Same.
19838 (get_loop): Same.
19839 (loop_depth): Same.
19840 (loop_outer): Same.
19841 (loop_iterator::next): Same.
19842 (loop_outermost): Same.
19843 * cfgloopanal.c (mark_irreducible_loops): Same.
19844 (num_loop_insns): Same.
19845 (average_num_loop_insns): Same.
19846 (expected_loop_iterations_unbounded): Same.
19847 (expected_loop_iterations): Same.
19848 (mark_loop_exit_edges): Same.
19849 (single_likely_exit): Same.
19850 * cfgloopmanip.c (fix_bb_placement): Same.
19851 (fix_bb_placements): Same.
19852 (remove_path): Same.
19853 (place_new_loop): Same.
19854 (add_loop): Same.
19855 (scale_loop_frequencies): Same.
19856 (scale_loop_profile): Same.
19857 (create_empty_if_region_on_edge): Same.
19858 (create_empty_loop_on_edge): Same.
19859 (loopify): Same.
19860 (unloop): Same.
19861 (fix_loop_placements): Same.
19862 (copy_loop_info): Same.
19863 (duplicate_loop): Same.
19864 (duplicate_subloops): Same.
19865 (loop_redirect_edge): Same.
19866 (can_duplicate_loop_p): Same.
19867 (duplicate_loop_to_header_edge): Same.
19868 (mfb_keep_just): Same.
19869 (has_preds_from_loop): Same.
19870 (create_preheader): Same.
19871 (create_preheaders): Same.
19872 (lv_adjust_loop_entry_edge): Same.
19873 (loop_version): Same.
19874 * cfgloopmanip.h: Same.
19875 * cgraph.h: Same.
19876 * cgraphbuild.c: Same.
19877 * combine.c (make_extraction): Same.
19878 * config/i386/i386-features.c: Same.
19879 * config/i386/i386-features.h: Same.
19880 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19881 (ix86_emit_outlined_ms2sysv_restore): Same.
19882 (ix86_noce_conversion_profitable_p): Same.
19883 (ix86_init_cost): Same.
19884 (ix86_simd_clone_usable): Same.
19885 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19886 Wstruct-not-pod.
19887 * coretypes.h: Same.
19888 * data-streamer-in.c (string_for_index): Change class-key of PODs
19889 to struct and others to class.
19890 (streamer_read_indexed_string): Same.
19891 (streamer_read_string): Same.
19892 (bp_unpack_indexed_string): Same.
19893 (bp_unpack_string): Same.
19894 (streamer_read_uhwi): Same.
19895 (streamer_read_hwi): Same.
19896 (streamer_read_gcov_count): Same.
19897 (streamer_read_wide_int): Same.
19898 * data-streamer.h (streamer_write_bitpack): Same.
19899 (bp_unpack_value): Same.
19900 (streamer_write_char_stream): Same.
19901 (streamer_write_hwi_in_range): Same.
19902 (streamer_write_record_start): Same.
19903 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19904 (add_cross_iteration_register_deps): Same.
19905 (build_intra_loop_deps): Same.
19906 * df-core.c (df_analyze): Same.
19907 (loop_post_order_compute): Same.
19908 (loop_inverted_post_order_compute): Same.
19909 * df-problems.c (df_rd_alloc): Same.
19910 (df_rd_simulate_one_insn): Same.
19911 (df_rd_local_compute): Same.
19912 (df_rd_init_solution): Same.
19913 (df_rd_confluence_n): Same.
19914 (df_rd_transfer_function): Same.
19915 (df_rd_free): Same.
19916 (df_rd_dump_defs_set): Same.
19917 (df_rd_top_dump): Same.
19918 (df_lr_alloc): Same.
19919 (df_lr_reset): Same.
19920 (df_lr_local_compute): Same.
19921 (df_lr_init): Same.
19922 (df_lr_confluence_n): Same.
19923 (df_lr_free): Same.
19924 (df_lr_top_dump): Same.
19925 (df_lr_verify_transfer_functions): Same.
19926 (df_live_alloc): Same.
19927 (df_live_reset): Same.
19928 (df_live_init): Same.
19929 (df_live_confluence_n): Same.
19930 (df_live_finalize): Same.
19931 (df_live_free): Same.
19932 (df_live_top_dump): Same.
19933 (df_live_verify_transfer_functions): Same.
19934 (df_mir_alloc): Same.
19935 (df_mir_reset): Same.
19936 (df_mir_init): Same.
19937 (df_mir_confluence_n): Same.
19938 (df_mir_free): Same.
19939 (df_mir_top_dump): Same.
19940 (df_word_lr_alloc): Same.
19941 (df_word_lr_reset): Same.
19942 (df_word_lr_init): Same.
19943 (df_word_lr_confluence_n): Same.
19944 (df_word_lr_free): Same.
19945 (df_word_lr_top_dump): Same.
19946 (df_md_alloc): Same.
19947 (df_md_simulate_one_insn): Same.
19948 (df_md_reset): Same.
19949 (df_md_init): Same.
19950 (df_md_free): Same.
19951 (df_md_top_dump): Same.
19952 * df-scan.c (df_insn_delete): Same.
19953 (df_insn_rescan): Same.
19954 (df_notes_rescan): Same.
19955 (df_sort_and_compress_mws): Same.
19956 (df_install_mws): Same.
19957 (df_refs_add_to_chains): Same.
19958 (df_ref_create_structure): Same.
19959 (df_ref_record): Same.
19960 (df_def_record_1): Same.
19961 (df_find_hard_reg_defs): Same.
19962 (df_uses_record): Same.
19963 (df_get_conditional_uses): Same.
19964 (df_get_call_refs): Same.
19965 (df_recompute_luids): Same.
19966 (df_get_entry_block_def_set): Same.
19967 (df_entry_block_defs_collect): Same.
19968 (df_get_exit_block_use_set): Same.
19969 (df_exit_block_uses_collect): Same.
19970 (df_mws_verify): Same.
19971 (df_bb_verify): Same.
19972 * df.h (df_scan_get_bb_info): Same.
19973 * doc/tm.texi: Same.
19974 * dse.c (record_store): Same.
19975 * dumpfile.h: Same.
19976 * emit-rtl.c (const_fixed_hasher::equal): Same.
19977 (set_mem_attributes_minus_bitpos): Same.
19978 (change_address): Same.
19979 (adjust_address_1): Same.
19980 (offset_address): Same.
19981 * emit-rtl.h: Same.
19982 * except.c (dw2_build_landing_pads): Same.
19983 (sjlj_emit_dispatch_table): Same.
19984 * explow.c (allocate_dynamic_stack_space): Same.
19985 (emit_stack_probe): Same.
19986 (probe_stack_range): Same.
19987 * expmed.c (store_bit_field_using_insv): Same.
19988 (store_bit_field_1): Same.
19989 (store_integral_bit_field): Same.
19990 (extract_bit_field_using_extv): Same.
19991 (extract_bit_field_1): Same.
19992 (emit_cstore): Same.
19993 * expr.c (emit_block_move_via_cpymem): Same.
19994 (expand_cmpstrn_or_cmpmem): Same.
19995 (set_storage_via_setmem): Same.
19996 (emit_single_push_insn_1): Same.
19997 (expand_assignment): Same.
19998 (store_constructor): Same.
19999 (expand_expr_real_2): Same.
20000 (expand_expr_real_1): Same.
20001 (try_casesi): Same.
20002 * flags.h: Same.
20003 * function.c (try_fit_stack_local): Same.
20004 (assign_stack_local_1): Same.
20005 (assign_stack_local): Same.
20006 (cut_slot_from_list): Same.
20007 (insert_slot_to_list): Same.
20008 (max_slot_level): Same.
20009 (move_slot_to_level): Same.
20010 (temp_address_hasher::equal): Same.
20011 (remove_unused_temp_slot_addresses): Same.
20012 (assign_temp): Same.
20013 (combine_temp_slots): Same.
20014 (update_temp_slot_address): Same.
20015 (preserve_temp_slots): Same.
20016 * function.h: Same.
20017 * fwprop.c: Same.
20018 * gcc-rich-location.h: Same.
20019 * gcov.c: Same.
20020 * genattrtab.c (check_attr_test): Same.
20021 (check_attr_value): Same.
20022 (convert_set_attr_alternative): Same.
20023 (convert_set_attr): Same.
20024 (check_defs): Same.
20025 (copy_boolean): Same.
20026 (get_attr_value): Same.
20027 (expand_delays): Same.
20028 (make_length_attrs): Same.
20029 (min_fn): Same.
20030 (make_alternative_compare): Same.
20031 (simplify_test_exp): Same.
20032 (tests_attr_p): Same.
20033 (get_attr_order): Same.
20034 (clear_struct_flag): Same.
20035 (gen_attr): Same.
20036 (compares_alternatives_p): Same.
20037 (gen_insn): Same.
20038 (gen_delay): Same.
20039 (find_attrs_to_cache): Same.
20040 (write_test_expr): Same.
20041 (walk_attr_value): Same.
20042 (write_attr_get): Same.
20043 (eliminate_known_true): Same.
20044 (write_insn_cases): Same.
20045 (write_attr_case): Same.
20046 (write_attr_valueq): Same.
20047 (write_attr_value): Same.
20048 (write_dummy_eligible_delay): Same.
20049 (next_comma_elt): Same.
20050 (find_attr): Same.
20051 (make_internal_attr): Same.
20052 (copy_rtx_unchanging): Same.
20053 (gen_insn_reserv): Same.
20054 (check_tune_attr): Same.
20055 (make_automaton_attrs): Same.
20056 (handle_arg): Same.
20057 * genextract.c (gen_insn): Same.
20058 (VEC_char_to_string): Same.
20059 * genmatch.c (print_operand): Same.
20060 (lower): Same.
20061 (parser::parse_operation): Same.
20062 (parser::parse_capture): Same.
20063 (parser::parse_c_expr): Same.
20064 (parser::parse_simplify): Same.
20065 (main): Same.
20066 * genoutput.c (output_operand_data): Same.
20067 (output_get_insn_name): Same.
20068 (compare_operands): Same.
20069 (place_operands): Same.
20070 (process_template): Same.
20071 (validate_insn_alternatives): Same.
20072 (validate_insn_operands): Same.
20073 (gen_expand): Same.
20074 (note_constraint): Same.
20075 * genpreds.c (write_one_predicate_function): Same.
20076 (add_constraint): Same.
20077 (process_define_register_constraint): Same.
20078 (write_lookup_constraint_1): Same.
20079 (write_lookup_constraint_array): Same.
20080 (write_insn_constraint_len): Same.
20081 (write_reg_class_for_constraint_1): Same.
20082 (write_constraint_satisfied_p_array): Same.
20083 * genrecog.c (optimize_subroutine_group): Same.
20084 * gensupport.c (process_define_predicate): Same.
20085 (queue_pattern): Same.
20086 (remove_from_queue): Same.
20087 (process_rtx): Same.
20088 (is_predicable): Same.
20089 (change_subst_attribute): Same.
20090 (subst_pattern_match): Same.
20091 (alter_constraints): Same.
20092 (alter_attrs_for_insn): Same.
20093 (shift_output_template): Same.
20094 (alter_output_for_subst_insn): Same.
20095 (process_one_cond_exec): Same.
20096 (subst_dup): Same.
20097 (process_define_cond_exec): Same.
20098 (mnemonic_htab_callback): Same.
20099 (gen_mnemonic_attr): Same.
20100 (read_md_rtx): Same.
20101 * ggc-page.c: Same.
20102 * gimple-loop-interchange.cc (dump_reduction): Same.
20103 (dump_induction): Same.
20104 (loop_cand::~loop_cand): Same.
20105 (free_data_refs_with_aux): Same.
20106 (tree_loop_interchange::interchange_loops): Same.
20107 (tree_loop_interchange::map_inductions_to_loop): Same.
20108 (tree_loop_interchange::move_code_to_inner_loop): Same.
20109 (compute_access_stride): Same.
20110 (compute_access_strides): Same.
20111 (proper_loop_form_for_interchange): Same.
20112 (tree_loop_interchange_compute_ddrs): Same.
20113 (prune_datarefs_not_in_loop): Same.
20114 (prepare_data_references): Same.
20115 (pass_linterchange::execute): Same.
20116 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20117 (unroll_jam_possible_p): Same.
20118 (fuse_loops): Same.
20119 (adjust_unroll_factor): Same.
20120 (tree_loop_unroll_and_jam): Same.
20121 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20122 (loop_versioning::expensive_stmt_p): Same.
20123 (loop_versioning::version_for_unity): Same.
20124 (loop_versioning::dump_inner_likelihood): Same.
20125 (loop_versioning::find_per_loop_multiplication): Same.
20126 (loop_versioning::analyze_term_using_scevs): Same.
20127 (loop_versioning::record_address_fragment): Same.
20128 (loop_versioning::analyze_expr): Same.
20129 (loop_versioning::analyze_blocks): Same.
20130 (loop_versioning::prune_conditions): Same.
20131 (loop_versioning::merge_loop_info): Same.
20132 (loop_versioning::add_loop_to_queue): Same.
20133 (loop_versioning::decide_whether_loop_is_versionable): Same.
20134 (loop_versioning::make_versioning_decisions): Same.
20135 (loop_versioning::implement_versioning_decisions): Same.
20136 * gimple-ssa-evrp-analyze.c
20137 (evrp_range_analyzer::record_ranges_from_phis): Same.
20138 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20139 (count_multiple_uses): Same.
20140 (split_group): Same.
20141 (imm_store_chain_info::output_merged_store): Same.
20142 (pass_store_merging::process_store): Same.
20143 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20144 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20145 (is_max): Same.
20146 (alloca_call_type): Same.
20147 (pass_walloca::execute): Same.
20148 * gimple-streamer-in.c (input_phi): Same.
20149 (input_gimple_stmt): Same.
20150 * gimple-streamer.h: Same.
20151 * godump.c (go_force_record_alignment): Same.
20152 (go_format_type): Same.
20153 (go_output_type): Same.
20154 (go_output_fndecl): Same.
20155 (go_output_typedef): Same.
20156 (keyword_hash_init): Same.
20157 (find_dummy_types): Same.
20158 * graph.c (draw_cfg_nodes_no_loops): Same.
20159 (draw_cfg_nodes_for_loop): Same.
20160 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20161 * hsa-brig.c: Same.
20162 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20163 * hsa-dump.c (dump_hsa_cfun): Same.
20164 * hsa-gen.c (gen_function_def_parameters): Same.
20165 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20166 * input.c (dump_line_table_statistics): Same.
20167 (test_lexer): Same.
20168 * input.h: Same.
20169 * internal-fn.c (get_multi_vector_move): Same.
20170 (expand_load_lanes_optab_fn): Same.
20171 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20172 (expand_GOMP_SIMT_EXIT): Same.
20173 (expand_GOMP_SIMT_LAST_LANE): Same.
20174 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20175 (expand_GOMP_SIMT_VOTE_ANY): Same.
20176 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20177 (expand_GOMP_SIMT_XCHG_IDX): Same.
20178 (expand_addsub_overflow): Same.
20179 (expand_neg_overflow): Same.
20180 (expand_mul_overflow): Same.
20181 (expand_call_mem_ref): Same.
20182 (expand_mask_load_optab_fn): Same.
20183 (expand_scatter_store_optab_fn): Same.
20184 (expand_gather_load_optab_fn): Same.
20185 * ipa-cp.c (ipa_get_parm_lattices): Same.
20186 (print_all_lattices): Same.
20187 (ignore_edge_p): Same.
20188 (build_toporder_info): Same.
20189 (free_toporder_info): Same.
20190 (push_node_to_stack): Same.
20191 (ipcp_lattice<valtype>::set_contains_variable): Same.
20192 (set_agg_lats_to_bottom): Same.
20193 (ipcp_bits_lattice::meet_with): Same.
20194 (set_single_call_flag): Same.
20195 (initialize_node_lattices): Same.
20196 (ipa_get_jf_ancestor_result): Same.
20197 (ipcp_verify_propagated_values): Same.
20198 (propagate_scalar_across_jump_function): Same.
20199 (propagate_context_across_jump_function): Same.
20200 (propagate_bits_across_jump_function): Same.
20201 (ipa_vr_operation_and_type_effects): Same.
20202 (propagate_vr_across_jump_function): Same.
20203 (set_check_aggs_by_ref): Same.
20204 (set_chain_of_aglats_contains_variable): Same.
20205 (merge_aggregate_lattices): Same.
20206 (agg_pass_through_permissible_p): Same.
20207 (propagate_aggs_across_jump_function): Same.
20208 (call_passes_through_thunk_p): Same.
20209 (propagate_constants_across_call): Same.
20210 (devirtualization_time_bonus): Same.
20211 (good_cloning_opportunity_p): Same.
20212 (context_independent_aggregate_values): Same.
20213 (gather_context_independent_values): Same.
20214 (perform_estimation_of_a_value): Same.
20215 (estimate_local_effects): Same.
20216 (value_topo_info<valtype>::add_val): Same.
20217 (add_all_node_vals_to_toposort): Same.
20218 (value_topo_info<valtype>::propagate_effects): Same.
20219 (ipcp_propagate_stage): Same.
20220 (ipcp_discover_new_direct_edges): Same.
20221 (same_node_or_its_all_contexts_clone_p): Same.
20222 (cgraph_edge_brings_value_p): Same.
20223 (gather_edges_for_value): Same.
20224 (create_specialized_node): Same.
20225 (find_more_scalar_values_for_callers_subset): Same.
20226 (find_more_contexts_for_caller_subset): Same.
20227 (copy_plats_to_inter): Same.
20228 (intersect_aggregates_with_edge): Same.
20229 (find_aggregate_values_for_callers_subset): Same.
20230 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20231 (decide_about_value): Same.
20232 (decide_whether_version_node): Same.
20233 (spread_undeadness): Same.
20234 (identify_dead_nodes): Same.
20235 (ipcp_store_vr_results): Same.
20236 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20237 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20238 (redirect_to_unreachable): Same.
20239 (edge_set_predicate): Same.
20240 (evaluate_conditions_for_known_args): Same.
20241 (evaluate_properties_for_edge): Same.
20242 (ipa_fn_summary_t::duplicate): Same.
20243 (ipa_call_summary_t::duplicate): Same.
20244 (dump_ipa_call_summary): Same.
20245 (ipa_dump_fn_summary): Same.
20246 (eliminated_by_inlining_prob): Same.
20247 (set_cond_stmt_execution_predicate): Same.
20248 (set_switch_stmt_execution_predicate): Same.
20249 (compute_bb_predicates): Same.
20250 (will_be_nonconstant_expr_predicate): Same.
20251 (phi_result_unknown_predicate): Same.
20252 (analyze_function_body): Same.
20253 (compute_fn_summary): Same.
20254 (estimate_edge_devirt_benefit): Same.
20255 (estimate_edge_size_and_time): Same.
20256 (estimate_calls_size_and_time): Same.
20257 (estimate_node_size_and_time): Same.
20258 (remap_edge_change_prob): Same.
20259 (remap_edge_summaries): Same.
20260 (ipa_merge_fn_summary_after_inlining): Same.
20261 (ipa_fn_summary_generate): Same.
20262 (inline_read_section): Same.
20263 (ipa_fn_summary_read): Same.
20264 (ipa_fn_summary_write): Same.
20265 * ipa-fnsummary.h: Same.
20266 * ipa-hsa.c (ipa_hsa_read_section): Same.
20267 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20268 * ipa-icf.c (sem_function::param_used_p): Same.
20269 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20270 * ipa-inline.c (edge_badness): Same.
20271 (inline_small_functions): Same.
20272 * ipa-polymorphic-call.c
20273 (ipa_polymorphic_call_context::stream_out): Same.
20274 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20275 (predicate::remap_after_inlining): Same.
20276 (predicate::stream_out): Same.
20277 * ipa-predicate.h: Same.
20278 * ipa-profile.c (ipa_profile_read_summary): Same.
20279 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20280 (count_formal_params): Same.
20281 (ipa_dump_param): Same.
20282 (ipa_alloc_node_params): Same.
20283 (ipa_print_node_jump_functions_for_edge): Same.
20284 (ipa_print_node_jump_functions): Same.
20285 (ipa_load_from_parm_agg): Same.
20286 (get_ancestor_addr_info): Same.
20287 (ipa_compute_jump_functions_for_edge): Same.
20288 (ipa_analyze_virtual_call_uses): Same.
20289 (ipa_analyze_stmt_uses): Same.
20290 (ipa_analyze_params_uses_in_bb): Same.
20291 (update_jump_functions_after_inlining): Same.
20292 (try_decrement_rdesc_refcount): Same.
20293 (ipa_impossible_devirt_target): Same.
20294 (update_indirect_edges_after_inlining): Same.
20295 (combine_controlled_uses_counters): Same.
20296 (ipa_edge_args_sum_t::duplicate): Same.
20297 (ipa_write_jump_function): Same.
20298 (ipa_write_indirect_edge_info): Same.
20299 (ipa_write_node_info): Same.
20300 (ipa_read_edge_info): Same.
20301 (ipa_prop_read_section): Same.
20302 (read_replacements_section): Same.
20303 * ipa-prop.h (ipa_get_param_count): Same.
20304 (ipa_get_param): Same.
20305 (ipa_get_type): Same.
20306 (ipa_get_param_move_cost): Same.
20307 (ipa_set_param_used): Same.
20308 (ipa_get_controlled_uses): Same.
20309 (ipa_set_controlled_uses): Same.
20310 (ipa_get_cs_argument_count): Same.
20311 * ipa-pure-const.c (analyze_function): Same.
20312 (pure_const_read_summary): Same.
20313 * ipa-ref.h: Same.
20314 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20315 * ipa-split.c (test_nonssa_use): Same.
20316 (dump_split_point): Same.
20317 (dominated_by_forbidden): Same.
20318 (split_part_set_ssa_name_p): Same.
20319 (find_split_points): Same.
20320 * ira-build.c (finish_loop_tree_nodes): Same.
20321 (low_pressure_loop_node_p): Same.
20322 * ira-color.c (ira_reuse_stack_slot): Same.
20323 * ira-int.h: Same.
20324 * ira.c (setup_reg_equiv): Same.
20325 (print_insn_chain): Same.
20326 (ira): Same.
20327 * loop-doloop.c (doloop_condition_get): Same.
20328 (add_test): Same.
20329 (record_reg_sets): Same.
20330 (doloop_optimize): Same.
20331 * loop-init.c (loop_optimizer_init): Same.
20332 (fix_loop_structure): Same.
20333 * loop-invariant.c (merge_identical_invariants): Same.
20334 (compute_always_reached): Same.
20335 (find_exits): Same.
20336 (may_assign_reg_p): Same.
20337 (find_invariants_bb): Same.
20338 (find_invariants_body): Same.
20339 (replace_uses): Same.
20340 (can_move_invariant_reg): Same.
20341 (free_inv_motion_data): Same.
20342 (move_single_loop_invariants): Same.
20343 (change_pressure): Same.
20344 (mark_ref_regs): Same.
20345 (calculate_loop_reg_pressure): Same.
20346 * loop-iv.c (biv_entry_hasher::equal): Same.
20347 (iv_extend_to_rtx_code): Same.
20348 (check_iv_ref_table_size): Same.
20349 (clear_iv_info): Same.
20350 (latch_dominating_def): Same.
20351 (iv_get_reaching_def): Same.
20352 (iv_constant): Same.
20353 (iv_subreg): Same.
20354 (iv_extend): Same.
20355 (iv_neg): Same.
20356 (iv_add): Same.
20357 (iv_mult): Same.
20358 (get_biv_step): Same.
20359 (record_iv): Same.
20360 (analyzed_for_bivness_p): Same.
20361 (record_biv): Same.
20362 (iv_analyze_biv): Same.
20363 (iv_analyze_expr): Same.
20364 (iv_analyze_def): Same.
20365 (iv_analyze_op): Same.
20366 (iv_analyze): Same.
20367 (iv_analyze_result): Same.
20368 (biv_p): Same.
20369 (eliminate_implied_conditions): Same.
20370 (simplify_using_initial_values): Same.
20371 (shorten_into_mode): Same.
20372 (canonicalize_iv_subregs): Same.
20373 (determine_max_iter): Same.
20374 (check_simple_exit): Same.
20375 (find_simple_exit): Same.
20376 (get_simple_loop_desc): Same.
20377 * loop-unroll.c (report_unroll): Same.
20378 (decide_unrolling): Same.
20379 (unroll_loops): Same.
20380 (loop_exit_at_end_p): Same.
20381 (decide_unroll_constant_iterations): Same.
20382 (unroll_loop_constant_iterations): Same.
20383 (compare_and_jump_seq): Same.
20384 (unroll_loop_runtime_iterations): Same.
20385 (decide_unroll_stupid): Same.
20386 (unroll_loop_stupid): Same.
20387 (referenced_in_one_insn_in_loop_p): Same.
20388 (reset_debug_uses_in_loop): Same.
20389 (analyze_iv_to_split_insn): Same.
20390 * lra-eliminations.c (lra_debug_elim_table): Same.
20391 (setup_can_eliminate): Same.
20392 (form_sum): Same.
20393 (lra_get_elimination_hard_regno): Same.
20394 (lra_eliminate_regs_1): Same.
20395 (eliminate_regs_in_insn): Same.
20396 (update_reg_eliminate): Same.
20397 (init_elimination): Same.
20398 (lra_eliminate): Same.
20399 * lra-int.h: Same.
20400 * lra-lives.c (initiate_live_solver): Same.
20401 * lra-remat.c (create_remat_bb_data): Same.
20402 * lra-spills.c (lra_spill): Same.
20403 * lra.c (lra_set_insn_recog_data): Same.
20404 (lra_set_used_insn_alternative_by_uid): Same.
20405 (init_reg_info): Same.
20406 (expand_reg_info): Same.
20407 * lto-cgraph.c (output_symtab): Same.
20408 (read_identifier): Same.
20409 (get_alias_symbol): Same.
20410 (input_node): Same.
20411 (input_varpool_node): Same.
20412 (input_ref): Same.
20413 (input_edge): Same.
20414 (input_cgraph_1): Same.
20415 (input_refs): Same.
20416 (input_symtab): Same.
20417 (input_offload_tables): Same.
20418 (output_cgraph_opt_summary): Same.
20419 (input_edge_opt_summary): Same.
20420 (input_cgraph_opt_section): Same.
20421 * lto-section-in.c (lto_free_raw_section_data): Same.
20422 (lto_create_simple_input_block): Same.
20423 (lto_free_function_in_decl_state_for_node): Same.
20424 * lto-streamer-in.c (lto_tag_check_set): Same.
20425 (lto_location_cache::revert_location_cache): Same.
20426 (lto_location_cache::input_location): Same.
20427 (lto_input_location): Same.
20428 (stream_input_location_now): Same.
20429 (lto_input_tree_ref): Same.
20430 (lto_input_eh_catch_list): Same.
20431 (input_eh_region): Same.
20432 (lto_init_eh): Same.
20433 (make_new_block): Same.
20434 (input_cfg): Same.
20435 (fixup_call_stmt_edges): Same.
20436 (input_struct_function_base): Same.
20437 (input_function): Same.
20438 (lto_read_body_or_constructor): Same.
20439 (lto_read_tree_1): Same.
20440 (lto_read_tree): Same.
20441 (lto_input_scc): Same.
20442 (lto_input_tree_1): Same.
20443 (lto_input_toplevel_asms): Same.
20444 (lto_input_mode_table): Same.
20445 (lto_reader_init): Same.
20446 (lto_data_in_create): Same.
20447 * lto-streamer-out.c (output_cfg): Same.
20448 * lto-streamer.h: Same.
20449 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20450 (generate_prolog_epilog): Same.
20451 (mark_loop_unsched): Same.
20452 (dump_insn_location): Same.
20453 (loop_canon_p): Same.
20454 (sms_schedule): Same.
20455 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20456 (expand_omp_for_generic): Same.
20457 (expand_omp_for_static_nochunk): Same.
20458 (expand_omp_for_static_chunk): Same.
20459 (expand_omp_simd): Same.
20460 (expand_omp_taskloop_for_inner): Same.
20461 (expand_oacc_for): Same.
20462 (expand_omp_atomic_pipeline): Same.
20463 (mark_loops_in_oacc_kernels_region): Same.
20464 * omp-offload.c (oacc_xform_loop): Same.
20465 * omp-simd-clone.c (simd_clone_adjust): Same.
20466 * optabs-query.c (get_traditional_extraction_insn): Same.
20467 * optabs.c (expand_vector_broadcast): Same.
20468 (expand_binop_directly): Same.
20469 (expand_twoval_unop): Same.
20470 (expand_twoval_binop): Same.
20471 (expand_unop_direct): Same.
20472 (emit_indirect_jump): Same.
20473 (emit_conditional_move): Same.
20474 (emit_conditional_neg_or_complement): Same.
20475 (emit_conditional_add): Same.
20476 (vector_compare_rtx): Same.
20477 (expand_vec_perm_1): Same.
20478 (expand_vec_perm_const): Same.
20479 (expand_vec_cond_expr): Same.
20480 (expand_vec_series_expr): Same.
20481 (maybe_emit_atomic_exchange): Same.
20482 (maybe_emit_sync_lock_test_and_set): Same.
20483 (expand_atomic_compare_and_swap): Same.
20484 (expand_atomic_load): Same.
20485 (expand_atomic_store): Same.
20486 (maybe_emit_op): Same.
20487 (valid_multiword_target_p): Same.
20488 (create_integer_operand): Same.
20489 (maybe_legitimize_operand_same_code): Same.
20490 (maybe_legitimize_operand): Same.
20491 (create_convert_operand_from_type): Same.
20492 (can_reuse_operands_p): Same.
20493 (maybe_legitimize_operands): Same.
20494 (maybe_gen_insn): Same.
20495 (maybe_expand_insn): Same.
20496 (maybe_expand_jump_insn): Same.
20497 (expand_insn): Same.
20498 * optabs.h (create_expand_operand): Same.
20499 (create_fixed_operand): Same.
20500 (create_output_operand): Same.
20501 (create_input_operand): Same.
20502 (create_convert_operand_to): Same.
20503 (create_convert_operand_from): Same.
20504 * optinfo.h: Same.
20505 * poly-int.h: Same.
20506 * predict.c (optimize_insn_for_speed_p): Same.
20507 (optimize_loop_for_size_p): Same.
20508 (optimize_loop_for_speed_p): Same.
20509 (optimize_loop_nest_for_speed_p): Same.
20510 (get_base_value): Same.
20511 (predicted_by_loop_heuristics_p): Same.
20512 (predict_extra_loop_exits): Same.
20513 (predict_loops): Same.
20514 (predict_paths_for_bb): Same.
20515 (predict_paths_leading_to): Same.
20516 (propagate_freq): Same.
20517 (pass_profile::execute): Same.
20518 * predict.h: Same.
20519 * profile-count.c (profile_count::differs_from_p): Same.
20520 (profile_probability::differs_lot_from_p): Same.
20521 * profile-count.h: Same.
20522 * profile.c (branch_prob): Same.
20523 * regrename.c (free_chain_data): Same.
20524 (mark_conflict): Same.
20525 (create_new_chain): Same.
20526 (merge_overlapping_regs): Same.
20527 (init_rename_info): Same.
20528 (merge_chains): Same.
20529 (regrename_analyze): Same.
20530 (regrename_do_replace): Same.
20531 (scan_rtx_reg): Same.
20532 (record_out_operands): Same.
20533 (build_def_use): Same.
20534 * regrename.h: Same.
20535 * reload.h: Same.
20536 * reload1.c (init_reload): Same.
20537 (maybe_fix_stack_asms): Same.
20538 (copy_reloads): Same.
20539 (count_pseudo): Same.
20540 (count_spilled_pseudo): Same.
20541 (find_reg): Same.
20542 (find_reload_regs): Same.
20543 (select_reload_regs): Same.
20544 (spill_hard_reg): Same.
20545 (fixup_eh_region_note): Same.
20546 (set_reload_reg): Same.
20547 (allocate_reload_reg): Same.
20548 (compute_reload_subreg_offset): Same.
20549 (reload_adjust_reg_for_icode): Same.
20550 (emit_input_reload_insns): Same.
20551 (emit_output_reload_insns): Same.
20552 (do_input_reload): Same.
20553 (inherit_piecemeal_p): Same.
20554 * rtl.h: Same.
20555 * sanopt.c (maybe_get_dominating_check): Same.
20556 (maybe_optimize_ubsan_ptr_ifn): Same.
20557 (can_remove_asan_check): Same.
20558 (maybe_optimize_asan_check_ifn): Same.
20559 (sanopt_optimize_walker): Same.
20560 * sched-deps.c (add_dependence_list): Same.
20561 (chain_to_prev_insn): Same.
20562 (add_insn_mem_dependence): Same.
20563 (create_insn_reg_set): Same.
20564 (maybe_extend_reg_info_p): Same.
20565 (sched_analyze_reg): Same.
20566 (sched_analyze_1): Same.
20567 (get_implicit_reg_pending_clobbers): Same.
20568 (chain_to_prev_insn_p): Same.
20569 (deps_analyze_insn): Same.
20570 (deps_start_bb): Same.
20571 (sched_free_deps): Same.
20572 (init_deps): Same.
20573 (init_deps_reg_last): Same.
20574 (free_deps): Same.
20575 * sched-ebb.c: Same.
20576 * sched-int.h: Same.
20577 * sched-rgn.c (add_branch_dependences): Same.
20578 (concat_insn_mem_list): Same.
20579 (deps_join): Same.
20580 (sched_rgn_compute_dependencies): Same.
20581 * sel-sched-ir.c (reset_target_context): Same.
20582 (copy_deps_context): Same.
20583 (init_id_from_df): Same.
20584 (has_dependence_p): Same.
20585 (change_loops_latches): Same.
20586 (bb_top_order_comparator): Same.
20587 (make_region_from_loop_preheader): Same.
20588 (sel_init_pipelining): Same.
20589 (get_loop_nest_for_rgn): Same.
20590 (make_regions_from_the_rest): Same.
20591 (sel_is_loop_preheader_p): Same.
20592 * sel-sched-ir.h (inner_loop_header_p): Same.
20593 (get_all_loop_exits): Same.
20594 * selftest.h: Same.
20595 * sese.c (sese_build_liveouts): Same.
20596 (sese_insert_phis_for_liveouts): Same.
20597 * sese.h (defined_in_sese_p): Same.
20598 * sreal.c (sreal::stream_out): Same.
20599 * sreal.h: Same.
20600 * streamer-hooks.h: Same.
20601 * target-globals.c (save_target_globals): Same.
20602 * target-globals.h: Same.
20603 * target.def: Same.
20604 * target.h: Same.
20605 * targhooks.c (default_has_ifunc_p): Same.
20606 (default_empty_mask_is_expensive): Same.
20607 (default_init_cost): Same.
20608 * targhooks.h: Same.
20609 * toplev.c: Same.
20610 * tree-affine.c (aff_combination_mult): Same.
20611 (aff_combination_expand): Same.
20612 (aff_combination_constant_multiple_p): Same.
20613 * tree-affine.h: Same.
20614 * tree-cfg.c (build_gimple_cfg): Same.
20615 (replace_loop_annotate_in_block): Same.
20616 (replace_uses_by): Same.
20617 (remove_bb): Same.
20618 (dump_cfg_stats): Same.
20619 (gimple_duplicate_sese_region): Same.
20620 (gimple_duplicate_sese_tail): Same.
20621 (move_block_to_fn): Same.
20622 (replace_block_vars_by_duplicates): Same.
20623 (move_sese_region_to_fn): Same.
20624 (print_loops_bb): Same.
20625 (print_loop): Same.
20626 (print_loops): Same.
20627 (debug): Same.
20628 (debug_loops): Same.
20629 * tree-cfg.h: Same.
20630 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20631 (chrec_fold_multiply_poly_poly): Same.
20632 (chrec_evaluate): Same.
20633 (chrec_component_in_loop_num): Same.
20634 (reset_evolution_in_loop): Same.
20635 (is_multivariate_chrec): Same.
20636 (chrec_contains_symbols): Same.
20637 (nb_vars_in_chrec): Same.
20638 (chrec_convert_1): Same.
20639 (chrec_convert_aggressive): Same.
20640 * tree-chrec.h: Same.
20641 * tree-core.h: Same.
20642 * tree-data-ref.c (dump_data_dependence_relation): Same.
20643 (canonicalize_base_object_address): Same.
20644 (data_ref_compare_tree): Same.
20645 (prune_runtime_alias_test_list): Same.
20646 (get_segment_min_max): Same.
20647 (create_intersect_range_checks): Same.
20648 (conflict_fn_no_dependence): Same.
20649 (object_address_invariant_in_loop_p): Same.
20650 (analyze_ziv_subscript): Same.
20651 (analyze_siv_subscript_cst_affine): Same.
20652 (analyze_miv_subscript): Same.
20653 (analyze_overlapping_iterations): Same.
20654 (build_classic_dist_vector_1): Same.
20655 (add_other_self_distances): Same.
20656 (same_access_functions): Same.
20657 (build_classic_dir_vector): Same.
20658 (subscript_dependence_tester_1): Same.
20659 (subscript_dependence_tester): Same.
20660 (access_functions_are_affine_or_constant_p): Same.
20661 (get_references_in_stmt): Same.
20662 (loop_nest_has_data_refs): Same.
20663 (graphite_find_data_references_in_stmt): Same.
20664 (find_data_references_in_bb): Same.
20665 (get_base_for_alignment): Same.
20666 (find_loop_nest_1): Same.
20667 (find_loop_nest): Same.
20668 * tree-data-ref.h (dr_alignment): Same.
20669 (ddr_dependence_level): Same.
20670 * tree-if-conv.c (fold_build_cond_expr): Same.
20671 (add_to_predicate_list): Same.
20672 (add_to_dst_predicate_list): Same.
20673 (phi_convertible_by_degenerating_args): Same.
20674 (idx_within_array_bound): Same.
20675 (all_preds_critical_p): Same.
20676 (pred_blocks_visited_p): Same.
20677 (predicate_bbs): Same.
20678 (build_region): Same.
20679 (if_convertible_loop_p_1): Same.
20680 (is_cond_scalar_reduction): Same.
20681 (predicate_scalar_phi): Same.
20682 (remove_conditions_and_labels): Same.
20683 (combine_blocks): Same.
20684 (version_loop_for_if_conversion): Same.
20685 (versionable_outer_loop_p): Same.
20686 (ifcvt_local_dce): Same.
20687 (tree_if_conversion): Same.
20688 (pass_if_conversion::gate): Same.
20689 * tree-if-conv.h: Same.
20690 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20691 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20692 (free_rdg): Same.
20693 (stmt_has_scalar_dependences_outside_loop): Same.
20694 (copy_loop_before): Same.
20695 (create_bb_after_loop): Same.
20696 (const_with_all_bytes_same): Same.
20697 (generate_memset_builtin): Same.
20698 (generate_memcpy_builtin): Same.
20699 (destroy_loop): Same.
20700 (build_rdg_partition_for_vertex): Same.
20701 (compute_access_range): Same.
20702 (data_ref_segment_size): Same.
20703 (latch_dominated_by_data_ref): Same.
20704 (compute_alias_check_pairs): Same.
20705 (fuse_memset_builtins): Same.
20706 (finalize_partitions): Same.
20707 (find_seed_stmts_for_distribution): Same.
20708 (prepare_perfect_loop_nest): Same.
20709 * tree-parloops.c (lambda_transform_legal_p): Same.
20710 (loop_parallel_p): Same.
20711 (reduc_stmt_res): Same.
20712 (add_field_for_name): Same.
20713 (create_call_for_reduction_1): Same.
20714 (replace_uses_in_bb_by): Same.
20715 (transform_to_exit_first_loop_alt): Same.
20716 (try_transform_to_exit_first_loop_alt): Same.
20717 (transform_to_exit_first_loop): Same.
20718 (num_phis): Same.
20719 (gen_parallel_loop): Same.
20720 (gather_scalar_reductions): Same.
20721 (get_omp_data_i_param): Same.
20722 (try_create_reduction_list): Same.
20723 (oacc_entry_exit_single_gang): Same.
20724 (parallelize_loops): Same.
20725 * tree-pass.h: Same.
20726 * tree-predcom.c (determine_offset): Same.
20727 (last_always_executed_block): Same.
20728 (split_data_refs_to_components): Same.
20729 (suitable_component_p): Same.
20730 (valid_initializer_p): Same.
20731 (find_looparound_phi): Same.
20732 (insert_looparound_copy): Same.
20733 (add_looparound_copies): Same.
20734 (determine_roots_comp): Same.
20735 (predcom_tmp_var): Same.
20736 (initialize_root_vars): Same.
20737 (initialize_root_vars_store_elim_1): Same.
20738 (initialize_root_vars_store_elim_2): Same.
20739 (finalize_eliminated_stores): Same.
20740 (initialize_root_vars_lm): Same.
20741 (remove_stmt): Same.
20742 (determine_unroll_factor): Same.
20743 (execute_pred_commoning_cbck): Same.
20744 (base_names_in_chain_on): Same.
20745 (combine_chains): Same.
20746 (pcom_stmt_dominates_stmt_p): Same.
20747 (try_combine_chains): Same.
20748 (prepare_initializers_chain_store_elim): Same.
20749 (prepare_initializers_chain): Same.
20750 (prepare_initializers): Same.
20751 (prepare_finalizers_chain): Same.
20752 (prepare_finalizers): Same.
20753 (insert_init_seqs): Same.
20754 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20755 (compute_overall_effect_of_inner_loop): Same.
20756 (add_to_evolution_1): Same.
20757 (add_to_evolution): Same.
20758 (follow_ssa_edge_binary): Same.
20759 (follow_ssa_edge_expr): Same.
20760 (backedge_phi_arg_p): Same.
20761 (follow_ssa_edge_in_condition_phi_branch): Same.
20762 (follow_ssa_edge_in_condition_phi): Same.
20763 (follow_ssa_edge_inner_loop_phi): Same.
20764 (follow_ssa_edge): Same.
20765 (analyze_evolution_in_loop): Same.
20766 (analyze_initial_condition): Same.
20767 (interpret_loop_phi): Same.
20768 (interpret_condition_phi): Same.
20769 (interpret_rhs_expr): Same.
20770 (interpret_expr): Same.
20771 (interpret_gimple_assign): Same.
20772 (analyze_scalar_evolution_1): Same.
20773 (analyze_scalar_evolution): Same.
20774 (analyze_scalar_evolution_for_address_of): Same.
20775 (get_instantiated_value_entry): Same.
20776 (loop_closed_phi_def): Same.
20777 (instantiate_scev_name): Same.
20778 (instantiate_scev_poly): Same.
20779 (instantiate_scev_binary): Same.
20780 (instantiate_scev_convert): Same.
20781 (instantiate_scev_not): Same.
20782 (instantiate_scev_r): Same.
20783 (instantiate_scev): Same.
20784 (resolve_mixers): Same.
20785 (initialize_scalar_evolutions_analyzer): Same.
20786 (scev_reset_htab): Same.
20787 (scev_reset): Same.
20788 (derive_simple_iv_with_niters): Same.
20789 (simple_iv_with_niters): Same.
20790 (expression_expensive_p): Same.
20791 (final_value_replacement_loop): Same.
20792 * tree-scalar-evolution.h (block_before_loop): Same.
20793 * tree-ssa-address.h: Same.
20794 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20795 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20796 (record_edge_info): Same.
20797 * tree-ssa-live.c (var_map_base_fini): Same.
20798 (remove_unused_locals): Same.
20799 * tree-ssa-live.h: Same.
20800 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20801 (pass_ch_vect::execute): Same.
20802 (pass_ch::process_loop_p): Same.
20803 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20804 (movement_possibility): Same.
20805 (outermost_invariant_loop): Same.
20806 (stmt_cost): Same.
20807 (determine_max_movement): Same.
20808 (invariantness_dom_walker::before_dom_children): Same.
20809 (move_computations): Same.
20810 (may_move_till): Same.
20811 (force_move_till_op): Same.
20812 (force_move_till): Same.
20813 (memref_free): Same.
20814 (record_mem_ref_loc): Same.
20815 (set_ref_stored_in_loop): Same.
20816 (mark_ref_stored): Same.
20817 (sort_bbs_in_loop_postorder_cmp): Same.
20818 (sort_locs_in_loop_postorder_cmp): Same.
20819 (analyze_memory_references): Same.
20820 (mem_refs_may_alias_p): Same.
20821 (find_ref_loc_in_loop_cmp): Same.
20822 (rewrite_mem_ref_loc::operator): Same.
20823 (first_mem_ref_loc_1::operator): Same.
20824 (sm_set_flag_if_changed::operator): Same.
20825 (execute_sm_if_changed_flag_set): Same.
20826 (execute_sm): Same.
20827 (hoist_memory_references): Same.
20828 (ref_always_accessed::operator): Same.
20829 (refs_independent_p): Same.
20830 (record_dep_loop): Same.
20831 (ref_indep_loop_p_1): Same.
20832 (ref_indep_loop_p): Same.
20833 (can_sm_ref_p): Same.
20834 (find_refs_for_sm): Same.
20835 (loop_suitable_for_sm): Same.
20836 (store_motion_loop): Same.
20837 (store_motion): Same.
20838 (fill_always_executed_in): Same.
20839 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20840 (estimated_unrolled_size): Same.
20841 (loop_edge_to_cancel): Same.
20842 (remove_exits_and_undefined_stmts): Same.
20843 (remove_redundant_iv_tests): Same.
20844 (unloop_loops): Same.
20845 (estimated_peeled_sequence_size): Same.
20846 (try_peel_loop): Same.
20847 (canonicalize_loop_induction_variables): Same.
20848 (canonicalize_induction_variables): Same.
20849 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20850 (name_info): Same.
20851 (stmt_after_inc_pos): Same.
20852 (contains_abnormal_ssa_name_p): Same.
20853 (niter_for_exit): Same.
20854 (find_bivs): Same.
20855 (mark_bivs): Same.
20856 (find_givs_in_bb): Same.
20857 (find_induction_variables): Same.
20858 (find_interesting_uses_cond): Same.
20859 (outermost_invariant_loop_for_expr): Same.
20860 (idx_find_step): Same.
20861 (add_candidate_1): Same.
20862 (add_iv_candidate_derived_from_uses): Same.
20863 (alloc_use_cost_map): Same.
20864 (prepare_decl_rtl): Same.
20865 (generic_predict_doloop_p): Same.
20866 (computation_cost): Same.
20867 (determine_common_wider_type): Same.
20868 (get_computation_aff_1): Same.
20869 (get_use_type): Same.
20870 (determine_group_iv_cost_address): Same.
20871 (iv_period): Same.
20872 (difference_cannot_overflow_p): Same.
20873 (may_eliminate_iv): Same.
20874 (determine_set_costs): Same.
20875 (cheaper_cost_pair): Same.
20876 (compare_cost_pair): Same.
20877 (iv_ca_cand_for_group): Same.
20878 (iv_ca_recount_cost): Same.
20879 (iv_ca_set_remove_invs): Same.
20880 (iv_ca_set_no_cp): Same.
20881 (iv_ca_set_add_invs): Same.
20882 (iv_ca_set_cp): Same.
20883 (iv_ca_add_group): Same.
20884 (iv_ca_cost): Same.
20885 (iv_ca_compare_deps): Same.
20886 (iv_ca_delta_reverse): Same.
20887 (iv_ca_delta_commit): Same.
20888 (iv_ca_cand_used_p): Same.
20889 (iv_ca_delta_free): Same.
20890 (iv_ca_new): Same.
20891 (iv_ca_free): Same.
20892 (iv_ca_dump): Same.
20893 (iv_ca_extend): Same.
20894 (iv_ca_narrow): Same.
20895 (iv_ca_prune): Same.
20896 (cheaper_cost_with_cand): Same.
20897 (iv_ca_replace): Same.
20898 (try_add_cand_for): Same.
20899 (get_initial_solution): Same.
20900 (try_improve_iv_set): Same.
20901 (find_optimal_iv_set_1): Same.
20902 (create_new_iv): Same.
20903 (rewrite_use_compare): Same.
20904 (remove_unused_ivs): Same.
20905 (determine_scaling_factor): Same.
20906 * tree-ssa-loop-ivopts.h: Same.
20907 * tree-ssa-loop-manip.c (create_iv): Same.
20908 (compute_live_loop_exits): Same.
20909 (add_exit_phi): Same.
20910 (add_exit_phis): Same.
20911 (find_uses_to_rename_use): Same.
20912 (find_uses_to_rename_def): Same.
20913 (find_uses_to_rename_in_loop): Same.
20914 (rewrite_into_loop_closed_ssa): Same.
20915 (check_loop_closed_ssa_bb): Same.
20916 (split_loop_exit_edge): Same.
20917 (ip_end_pos): Same.
20918 (ip_normal_pos): Same.
20919 (copy_phi_node_args): Same.
20920 (gimple_duplicate_loop_to_header_edge): Same.
20921 (can_unroll_loop_p): Same.
20922 (determine_exit_conditions): Same.
20923 (scale_dominated_blocks_in_loop): Same.
20924 (niter_for_unrolled_loop): Same.
20925 (tree_transform_and_unroll_loop): Same.
20926 (rewrite_all_phi_nodes_with_iv): Same.
20927 * tree-ssa-loop-manip.h: Same.
20928 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20929 (number_of_iterations_ne): Same.
20930 (assert_no_overflow_lt): Same.
20931 (assert_loop_rolls_lt): Same.
20932 (number_of_iterations_lt): Same.
20933 (adjust_cond_for_loop_until_wrap): Same.
20934 (tree_simplify_using_condition): Same.
20935 (simplify_using_initial_conditions): Same.
20936 (simplify_using_outer_evolutions): Same.
20937 (loop_only_exit_p): Same.
20938 (ssa_defined_by_minus_one_stmt_p): Same.
20939 (number_of_iterations_popcount): Same.
20940 (number_of_iterations_exit): Same.
20941 (find_loop_niter): Same.
20942 (finite_loop_p): Same.
20943 (chain_of_csts_start): Same.
20944 (get_val_for): Same.
20945 (loop_niter_by_eval): Same.
20946 (derive_constant_upper_bound_ops): Same.
20947 (do_warn_aggressive_loop_optimizations): Same.
20948 (record_estimate): Same.
20949 (get_cst_init_from_scev): Same.
20950 (record_nonwrapping_iv): Same.
20951 (idx_infer_loop_bounds): Same.
20952 (infer_loop_bounds_from_ref): Same.
20953 (infer_loop_bounds_from_array): Same.
20954 (infer_loop_bounds_from_pointer_arith): Same.
20955 (infer_loop_bounds_from_signedness): Same.
20956 (bound_index): Same.
20957 (discover_iteration_bound_by_body_walk): Same.
20958 (maybe_lower_iteration_bound): Same.
20959 (estimate_numbers_of_iterations): Same.
20960 (estimated_loop_iterations): Same.
20961 (estimated_loop_iterations_int): Same.
20962 (max_loop_iterations): Same.
20963 (max_loop_iterations_int): Same.
20964 (likely_max_loop_iterations): Same.
20965 (likely_max_loop_iterations_int): Same.
20966 (estimated_stmt_executions_int): Same.
20967 (max_stmt_executions): Same.
20968 (likely_max_stmt_executions): Same.
20969 (estimated_stmt_executions): Same.
20970 (stmt_dominates_stmt_p): Same.
20971 (nowrap_type_p): Same.
20972 (loop_exits_before_overflow): Same.
20973 (scev_var_range_cant_overflow): Same.
20974 (scev_probably_wraps_p): Same.
20975 (free_numbers_of_iterations_estimates): Same.
20976 * tree-ssa-loop-niter.h: Same.
20977 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20978 (idx_analyze_ref): Same.
20979 (analyze_ref): Same.
20980 (gather_memory_references_ref): Same.
20981 (mark_nontemporal_store): Same.
20982 (emit_mfence_after_loop): Same.
20983 (may_use_storent_in_loop_p): Same.
20984 (mark_nontemporal_stores): Same.
20985 (should_unroll_loop_p): Same.
20986 (volume_of_dist_vector): Same.
20987 (add_subscript_strides): Same.
20988 (self_reuse_distance): Same.
20989 (insn_to_prefetch_ratio_too_small_p): Same.
20990 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20991 (patch_loop_exit): Same.
20992 (find_or_create_guard_phi): Same.
20993 (easy_exit_values): Same.
20994 (connect_loop_phis): Same.
20995 (connect_loops): Same.
20996 (compute_new_first_bound): Same.
20997 (split_loop): Same.
20998 (tree_ssa_split_loops): Same.
20999 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21000 (is_maybe_undefined): Same.
21001 (tree_may_unswitch_on): Same.
21002 (simplify_using_entry_checks): Same.
21003 (tree_unswitch_single_loop): Same.
21004 (tree_unswitch_loop): Same.
21005 (tree_unswitch_outer_loop): Same.
21006 (empty_bb_without_guard_p): Same.
21007 (used_outside_loop_p): Same.
21008 (get_vop_from_header): Same.
21009 (hoist_guard): Same.
21010 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21011 (get_lsm_tmp_name): Same.
21012 * tree-ssa-loop.h: Same.
21013 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21014 (build_and_add_sum): Same.
21015 (no_side_effect_bb): Same.
21016 (get_ops): Same.
21017 (linearize_expr): Same.
21018 (should_break_up_subtract): Same.
21019 (linearize_expr_tree): Same.
21020 * tree-ssa-scopedtables.c: Same.
21021 * tree-ssa-scopedtables.h: Same.
21022 * tree-ssa-structalias.c (condense_visit): Same.
21023 (label_visit): Same.
21024 (dump_pred_graph): Same.
21025 (perform_var_substitution): Same.
21026 (move_complex_constraints): Same.
21027 (remove_preds_and_fake_succs): Same.
21028 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21029 (determine_bb_domination_status): Same.
21030 (duplicate_thread_path): Same.
21031 (thread_through_all_blocks): Same.
21032 * tree-ssa-threadupdate.h: Same.
21033 * tree-streamer-in.c (streamer_read_string_cst): Same.
21034 (input_identifier): Same.
21035 (unpack_ts_type_common_value_fields): Same.
21036 (unpack_ts_block_value_fields): Same.
21037 (unpack_ts_translation_unit_decl_value_fields): Same.
21038 (unpack_ts_omp_clause_value_fields): Same.
21039 (streamer_read_tree_bitfields): Same.
21040 (streamer_alloc_tree): Same.
21041 (lto_input_ts_common_tree_pointers): Same.
21042 (lto_input_ts_vector_tree_pointers): Same.
21043 (lto_input_ts_poly_tree_pointers): Same.
21044 (lto_input_ts_complex_tree_pointers): Same.
21045 (lto_input_ts_decl_minimal_tree_pointers): Same.
21046 (lto_input_ts_decl_common_tree_pointers): Same.
21047 (lto_input_ts_decl_non_common_tree_pointers): Same.
21048 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21049 (lto_input_ts_field_decl_tree_pointers): Same.
21050 (lto_input_ts_function_decl_tree_pointers): Same.
21051 (lto_input_ts_type_common_tree_pointers): Same.
21052 (lto_input_ts_type_non_common_tree_pointers): Same.
21053 (lto_input_ts_list_tree_pointers): Same.
21054 (lto_input_ts_vec_tree_pointers): Same.
21055 (lto_input_ts_exp_tree_pointers): Same.
21056 (lto_input_ts_block_tree_pointers): Same.
21057 (lto_input_ts_binfo_tree_pointers): Same.
21058 (lto_input_ts_constructor_tree_pointers): Same.
21059 (lto_input_ts_omp_clause_tree_pointers): Same.
21060 (streamer_read_tree_body): Same.
21061 * tree-streamer.h: Same.
21062 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21063 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21064 (vect_analyze_possibly_independent_ddr): Same.
21065 (vect_analyze_data_ref_dependence): Same.
21066 (vect_compute_data_ref_alignment): Same.
21067 (vect_enhance_data_refs_alignment): Same.
21068 (vect_analyze_data_ref_access): Same.
21069 (vect_check_gather_scatter): Same.
21070 (vect_find_stmt_data_reference): Same.
21071 (vect_create_addr_base_for_vector_ref): Same.
21072 (vect_setup_realignment): Same.
21073 (vect_supportable_dr_alignment): Same.
21074 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21075 (adjust_phi_and_debug_stmts): Same.
21076 (vect_set_loop_mask): Same.
21077 (add_preheader_seq): Same.
21078 (vect_maybe_permute_loop_masks): Same.
21079 (vect_set_loop_masks_directly): Same.
21080 (vect_set_loop_condition_masked): Same.
21081 (vect_set_loop_condition_unmasked): Same.
21082 (slpeel_duplicate_current_defs_from_edges): Same.
21083 (slpeel_add_loop_guard): Same.
21084 (slpeel_can_duplicate_loop_p): Same.
21085 (create_lcssa_for_virtual_phi): Same.
21086 (iv_phi_p): Same.
21087 (vect_update_ivs_after_vectorizer): Same.
21088 (vect_gen_vector_loop_niters_mult_vf): Same.
21089 (slpeel_update_phi_nodes_for_loops): Same.
21090 (slpeel_update_phi_nodes_for_guard1): Same.
21091 (find_guard_arg): Same.
21092 (slpeel_update_phi_nodes_for_guard2): Same.
21093 (slpeel_update_phi_nodes_for_lcssa): Same.
21094 (vect_do_peeling): Same.
21095 (vect_create_cond_for_alias_checks): Same.
21096 (vect_loop_versioning): Same.
21097 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21098 (vect_inner_phi_in_double_reduction_p): Same.
21099 (vect_analyze_scalar_cycles_1): Same.
21100 (vect_fixup_scalar_cycles_with_patterns): Same.
21101 (vect_get_loop_niters): Same.
21102 (bb_in_loop_p): Same.
21103 (vect_get_max_nscalars_per_iter): Same.
21104 (vect_verify_full_masking): Same.
21105 (vect_compute_single_scalar_iteration_cost): Same.
21106 (vect_analyze_loop_form_1): Same.
21107 (vect_analyze_loop_form): Same.
21108 (vect_active_double_reduction_p): Same.
21109 (vect_analyze_loop_operations): Same.
21110 (neutral_op_for_slp_reduction): Same.
21111 (vect_is_simple_reduction): Same.
21112 (vect_model_reduction_cost): Same.
21113 (get_initial_def_for_reduction): Same.
21114 (get_initial_defs_for_reduction): Same.
21115 (vect_create_epilog_for_reduction): Same.
21116 (vectorize_fold_left_reduction): Same.
21117 (vectorizable_reduction): Same.
21118 (vectorizable_induction): Same.
21119 (vectorizable_live_operation): Same.
21120 (loop_niters_no_overflow): Same.
21121 (vect_get_loop_mask): Same.
21122 (vect_transform_loop_stmt): Same.
21123 (vect_transform_loop): Same.
21124 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21125 (vect_determine_precisions): Same.
21126 (vect_pattern_recog_1): Same.
21127 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21128 * tree-vect-stmts.c (stmt_vectype): Same.
21129 (process_use): Same.
21130 (vect_init_vector_1): Same.
21131 (vect_truncate_gather_scatter_offset): Same.
21132 (get_group_load_store_type): Same.
21133 (vect_build_gather_load_calls): Same.
21134 (vect_get_strided_load_store_ops): Same.
21135 (vectorizable_simd_clone_call): Same.
21136 (vectorizable_store): Same.
21137 (permute_vec_elements): Same.
21138 (vectorizable_load): Same.
21139 (vect_transform_stmt): Same.
21140 (supportable_widening_operation): Same.
21141 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21142 (vec_info::free_stmt_vec_info): Same.
21143 (vect_free_loop_info_assumptions): Same.
21144 (vect_loop_vectorized_call): Same.
21145 (set_uid_loop_bbs): Same.
21146 (vectorize_loops): Same.
21147 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21148 * tree.c (add_tree_to_fld_list): Same.
21149 (fld_type_variant_equal_p): Same.
21150 (fld_decl_context): Same.
21151 (fld_incomplete_type_of): Same.
21152 (free_lang_data_in_binfo): Same.
21153 (need_assembler_name_p): Same.
21154 (find_decls_types_r): Same.
21155 (get_eh_types_for_runtime): Same.
21156 (find_decls_types_in_eh_region): Same.
21157 (find_decls_types_in_node): Same.
21158 (assign_assembler_name_if_needed): Same.
21159 * value-prof.c (stream_out_histogram_value): Same.
21160 * value-prof.h: Same.
21161 * var-tracking.c (use_narrower_mode): Same.
21162 (prepare_call_arguments): Same.
21163 (vt_expand_loc_callback): Same.
21164 (resolve_expansions_pending_recursion): Same.
21165 (vt_expand_loc): Same.
21166 * varasm.c (const_hash_1): Same.
21167 (compare_constant): Same.
21168 (tree_output_constant_def): Same.
21169 (simplify_subtraction): Same.
21170 (get_pool_constant): Same.
21171 (output_constant_pool_2): Same.
21172 (output_constant_pool_1): Same.
21173 (mark_constants_in_pattern): Same.
21174 (mark_constant_pool): Same.
21175 (get_section_anchor): Same.
21176 * vr-values.c (compare_range_with_value): Same.
21177 (vr_values::extract_range_from_phi_node): Same.
21178 * vr-values.h: Same.
21179 * web.c (unionfind_union): Same.
21180 * wide-int.h: Same.
21181
21182 2019-07-09 Martin Sebor <msebor@redhat.com>
21183
21184 PR c++/61339
21185 * align.h: Change class-key from class to struct and vice versa
21186 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21187 * alloc-pool.h: Same.
21188 * asan.c (shadow_mem_size): Same.
21189 * auto-profile.c: Same.
21190 * basic-block.h: Same.
21191 * bitmap.h: Same.
21192 * cfgexpand.c (set_rtl): Same.
21193 (expand_one_stack_var_at): Same.
21194 * cfghooks.h: Same.
21195 * cfgloop.h: Same.
21196 * cgraph.h: Same.
21197 * config/i386/i386.h: Same.
21198 * df-problems.c (df_print_bb_index): Same.
21199 * df-scan.c: Same.
21200 * df.h (df_single_use): Same.
21201 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21202 (layout::annotation_line_showed_range_p): Same.
21203 (get_printed_columns): Same.
21204 (correction::ensure_terminated): Same.
21205 (line_corrections::~line_corrections): Same.
21206 * dojump.h: Same.
21207 * dse.c: Same.
21208 * dump-context.h: Same.
21209 * dumpfile.h: Same.
21210 * dwarf2out.c: Same.
21211 * edit-context.c: Same.
21212 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21213 * flags.h: Same.
21214 * function.c (assign_stack_local): Same.
21215 * function.h: Same.
21216 * gcc.c: Same.
21217 * gcov.c (block_info::block_info): Same.
21218 * genattrtab.c: Same.
21219 * genextract.c: Same.
21220 * genmatch.c (comparison_code_p): Same.
21221 (id_base::id_base): Same.
21222 (decision_tree::print): Same.
21223 * genoutput.c: Same.
21224 * genpreds.c (write_one_predicate_function): Same.
21225 * genrecog.c (validate_pattern): Same.
21226 (find_operand_positions): Same.
21227 (optimize_subroutine_group): Same.
21228 (merge_pattern_transition::merge_pattern_transition): Same.
21229 (merge_pattern_info::merge_pattern_info): Same.
21230 (merge_state_result::merge_state_result): Same.
21231 (merge_into_state): Same.
21232 * gensupport.c: Same.
21233 * gensupport.h: Same.
21234 * ggc-common.c (init_ggc_heuristics): Same.
21235 * ggc-tests.c (test_union): Same.
21236 * gimple-loop-interchange.cc (dump_induction): Same.
21237 * gimple-loop-versioning.cc: Same.
21238 * gimple-match.h (gimple_match_cond::any_else): Same.
21239 * gimple-ssa-backprop.c: Same.
21240 * gimple-ssa-sprintf.c: Same.
21241 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21242 Same.
21243 (store_immediate_info::store_immediate_info): Same.
21244 (merged_store_group::apply_stores): Same.
21245 (get_location_for_stmts): Same.
21246 * gimple-ssa-strength-reduction.c: Same.
21247 * gimple-ssa-warn-alloca.c: Same.
21248 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21249 * godump.c (go_type_decl): Same.
21250 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21251 * hash-map.h: Same.
21252 * hash-set-tests.c (test_set_of_strings): Same.
21253 * hsa-brig.c: Same.
21254 * hsa-common.h: Same.
21255 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21256 * input.c (assert_loceq): Same.
21257 * input.h: Same.
21258 * ipa-cp.c: Same.
21259 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21260 * ipa-fnsummary.h: Same.
21261 * ipa-inline.h: Same.
21262 * ipa-prop.h: Same.
21263 * ipa-split.c (visit_bb): Same.
21264 * ira-int.h (minmax_set_iter_next): Same.
21265 * loop-invariant.c: Same.
21266 * loop-iv.c: Same.
21267 * lra-eliminations.c: Same.
21268 * lra-int.h: Same.
21269 * lra-lives.c (mark_regno_dead): Same.
21270 * lra-remat.c: Same.
21271 * lra-spills.c: Same.
21272 * lto-streamer.h: Same.
21273 * mem-stats.h: Same.
21274 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21275 * omp-low.c (omp_clause_aligned_alignment): Same.
21276 * optabs-query.h (get_vcond_eq_icode): Same.
21277 * optabs.h: Same.
21278 * opts.c (wrap_help): Same.
21279 * poly-int.h: Same.
21280 * predict.c (predict_paths_leading_to_edge): Same.
21281 * pretty-print.h: Same.
21282 * profile-count.h: Same.
21283 * read-md.h: Same.
21284 * read-rtl-function.c: Same.
21285 * ree.c: Same.
21286 * reginfo.c: Same.
21287 * regrename.c: Same.
21288 * regrename.h: Same.
21289 * reload.h: Same.
21290 * rtl-iter.h: Same.
21291 * rtl.h (costs_add_n_insns): Same.
21292 * sanopt.c: Same.
21293 * sched-int.h: Same.
21294 * sel-sched-ir.h: Same.
21295 * selftest.h: Same.
21296 * sese.h (vec_find): Same.
21297 * stmt.c: Same.
21298 * target-globals.h: Same.
21299 * tree-affine.c (aff_combination_find_elt): Same.
21300 * tree-affine.h: Same.
21301 * tree-data-ref.h: Same.
21302 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21303 * tree-predcom.c: Same.
21304 * tree-scalar-evolution.c (find_var_scev_info): Same.
21305 * tree-ssa-alias.h: Same.
21306 * tree-ssa-ccp.c: Same.
21307 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21308 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21309 (rewrite_mem_refs): Same.
21310 (execute_sm_if_changed): Same.
21311 (hoist_memory_references): Same.
21312 * tree-ssa-loop-ivopts.c (operator<=): Same.
21313 * tree-ssa-loop.h: Same.
21314 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21315 * tree-ssa-structalias.c: Same.
21316 * tree-switch-conversion.h (cluster::cluster): Same.
21317 (simple_cluster::simple_cluster): Same.
21318 * tree-vect-patterns.c (type_conversion_p): Same.
21319 * tree-vectorizer.c (dump_stmt_cost): Same.
21320 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21321 * tree.c (protected_set_expr_location): Same.
21322 * tree.h (desired_pro_or_demotion_p): Same.
21323 (fndecl_built_in_p): Same.
21324 * unique-ptr-tests.cc: Same.
21325 * var-tracking.c (delete_variable_part): Same.
21326 * varasm.c (assemble_real): Same.
21327 (tree_output_constant_def): Same.
21328 * vec.c: Same.
21329 * wide-int-bitmask.h: Same.
21330 * wide-int.h (decompose): Same.
21331
21332 2019-07-09 Richard Biener <rguenther@suse.de>
21333
21334 PR tree-optimization/91114
21335 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21336 find a vector type isn't fatal.
21337
21338 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21339
21340 * config/aarch64/aarch64-simd.md
21341 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21342 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21343 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21344 (*aarch64_crypto_aese_fused,
21345 *aarch64_crypto_aesd_fused): Update to new definition.
21346 * config/aarch64/aarch64.c
21347 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21348
21349 2019-07-09 Richard Biener <rguenther@suse.de>
21350
21351 * gimple-match.h (gimple_match_op::resimplify): New.
21352 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21353 gimple_resimplify4, gimple_resimplify5): Remove.
21354 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21355 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21356 Make static.
21357 (gimple_match_op::resimplify): New.
21358 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21359 according to availability. Use gimple_match_op::resimplify.
21360
21361 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21362
21363 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21364
21365 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21366
21367 * config/arm/crypto.md:
21368 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21369 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21370 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21371 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21372 * config/arm/arm.c
21373 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21374 * config/arm/aarch-common-protos.h
21375 (aarch_crypto_can_dual_issue): Remove.
21376 * config/arm/aarch-common.c
21377 (aarch_crypto_can_dual_issue): Likewise.
21378 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21379 * config/arm/cortex-a53.md: Likewise.
21380 * config/arm/cortex-a57.md: Likewise.
21381 * config/arm/iterators.md:
21382 (CRYPTO_BINARY): Redefine.
21383 (CRYPTO_UNARY): Removed.
21384 (CRYPTO_AES, CRYPTO_AESMC): New.
21385
21386 2019-07-09 Richard Biener <rguenther@suse.de>
21387
21388 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21389 (vn_reference_lookup_3): If the main ref has no access path recorded
21390 but orig_ref has use it to do access-path based disambiguation.
21391 (vn_reference_lookup_pieces): Adjust.
21392 (vn_reference_lookup): Pass down original ref if we valueized.
21393
21394 2019-07-09 Martin Liska <mliska@suse.cz>
21395
21396 * doc/extend.texi: Document influence on loop
21397 optimizers.
21398
21399 2019-07-09 Martin Liska <mliska@suse.cz>
21400
21401 * lto-compress.c (lto_normalized_zstd_level): Do not use
21402 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21403 of libzstd. One can use 0 as a default compression level.
21404
21405 2019-07-09 Martin Liska <mliska@suse.cz>
21406
21407 * doc/invoke.texi: Add link from -fprofile-dir option.
21408 Use better wording for 'gcno filename'.
21409
21410 2019-07-08 Martin Sebor <msebor@redhat.com>
21411
21412 PR middle-end/71924
21413 PR middle-end/90549
21414 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21415 comment.
21416 (args_loc_t): New type.
21417 (args_loc_t, locmap_t): same.
21418 (diag_returned_locals): New function.
21419 (is_addr_local): Same.
21420 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21421 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21422 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21423
21424 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21425
21426 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21427 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21428 and casts in offset when different, both through gimple stmts
21429 and through trees. Rewritten using loops to minimize code duplication
21430 for each operand.
21431
21432 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21433
21434 * emit-rtl.c (set_insn_locations): New function moved from...
21435 * function.c (set_insn_locations): ...here.
21436 * ira-emit.c (emit_moves): Propagate location of the first instruction
21437 to the inserted move instructions.
21438 * reg-stack.c (compensate_edge): Set the location if the sequence is
21439 inserted on the edge.
21440 * rtl.h (set_insn_locations): Declare.
21441
21442 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21443
21444 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21445 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21446 .machine string.
21447
21448 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21449
21450 PR rtl-optimization/88233
21451 * common.opt (fsplit-wide-types-early): New option.
21452 * common/config/rs6000/rs6000-common.c
21453 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21454 OPT_LEVELS_ALL.
21455 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21456 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21457 flag_split_wide_types_early.
21458 (pass_data_lower_subreg3): New.
21459 (pass_lower_subreg3): New.
21460 (make_pass_lower_subreg3): New.
21461 * passes.def (pass_lower_subreg2): Move after the loop passes.
21462 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21463 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21464 the pass pipeline; its previous place is taken by ...
21465 (make_pass_lower_subreg3): ... this.
21466
21467 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21468
21469 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21470 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21471
21472 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21473
21474 * config/s390/constraints.md: Add new jsc constraint.
21475 * config/s390/predicates.md: New predicates.
21476 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21477 * config/s390/s390.c (s390_valid_shift_count): New function.
21478 (print_shift_count_operand): Use s390_valid_shift_count.
21479 (print_operand): Likewise.
21480 * config/s390/s390.md: Use new predicate.
21481 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21482 * config/s390/vector.md: Use new predicate.
21483
21484 2019-07-08 Andrew Waterman <andrew@sifive.com>
21485 Jim Wilson <jimw@sifive.com>
21486
21487 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21488 bitsize instead of BITS_PER_WORD.
21489
21490 2019-07-08 Martin Liska <mliska@suse.cz>
21491
21492 * collect2.c (defined): Revert to before r254460.
21493 (scan_prog_file): Revert to before r254460.
21494
21495 2019-07-08 Richard Biener <rguenther@suse.de>
21496
21497 PR tree-optimization/83518
21498 * tree-ssa-sccvn.c: Include splay-tree.h.
21499 (struct pd_range, struct pd_data): New.
21500 (struct vn_walk_cb_data): Add data to track partial definitions.
21501 (vn_walk_cb_data::~vn_walk_cb_data): New.
21502 (vn_walk_cb_data::push_partial_def): New.
21503 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21504 (vn_reference_lookup_2): When partial defs are registered give up.
21505 (vn_reference_lookup_3): Track partial defs for memset and
21506 constructor zeroing and for defs from constants.
21507
21508 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21509
21510 * doc/install.texi (bootstrap-Og): Document.
21511
21512 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21513
21514 * config/riscv/pic.md (*local_pic_load_s<mode>)
21515 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21516 referenced by <mode>, giving...
21517 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21518 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21519 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21520 use <X:MODE> for the mode attribute.
21521
21522 2019-07-07 Jeff Law <law@redhat.com>
21523
21524 PR tree-optimization/91090
21525 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21526 in handling of ranges to simplify switch statements.
21527
21528 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21529
21530 * config/darwin.c (darwin_override_options): Make a final check on PIC
21531 options.
21532
21533 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21534
21535 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21536 on for kernel code.
21537
21538 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21539
21540 PR target/91068
21541 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21542 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21543 instead of matching them to "l" output operands.
21544
21545 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21546
21547 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21548 and check whether addr.reg is nonnull before using it.
21549
21550 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21551
21552 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21553 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21554 variable(s). For conditional lastprivate look through outer
21555 GIMPLE_OMP_SCAN context.
21556 (lower_omp_1): For conditional lastprivate look through outer
21557 GIMPLE_OMP_SCAN context.
21558
21559 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21560 member to combined_into_simd_safelen1.
21561 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21562 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21563 clauses if ctx->combined_into_simd_safelen1 put statements after the
21564 predicate conditionalized block rather than into it.
21565
21566 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21567
21568 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21569 operand 1.
21570 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21571 Make the choice of <mode> explicit, giving...
21572 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21573
21574 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21575
21576 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21577 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21578 of .md attributes.
21579 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21580 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21581 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21582 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21583 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21584 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21585 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21586 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21587 (*avx512f_scatterdi<mode>): Likewise.
21588 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21589
21590 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21591
21592 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21593 specify the mode iterator referenced by <mode>, giving...
21594 (*push1_h8300hs_<QHI:mode>): ...this.
21595
21596 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21597
21598 * config/gcn/gcn-valu.md
21599 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21600 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21601 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21602 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21603 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21604 but using the _exec comparison patterns.
21605 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21606 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21607 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21608 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21609 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21610 but using the _exec comparison patterns.
21611
21612 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21613
21614 * config/arm/sync.md
21615 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21616 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21617 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21618 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21619 <SIDI:cas_cmp_str>.
21620
21621 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21622
21623 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21624 (maybe_lookup_ctx): Add forward declaration.
21625 (omp_find_scan): Likewise. Walk into body of simd if composited
21626 with worksharing loop.
21627 (scan_omp_simd_scan): New function.
21628 (scan_omp_1_stmt): Call it.
21629 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21630 ctx->for_simd_scan_phase.
21631 (lower_rec_input_clauses): Do much less work for inscan reductions
21632 in ctx->for_simd_scan_phase is_simd regions.
21633 (lower_omp_scan): Set is_simd also on simd constructs composited
21634 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21635 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21636 emit their body after in simd constructs composited with worksharing
21637 loop.
21638 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21639
21640 * omp-low.c (omp_find_scan): Make static.
21641 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21642 the second loop, var2 represents the first partial sum and so needs
21643 to go before rprivb[ivar].
21644
21645 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21646
21647 * config/rs6000/rs6000-logue.c: Remove unused code.
21648
21649 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21650
21651 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21652
21653 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21654
21655 PR target/90712
21656 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21657 check with a frame laid out check.
21658
21659 2019-07-05 Richard Biener <rguenther@suse.de>
21660
21661 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21662 when comparing against a store with possibly the same value.
21663
21664 2019-07-05 Richard Biener <rguenther@suse.de>
21665
21666 PR tree-optimization/91091
21667 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21668 (walk_non_aliased_vuses): Likewise.
21669 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21670 (get_continuation_for_phi): New tbaa_p parameter and pass
21671 it down.
21672 (walk_non_aliased_vuses): Likewise.
21673 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21674 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21675 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21676 Likewise.
21677 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21678 (adjust_offsets_for_equal_base_address): New function.
21679 (vn_reference_lookup_3): Use it to catch more base equivalences.
21680 Handle and pass down tbaa_p flag.
21681 (vn_reference_lookup_pieces): Adjust.
21682 (vn_reference_lookup): Remove alias-set altering, instead pass
21683 down false as tbaa_p.
21684
21685 2019-07-05 Richard Biener <rguenther@suse.de>
21686
21687 PR tree-optimization/91091
21688 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21689 accesses can happen with -fno-strict-aliasing.
21690
21691 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21692
21693 * tree-ssa-alias.c (alias_stats): Add
21694 nonoverlapping_component_refs_since_match_p_must_overlap.
21695 (dump_alias_stats): Print it.
21696 (nonoverlapping_component_refs_since_match_p): Add early exit.
21697 (nonoverlapping_component_refs_p): Do not account early exit.
21698
21699 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21700
21701 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21702 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21703 (emit_eh_dispatch): Delete.
21704 (lower_catch): Emit the eh_dispatch manually and set the location of
21705 the first catch statement onto it.
21706 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21707 (lower_eh_dispatch): Propagate location.
21708 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21709 (eliminate_build): Likewise.
21710
21711 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21712
21713 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21714 phi nodes if possible.
21715 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21716 location info on the newly created statement.
21717 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21718 newly created increment if needed.
21719
21720 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21721
21722 PR middle-end/78884
21723 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21724 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21725 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21726 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21727 ctx->add_safelen1 is set.
21728
21729 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21730 GOMP_loop_start at the start of second worksharing loop in a scan.
21731 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21732 worksharing loop in a scan even if there are conditional lastprivates,
21733 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21734
21735 2019-07-04 Jan Hubicka <jh@suse.cz>
21736
21737 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21738 Fix check for match in the ref walk.
21739
21740 2019-07-04 Martin Liska <mliska@suse.cz>
21741
21742 * tree-ssa-loop-niter.c
21743 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21744 (estimate_numbers_of_iterations):
21745 Support __builtin_expect_with_probability for analysis
21746 of # of loop iterations.
21747
21748 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21749
21750 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21751 * except.c: Likewise.
21752 * expr.c (expand_expr_real_1): Reject it.
21753 * gimplify.c (gimplify_expr): Gimplify it, within
21754 TRY_FINALLY_EXPR.
21755 * tree-dump.c (dequeue_and_dump): Dump it.
21756 * tree-pretty-print.c (dump_generic_node): Likewise.
21757 * tree.c (block_may_fallthru): Handle it.
21758 * tree.def (EH_ELSE_EXPR): Introduce it.
21759 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21760 with GIMPLE_EH_ELSE as try/finally/else.
21761
21762 2019-07-04 Richard Biener <rguenther@suse.de>
21763
21764 PR ipa/91062
21765 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21766 parameter whether to disable GC collection.
21767 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21768 honor it.
21769 (execute_all_ipa_transforms): Likewise and pass it down.
21770 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21771 collection from applying IPA transforms.
21772 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21773 from applying IPA transforms.
21774
21775 2019-07-04 Richard Biener <rguenther@suse.de>
21776
21777 PR tree-optimization/90911
21778 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21779 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21780 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21781 scalar_loop_scaling.
21782 (vect_transform_loop): Scale scalar loop profile if needed.
21783 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21784 the loop copy from if-conversion adjust edge probabilities
21785 and scale the vectorized loop body profile, queue the scalar
21786 profile for updating after peeling.
21787
21788 2019-07-04 Jan Hubicka <jh@suse.cz>
21789
21790 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21791 parameters; return early for must-alias.
21792 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21793 outer types match, try nonoverlapping_component_refs
21794 if must-alias is not obvious.
21795 (indirect_refs_may_alias_p): Likewise.
21796 (refs_may_alias_p_2): Likewise.
21797
21798 2019-07-04 Richard Biener <rguenther@suse.de>
21799
21800 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21801 argument.
21802 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21803 globals into...
21804 (struct vn_walk_cb_data): New callback data struct.
21805 (vn_reference_lookup_2): Adjust.
21806 (vn_reference_lookup_3): Likewise.
21807 (vn_reference_lookup_pieces): Likewise.
21808 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21809 (visit_reference_op_load): Adjust.
21810
21811 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21812
21813 PR tree-optimization/91063
21814 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21815 stmt from stmts sequence before calling vect_init_vector_1.
21816 Formatting fix.
21817
21818 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21819
21820 PR target/88833
21821 * fwprop.c (reg_single_def_p): New function.
21822 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21823 (forward_propagate_into): New parameter reg_prop_only
21824 with default value false.
21825 Propagate def's src into loop only if SET_SRC and SET_DEST
21826 of def_set have single definitions.
21827 Likewise if reg_prop_only is set to true.
21828 (fwprop): New param fwprop_addr_p.
21829 Integrate fwprop_addr into fwprop.
21830 (fwprop_addr): Remove.
21831 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21832 to true.
21833 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21834 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21835 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21836
21837 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21838
21839 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21840 in worksharing loop scans.
21841
21842 PR tree-optimization/91074
21843 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21844 temporary.
21845
21846 PR rtl-optimization/90756
21847 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21848 for VECTOR_TYPE_P.
21849
21850 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21851
21852 * config/aarch64/aarch64.md: Remove redundant constraints from
21853 define_expand but keep some patterns untouched if they are
21854 specially selected by TARGET_SECONDARY_RELOAD hook.
21855 * config/aarch64/aarch64-sve.md: Likewise.
21856 * config/aarch64/atomics.md: Remove redundant constraints from
21857 define_expand.
21858 * config/aarch64/aarch64-simd.md: Likewise.
21859
21860 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21861
21862 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21863 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21864 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21865 clauses.
21866 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21867 DARWIN_NOPIE_SPEC.
21868
21869 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21870
21871 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21872 (STARTFILE_SPEC): Split crt3 into a separate spec.
21873 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21874 (DARWIN_CRT2_SPEC): New.
21875 (DARWIN_CRT3_SPEC): New.
21876 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21877 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21878 (DARWIN_CRT3_SPEC): New.
21879
21880 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21881
21882 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21883 Change the RTL attribute "length" from "4" to "*" to allow the
21884 length attribute to be adjusted automatically for prefixed load,
21885 store, and add immediate instructions.
21886 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21887 Likewise.
21888 (extendsi<mode>2, EXTSI iterator): Likewise.
21889 (movsi_internal1): Likewise.
21890 (movsi_from_sf): Likewise.
21891 (movdi_from_sf_zero_ext): Likewise.
21892 (mov<mode>_internal): Likewise.
21893 (movcc_internal1, QHI iterator): Likewise.
21894 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21895 (movsf_from_si): Likewise.
21896 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21897 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21898 (mov<mode>, FMOVE128 iterator): Likewise.
21899 (movdi_internal64): Likewise.
21900 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21901 Likewise.
21902 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21903 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21904 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21905 (vsx_splat_v4sf): Likewise.
21906
21907 2019-07-03 Mark Wielaard <mark@klomp.org>
21908
21909 PR debug/90981
21910 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21911 DW_AT_addr_base if there is actually a .debug_addr section with
21912 addresses.
21913 (output_addr_table): Add DWARF5 table header generation here after
21914 checking there are actually any addresses from...
21915 (dwarf2out_finish): ...here.
21916
21917 2019-07-03 Richard Biener <rguenther@suse.de>
21918
21919 PR middle-end/91069
21920 * match.pd (vec_perm -> bit_insert): Fix element read from
21921 first vector.
21922
21923 2019-07-03 Martin Liska <mliska@suse.cz>
21924
21925 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21926 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21927 condition.
21928 * generic-match-head.c: Include dbgcnt.h.
21929 * gimple-match-head.c: Likewise.
21930
21931 2019-07-03 Martin Liska <mliska@suse.cz>
21932
21933 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21934 (GCOV_COUNTER_V_TOPN): New.
21935 (GCOV_COUNTER_V_INDIR): Use _topn.
21936 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21937 (GCOV_TOPN_VALUES): New.
21938 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21939 (GCOV_TOPN_VALUES_COUNTERS): New.
21940 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21941 * tree-profile.c:
21942 (gimple_init_gcov_profiler): Rename variables from one_value
21943 to topn_values.
21944 (gimple_gen_one_value_profiler): Remove.
21945 (gimple_gen_topn_values_profiler): New function.
21946 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21947 names instead of SINGLE_VALUE.
21948 (stream_out_histogram_value): Likewise.
21949 (stream_in_histogram_value): Likewise.
21950 (get_most_common_single_value): Likewise.
21951 (gimple_divmod_fixed_value_transform): Likewise.
21952 (gimple_stringops_transform): Likewise.
21953 (gimple_divmod_values_to_profile): Likewise.
21954 (gimple_stringops_values_to_profile): Likewise.
21955 (gimple_find_values_to_profile): Likewise.
21956 * value-prof.h (enum hist_type): Rename to TOPN.
21957 (gimple_gen_one_value_profiler): Remove.
21958 (gimple_gen_topn_values_profiler): New.
21959
21960 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21961
21962 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21963 if it has the DW_AT_data_member_location attribute.
21964
21965 2019-07-03 Richard Biener <rguenther@suse.de>
21966
21967 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21968 dumping.
21969
21970 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21971
21972 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21973 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21974 (tlsdesc_small_sve_<mode>): Likewise.
21975
21976 2019-07-03 Martin Liska <mliska@suse.cz>
21977
21978 * Makefile.in: Define ZSTD_LIB.
21979 * common.opt: Adjust compression level
21980 to support also zstd levels.
21981 * config.in: Regenerate.
21982 * configure: Likewise.
21983 * configure.ac: Add --with-zstd and --with-zstd-include options
21984 and detect ZSTD.
21985 * doc/install.texi: Mention zstd dependency.
21986 * gcc.c: Print supported LTO compression algorithms.
21987 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21988 (lto_compression_zstd): Likewise.
21989 (lto_uncompression_zstd): Likewise.
21990 (lto_end_compression): Dispatch in between zlib and zstd.
21991 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21992 (lto_uncompression_zlib): Make it static.
21993 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21994 * lto-section-in.c (lto_get_section_data): Pass info
21995 about used compression.
21996 * lto-streamer-out.c: By default use zstd when possible.
21997 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21998 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21999
22000 2019-07-03 Martin Liska <mliska@suse.cz>
22001
22002 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22003 * lto-section-out.c (lto_destroy_simple_output_block): Never
22004 compress LTO_section_lto section.
22005 * lto-streamer-out.c (produce_asm): Do not set major_version
22006 and minor_version.
22007 (lto_output_toplevel_asms): Likewise.
22008 (produce_lto_section): New function.
22009 (lto_output): Call produce_lto_section.
22010 (lto_write_mode_table): Do not set major_version and
22011 minor_version.
22012 (produce_asm_for_decls): Likewise.
22013 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22014 type.
22015 (struct lto_header): Remove.
22016 (struct lto_section): New struct.
22017 (struct lto_simple_header): Do not inherit from lto_header.
22018 (struct lto_file_decl_data): Add lto_section_header field.
22019
22020 2019-07-03 Martin Liska <mliska@suse.cz>
22021
22022 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22023 dead assignemts.
22024 * reg-stack.c (check_asm_stack_operands): Likewise.
22025 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22026 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22027 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22028 force_expand_binop.
22029
22030 2019-07-03 Martin Liska <mliska@suse.cz>
22031
22032 PR tree-optimization/90892
22033 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22034 in string constants.
22035
22036 2019-07-03 Martin Liska <mliska@suse.cz>
22037
22038 PR middle-end/90899
22039 * multiple_target.c (create_dispatcher_calls): Add to comdat
22040 group only if set for ifunc.
22041
22042 2019-07-03 Martin Liska <mliska@suse.cz>
22043
22044 PR target/88056
22045 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22046 Define local_object_name in outer scope in order to handle
22047 use-after-scope issue.
22048
22049 2019-07-03 Martin Liska <mliska@suse.cz>
22050
22051 * common.opt: Add fprofile-note.
22052 * coverage.c (coverage_init): Append the option
22053 to bbg_file_name.
22054 * doc/invoke.texi: Document -fprofile-note.
22055
22056 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22057
22058 PR tree-optimization/91033
22059 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22060 vect_analyze_data_refs): Add bool * arguments.
22061 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22062 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22063 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22064 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22065 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22066 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22067 vect_analyze_data_refs caller.
22068
22069 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22070 clause.
22071 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22072 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22073 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22074 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22075 OMP_CLAUSE__SCANTEMP_ entry.
22076 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22077 * tree-pretty-print.c (dump_omp_clause): Likewise.
22078 * tree-nested.c (convert_nonlocal_omp_clauses,
22079 convert_local_omp_clauses): Likewise.
22080 * omp-general.h (struct omp_for_data): Add have_scantemp and
22081 have_nonctrl_scantemp members.
22082 * omp-general.c (omp_extract_for_data): Initialize them.
22083 * omp-low.c (struct omp_context): Add scan_exclusive member.
22084 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22085 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22086 ctx->scan_exclusive.
22087 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22088 of !ctx->scan_inclusive.
22089 (lower_rec_input_clauses): Simplify gimplification of dtors using
22090 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22091 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22092 loops. Don't add barrier for reduction_omp_orig_ref if
22093 ctx->scan_??xclusive.
22094 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22095 (lower_omp_scan): Use ctx->scan_exclusive instead
22096 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22097 reductions. Use new_vard != new_var instead of repeated
22098 omp_is_reference calls.
22099 (omp_find_scan, lower_omp_for_scan): New functions.
22100 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22101 inscan reductions.
22102 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22103 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22104 and fd->have_scantemp.
22105
22106 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22107 on worksharing loop propagate it as shared clause to containing
22108 combined parallel.
22109
22110 * omp-expand.c (expand_omp_for_static_nochunk,
22111 expand_omp_for_static_chunk): For nowait worksharing loop with
22112 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22113 at the end.
22114
22115 2019-07-02 qing zhao <qing.zhao@oracle.com>
22116
22117 PR preprocessor/90581
22118 * doc/cppopts.texi: Add document for -fmax-include-depth.
22119 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22120
22121 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22122
22123 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22124 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22125 (mmx_packssdw): Ditto.
22126 (mmx_punpckhbw): Ditto.
22127 (mmx_punpcklbw): Ditto.
22128 (mmx_punpckhwd): Ditto.
22129 (mmx_punpcklwd): Ditto.
22130 (mmx_punpckhdq): Ditto.
22131 (mmx_punpckldq): Ditto.
22132 (*vec_dupv4hi): Ditto.
22133 (*vec_dupv2si): Ditto.
22134 (mmx_pmovmskb): Ditto.
22135 * config/i386/sse.md (sse_cvtpi2ps): Use
22136 TARGET_SSE2 && SSE_REG_P in split condition.
22137 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22138 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22139 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22140 (ssse3_pshufbv8qi3): Ditto.
22141 (ssse3_palignrdi): Ditto.
22142
22143 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22144
22145 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22146 with inlined save and restore.
22147
22148 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22149
22150 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22151 to be inserted on single successor edge of the entry block. Then call
22152 commit_edge_insertions instead of inserting the instructions manually.
22153 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22154 RTL expansion and rebuild jump labels chain.
22155
22156 2019-07-02 Richard Biener <rguenther@suse.de>
22157
22158 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22159 TI_CHREC_KNOWN.
22160 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22161 Define here.
22162 * tree.c (build_common_tree_nodes): Initialize them.
22163 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22164 Make declarations comments.
22165 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22166 chrec_known): Remove definitions.
22167 (initialize_scalar_evolutions_analyzer): Remove.
22168 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22169 * tree-streamer.c (preload_common_nodes): Do not preload
22170 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22171
22172 2019-07-02 Jan Hubicka <jh@suse.cz>
22173
22174 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22175 sanity check.
22176
22177 2019-07-02 Jan Hubicka <jh@suse.cz>
22178
22179 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22180 to ..
22181 (nonoverlapping_component_refs_since_match_p): ... this one;
22182 handle also non-decl bases; return -1 if search gave up.
22183 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22184 nonoverlapping_component_refs_of_decl_p_no_alias to
22185 nonoverlapping_component_refs_since_match_p_may_alias,
22186 nonoverlapping_component_refs_since_match_p_no_alias.
22187 (dump_alias_stats): Update dumping.
22188 (aliasing_matching_component_refs_p): Break out from ...;
22189 dispatch to nonoverlapping_component_refs_for_decl_p
22190 and nonoverlapping_component_refs_since_match_p.
22191 (aliasing_component_refs_p): ... here; call
22192 nonoverlapping_component_refs_p in scenarios where we can not
22193 precisely determine base match.
22194 (decl_refs_may_alias_p): Use
22195 nonoverlapping_component_refs_since_match_p.
22196 (indirect_ref_may_alias_decl_p): Do not call
22197 nonoverlapping_component_refs_p.
22198 (indirect_refs_may_alias_p): Likewise.
22199
22200 2019-07-02 Jan Hubicka <jh@suse.cz>
22201
22202 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22203 to clobber of return value.
22204
22205 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22206
22207 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22208 for is_neon_type instructions that have not already been categorized.
22209
22210 2019-07-02 Richard Biener <rguenther@suse.de>
22211
22212 PR tree-optimization/58483
22213 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22214 for MEM_REF base hashing.
22215 (equal_mem_array_ref_p): Likewise for base comparison.
22216
22217 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22218
22219 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22220 parameterized name.
22221 (signbit<mode>2): Use that name. Simplify.
22222
22223 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22224
22225 PR middle-end/66726
22226 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22227 Tune heuristic from PR71016 to allow MIN / MAX.
22228
22229 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22230
22231 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22232 parameterized name.
22233 (abs<mode>2): Use that name. Simplify.
22234
22235 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22236
22237 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22238 parameterized name.
22239 (neg<mode>2): Use that name. Simplify.
22240
22241 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22242
22243 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22244 name.
22245 (abs<mode>2): Use that name. Simplify.
22246
22247 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22248
22249 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22250 name.
22251 (neg<mode>2): Use that name. Simplify.
22252
22253 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22254
22255 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22256 ("enabled" attribute): Handle sse_noavx isa attribute.
22257 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22258 Use TARGET_SSE && SSE_REGNO_P in split condition.
22259 (*vec_dupv2sf): Ditto.
22260
22261 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22262
22263 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22264 name.
22265 (floatsi<mode>2): Use that name. Simplify.
22266
22267 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22268
22269 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22270 parameterized name.
22271 (extenddf<mode>2_vsx): Make this a parameterized name.
22272 (extenddf<mode>2): Use those names. Simplify.
22273
22274 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22275
22276 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22277 name.
22278 (eh_return): Use that name. Simplify.
22279
22280 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22281
22282 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22283 (doloop_end): Use that name. Simplify.
22284
22285 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22286
22287 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22288 parameterized name.
22289 (indirect_jump): Use that name. Simplify.
22290
22291 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22292
22293 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22294 parameterized name.
22295 (abs<mode>2): Use that name. Simplify.
22296
22297 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22298
22299 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22300 parameterized name.
22301 (fix_trunc<mode>si2): Use that name. Simplify.
22302
22303 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22304
22305 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22306 (allocate_stack): Use that name. Simplify.
22307
22308 2019-07-01 Martin Sebor <msebor@redhat.com>
22309
22310 PR middle-end/90923
22311 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22312 (hash_map::get_or_insert): Same. Reformat comment.
22313 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22314 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22315 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22316 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22317 (hash_table::hash_table (const hash_table&)): Use copy ctor
22318 instead of assignment to copy elements.
22319
22320 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22321 John David Anglin <danglin@gcc.gnu.org>
22322
22323 PR target/90963
22324 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22325 using saved frame pointer.
22326
22327 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22328
22329 PR middle-end/64242
22330 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22331 Add frame clobber and schedule blockage.
22332
22333 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22334
22335 * doc/invoke.texi (Link Options): Further editorial changes to
22336 -flinker-output docs.
22337
22338 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22339
22340 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22341 Load both operands of a PLUS into registers separately.
22342
22343 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22344
22345 * config/s390/vector.md: Fix shift count operand printing.
22346
22347 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22348
22349 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22350
22351 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22352
22353 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22354 Use recog_data to test for an output operand.
22355
22356 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22357
22358 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22359 exclude any others that are disparaged or that are bound to need
22360 a reload or spill.
22361 (ira_get_dup_out_num): Expand comment.
22362
22363 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22364
22365 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22366 constraint string for each operand/alternative combo. Only handle
22367 '%' at the start of constraint strings, and look for it outside
22368 the main loop.
22369
22370 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22371
22372 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22373 alternative_mask instead of HARD_REG_SET to represent a
22374 bitmask of alternatives.
22375 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22376 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22377
22378 2019-07-01 Martin Liska <mliska@suse.cz>
22379
22380 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22381 use () for a constructor call.
22382 (test_applying_fixits_line_out_of_range): Likewise.
22383 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22384 argument.
22385 (free_page): Likewise.
22386
22387 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22388
22389 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22390 parameter names to match usage (no functional change).
22391 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22392
22393 2019-07-01 Richard Biener <rguenther@suse.de>
22394
22395 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22396 pass parameter.
22397 (pass_fre::execute): Honor it.
22398 * passes.def: Adjust pass_fre invocations to allow iterating,
22399 add non-iterating pass_fre before late threading/dom.
22400
22401 2019-07-01 Richard Biener <rguenther@suse.de>
22402
22403 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22404 TARGET_MEM_REF handling to also handle address-taken ones.
22405
22406 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22407
22408 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22409 hardware attributes): Document avx512vp2intersect.
22410
22411 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22412
22413 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22414 (abs<mode>2): New expander.
22415 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22416 Use CODE_FOR_ssse3_absv8qi2.
22417 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22418 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22419
22420 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22421
22422 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22423 to sse, sse_noavx and avx. Update all uses.
22424
22425 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22426
22427 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22428 (*mmx_<plusminus_insn><mode>3): Ditto.
22429 (*mmx_mulv4hi3"): Ditto.
22430 (*mmx_smulv4hi3_highpart): Ditto.
22431 (*mmx_umulv4hi3_highpart): Ditto.
22432 (*mmx_pmaddwd): Ditto.
22433 (*sse2_umulv1siv1di3): Ditto.
22434 (*mmx_<code>v4hi3): Ditto.
22435 (*mmx_<code>v8qi3): Ditto.
22436 (mmx_ashr<mode>3): Ditto.
22437 ("mmx_<shift_insn><mode>3): Ditto.
22438 (*mmx_eq<mode>3): Ditto.
22439 (mmx_gt<mode>3): Ditto.
22440 (mmx_andnot<mode>3): Ditto.
22441 (*mmx_<code><mode>3): Ditto.
22442 (*mmx_pinsrw): Ditto.
22443 (*mmx_pextrw): Ditto.
22444 (mmx_pshufw_1): Ditto.
22445 (*mmx_uavgv8qi3): Ditto.
22446 (*mmx_uavgv4hi3): Ditto.
22447 ("mmx_psadbw): Ditto.
22448 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22449 (sse_cvttps2pi): Ditto.
22450 (ssse3_pmaddubsw): Ditto.
22451 (*ssse3_pmulhrswv4hi3): Ditto.
22452 (ssse3_psign<mode>3): Ditto.
22453
22454 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22455
22456 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22457 adjustment for bit-fields to all aggregate types.
22458
22459 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22460
22461 * config/rs6000/predicates.md (pcrel_address): Use
22462 SYMBOL_REF_LOCAL_P to determine if a label is local.
22463 (pcrel_external_address): New predicate.
22464 (non_prefixed_mem_operand): Delete, predicate not used.
22465 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22466 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22467 addressing.
22468 (SYMBOL_REF_PCREL_P): Likewise.
22469
22470 PR target/91009
22471 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22472 alternative.
22473 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22474 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22475 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22476
22477 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22478
22479 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22480 override on extra_headers.
22481
22482 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22483
22484 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22485 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22486 from warning.
22487 (darwin_driver_init): Likewise.
22488
22489 2019-06-28 Jan Beulich <jbeulich@suse.com>
22490
22491 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22492 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22493 Eliminate redundant alternative.
22494
22495 2019-06-28 Jan Beulich <jbeulich@suse.com>
22496
22497 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22498 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22499 Use vector_operand.
22500
22501 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22502
22503 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22504 having a lower cost regardless of the speed option.
22505
22506 2019-06-28 Jan Beulich <jbeulich@suse.com>
22507
22508 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22509 vector_operand plus, on both alternatives, "Bm" constraint.
22510
22511 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22512
22513 * config/arm/arm.md: Remove redundant constraints from
22514 define_expand but leave reload_inm and reload_outm patterns
22515 untouched since they need special constraints to work.
22516 * config/arm/arm-fixed.md: Remove redundant constraints from
22517 define_expand.
22518 * config/arm/iwmmxt.md: Likewise.
22519 * config/arm/neon.md: Likewise.
22520 * config/arm/sync.md: Likewise.
22521 * config/arm/thumb1.md: Likewise.
22522 * config/arm/vec-common.md: Likewise.
22523
22524 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22525
22526 * doc/install.texi: Document --disable-tm-clone-registry.
22527
22528 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22529
22530 PR c++/91024
22531 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22532 statements.
22533
22534 PR tree-optimization/91010
22535 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22536 return true. Otherwise, don't call operand_equal_p if offset1 or
22537 offset2 is NULL and just return false.
22538
22539 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22540
22541 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22542 user-specified float mode choice for kernel mode code.
22543
22544 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22545
22546 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22547 spec.
22548
22549 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22550
22551 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22552 use longcall for 64b code.
22553
22554 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22555
22556 * builtins.c (get_memory_rtx): Fix comment.
22557 * optabs.def (movmem_optab): Change to cpymem_optab.
22558 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22559 (emit_block_move_hints): Change movmem to cpymem.
22560 * defaults.h: Change movmem to cpymem.
22561 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22562 (default_use_by_pieces_infrastructure_p): Ditto.
22563 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22564 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22565 to cpymem.
22566 * config/aarch64/aarch64.h: Change movmem to cpymem.
22567 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22568 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22569 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22570 movmem to cpymem.
22571 * config/arc/arc-protos.h: Change movmem to cpymem.
22572 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22573 * config/arc/arc.h: Change movmem to cpymem in comment.
22574 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22575 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22576 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22577 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22578 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22579 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22580 * config/avr/avr-protos.h: Change movmem to cpymem.
22581 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22582 avr_out_movmem): Change movmem to cpymem.
22583 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22584 Change movmem to cpymem.
22585 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22586 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22587 Change movmem to cpymem.
22588 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22589 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22590 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22591 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22592 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22593 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22594 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22595 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22596 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22597 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22598 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22599 expand_small_cpymem_or_setmem,
22600 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22601 expand_set_or_cpymem_constant_prologue,
22602 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22603 * config/i386/i386-protos.h: Change movmem to cpymem.
22604 * config/i386/i386.h: Change movmem to cpymem in comment.
22605 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22606 (setmem<mode>): Change expansion function name.
22607 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22608 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22609 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22610 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22611 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22612 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22613 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22614 to cpymem.
22615 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22616 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22617 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22618 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22619 Change movmem to cpymem.
22620 * config/mips/mips.h: Change movmem to cpymem.
22621 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22622 * config/nds32/nds32-memory-manipulation.c
22623 (nds32_expand_movmemsi_loop_unknown_size,
22624 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22625 nds32_expand_movmemsi_unroll,
22626 nds32_expand_movmemsi): Change movmem to cpymem.
22627 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22628 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22629 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22630 (pa_adjust_insn_length): Change call to compute_movmem_length.
22631 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22632 movmemdi, movmemdi_prereload,
22633 movmemdi_postreload): Change movmem to cpymem.
22634 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22635 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22636 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22637 * config/riscv/riscv.h: Change movmem to cpymem.
22638 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22639 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22640 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22641 movmem to cpymem.
22642 * config/s390/s390-protos.h: Change movmem to cpymem.
22643 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22644 s390_expand_insv): Change movmem to cpymem.
22645 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22646 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22647 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22648 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22649 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22650 for nonexistent function.
22651 * config/vax/vax.h: Change movmem to cpymem in comment.
22652 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22653 * config/visium/visium.h: Change movmem to cpymem in comment.
22654 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22655 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22656 * doc/md.texi: Change movmem to cpymem and update description to match.
22657 * doc/rtl.texi: Change movmem to cpymem.
22658 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22659 * doc/tm.texi: Regenerate.
22660
22661 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22662
22663 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22664 -fvariable-expansion-in-unroller by default.
22665 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22666 default for Power.
22667
22668 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22669
22670 Revert
22671 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22672 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22673
22674 * config.gcc(rs6000-*-*): Define target_gtfiles.
22675
22676 2019-06-27 Jan Hubicka <jh@suse.cz>
22677
22678 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22679 (add_type_duplicate): When odr hash is not allocated, to nothing.
22680 (odr_based_tbaa_p): New function.
22681 (set_type_canonical_for_odr_type): New function.
22682 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22683 set_type_canonical_for_odr_type): New.
22684 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22685 ODR based TBAA are not equivalent to non-ODR types.
22686
22687 2019-06-27 Martin Liska <mliska@suse.cz>
22688
22689 PR tree-optimization/90974
22690 PR rtl-optimization/90975
22691 PR rtl-optimization/90976
22692 PR target/91016
22693 PR tree-optimization/91017
22694 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22695 unused tmp.
22696 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22697 initial commit of IRA.
22698 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22699 of op0 and op1.
22700 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22701 Remove unused mode1.
22702 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22703 to new_stmt_info.
22704
22705 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22706
22707 PR target/90991
22708 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22709 instead of register_operand for operands[1], add m to its constraints
22710 if operands[2] uses "C" constraint. Ensure in condition that if
22711 operands[2] is not 0, then operands[1] is not a MEM. For last two
22712 alternatives, use unaligned loads instead of aligned if operands[1] is
22713 misaligned_operand.
22714
22715 2019-06-27 Martin Liska <mliska@suse.cz>
22716
22717 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22718 dead assignments.
22719 * bt-load.c (move_btr_def): Likewise.
22720 * builtins.c (expand_builtin_apply_args_1): Likewise.
22721 (expand_builtin_apply): Likewise.
22722 * cfgexpand.c (expand_asm_stmt): Likewise.
22723 (construct_init_block): Likewise.
22724 * cfghooks.c (verify_flow_info): Likewise.
22725 * cfgloopmanip.c (remove_path): Likewise.
22726 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22727 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22728 * combine.c (simplify_if_then_else): Likewise.
22729 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22730 (choose_basereg): Likewise.
22731 (ix86_expand_prologue): Likewise.
22732 (ix86_preferred_output_reload_class): Likewise.
22733 * cselib.c (cselib_record_sets): Likewise.
22734 * df-scan.c (df_scan_alloc): Likewise.
22735 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22736 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22737 * emit-rtl.c (try_split): Likewise.
22738 * graphite-scop-detection.c (assign_parameter_index_in_region):
22739 Likewise.
22740 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22741 * ira-color.c (setup_profitable_hard_regs): Likewise.
22742 * ira.c (rtx_moveable_p): Likewise.
22743 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22744 * read-rtl.c (read_subst_mapping): Likewise.
22745 * regrename.c (scan_rtx): Likewise.
22746 * reorg.c (fill_slots_from_thread): Likewise.
22747 * tree-inline.c (tree_function_versioning): Likewise.
22748 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22749 * tree-ssa-sink.c (statement_sink_location): Likewise.
22750 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22751 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22752 (vect_create_epilog_for_reduction): Likewise.
22753 * tree.c (build_nonstandard_integer_type): Likewise.
22754
22755 2019-06-27 Richard Biener <rguenther@suse.de>
22756
22757 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22758
22759 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22760
22761 PR tree-optimization/89772
22762 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22763 out-of-bound accesses checking.
22764
22765 2019-06-27 Martin Liska <mliska@suse.cz>
22766
22767 PR tree-optimization/91014
22768 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22769 when LHS is NULL_TREE.
22770
22771 2019-06-27 Martin Liska <mliska@suse.cz>
22772
22773 * symbol-summary.h (traverse): Pass
22774 argument a to the call of callback.
22775 (gt_ggc_mx): Mark arguments as unused.
22776 (gt_pch_nx): Likewise.
22777
22778 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22779
22780 PR target/62147
22781 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22782 finiteness.
22783
22784 2019-06-26 Jeff Law <law@redhat.com>
22785
22786 PR tree-optimization/90883
22787 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22788 (delete_dead_or_redundant_assignment): Likewise.
22789
22790 PR tree-optimization/90883
22791 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22792 * tree-ssa-dse.c: Update various comments to distinguish between
22793 dead and redundant stores.
22794 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22795 (dse_optimize_redundant_stores): New function.
22796 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22797 Distinguish between dead and redundant calls in dump output. All
22798 callers updated.
22799 (delete_dead_or_redundant_assignment): Similarly for assignments.
22800 (dse_optimize_stmt): Handle _CHK variants. For statements which
22801 store 0 into multiple memory locations, try to prove a subsequent
22802 store is redundant.
22803
22804 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22805
22806 PR target/89021
22807 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22808 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22809
22810 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22811
22812 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22813 (branch_islands): New extern.
22814 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22815 * config/rs6000/rs6000.c: .. here.
22816
22817 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22818
22819 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22820 (powerpc*-*-*) ... to here.
22821
22822 2019-06-26 Jeff Law <law@redhat.com>
22823
22824 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22825 memcpy, memmove and memset builtins.
22826 (maybe_trim_memstar_call): Likewise.
22827
22828 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22829
22830 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22831
22832 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22833
22834 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22835
22836 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22837
22838 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22839 declaration.
22840 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22841 "static".
22842 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22843 declaration.
22844
22845 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22846
22847 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22848
22849 2019-06-26 Richard Biener <rguenther@suse.de>
22850
22851 PR ipa/90982
22852 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22853
22854 2019-06-26 Richard Biener <rguenther@suse.de>
22855
22856 * lto-streamer.h (lto_bitmap_alloc): Remove.
22857 (lto_bitmap_free): Likewise.
22858 * lto-streamer.c (lto_bitmap_alloc): Remove.
22859 (lto_bitmap_free): Likewise.
22860 (lto_obstack): Likewise.
22861 (lto_obstack_initialized): Likewise.
22862 * lto-streamer-out.c (lto_output): Use own obstack for local
22863 bitmap, free it consistently.
22864
22865 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22866
22867 PR target/90991
22868 * config/i386/sse.md
22869 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22870 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22871 insns if operands[2] is misaligned_operand.
22872
22873 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22874
22875 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22876 TARGET_POWERPC64.
22877 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22878 to GPR.
22879
22880 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22881
22882 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22883
22884 2019-06-26 Martin Liska <mliska@suse.cz>
22885
22886 PR tree-optimization/90973
22887 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22888 epilogue_cost_vec instead of prologue_cost_vec for
22889 a epilogue cost.
22890
22891 2019-06-26 Martin Liska <mliska@suse.cz>
22892
22893 * bb-reorder.c (connect_better_edge_p): Add missing else
22894 statement in the middle of if-else statements.
22895
22896 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22897 H.J. Lu <hongjiu.lu@intel.com>
22898 Olga Makhotina <olga.makhotina@intel.com>
22899
22900 * common/config/i386/i386-common.c
22901 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22902 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22903 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22904 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22905 (ix86_handle_option): Handle -mavx512vp2intersect.
22906 * config/i386/avx512vp2intersectintrin.h: New.
22907 * config/i386/avx512vp2intersectvlintrin.h: New.
22908 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22909 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22910 AVX512VP2INTERSECT.
22911 * config/i386/i386-builtin-types.def: Add new types.
22912 * config/i386/i386-builtin.def: Add new builtins.
22913 * config/i386/i386-builtins.c: (enum processor_features): Add
22914 F_AVX512VP2INTERSECT.
22915 (static const _isa_names_table isa_names_table): Ditto.
22916 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22917 __AVX512VP2INTERSECT__.
22918 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22919 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22920 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22921 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22922 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22923 * config/i386/i386-options.c (ix86_target_string): Add
22924 -mavx512vp2intersect.
22925 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22926 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22927 P2HImode and P2QImode.
22928 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22929 number for P2QImode and P2HImode.
22930 (ix86_regmode_natural_size): New function.
22931 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22932 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22933 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22934 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22935 * config/i386/i386.opt: Add -mavx512vp2intersect.
22936 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22937 avx512vp2intersectvlintrin.h.
22938 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22939 (define_mode_iterator VI48_AVX512VP2VL): New.
22940 (avx512vp2intersect_2intersect<mode>,
22941 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22942 * config.gcc: Add avx512vp2intersectvlintrin.h and
22943 avx512vp2intersectintrin.h to extra_headers.
22944 * doc/invoke.texi: Document -mavx512vp2intersect.
22945
22946 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22947
22948 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22949
22950 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22951
22952 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22953 savres_routine_syms, savres_routine_name, morestack_ref,
22954 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22955 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22956 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22957 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22958 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22959 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22960 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22961 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22962 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22963 get_stack_clash_protection_probe_interval,
22964 get_stack_clash_protection_guard_size,
22965 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22966 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22967 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22968 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22969 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22970 gen_frame_mem_offset, rs6000_savres_routine_name,
22971 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22972 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22973 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22974 rs6000_global_entry_point_prologue_needed_p,
22975 rs6000_get_separate_components, rs6000_components_for_bb,
22976 rs6000_disqualify_components, rs6000_emit_prologue_components,
22977 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22978 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22979 rs6000_output_savres_externs, rs6000_output_function_prologue,
22980 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22981 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22982 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22983 rs6000_output_function_epilogue, gen_add3_const,
22984 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22985 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22986 to rs6000-logue.c.
22987 (machine_function): Moved to rs6000.h.
22988 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22989 rs6000-internal.h.
22990 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22991 savres_routine_syms, savres_routine_name, morestack_ref,
22992 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22993 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22994 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22995 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22996 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22997 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22998 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22999 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23000 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23001 get_stack_clash_protection_probe_interval,
23002 get_stack_clash_protection_guard_size,
23003 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23004 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23005 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23006 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23007 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23008 gen_frame_mem_offset, rs6000_savres_routine_name,
23009 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23010 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23011 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23012 rs6000_global_entry_point_prologue_needed_p,
23013 rs6000_get_separate_components, rs6000_components_for_bb,
23014 rs6000_disqualify_components, rs6000_emit_prologue_components,
23015 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23016 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23017 rs6000_output_savres_externs, rs6000_output_function_prologue,
23018 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23019 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23020 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23021 rs6000_output_function_epilogue, gen_add3_const,
23022 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23023 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23024 to here from rs6000.c.
23025 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23026 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23027 quad_address_offset_p) Moved to here from rs6000.c.
23028 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23029 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23030 collector.
23031
23032 2019-06-25 Martin Liska <mliska@suse.cz>
23033
23034 * hash-table.c (hashtab_chk_error): Move here from ...
23035 * hash-table.h (hashtab_chk_error): ... here.
23036
23037 2019-06-25 Martin Liska <mliska@suse.cz>
23038
23039 PR tree-optimization/90978
23040 * df-scan.c (df_update_entry_block_defs): Remove dead else
23041 branch.
23042 (df_update_exit_block_uses): Likewise.
23043
23044 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23045 Andrew Stubbs <ams@codesourcery.com>
23046
23047 * config.gcc (thread_file): Set to gcn for AMD GCN.
23048 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23049 (TARGET_EMUTLS_VAR_INIT): New hook.
23050
23051 2019-06-25 Martin Jambor <mjambor@suse.cz>
23052
23053 PR ipa/90939
23054 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23055
23056 2019-06-25 Richard Biener <rguenther@suse.de>
23057
23058 PR tree-optimization/90930
23059 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23060 into parallel form in the last pass instance.
23061
23062 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23063
23064 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23065 (arc_legitimize_pic_address): Simplify and cleanup the function.
23066 (SYMBOLIC_CONST): Remove.
23067 (prepare_pic_move): Likewise.
23068 (prepare_move_operands): Handle complex mov cases here.
23069 (arc_legitimize_address_0): Remove call to
23070 arc_legitimize_pic_address.
23071 (arc_legitimize_address): Remove call to
23072 arc_legitimize_tls_address.
23073 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23074 (movhi_insn): Likewise.
23075
23076 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23077
23078 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23079 PTRDIFF_TYPE.
23080 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23081 format of "__intN" types for UINTMAX_TYPE.
23082 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23083 format of "__intN" types for SIZETYPE.
23084 * tree.c (build_common_tree_nodes): Accept "__intN__"
23085 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23086 * doc/invoke.texi: Document that __intN__ disables pedantic
23087 warnings.
23088
23089 2019-06-25 Jan Hubicka <jh@suse.cz>
23090
23091 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23092 base2_alias_set is non-zero before doing TBAA based disambiguation.
23093
23094 2019-06-25 Martin Liska <mliska@suse.cz>
23095
23096 PR tree-optimization/90973
23097 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23098 of prologue and epilogue.
23099
23100 2019-06-24 Jan Hubicka <jh@suse.cz>
23101
23102 * ipa-utils.h (type_with_linkage_p): Verify that type is
23103 CXX_ODR_P.
23104 (odr_type_p): Remove extra return.
23105 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23106 hash STRING_FLAG only for arrays and integers.
23107 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23108 Update analogously.
23109 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23110 Likewise.
23111 * print-tree.c (print_node): Print cxx-odr-p
23112 and string-flag.
23113 * tree.c (need_assembler_name_p): Also check that type
23114 is CXX_ODR_TYPE_P
23115 (verify_type_variant): Update verification of SRING_FLAG;
23116 also check CXX_ODR_P.
23117 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23118 (TYPE_STRING_FLAG): Use it.
23119 (TYPE_CXX_ODR_P): New macro.
23120 * dwarf2out.c (gen_array_type_die): First check that type
23121 is an array and then test string flag.
23122
23123 2019-06-24 Richard Biener <rguenther@suse.de>
23124
23125 PR tree-optimization/90972
23126 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23127 in common code, dealing with STRING_CST properly.
23128
23129 2019-06-24 Richard Biener <rguenther@suse.de>
23130
23131 PR tree-optimization/90930
23132 PR tree-optimization/90316
23133 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23134 decrement of limit.
23135
23136 2019-06-24 Martin Sebor <msebor@redhat.com>
23137
23138 * tree-pretty-print.h: Remove unnecessary punctuation characters
23139 from a diagnostic.
23140 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23141
23142 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23143
23144 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23145 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23146 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23147
23148 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23149
23150 * config/rs6000/darwin.h: Handle GCC target pragma.
23151
23152 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23153
23154 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23155
23156 2019-06-22 Jeff Law <law@redhat.com>
23157
23158 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23159
23160 2019-06-22 Jan Hubicka <jh@suse.cz>
23161
23162 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23163 give up on bitfields; continue searching for different refs
23164 appearing later.
23165
23166 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23167
23168 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23169 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23170 containing the offset as possible simd lane access. Look through
23171 widening conversion. Move the
23172 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23173
23174 2019-06-21 Richard Biener <rguenther@suse.de>
23175
23176 PR tree-optimization/90930
23177 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23178 flag on new stmts to avoid re-processing them.
23179
23180 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23181
23182 PR c++/90875 - added -Wswitch-outside-range option
23183 * doc/invoke.texi (Wswitch-outside-range): Document.
23184
23185 2019-06-21 Jeff Law <law@redhat.com>
23186
23187 PR tree-optimization/90949
23188 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23189 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23190
23191 2019-06-21 Richard Biener <rguenther@suse.de>
23192
23193 PR debug/90914
23194 * dwarf2out.c (prune_unused_types_walk): Always consider
23195 function-local extern declarations as used.
23196
23197 2019-06-21 Richard Biener <rguenther@suse.de>
23198
23199 PR tree-optimization/90913
23200 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23201 the scalar variant of if-conversion versioning.
23202
23203 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23204
23205 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23206 create another "omp scan inscan exclusive" array if
23207 !ctx->scan_inclusive.
23208 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23209 (lower_omp_scan): Likewise.
23210 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23211 2-bit bitfield for simd_lane_access_p member.
23212 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23213 aux == (void *)-4 as simd lane access.
23214 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23215 comment with permutations to show the canonical permutation order.
23216 (vectorizable_scan_store): Handle exclusive scan.
23217 (vectorizable_store): Call vectorizable_scan_store even for
23218 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23219
23220 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23221 "omp simd array" arrays with one byte elements.
23222
23223 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23224
23225 * config/alpha/alpha.md (@unaligned_store<mode>):
23226 Rename from unaligned_store<mode>.
23227 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23228 * config/alpha/sync.md (@load_locked_<mode>): Rename
23229 from load_locked_<mode>.
23230 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23231 (@atomic_compare_and_swap<mode>_1): Rename
23232 from atomic_compare_and_swap<mode>_1.
23233 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23234 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23235 Use gen_reload_in_aligned and gen_unaligned_store.
23236 (emit_load_locked): Remove.
23237 (emit_store_conditional): Ditto.
23238 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23239 (alpha_split_compare_and_swap): Ditto.
23240 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23241 (alpha_split_compare_and_swap_12): Use gen_load_locked
23242 and gen_store_conditional.
23243 (alpha_split_atomic_exchange): Ditto.
23244 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23245 (alpha_split_atomic_exchange_12): Use gen_load_locked
23246 and gen_store_conditional.
23247
23248 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23249
23250 * config/aarch64/aarch64-errata.h: New file.
23251 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23252 (CA53_ERR_843419_SPEC): Delete.
23253 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23254 * config/aarch64/aarch64-linux.h: Likewise.
23255 * config/aarch64/aarch64-netbsd.h: Likewise.
23256 * config/aarch64/aarch64-freebsd.h: Likewise.
23257
23258 2019-06-20 Marek Polacek <polacek@redhat.com>
23259
23260 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23261
23262 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23263
23264 * config/rs6000/rs6000.md (isa attribute): Add support for
23265 for a future processor.
23266
23267 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23268
23269 PR target/54855
23270 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23271 standard scalar operation pattern for V2DF.
23272 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23273 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23274 (*ieee_<ieee_maxmin><mode>3): Likewise.
23275 (vec_setv2df_0): Likewise.
23276
23277 2019-06-20 Jan Hubicka <jh@suse.cz>
23278
23279 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23280 parameter; it has no use in gimple memory model.
23281 (indirect_ref_may_alias_decl_p): Update.
23282
23283 2019-06-20 Martin Liska <mliska@suse.cz>
23284
23285 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23286 to 10.
23287
23288 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23289
23290 * tree-vect-stmts.c (enum scan_store_kind): New type.
23291 (scan_store_can_perm_p): Change last argument from int * to
23292 vec<enum scan_store_kind> *, record precisely which permutations
23293 need whole vector left shift or that plus VEC_COND_EXPR.
23294 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23295 and additional VEC_COND_EXPR only for those iterations that need it.
23296
23297 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23298
23299 * config.gcc: Fix ARM --with-fpu checking and error message.
23300
23301 2019-06-19 Marek Polacek <polacek@redhat.com>
23302
23303 PR c++/60364 - noreturn after first decl not diagnosed.
23304 * attribs.c (get_attribute_namespace): No longer static.
23305 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23306 attributes.
23307 (attr_noreturn_exclusions): Make it extern.
23308 * attribs.h (get_attribute_namespace): Declare.
23309 * tree-inline.c (function_attribute_inlinable_p): Use
23310 get_attribute_name.
23311
23312 2019-06-19 Martin Sebor <msebor@redhat.com>
23313
23314 PR tree-optimization/90626
23315 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23316
23317 PR tree-optimization/90626
23318 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23319 (handle_builtin_string_cmp): Call it.
23320
23321 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23322
23323 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23324 and DARWIN_NOPIE_SPEC.
23325 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23326 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23327 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23328 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23329 (DARWIN_EXPORT_DYNAMIC): Delete.
23330 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23331 and pie options processing to darwin.h.
23332 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23333
23334 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23335
23336 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23337 in computing the number of options to be moved.
23338
23339 2019-06-19 Maya Rashish <coypu@sdf.org>
23340
23341 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23342 (CLEAR_INSN_CACHE) Use it.
23343
23344 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23345
23346 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23347
23348 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23349
23350 PR middle-end/84521
23351 * builtins.c (expand_builtin_setjmp_setup): Save
23352 hard_frame_pointer_rtx.
23353 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23354 restore fp.
23355 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23356 non-local goto.
23357 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23358 elimination code.
23359 (remove_reg_equal_offset_note): Remove unused function.
23360 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23361 code.
23362 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23363 (arc_builtin_setjmp_frame_value): Remove function.
23364 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23365 (avr_builtin_setjmp_frame_value): Remove function.
23366 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23367 (ix86_builtin_setjmp_frame_value): Remove function.
23368 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23369 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23370 (sparc_builtin_setjmp_frame_value): Remove function.
23371 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23372 (vax_builtin_setjmp_frame_value): Remove function.
23373 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23374 pointer if has_nonlocal_label.
23375
23376 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23377
23378 * doc/md.texi: Document vec_shl_<mode> pattern.
23379 * optabs.def (vec_shl_optab): New optab.
23380 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23381 argument, if == vec_shl_optab, check for left whole vector shift
23382 pattern rather than right shift.
23383 (expand_vec_perm_const): Add vec_shl_optab support.
23384 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23385 in the comment.
23386 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23387 can be handled by vec_shl_optab.
23388 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23389 (check_scan_store): Use it.
23390 (vectorizable_scan_store): If target can't do normal permutations,
23391 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23392 after it.
23393 * config/i386/sse.md (vec_shl_<mode>): New expander.
23394
23395 * omp-low.c (lower_rec_input_clauses): Handle references properly
23396 in inscan clauses.
23397 (lower_omp_scan): Likewise.
23398
23399 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23400
23401 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23402 mem_mode is BLKmode.
23403
23404 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23405
23406 PR target/90922
23407 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23408 pointer adjustment for the case of no callee-saved registers and
23409 stack frame bigger than 128 bytes.
23410
23411 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23412
23413 PR middle-end/90862
23414 * omp-low.c (check_omp_nesting_restrictions): Handle
23415 GF_OMP_TARGET_KIND_OACC_DECLARE.
23416
23417 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23418
23419 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23420 (@add<mode>3_carry): Rename from add<mode>3_carry.
23421 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23422 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23423 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23424 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23425 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23426 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23427 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23428 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23429 (cmpstrnsi): Use gen_cmp_1.
23430 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23431 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23432 (@umonitor_<mode>): Rename from umonitor_<mode>.
23433 * config/i386/i386-expand.c (ix86_expand_copysign):
23434 Use gen_copysign3_const and gen_copysign3_var.
23435 (ix86_expand_xorsign): Use gen_xorsign3_1.
23436 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23437 gen_sub3_carry_ccgz and gen_cmp1.
23438 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23439 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23440 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23441 (ix86_split_lshr): Ditto.
23442 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23443
23444 2019-06-18 Jason Merrill <jason@redhat.com>
23445
23446 * tree.c (build_constructor): Add MEM_STAT_DECL.
23447
23448 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23449
23450 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23451 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23452 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23453 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23454 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23455 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23456 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23457 Use CC_NZC instead of CC.
23458 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23459 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23460 (aarch64_print_operand): Handle E_CC_NZCmode.
23461 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23462 of gen_set_clobber_cc.
23463
23464 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23465
23466 * config/aarch64/aarch64-sve.md: Tabify file.
23467
23468 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23469
23470 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23471 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23472 * config/aarch64/aarch64-sve.md: Use it.
23473
23474 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23475
23476 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23477 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23478 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23479 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23480 (aarch64_expand_sve_vec_cmp_int): Use it.
23481 (aarch64_expand_sve_vec_cmp_float): Likewise.
23482 * config/aarch64/aarch64-sve.md: Likewise throughout.
23483
23484 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23485 Kugan Vivekanandarajah <kuganv@linaro.org>
23486
23487 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23488 (*cond_<optab><mode>_z): Fold into...
23489 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23490 operand 4 can be tied to operand 0 (either inherently or via RA).
23491
23492 2019-06-18 Richard Biener <rguenther@suse.de>
23493
23494 PR debug/90900
23495 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23496 as if optimized away.
23497
23498 2019-06-18 Tom de Vries <tdevries@suse.de>
23499
23500 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23501 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23502 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23503 Rename to ...
23504 (define_insn "@set_softstack_<mode>"): ... this.
23505 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23506 (define_insn "@omp_simt_enter_<mode>"): ... this.
23507 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23508 (define_insn "@omp_simt_exit_<mode>"): ... this.
23509
23510 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23511
23512 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23513 vf parameter. Restore the previous iv step of nscalars_step,
23514 but give it iv_type rather than compare_type. Tweak code order
23515 to match the comments.
23516 (vect_set_loop_condition_masked): Update accordingly.
23517 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23518 for iv_precision. Tweak comment formatting.
23519
23520 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23521
23522 * config/darwin.c: Strip trailing whitespace.
23523
23524 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23525
23526 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23527 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23528
23529 2019-06-18 Martin Jambor <mjambor@suse.cz>
23530
23531 PR ipa/90889
23532 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23533 caller does not have flag_ipa_cp set.
23534
23535 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23536
23537 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23538 from "*fold_left_plus_<mode>", updated operands order.
23539 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23540 * internal-fn.c (mask_fold_left_direct): New define.
23541 (expand_mask_fold_left_optab_fn): Likewise.
23542 (direct_mask_fold_left_optab_supported_p): Likewise.
23543 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23544 * optabs.def (mask_fold_left_plus_optab): New optab.
23545 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23546 masked internal_fn for a reduction ifn.
23547 (vectorize_fold_left_reduction): Add support for masking reductions.
23548
23549 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23550
23551 PR middle-end/80791
23552 * target.def (predict_doloop_p): New hook.
23553 * targhooks.h (default_predict_doloop_p): New declaration.
23554 * targhooks.c (default_predict_doloop_p): New function.
23555 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23556 * doc/tm.texi: Regenerate.
23557 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23558 (TARGET_PREDICT_DOLOOP_P): New macro.
23559 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23560
23561 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23562
23563 * omp-low.c (struct omp_context): Add scan_inclusive field.
23564 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23565 if inclusive scan.
23566 (struct omplow_simd_context): Add lastlane member.
23567 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23568 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23569 1 or 2 argument.
23570 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23571 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23572 (lower_omp_scan): New function.
23573 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23574 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23575 check 3rd argument if present rather than 2nd.
23576 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23577 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23578 2-bit bitfield.
23579 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23580 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23581 than 2nd.
23582 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23583 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23584 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23585 init.
23586 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23587 IFN_GOMP_SIMD_LANE argument.
23588 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23589 encoded ->aux value.
23590 * tree-vect-stmts.c: Include attribs.h.
23591 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23592 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23593 functions.
23594 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23595 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23596
23597 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23598
23599 PR target/62055
23600 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23601 (*nabs<mode>2_1): Ditto.
23602 (nabs sse-reg splitter): New splitter.
23603 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23604
23605 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23606
23607 PR bootstrap/90873.
23608 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23609 TMR index check.
23610
23611 2019-06-17 Tom de Vries <tdevries@suse.de>
23612
23613 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23614 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23615 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23616 ...
23617 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23618 match_operand 0.
23619 (define_insn "omp_simt_enter_insn"): Rename to ...
23620 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23621 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23622 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23623 gen_omp_simt_enter_si.
23624 (define_expand "omp_simt_exit"): New.
23625 (define_insn "omp_simt_exit"): Rename to ...
23626 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23627 match_operand 0.
23628
23629 2019-06-17 Matthew Green <mrg@eterna.com.au>
23630 Maya Rashish <coypu@sdf.org>
23631
23632 * config.gcc (aarch64*-*-netbsd*): New target.
23633 * config/aarch64/aarch64-netbsd.h: New file.
23634 * config/aarch64/t-aarch64-netbsd: Likewise.
23635
23636 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23637
23638 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23639 the access path from base to first VIEW_CONVERT_EXPR or
23640 BIT_FIELD_REF.
23641
23642 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23643
23644 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23645 access path on BIT_FIELD_REFs.
23646
23647 2019-06-17 Martin Liska <mliska@suse.cz>
23648
23649 PR ipa/90874
23650 * ipa-utils.h (odr_type_p): Remove dead code.
23651
23652 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23653
23654 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23655 alternative Solaris 11.4 format.
23656 * configure: Regenerate.
23657
23658 2019-06-17 Tom de Vries <tdevries@suse.de>
23659
23660 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23661 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23662 match_operand 0.
23663 (define_insn "call_value_insn"): Rename to ...
23664 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23665 match_operand 0.
23666 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23667 DI.
23668
23669 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23670
23671 PR middle-end/64242
23672 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23673 frame clobbers and schedule block.
23674 (builtin_longjmp): Likewise.
23675
23676 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23677
23678 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23679 describe how to perform MSPABI compliant 64-bit shift.
23680 * config/msp430/msp430.md (ashldi3): New define_expand.
23681 (ashrdi3): New define_expand.
23682 (lshrdi3): New define_expand.
23683
23684 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23685
23686 * doc/sourcebuild.texi: Document new effective target keyword
23687 longlong64.
23688
23689 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23690
23691 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23692 indirect_refs_may_alias_p): Revert accidental commits.
23693
23694 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23695 at the end of structures.
23696
23697 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23698
23699 * config/darwin.c (machopic_indirect_call_target): Use renamed
23700 darwin_picsymbol_stubs to decide on output.
23701 (darwin_override_options): Handle darwin_picsymbol_stubs.
23702 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23703 (LD64_VERSION): Revise default.
23704 * config/darwin.opt: (mpic-symbol-stubs): New option.
23705 (darwin_picsymbol_stubs): New variable.
23706 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23707 rename to TARGET_MACHO_PICSYM_STUBS.
23708 * config/i386/i386.c (output_pic_addr_const): Likewise.
23709 * config/i386/i386.h Likewise.
23710 * config/rs6000/darwin.h: Likewise.
23711 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23712 darwin_picsymbol_stubs.
23713
23714 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23715
23716 * config/darwin.opt (prebind, noprebind, seglinkedit,
23717 noseglinkedit): Add RejectNegative.
23718
23719 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23720
23721 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23722 in my previous patch.
23723
23724 2019-06-16 Tom de Vries <tdevries@suse.de>
23725
23726 PR tree-optimization/89376
23727 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23728
23729 2019-06-15 Maya Rashish <coypu@sdf.org>
23730
23731 * doc/invoke.texi (Spec Files): Update location of the
23732 Fortran spec file.
23733
23734 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23735
23736 * doc/extend.texi (Common Function Attributes): Clarify
23737 no_sanitize. Fix grammar.
23738
23739 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23740
23741 * tree-ssa-alias.c (alias_stats): Add
23742 nonoverlapping_component_refs_p_may_alias,
23743 nonoverlapping_component_refs_p_no_alias,
23744 nonoverlapping_component_refs_of_decl_p_may_alias,
23745 nonoverlapping_component_refs_of_decl_p_no_alias.
23746 (dump_alias_stats): Dump them.
23747 (nonoverlapping_component_refs_of_decl_p): Add stats.
23748 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23749 ARRAY_REF.
23750
23751 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23752
23753 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23754 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23755 only.
23756 (*anddi3_doubleword): Split before reload. Merge with
23757 anddi->zext pre-reload splitter.
23758 (*andndi3_doubleword): Split before reload.
23759 (*<code>di3_doubleword): Ditto.
23760 (*one_cmpldi2_doubleword): Ditto.
23761
23762 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23763
23764 PR middle-end/90779
23765 * gimplify.c: Include omp-offload.h and context.h.
23766 (gimplify_bind_expr): Add "omp declare target" attributes
23767 to static block scope variables inside of target region or target
23768 functions.
23769
23770 2019-06-15 Tom de Vries <tdevries@suse.de>
23771
23772 PR tree-optimization/90009
23773 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23774 Return NULL if bb contains IFN_UNIQUE.
23775
23776 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23777
23778 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23779 (un): New define_mode_attr.
23780 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23781 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23782 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23783 merge into ...
23784 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23785
23786 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23787
23788 * config/darwin.opt: Add RejectNegative where needed, reorder
23789 and add minimal functional descriptions.
23790
23791 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23792
23793 PR rtl-optimization/90765
23794 * calls.c (update_stack_alignment_for_call): New function.
23795 (expand_call): Call update_stack_alignment_for_call when
23796 outgoing parameter is passed in the stack.
23797 (emit_library_call_value_1): Likewise.
23798 * function.c (locate_and_pad_parm): Don't update
23799 stack_alignment_needed and preferred_stack_boundary.
23800
23801 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23802
23803 PR target/90877
23804 * config/i386/i386-features.c
23805 (dimode_scalar_chain::compute_convert_gain): Replace
23806 mmxsse_to_integer with sse_to_integer.
23807 * config/i386/i386.c (ix86_register_move_cost): Verify that
23808 moves between MMX and non-MMX units require secondary memory.
23809 Correct costs of moves between SSE and integer units.
23810 * config/i386/i386.h (processor_costs): Rename cost of moving
23811 SSE register to integer to sse_to_integer. Rename cost of
23812
23813 2019-06-14 Matt Thomas <matt@3am-software.com>
23814 Matthew Green <mrg@eterna.com.au>
23815 Nick Hudson <skrll@netbsd.org>
23816 Maya Rashish <coypu@sdf.org>
23817 Richard Earnshaw <rearnsha@arm.com>
23818
23819 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23820 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23821 * config/arm/netbsd-eabi.h: New file.
23822 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23823 redefining.
23824 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23825 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23826 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23827 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23828
23829 2019-06-14 Richard Biener <rguenther@suse.de>
23830
23831 * tree-loop-distribution.c (classify_partition): Return
23832 whether a reduction appeared in all partitions and do not
23833 stop builtin detection because of this.
23834 (distribute_loop): Sort a non-builtin partition last if
23835 there's a reduction in all partitions and make sure the
23836 partition prevailing as last is not a builtin.
23837
23838 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23839
23840 PR ipa/90401
23841 * ipa-prop.c (add_to_agg_contents_list): New function.
23842 (clobber_by_agg_contents_list_p): Likewise.
23843 (extract_mem_content): Likewise.
23844 (get_place_in_agg_contents_list): Delete.
23845 (determine_known_aggregate_parts): Renamed from
23846 determine_locally_known_aggregate_parts. New parameter
23847 aa_walk_budget_p.
23848
23849 2019-06-13 Martin Sebor <msebor@redhat.com>
23850
23851 PR tree-optimization/90662
23852 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23853 to the same type.
23854
23855 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23856
23857 PR bootstrap/90873
23858 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23859 dbase is not TARGET_MEM_REF.
23860
23861 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23862
23863 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23864 Update all uses.
23865 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23866 Do not generate DImode extends for 32bit targets.
23867 (and->zext post-reload splitter): Use gen_extend_insn
23868 instead of indirect functions.
23869 (anddi->zext pre-reload splitter): New.
23870 (*zext<mode>_doubleword_and): Remove.
23871 (*zext<mode>_doubleword): Ditto.
23872 (*zextsi_doubleword): Dittto.
23873
23874 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23875
23876 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23877 Use gen_sub3_insn instead of indirect function.
23878 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23879 indirect function.
23880 (ix86_adjust_counter): Ditto.
23881
23882 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23883 Lijia He <helijia@linux.ibm.com>
23884
23885 PR tree-optimization/77820
23886 * tree-ssa-threadedge.c
23887 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23888 function.
23889 (thread_across_edge): Add call to
23890 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23891
23892 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23893
23894 * config/darwin-driver.c (validate_macosx_version_min): New.
23895 (darwin_default_min_version): Cleanup and validate supplied version.
23896 (darwin_driver_init): Likewise and push cleaned version into opts.
23897
23898 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23899
23900 PR tree-optimization/90869
23901 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23902 converts in MEM_REF referencing decl rather than view converts
23903 from decl type to MEM_REF type.
23904
23905 2019-06-13 Richard Biener <rguenther@suse.de>
23906
23907 PR tree-optimization/90856
23908 * tree-sra.c (build_ref_for_model): Only use
23909 build_reconstructed_reference when address-spaces are the same.
23910
23911 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23912
23913 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23914 wrap ei variable name in the declaration in ()s.
23915 (nvptx_single): Actually use mode_label variable. Formatting fix.
23916
23917 2019-06-13 Richard Biener <rguenther@suse.de>
23918
23919 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23920 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23921 also return the condition stmt.
23922 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23923 loop we can version and version that, reusing the loop version
23924 created by if-conversion instead of versioning again.
23925
23926 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23927
23928 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23929 may_contain_p.
23930 * tree-vrp (value_range_base::may_contain_p): Call into
23931 value_inside_range.
23932 (value_inside_range): Make private inside value_range_base class.
23933 Take min/max from *this.
23934 (range_includes_p): Remove.
23935 * tree-vrp.h (value_range_base): Add value_inside_range.
23936 (range_includes_p): Remove.
23937 (range_includes_zero_p): Call may_contain_p.
23938 * vr-values.c (compare_range_with_value): Same.
23939
23940 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23941
23942 * doc/extend.texi (ARC Function Attributes): Update info.
23943
23944 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23945
23946 PR tree-optimization/89713
23947 * doc/invoke.texi (-ffinite-loops): Document new option.
23948 * common.opt (-ffinite-loops): New option.
23949 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23950 IFN_GOACC_LOOP calls as necessary.
23951 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23952 is finite.
23953 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23954 IFN_GOACC_LOOP call is not used.
23955 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23956
23957 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23958
23959 PR target/88838
23960 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23961 compare_type is not with Pmode size, we will create an IV with
23962 Pmode size with truncated use (i.e. converted to the correct type).
23963 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23964 (vect_iv_limit_for_full_masking): New. Factored out of
23965 vect_set_loop_condition_masked.
23966 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23967 (vect_iv_limit_for_full_masking): Declare.
23968
23969 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23970
23971 PR target/88834
23972 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23973 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23974 (get_alias_ptr_type_for_ptr_address): Likewise.
23975 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23976 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23977 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23978 allow_reg_index_p.
23979
23980 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23981
23982 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23983
23984 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23985
23986 * common/config/pru/pru-common.c: New file.
23987 * config.gcc: Add PRU target.
23988 * config/pru/alu-zext.md: New file.
23989 * config/pru/constraints.md: New file.
23990 * config/pru/predicates.md: New file.
23991 * config/pru/pru-opts.h: New file.
23992 * config/pru/pru-passes.c: New file.
23993 * config/pru/pru-pragma.c: New file.
23994 * config/pru/pru-protos.h: New file.
23995 * config/pru/pru.c: New file.
23996 * config/pru/pru.h: New file.
23997 * config/pru/pru.md: New file.
23998 * config/pru/pru.opt: New file.
23999 * config/pru/t-pru: New file.
24000 * doc/extend.texi: Document PRU pragmas.
24001 * doc/invoke.texi: Document PRU-specific options.
24002 * doc/md.texi: Document PRU asm constraints.
24003
24004 2019-06-12 Martin Sebor <msebor@redhat.com>
24005
24006 PR middle-end/90676
24007 * tree-pretty-print.c (dump_mem_ref): New function. Include
24008 MEM_REF type in output when different size than operand.
24009 (dump_generic_node): Move code to dump_mem_ref and call it.
24010
24011 2019-06-12 Martin Sebor <msebor@redhat.com>
24012
24013 PR tree-optimization/90662
24014 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24015 to arrays.
24016
24017 2019-06-12 Tom de Vries <tdevries@suse.de>
24018
24019 PR tree-optimization/90009
24020 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24021
24022 2019-06-12 Martin Liska <mliska@suse.cz>
24023
24024 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24025 the created map.
24026 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24027 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24028 Do not sanitize created maps.
24029
24030 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24031
24032 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24033 value_range::singleton_p.
24034 * tree-vrp.c (value_range_constant_singleton): Remove.
24035 * tree-vrp.h (value_range_constant_singleton): Remove.
24036 * vr-values.c (vr_values::singleton): Use
24037 value_range::singleton_p.
24038
24039 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24040
24041 PR target/90811
24042 * cfgexpand.c (align_local_variable): Add really_expand argument,
24043 don't SET_DECL_ALIGN if it is false.
24044 (add_stack_var): Add really_expand argument, pass it through to
24045 align_local_variable.
24046 (expand_one_stack_var_1): Pass true as really_expand to
24047 align_local_variable.
24048 (expand_one_ssa_partition): Pass true as really_expand to
24049 add_stack_var.
24050 (expand_one_var): Pass really_expand through to add_stack_var.
24051
24052 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24053
24054 * config/arm/iterators.md (VABAL): New int iterator.
24055 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24056 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24057 UNSPEC_VABAL_U values.
24058
24059 2019-06-12 Martin Liska <mliska@suse.cz>
24060
24061 * value-prof.c (stream_out_histogram_value): Only first value
24062 can't be negative.
24063
24064 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24065
24066 PR c/90760
24067 * symtab.c (symtab_node::set_section): Allow being called on aliases
24068 as long as they aren't analyzed yet.
24069
24070 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24071
24072 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24073 to `mips_set_text_contents_type' to indicate whether a
24074 non-debug insn follows.
24075
24076 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24077
24078 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24079 enabling -mpcrel by default.
24080 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24081 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24082 that the test against -mcpu=future is done first. Then test if
24083 -mprefixed-addr is on for -mpcrel.
24084 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24085
24086 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24087
24088 PR target/90811
24089 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24090 instead of and.u%d.
24091
24092 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24093
24094 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24095
24096 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24097
24098 PR c++/90449 - add -Winaccessible-base option.
24099 * doc/invoke.texi (Winaccessible-base): Document.
24100
24101 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24102
24103 PR tree-optimization/62041
24104 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24105
24106 2019-06-11 Jason Merrill <jason@redhat.com>
24107
24108 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24109 * tree.c (get_tree_code_name): Likewise.
24110 * print-tree.c (print_node): Only briefly print a node with an
24111 invalid code.
24112
24113 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24114
24115 PR bootstrap/90819
24116 * trans-mem.c (tm_memopt_compute_available): Add assertion
24117 that blocks is not empty. Formatting fix.
24118
24119 2019-06-11 Martin Liska <mliska@suse.cz>
24120
24121 PR c++/87847
24122 * hash-table.h: Extend create_gcc, add one parameter
24123 that is passed into hash_table::hash_table.
24124
24125 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24126
24127 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24128 New prototype.
24129 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24130 Emit clobber also for non-sse operations.
24131 (ix86_split_fp_absneg_operator): New function.
24132 * config/i386/i386.md (SSEMODEF): New mode iterator.
24133 (ssevecmodef): New mode attribute.
24134 (<code>tf2): Use absneg code iterator.
24135 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24136 Add three-operand AVX alternatives.
24137 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24138 Use absneg code iterator and X87MODEF mode iterator.
24139 (absneg fp_reg non-sse splitter): Call absneg code iterator
24140 and X87MODEF mode iterator.
24141 (absneg general_reg non-sse splitter): Use absneg code iterator
24142 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24143 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24144 code iterator. Add three-operand AVX alternative.
24145 (absneg sse_reg splitter): Use absneg code iterator
24146 and SSEMODEF mode iterator. Handle AVX operands.
24147 (absneg fp_reg splitter): Use absneg code iterator
24148 and MODEF mode iterator.
24149 (absneg general_reg splitter): Merge splitters using MODEF mode
24150 iterator. Use absneg code iterator. Call
24151 ix86_split_fp_absneg_operator.
24152 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24153 Do not enable for non-sse modes before reload.
24154 (CSGNMODE): Remove.
24155 (CSGNVMODE): Ditto.
24156 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24157 ssevecmodef mode attribute instaed of CSGNVMODE.
24158 (copysign<mode>3_const): Ditto.
24159 (copysign<mode>3_var): Ditto.
24160 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24161 Use absneg code iterator. Simplify code using std::swap.
24162 * config/i386/predicates.md (absneg_operator): Remove.
24163
24164 2019-06-10 Martin Sebor <msebor@redhat.com>
24165
24166 * gimple-fold.c (get_range_strlen): Update comment that didn't
24167 make it into r267503 or related commits.
24168
24169 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24170
24171 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24172 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24173
24174 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24175
24176 * tree.def (OMP_SCAN): New tree code.
24177 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24178 OMP_CLAUSE_EXCLUSIVE.
24179 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24180 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24181 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24182 OMP_CLAUSE_{IN,EX}CLUSIVE.
24183 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24184 * tree-nested.c (convert_nonlocal_reference_stmt,
24185 convert_local_reference_stmt, convert_gimple_call): Handle
24186 GIMPLE_OMP_SCAN.
24187 * tree-pretty-print.c (dump_omp_clause): Handle
24188 OMP_CLAUSE_{IN,EX}CLUSIVE.
24189 (dump_generic_node): Handle OMP_SCAN.
24190 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24191 * gimple.h (gomp_scan): New type.
24192 (is_a_helper <gomp_scan *>::test,
24193 is_a_helper <const gomp_scan *>::test): New templates.
24194 (gimple_build_omp_scan): Declare.
24195 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24196 gimple_omp_scan_set_clauses): New inline functions.
24197 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24198 * gimple.c (gimple_build_omp_scan): New function.
24199 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24200 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24201 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24202 GIMPLE_OMP_TASKGROUP.
24203 (dump_gimple_omp_scan): New function.
24204 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24205 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24206 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24207 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24208 (is_gimple_stmt): Handle OMP_SCAN.
24209 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24210 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24211 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24212 mentioned in nested #pragma omp scan. Handle
24213 OMP_CLAUSE_{IN,EX}CLUSIVE.
24214 (gimplify_expr): Handle OMP_SCAN.
24215 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24216 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24217 simd constructs.
24218 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24219 GIMPLE_OMP_SCAN.
24220
24221 2019-06-10 Martin Liska <mliska@suse.cz>
24222
24223 * ipa-cp.c (ignore_edge_p): New function.
24224 (build_toporder_info): Use it.
24225 * ipa-inline.c (ignore_edge_p): New function.
24226 (inline_small_functions): Use it.
24227 * ipa-pure-const.c (ignore_edge_for_nothrow):
24228 Verify opt_for_fn for caller and callee.
24229 (ignore_edge_for_pure_const): Likewise.
24230 * ipa-reference.c (ignore_edge_p): Extend to check
24231 for opt_for_fn.
24232 * ipa-utils.c (searchc): Refactor.
24233 * ipa-utils.h: Fix coding style.
24234
24235 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24236
24237 * config/arc/arc.c (arc_rtx_costs): Update costs.
24238
24239 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24240
24241 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24242 (arc_split_ior): Likewise.
24243 (arc_check_mov_const): Likewise.
24244 (arc_split_mov_const): Likewise.
24245 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24246 (arc_rtx_costs): Replace check Crr with Cax constraint.
24247 (prepare_move_operands): Cleanup, remove unused code.
24248 (arc_split_ior): New function.
24249 (arc_check_ior_const): Likewise.
24250 (arc_split_mov_const): Likewise.
24251 (arc_check_mov_const): Likewise.
24252 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24253 in define_insn_and_split pattern.
24254 (iorsi3): Likewise.
24255 (mulsi3_v2): Add new matching variant.
24256 (andsi3_i): Cleanup pattern.
24257 (rotrsi3_cnt1): Update pattern.
24258 (rotrsi3_cnt8): New pattern.
24259 (ashlsi2_cnt8): Likewise.
24260 (ashlsi2_cnt16): Likewise.
24261 * config/arc/constraints.md (C0p): Update constraint.
24262 (Crr): Remove it.
24263 (C0x): New pattern.
24264 (Cax): New pattern.
24265
24266 2019-06-10 Martin Liska <mliska@suse.cz>
24267
24268 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24269 Update coding style.
24270 (sem_item_optimizer::dump_cong_classes):
24271 Print how many items are in a non-singular class. Improve
24272 coding style.
24273
24274 2019-06-10 Martin Liska <mliska@suse.cz>
24275
24276 * value-prof.c (dump_histogram_value): Change dump format.
24277 (gimple_mod_subtract_transform): Remove legacy comment.
24278
24279 2019-06-10 Martin Liska <mliska@suse.cz>
24280
24281 * value-prof.c (dump_histogram_value): Print histogram values
24282 only if present.
24283
24284 2019-06-10 Martin Liska <mliska@suse.cz>
24285
24286 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24287 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24288 * ipa-profile.c (ipa_profile_generate_summary):
24289 Use get_most_common_single_value.
24290 * tree-profile.c (gimple_init_gcov_profiler):
24291 Instrument with __gcov_one_value_profiler_v2
24292 and __gcov_indirect_call_profiler_v4.
24293 * value-prof.c (dump_histogram_value):
24294 Print all values for HIST_TYPE_SINGLE_VALUE.
24295 (stream_out_histogram_value): Update assert for
24296 N values.
24297 (stream_in_histogram_value): Set number of
24298 counters for HIST_TYPE_SINGLE_VALUE.
24299 (get_most_common_single_value): New.
24300 (gimple_divmod_fixed_value_transform):
24301 Use get_most_common_single_value.
24302 (gimple_ic_transform): Likewise.
24303 (gimple_stringops_transform): Likewise.
24304 (gimple_find_values_to_profile): Set number
24305 of counters for HIST_TYPE_SINGLE_VALUE.
24306 * value-prof.h (get_most_common_single_value): New.
24307
24308 2019-06-10 Martin Liska <mliska@suse.cz>
24309
24310 * hash-map.h: Pass default value to hash_table ctor.
24311 * hash-table.h: Add default value to call of a ctor.
24312
24313 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24314
24315 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24316 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24317
24318 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24319
24320 PR target/90751
24321 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24322 Call pa_output_function_label.
24323 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24324 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24325 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24326 to declaration.
24327 (pa_linux_output_function_prologue): Declare.
24328 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24329 (pa_output_function_label): New.
24330 (pa_output_function_prologue): Revise to use pa_output_function_label.
24331 (pa_linux_output_function_prologue): New.
24332 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24333
24334 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24335
24336 * tree-vrp.h (value_range_base::intersect): New.
24337 (value_range::intersect_helper): Move from here...
24338 (value_range_base::intersect_helper): ...to here.
24339 * tree-vrp.c (value_range::intersect_helper): Rename to...
24340 (value_range_base::intersect_helper): ...this, and rewrite to
24341 return a value instead of modifying THIS in place.
24342 Also, move equivalence handling...
24343 (value_range::intersect): ...here, while calling intersect_helper.
24344 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24345 calling intersect.
24346 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24347 Same.
24348 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24349
24350 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24351
24352 * Makefile.in (genprogerr): Add condmd.
24353 (genprog): Remove it here.
24354
24355 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24356
24357 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24358
24359 2019-06-07 Richard Biener <rguenther@suse.de>
24360
24361 PR debug/90574
24362 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24363 that appear after user labels.
24364
24365 2019-06-07 Martin Liska <mliska@suse.cz>
24366
24367 * cselib.c (cselib_init): Disable hash table
24368 sanitization.
24369 * hash-set.h: Pass new default argument to m_table.
24370 * hash-table.c: Add global variable with hash table
24371 sanitization limit.
24372 * hash-table.h (Allocator>::hash_table): Add new argument
24373 to ctor.
24374 (hashtab_chk_error): New.
24375 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24376 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24377 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24378
24379 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24380
24381 * common.opt (flto-odr-type-merging): Ignore.
24382 * invoke.texi (-flto-odr-type-merging): Remove.
24383 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24384 (can_be_vtable_hashed_p): Remove.
24385 (hash_odr_vtable): Remove.
24386 (odr_vtable_hasher::hash): Remove.
24387 (types_same_for_odr): Remove.
24388 (types_odr_comparable): Remove.
24389 (odr_vtable_hasher::equal): Remove.
24390 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24391 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24392 (get_odr_type): Do not use vtable hash.
24393 (dump_odr_type): Remove commented out code.
24394 (build_type_inheritance_graph): Do not allocate vtable hash.
24395 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24396 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24397 (odr_type_p): Likewise.
24398 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24399 test.
24400
24401 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24402
24403 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24404 immediately after same_types_for_tbaa_p returns -1 and continue
24405 looking for possible exact match; if matching types are arrays
24406 watch for partial overlaps.
24407 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24408 (indirect_refs_may_alias_p): Do type based disambiguation first;
24409 update comment.
24410
24411 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24412
24413 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24414
24415 2019-06-07 Martin Liska <mliska@suse.cz>
24416
24417 * doc/invoke.texi: Remove param.
24418 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24419 Remove.
24420 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24421 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24422 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24423 * profile.c (instrument_values): Remove
24424 HIST_TYPE_INDIR_CALL_TOPN.
24425 * tree-profile.c (init_ic_make_global_vars):
24426 Always build __gcov_indirect_call only.
24427 (gimple_init_gcov_profiler): Remove usage
24428 of PARAM_INDIR_CALL_TOPN_PROFILE.
24429 (gimple_gen_ic_profiler): Likewise.
24430 * value-prof.c (dump_histogram_value): Likewise.
24431 (stream_in_histogram_value): Likewise.
24432 (gimple_indirect_call_to_profile): Likewise.
24433 (gimple_find_values_to_profile): Likewise.
24434 * value-prof.h (enum hist_type): Likewise.
24435
24436 2019-06-07 Martin Liska <mliska@suse.cz>
24437
24438 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24439 function.
24440
24441 2019-06-07 Martin Liska <mliska@suse.cz>
24442
24443 PR tree-optimization/78902
24444 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24445 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24446 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24447 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24448 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24449 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24450 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24451 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24452 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24453 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24454 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24455 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24456 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24457 New.
24458 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24459 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24460 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24461 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24462 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24463 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24464 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24465 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24466 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24467 warn_unused_result attribute.
24468 (BUILT_IN_STRDUP): Likewise.
24469 (BUILT_IN_STRNDUP): Likewise.
24470 (BUILT_IN_ALLOCA): Likewise.
24471 (BUILT_IN_CALLOC): Likewise.
24472 (BUILT_IN_MALLOC): Likewise.
24473 (BUILT_IN_REALLOC): Likewise.
24474
24475 2019-06-06 Jim Wilson <jimw@sifive.com>
24476
24477 PR target/89955
24478 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24479 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24480 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24481
24482 2019-06-06 Martin Sebor <msebor@redhat.com>
24483
24484 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24485 (handle_builtin_malloc): Remove trailing spaces.
24486 (handle_builtin_memset): Same.
24487 (handle_builtin_memcmp): Same.
24488 (compute_string_length): Same.
24489 (determine_min_objsize): Same.
24490 (handle_builtin_string_cmp): Same.
24491 (handle_char_store): Same. Break up excessively long line.
24492
24493 2019-06-06 Martin Jambor <mjambor@suse.cz>
24494
24495 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24496 check.
24497
24498 2019-06-06 Martin Jambor <mjambor@suse.cz>
24499
24500 * tree-sra.c (struct access): New field grp_same_access_path.
24501 (dump_access): Dump it.
24502 (build_reconstructed_reference): New function.
24503 (build_ref_for_model): Use it if possible.
24504 (path_comparable_for_same_access): New function.
24505 (same_access_path_p): Likewise.
24506 (sort_and_splice_var_accesses): Set the new flag.
24507 (analyze_access_subtree): Likewise.
24508 (propagate_subaccesses_across_link): Propagate zero value of the new
24509 flag down the access tree.
24510
24511 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24512
24513 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24514 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24515 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24516 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24517 Add gfx906.
24518
24519 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24520
24521 PR tree-optimization/90332
24522 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24523 Handle VALS containing two vectors.
24524 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24525 to...
24526 (@aarch64_combinez<mode>): ... This.
24527 (*aarch64_combinez_be<mode>): Rename to...
24528 (@aarch64_combinez_be<mode>): ... This.
24529 (vec_init<mode><Vhalf>): New define_expand.
24530 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24531
24532 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24533
24534 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24535 library functions only when not optimizing for size.
24536 (ashlsi3): Likewise.
24537 (ashrhi3): Likewise.
24538 (ashrsi3): Likewise.
24539 (lshrhi3): Likewise.
24540 (lshrsi3): Likewise.
24541
24542 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24543
24544 PR rtl-optimization/88751
24545 * ira.c (ira): Use the number of the actually referenced registers
24546 when calculating the threshold.
24547
24548 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24549
24550 * configure: Regenerate.
24551
24552 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24553
24554 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24555 register if it is in memory, so the shift can be emulated with a rotate
24556 instruction.
24557 (ashrhi3): Likewise.
24558 (lshrhi3): Likewise.
24559
24560 2019-06-06 Martin Liska <mliska@suse.cz>
24561
24562 PR tree-optimization/87954
24563 * match.pd: Simplify mult where both arguments are 0 or 1.
24564
24565 2019-06-06 Richard Biener <rguenther@suse.de>
24566
24567 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24568 put equivalences on UNDEFINED ranges.
24569 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24570 Make sure to drop defs of stmts added during simplification
24571 to VARYING.
24572
24573 2019-06-06 Richard Biener <rguenther@suse.de>
24574
24575 * tree-ssa-structalias.c: Include tree-cfg.h.
24576 (make_heapvar): Do not make heap vars artificial.
24577 (find_func_aliases_for_builtin_call): Handle stack allocation
24578 functions.
24579 (find_func_aliases): Delay processing of simple enough returns
24580 in non-IPA mode.
24581 (set_uids_in_ptset): Adjust.
24582 (find_what_var_points_to): Likewise.
24583 (solve_constraints): Do not dump points-to sets here.
24584 (compute_points_to_sets): Post-process return statements,
24585 amending the escaped solution. Dump points-to sets afterwards.
24586 (ipa_pta_execute): Dump points-to sets.
24587
24588 2019-06-06 Martin Liska <mliska@suse.cz>
24589
24590 PR web/87933
24591 * doc/install.texi: Fix HTML headers and
24592 titles for 'Installing GCC' pages.
24593
24594 2019-06-06 Martin Liska <mliska@suse.cz>
24595
24596 * ipa-icf-gimple.h (dump_message_1): Remove.
24597 (dump_message): Likewise.
24598 (return_false_with_message_1): Print also file.
24599 (return_false_with_msg): Likewise.
24600 (return_with_result): Likewise.
24601 (return_with_debug): Likewise.
24602 * ipa-icf.c (sem_function::equals_private): Remove call
24603 to dump_message.
24604
24605 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24606
24607 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24608 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24609 memory operand for it.
24610 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24611
24612 2019-06-05 Martin Sebor <msebor@redhat.com>
24613
24614 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24615 Adjust quoting and hyphenation.
24616 * convert.c (convert_to_real_1): Same.
24617 * gcc.c (driver_wrong_lang_callback): Same.
24618 (driver::handle_unrecognized_options): Same.
24619 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24620 * opts-common.c (cmdline_handle_error): Same.
24621 (read_cmdline_option): Same.
24622 * opts-global.c (complain_wrong_lang): Same.
24623 (print_ignored_options): Same.
24624 (handle_common_deferred_options): Same.
24625 * pretty-print.h: Same.
24626 * print-rtl.c (debug_bb_n_slim): Same.
24627 * sched-rgn.c (make_pass_sched_fusion): Same.
24628 * tree-cfg.c (verify_gimple_assign_unary): Same.
24629 (verify_gimple_label): Same.
24630 * tree-ssa-operands.c (verify_ssa_operands): Same.
24631 * varasm.c (do_assemble_alias): Same.
24632 (assemble_alias): Same.
24633
24634 2019-06-05 Richard Henderson <rth@twiddle.net>
24635
24636 * config/alpha/alpha.c (direct_return): Move down after
24637 struct machine_function definition; use saved frame_size;
24638 return bool.
24639 (struct machine_function): Add sa_mask, sa_size, frame_size.
24640 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24641 (alpha_compute_frame_layout): ... new function.
24642 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24643 (alpha_initial_elimination_offset): Use saved sa_size.
24644 (alpha_vms_initial_elimination_offset): Likewise.
24645 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24646 (alpha_expand_prologue): Use saved frame data. Merge integer
24647 and fp register save loops.
24648 (alpha_expand_epilogue): Likewise.
24649 (alpha_start_function): Use saved frame data.
24650 * config/alpha/alpha-protos.h (direct_return): Update.
24651 (alpha_sa_size): Remove.
24652
24653 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24654
24655 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24656 multiplication by a power-of-two value.
24657 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24658 and turn the modulo operation into a masking operation.
24659
24660 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24661
24662 PR debug/90733
24663 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24664 with VOIDmode inner operands.
24665
24666 2019-06-05 Richard Biener <rguenther@suse.de>
24667
24668 PR middle-end/90726
24669 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24670 turn an expression graph into a tree.
24671
24672 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24673
24674 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24675 member.
24676 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24677 treat it like explicit monotonic schedule modifier.
24678 (expand_omp_for): Initialize has_lastprivate_conditional.
24679 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24680 schedule modifier.
24681
24682 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24683 references, lookup in in hash map MEM_REF operand instead of the
24684 MEM_REF itself.
24685 (lower_omp_1): When looking for lastprivate conditional assignments,
24686 handle MEM_REFs with REFERENCE_TYPE operands.
24687
24688 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24689 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24690 and references a VLA. Handle references to non-VLAs if is_simd
24691 all privatization clauses like reductions.
24692 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24693 If omp_is_reference, use always omp simd arrays and set
24694 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24695 fails, emit reference initialization.
24696
24697 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24698
24699 PR target/89803
24700 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24701 _mm_mask_fpclass_sd_mask): New intrinsics.
24702 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24703 * config/i386/i386-builtin.def
24704 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24705 New builtins.
24706 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24707 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24708 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24709 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24710 case QI_FTYPE_V2SF_INT): Ditto.
24711 * config/i386/sse.md
24712 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24713 Extended to insnstructions with mask operands.
24714
24715 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24716
24717 * config/rs6000/constraints.md (define_register_constraint "wp"):
24718 Delete.
24719 (define_register_constraint "wq"): Delete.
24720 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24721 (rs6000_init_hard_regno_mode_ok): Adjust.
24722 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24723 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24724 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24725 (define_mode_attr VSa): Delete.
24726 (define_mode_attr VSisa): New.
24727 (rest of file): Adjust.
24728 * doc/md.texi (Machine Constraints): Adjust.
24729
24730 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24731
24732 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24733 (define_attr "enabled"): Handle those new isa values.
24734
24735 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24736
24737 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24738 (define_mode_attr VSr5): Delete.
24739 (define_mode_attr VStype_sqrt): Delete.
24740 (define_mode_iterator VSX_SPDP): Delete.
24741 (define_mode_attr VS_spdp_res): Delete.
24742 (define_mode_attr VS_spdp_insn): Delete.
24743 (define_mode_attr VS_spdp_type): Delete.
24744 (*vsx_sqrt<mode>2): Adjust.
24745 (vsx_<VS_spdp_insn>): Delete, split to...
24746 (vsx_xscvdpsp): ... this. New. And...
24747 (vsx_xvcvspdp): ... this. New. And...
24748 (vsx_xvcvdpsp): ... this. New.
24749
24750 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24751
24752 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24753 and V2DF.
24754 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24755 (rest of file): Adjust.
24756
24757 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24758
24759 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24760 (vsx_extract_<mode>_var): Ditto.
24761
24762 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24763
24764 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24765 with just "wa".
24766
24767 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24768
24769 * config/rs6000/constraints.md (define_register_constraint "ww"):
24770 Delete.
24771 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24772 (rs6000_init_hard_regno_mode_ok): Adjust.
24773 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24774 RS6000_CONSTRAINT_ww.
24775 * config/rs6000/rs6000.md: Adjust.
24776 * config/rs6000/vsx.md: Adjust.
24777 * doc/md.texi (Machine Constraints): Adjust.
24778
24779 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24780
24781 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24782 (define_mode_attr sd): New.
24783 (define_mode_attr s): New.
24784 (define_mode_attr Ftrad): Delete.
24785 (define_mode_attr Fvsx): Delete.
24786 (define_mode_attr Fs): Delete.
24787 (rest of file): Use the new mode attributes.
24788 * config.rs6000/vsx.md: Use the new mode attributes.
24789
24790 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24791
24792 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24793 with just "wa".
24794
24795 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24796
24797 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24798 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24799 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24800
24801 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24802
24803 PR target/78263
24804 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24805 C++ with strict ANSI requirements.
24806
24807 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24808
24809 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24810 computations when step is 1.
24811
24812 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24813
24814 * config/rs6000/constraints.md (define_register_constraint "wf"):
24815 Delete.
24816 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24817 (rs6000_init_hard_regno_mode_ok): Adjust.
24818 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24819 RS6000_CONSTRAINT_wf.
24820 * config/rs6000/rs6000.md: Adjust.
24821 * config/rs6000/vsx.md: Adjust.
24822 * doc/md.texi (Machine Constraints): Adjust.
24823
24824 2019-06-04 Andrew Pinski <apinski@marvell.com>
24825
24826 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24827 Fix ILP32 value.
24828
24829 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24830
24831 * config/rs6000/constraints.md (define_register_constraint "wd"):
24832 Delete.
24833 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24834 (rs6000_init_hard_regno_mode_ok): Adjust.
24835 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24836 RS6000_CONSTRAINT_wd.
24837 * config/rs6000/rs6000.md: Adjust.
24838 * config/rs6000/vsx.md: Adjust.
24839 * doc/md.texi (Machine Constraints): Adjust.
24840
24841 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24842
24843 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24844 (rest of file): Adjust.
24845
24846 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24847
24848 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24849 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24850 (vsx_splat_<mode>_reg): Adjust.
24851
24852 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24853
24854 * config/rs6000/constraints.md (define_register_constraint "ws"):
24855 Delete.
24856 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24857 (rs6000_init_hard_regno_mode_ok): Adjust.
24858 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24859 RS6000_CONSTRAINT_ws.
24860 * config/rs6000/rs6000.md: Adjust.
24861 * config/rs6000/vsx.md: Adjust.
24862 * doc/md.texi (Machine Constraints): Adjust.
24863
24864 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24865
24866 * config/rs6000/constraints.md (define_register_constraint "wv"):
24867 Delete.
24868 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24869 (rs6000_init_hard_regno_mode_ok): Adjust.
24870 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24871 RS6000_CONSTRAINT_wv.
24872 * config/rs6000/rs6000.md: Adjust.
24873 * config/rs6000/vsx.md: Adjust.
24874 * doc/md.texi (Machine Constraints): Adjust.
24875
24876 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24877
24878 * config/rs6000/constraints.md (define_register_constraint "wi"):
24879 Delete.
24880 (define_register_constraint "wt"): Delete.
24881 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24882 (rs6000_init_hard_regno_mode_ok): Adjust.
24883 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24884 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24885 * config/rs6000/rs6000.md: Adjust.
24886 * config/rs6000/vsx.md: Adjust.
24887 * doc/md.texi (Machine Constraints): Adjust.
24888
24889 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24890
24891 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24892 const.
24893 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24894 default_elf_asm_output_external.
24895
24896 2019-06-04 Martin Liska <mliska@suse.cz>
24897
24898 * ipa-icf.c (INCLUDE_LIST): Remove.
24899 (sem_item_optimizer::execute): Remove call to init_wpa.
24900 * ipa-icf.h (init_wpa): Remove.
24901
24902 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24903
24904 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24905 conditional on combined for simd.
24906 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24907 member.
24908 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24909 constructs, don't remove lastprivate_conditional_map, but instead set
24910 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24911 to parent construct temporaries.
24912 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24913 like !ctx->lastprivate_conditional_map.
24914 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24915 use up->outer context instead of up.
24916 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24917 gimple_omp_for_combined_p.
24918 (expand_omp_for_static_nochunk): Likewise.
24919 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24920 probably moved over into expand_omp_for_generic rather than being copied
24921 there.
24922
24923 2019-06-04 Martin Liska <mliska@suse.cz>
24924
24925 * value-prof.c (dump_histogram_value): Fix typo.
24926 (gimple_mod_subtract_transform): Likewise.
24927
24928 2019-06-04 Richard Biener <rguenther@suse.de>
24929
24930 PR middle-end/90726
24931 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24932 (tree_contains_chrecs): Likewise.
24933 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24934 exponential behaivor from ...
24935 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24936 ... here.
24937 (expression_expensive_p): Avoid exponential behavior and compute
24938 expanded size, rejecting any expansion.
24939 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24940 (idx_contains_abnormal_ssa_name_p): Likewise.
24941 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24942 (contains_abnormal_ssa_name_p): Simplify and use
24943 walk_tree_without_duplicates.
24944
24945 2019-06-04 Richard Biener <rguenther@suse.de>
24946
24947 PR tree-optimization/90738
24948 Revert
24949 2019-06-03 Richard Biener <rguenther@suse.de>
24950
24951 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24952 full reference tree and record in ref->ref.
24953 (vn_reference_lookup_3): Pass in original ref to
24954 ao_ref_init_from_vn_reference.
24955 (vn_reference_lookup): Likewise.
24956 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24957 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24958 Handle non-decl bases in the original reference.
24959
24960 2019-06-04 Martin Liska <mliska@suse.cz>
24961
24962 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24963 number of references.
24964 (sem_item_optimizer::do_congruence_step):
24965 (sem_item_optimizer::worklist_push): Dump how references
24966 a class has.
24967 (sem_item_optimizer::worklist_pop): Use heap.
24968 (sem_item_optimizer::process_cong_reduction): Likewise.
24969 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24970
24971 2019-06-04 Martin Liska <mliska@suse.cz>
24972
24973 * ipa-icf.h (struct sem_usage_pair_hash): New.
24974 (sem_usage_pair_hash::hash): Likewise.
24975 (sem_usage_pair_hash::equal): Likewise.
24976 (struct sem_usage_hash): Likewise.
24977 * ipa-icf.c (sem_item::sem_item): Initialize
24978 referenced_by_count.
24979 (sem_item::add_reference): Register a reference
24980 in ref_map and not in target->usages.
24981 (sem_item::setup): Remove initialization of
24982 dead vectors.
24983 (sem_item::~sem_item): Remove usage of dead vectors.
24984 (sem_item::dump): Remove dump of references.
24985 (sem_item_optimizer::sem_item_optimizer): Initialize
24986 m_references.
24987 (sem_item_optimizer::read_section): Remove useless
24988 dump.
24989 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24990 (sem_item_optimizer::build_graph): Pass m_references
24991 to ::add_reference.
24992 (sem_item_optimizer::verify_classes): Remove usage of dead
24993 vectors.
24994 (sem_item_optimizer::traverse_congruence_split): Return true
24995 when a class is split.
24996 (sem_item_optimizer::do_congruence_step_for_index): Use
24997 hash_map for look up of (sem_item *, index). That brings
24998 significant speed up.
24999 (sem_item_optimizer::do_congruence_step): Return true
25000 when a split is done.
25001 (congruence_class::is_class_used): Use referenced_by_count.
25002
25003 2019-06-04 Alan Modra <amodra@gmail.com>
25004
25005 PR target/90689
25006 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25007 error.
25008
25009 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25010
25011 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25012 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25013 (rs6000_secondary_reload_simple_move): Adjust.
25014 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25015 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25016 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25017 comment.
25018 (power6x): Adjust.
25019 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25020 (floatunssi<mode>2_lfiwzx): Adjust.
25021 (fix_trunc<mode>si2_stfiwx): Adjust.
25022 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25023 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25024 (mfpgpr): Mark as deprecated.
25025 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25026 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25027 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25028
25029 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25030
25031 * config/rs6000/constraints.md (define_register_constraint "wg"):
25032 Delete.
25033 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25034 RS6000_CONSTRAINT_wg.
25035 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25036 (rs6000_init_hard_regno_mode_ok): Adjust.
25037 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25038 Delete "wg" alternatives.
25039 * doc/md.texi (Machine Constraints): Adjust.
25040
25041 2019-06-03 Alan Modra <amodra@gmail.com>
25042
25043 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25044 (get_uncond_jump_length): Assert length less than INT_MAX and
25045 non-negative.
25046
25047 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25048
25049 PR middle-end/64242
25050 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25051 block.
25052 (expand_builtin_nonlocal_goto): Likewise.
25053
25054 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25055
25056 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25057 (aarch64_asm_output_external): Declare.
25058 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25059 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25060 (aarch64_asm_output_alias): New.
25061 (aarch64_asm_output_external): New.
25062 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25063 (ASM_OUTPUT_EXTERNAL): Define.
25064
25065 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25066 * tree-vrp.h (value_range_base::nonzero_p): New.
25067 (value_range_base::set_nonnull): Rename to...
25068 (value_range_base::set_nonzero): ...this.
25069 (value_range_base::set_null): Rename to...
25070 (value_range_base::set_zero): ...this.
25071 (value_range::set_nonnull): Remove.
25072 (value_range::set_null): Remove.
25073 * tree-vrp.c (range_is_null): Remove.
25074 (range_is_nonnull): Remove.
25075 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25076 instead of range_is_*null.
25077 (extract_range_from_unary_expr): Same.
25078 (value_range_base::set_nonnull): Rename to...
25079 (value_range_base::set_nonzero): ...this.
25080 (value_range::set_nonnull): Remove.
25081 (value_range_base::set_null): Rename to...
25082 (value_range_base::set_zero): ...this.
25083 (value_range::set_null): Remove.
25084 (extract_range_from_binary_expr): Rename set_*null uses to
25085 set_*zero.
25086 (extract_range_from_unary_expr): Same.
25087 (union_helper): Same.
25088 * vr-values.c (get_value_range): Use set_*zero instead of
25089 set_*null.
25090 (vr_values::extract_range_from_binary_expr): Same.
25091 (vr_values::extract_range_basic): Same.
25092
25093 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25094
25095 PR driver/90684
25096 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25097
25098 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25099
25100 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25101 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25102 Rename to...
25103 (aarch64_<su>abd<mode>_3): ... This.
25104 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25105
25106 2019-06-03 Richard Biener <rguenther@suse.de>
25107
25108 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25109 full reference tree and record in ref->ref.
25110 (vn_reference_lookup_3): Pass in original ref to
25111 ao_ref_init_from_vn_reference.
25112 (vn_reference_lookup): Likewise.
25113 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25114 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25115 Handle non-decl bases in the original reference.
25116
25117 2019-06-03 Martin Liska <mliska@suse.cz>
25118
25119 * doc/generic.texi: Remove Java Trees.
25120
25121 2019-06-03 Martin Liska <mliska@suse.cz>
25122
25123 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25124 returns 0 when operands are equal.
25125
25126 2019-06-03 Richard Biener <rguenther@suse.de>
25127
25128 PR tree-optimization/90716
25129 * tree-loop-distribution.c (destroy_loop): Process blocks in
25130 correct order.
25131
25132 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25133
25134 PR target/88837
25135 * vector-builder.h (vector_builder::count_dups): New method.
25136 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25137 Declare prototype.
25138 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25139 (vec_init<mode><Vel>): New pattern.
25140 * config/aarch64/aarch64.c (emit_insr): New function.
25141 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25142 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25143 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25144 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25145
25146 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25147
25148 PR tree-optimization/90681
25149 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25150 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25151 special case for SLP, but fail on non-groupped loads.
25152
25153 2019-06-03 Martin Liska <mliska@suse.cz>
25154
25155 * cfg.c (debug): Use TDF_DETAILS for debug and
25156 print edge info only once.
25157
25158 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25159
25160 PR fortran/90539
25161 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25162
25163 2019-06-01 Martin Sebor <msebor@redhat.com>
25164
25165 PR middle-end/90694
25166 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25167
25168 2019-05-31 Jan Hubicka <jh@suse.cz>
25169
25170 * alias.c: Include ipa-utils.h.
25171 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25172 * ipa-devirt.c (prevailing_odr_type): New.
25173 * ipa-utils.h (previaling_odr_type): Declare.
25174
25175 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25176 Hongtao Liu <hongtao.liu@intel.com>
25177
25178 PR target/89355
25179 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25180 NOTE_INSN_DELETED_LABEL check.
25181
25182 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25183 Robert Suchanek <robert.suchanek@mips.com>
25184
25185 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25186 and 3rd operands of the fmadd/fmsub/maddv builtin.
25187
25188 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25189
25190 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25191 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25192 on OMP_SIMD if not nested inside of worksharing loop that also has
25193 lastprivate conditional clause for the same decl.
25194 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25195 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25196 on simd.
25197 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25198 on simd construct.
25199 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25200 on simd construct.
25201 (lower_lastprivate_clauses): Likewise.
25202 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25203 calling lower_rec_input_clauses.
25204 (lower_omp_for): Likewise.
25205 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25206 clause on simd construct.
25207 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25208 OMP_CLAUSE__CONDTEMP_ clause is present.
25209
25210 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25211 ivar and lvar.
25212
25213 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25214
25215 PR c/43673
25216 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25217 TEX_D32, TEX_D64 or TEX_D128.
25218
25219 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25220
25221 * match.pd (~(vec?cst1:cst2)): New transformation.
25222
25223 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25224
25225 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25226 ((size_t)(A /[ex] B) CMP C): New transformation.
25227
25228 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25229
25230 * doc/md.texi: Document define_insn_and_rewrite.
25231 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25232 * gensupport.c (queue_elem): Update comment.
25233 (replace_operands_with_dups): New function.
25234 (gen_rewrite_sequence): Likewise.
25235 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25236 * read-rtl.c (apply_subst_iterator): Likewise.
25237 (add_condition_to_rtx, named_rtx_p): Likewise.
25238 (rtx_reader::read_rtx_operand): Likewise.
25239 * config/aarch64/aarch64-sve.md
25240 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25241 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25242 define_insn_and_rewrite.
25243 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25244 Remove separate define_split.
25245
25246 2019-05-31 Jan Hubicka <jh@suse.cz>
25247
25248 * tree-ssa-alias.c (type_has_components_p): New function.
25249 (aliasing_component_refs_p): Use it.
25250
25251 2019-05-31 Martin Liska <mliska@suse.cz>
25252
25253 * gdbhooks.py: Add const_tree to TreePrinter.
25254
25255 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25256
25257 PR debug/86964
25258 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25259 * doc/invoke.texi (Debugging Options): Document new default of
25260 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25261
25262 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25263
25264 PR tree-optimization/90671
25265 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25266 template_block used to be empty on the first call, don't use
25267 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25268 seq with bb_seq and set it with set_bb_seq.
25269
25270 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25271
25272 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25273
25274 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25275 Michael Meissner <meissner@linux.ibm.com>
25276
25277 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25278 (prefixed_mem_operand): Likewise.
25279 (non_prefixed_mem_operand): Likewise.
25280 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25281 prototype.
25282 * config/rs6000/rs6000.c (print_operand_address): Handle
25283 PC-relative addresses.
25284 (mode_supports_prefixed_address_p): New function.
25285 (rs6000_prefixed_address): New function.
25286 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25287 (SYMBOL_REF_PCREL_P): Likewise.
25288
25289 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25290
25291 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25292 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25293 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25294 is nested inside of parallel region, add _condtemp_ clause to both.
25295 * tree-nested.c (convert_nonlocal_omp_clauses,
25296 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25297 assertion failure.
25298 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25299 member.
25300 * omp-general.c (omp_extract_for_data): Compute it.
25301 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25302 (lower_rec_input_clauses): Likewise.
25303 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25304 clause is already present, just add one further one after it.
25305 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25306 (lower_send_shared_vars): Clear _condtemp_ vars.
25307 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25308 or section or taskgroup.
25309 * omp-expand.c (determine_parallel_type): Disallow combining only if
25310 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25311 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25312 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25313 expand_omp_for_static_chunk, expand_omp_for): Use
25314 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25315 determine if a special set of API routines are needed and if condtemp
25316 needs to be initialized, while always initialize cond_var if
25317 fd->lastprivate_conditional is non-zero.
25318
25319 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25320 Michael Meissner <meissner@linux.ibm.com>
25321
25322 * config/rs6000/constraints.md (eI): New constraint.
25323 * config/rs6000/predicates.md (cint34_operand): New predicate.
25324 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25325 (SIGNED_34BIT_OFFSET_P): Likewise.
25326 * doc/md.texi (eI): Document constraint.
25327
25328 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25329
25330 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25331
25332 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25333 Michael Meissner <meissner@linux.ibm.com>
25334
25335 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25336 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25337 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25338 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25339 (OTHER_FUTURE_MASKS): Likewise.
25340 (POWERPC_MASKS): Likewise.
25341 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25342 specified without -mprefixed-addr or -mcpu=future. Error if
25343 -mprefixed-addr is specified without -mcpu=future.
25344 (rs6000_opt_masks): Add entry for prefixed-addr.
25345 * rs6000.opt (mprefixed-addr): New option.
25346
25347 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25348
25349 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25350 cfun->is_thunk check.
25351
25352 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25353
25354 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25355 to length.
25356
25357 2019-05-30 Martin Liska <mliska@suse.cz>
25358
25359 * gdbinit.in: Fix 'ptc' command. Add trt
25360 that prints TREE_TYPE($).
25361
25362 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25363 Alan Modra <amodra@gmail.com>
25364
25365 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25366 calls here...
25367 (rs6000_indirect_call_template_1): ...and here.
25368 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25369 plt16_ha, plt16_lo, mtctr indirect calls. Use
25370 rs6000_pltseq_enum.
25371 (rs6000_decl_ok_for_sibcall): New function.
25372 (rs6000_function_ok_for_sibcall): Refactor.
25373 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25374 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25375 when pcrel. Reorganize.
25376 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25377 * rs6000.h (rs6000_pltseq_enum): New enum.
25378 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25379 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25380 (*pltseq_plt16_ha): Likewise.
25381 (*pltseq_plt16_lo): Likewise.
25382 (*pltseq_mtctr): Likewise.
25383 (*pltseq_plt_pcrel): New insn.
25384 (*call_local_aix): Handle @notoc calls.
25385 (*call_value_local_aix): Likewise.
25386 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25387 (*call_value_nonlocal_aix): Likewise.
25388 (*call_indirect_pcrel): New insn.
25389 (*call_value_indirect_pcrel): Likewise.
25390
25391 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25392
25393 * config/i386/sse.md (*save_multiple<mode>): Rename from
25394 save_multiple<mode>.
25395 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25396 (*restore_multiple_and_return<mode>): Rename from
25397 restore_multiple_and_return<mode>.
25398 (*restore_multiple_leave_return<mode>): Rename from
25399 restore_multiple_leave_return<mode>.
25400
25401 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25402
25403 * config.gcc (rx-*-linux*): New target.
25404 * config/rx/elf.opt: New file.
25405 * config/rx/linux.h: Likewise.
25406 * config/rx/t-linux: Likewise.
25407 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25408 make it zero.
25409 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25410 (ASM_APP_OFF): Likewise.
25411 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25412 moved elsewhere.
25413
25414 2019-05-29 Jan Hubicka <jh@suse.cz>
25415
25416 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25417 variants are pointer equivalent.
25418
25419 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25420
25421 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25422 * config/aarch64/aarch64-sve2.md: New file.
25423 (<u>avg<mode>3_floor): New pattern.
25424 (<u>avg<mode>3_ceil): Likewise.
25425 (*<sur>h<addsub><mode>): Likewise.
25426 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25427 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25428
25429 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25430
25431 PR bootstrap/90543
25432 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25433 for var_opt_string printing. In cl_optimization_print_diff, print
25434 (null) instead of invoking undefined behavior if one of the
25435 var_opt_string pointers is NULL and use && instead of first || in the
25436 guarding condition. For var_target_other options, handle const char *
25437 target variables similarly to const char * optimize node variables.
25438
25439 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25440
25441 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25442 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25443 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25444 Add autib1716 and pacib1716 initialisation.
25445 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25446 for autib1716 and pacib1716.
25447 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25448 aarch64_post_cfi_startproc): Define.
25449 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25450 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25451 aarch64_handle_pac_ret_protection): Set default sign key to A.
25452 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25453 aarch64_expand_prologue): Add check for b-key.
25454 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25455 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25456 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25457 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25458 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25459 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25460 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25461 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25462 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25463 pauth_hint_num_a with pauth_hint_num.
25464 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25465 pauth_hint_num_a with pauth_hint_num.
25466 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25467 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25468 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25469 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25470 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25471 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25472 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25473 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25474 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25475 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25476 UNSPEC_AUTIA1716 respectively.
25477 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25478 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25479 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25480 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25481 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25482 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25483
25484 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25485
25486 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25487 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25488 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25489 explicit clause on combined parallel into implicit shared clause.
25490 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25491 and firstprivate if the decl has one too from combined parallel to
25492 the worksharing construct.
25493
25494 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25495 Michael Meissner <meissner@linux.ibm.com>
25496
25497 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25498
25499 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25500
25501 * rtl.h (LABEL_REF_P): New #define.
25502
25503 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25504
25505 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25506
25507 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25508
25509 * internal-fn.c: Marked mask_load_direct as vectorizable.
25510 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25511 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25512 combined even if masks different with allow_slp_p param.
25513 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25514 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25515 dissolve SLP-only vectorizable groups when SLP has been discarded.
25516 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25517 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25518 masks.
25519 (vect_build_slp_tree_1): Fixed comment typo.
25520 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25521 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25522 loads for SLP only.
25523 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25524 vectorizable.
25525 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25526
25527 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25528
25529 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25530 Remove obsolete use_thunk reference.
25531 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25532 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25533 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25534 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25535 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25536 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25537 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25538 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25539 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25540
25541 2019-05-28 Nathan Sidwell <nathan@acm.org>
25542
25543 * tree.h (IDENTIFIER_ANON_P): New.
25544 (anon_aggrname_format, anon_aggname_p): Don't declare.
25545 (make_anon_name): Declare.
25546 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25547 (hash_tree): Likewise.
25548 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25549 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25550 (anon_cnt, make_anon_name): New.
25551
25552 2019-05-28 Martin Liska <mliska@suse.cz>
25553
25554 PR other/90315
25555 * opts-global.c (decode_options): Print help for all
25556 help_option_arguments.
25557 * opts.c (print_help): Add new argument.
25558 (common_handle_option): Remember all values into
25559 help_option_arguments.
25560 * opts.h (print_help): Add new argument.
25561
25562 2019-05-28 Martin Liska <mliska@suse.cz>
25563
25564 PR ipa/90555
25565 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25566 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25567 (func_checker::compare_bb): Call compare_loops.
25568
25569 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25570
25571 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25572 on sections construct.
25573 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25574 construct.
25575 (lower_omp_sections): Handle lastprivate conditional.
25576 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25577 lastprivate_conditional_map.
25578 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25579
25580 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25581 critical, taskgroup and section regions when looking for a region
25582 with non-NULL lastprivate_conditional_map.
25583
25584 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25585
25586 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25587 (*ix86_gen_sub3): Ditto.
25588 (*ix86_gen_sub3_carry): Ditto.
25589 (*ix86_gen_one_cmpl2): Ditto.
25590 (*ix86_gen_andsp): Ditto.
25591 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25592 (gen_and2_insn): New static function.
25593 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25594 Use gen_add3_insn instead of ix86_gen_add3.
25595 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25596 instead of ix86_gen_add3.
25597 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25598 Use gen_sub3_insn instead of ix86_gen_sub3.
25599 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25600 instead of ix86_gen_add3.
25601 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25602 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25603 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25604 * config/i386/i386-options.c (ix86_option_override_internal):
25605 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25606 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25607
25608 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25609
25610 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25611 and DW_OP_GNU_const_index opcodes.
25612
25613 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25614
25615 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25616
25617 2019-05-27 Richard Biener <rguenther@suse.de>
25618
25619 PR tree-optimization/90637
25620 * tree-ssa-sink.c (statement_sink_location): Honor the
25621 computed sink location for single-uses.
25622
25623 2019-05-27 Richard Biener <rguenther@suse.de>
25624
25625 PR middle-end/90610
25626 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25627 a bit-insert.
25628
25629 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25630
25631 * config/i386/i386.md (@sub<mode>3_carry): Rename
25632 from sub<mode>3_carry.
25633 (@leave_<mode>): New expander.
25634 (*leave): Rename from leave.
25635 (*leave_rex64): Rename from leave_rex64.
25636 (@monitorx_<mode>): Rename from monitorx_<mode>.
25637 (@clzero_<mode>): Rename from clzero_<mode>.
25638 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25639 from sse3_monitor_<mode>.
25640 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25641 (*ix86_gen_leave): Ditto.
25642 (*ix86_gen_monitor): Ditto.
25643 (*ix86_gen_monitorx): Ditto.
25644 (*ix86_gen_clzero): Ditto.
25645 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25646 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25647 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25648 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25649 Use gen_sse3_monitor instead of ix86_gen_monitor.
25650 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25651 instead of ix86_gen_monitorx.
25652 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25653 instead of ix86_gen_clzero.
25654 * config/i386/i386-options.c (ix86_option_override_internal):
25655 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25656 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25657
25658 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25659
25660 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25661 Rename from tls_global_dynamic_64_<mode>.
25662 (@tls_local_dynamic_base_64_<mode>): Rename from
25663 tls_local_dynamic_base_64_<mode>.
25664 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25665 Remove indirect function.
25666 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25667 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25668 instead of ix86_gen_tls_global_dynamic_64.
25669 Use gen_tls_local_dynamic_base_64 instead of
25670 ix86_gen_tls_local_dynamic_base_64.
25671 * config/i386/i386-options.c (ix86_option_override_internal):
25672 Do not initialize ix86_gen_tls_global_dynamic_64 and
25673 ix86_gen_tls_local_dynamic_base_64.
25674
25675 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25676
25677 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25678 Rename from pro_epilogue_adjust_stack_<mode>_add.
25679 (@pro_epilogue_adjust_stack_sub_<mode>)
25680 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25681 (@allocate_stack_worker_probe_<mode>):
25682 Rename from allocate_stack_worker_probe_<mode>.
25683 (allocate_stack): Use gen_allocate_stack_worker_probe.
25684 (probe_stack): Use gen_probe_stack_1.
25685 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25686 (@adjust_stack_and_probe_<mode>): Rename from
25687 adjust_stack_and_probe<mode>.
25688 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25689 (stack_protect_set): Use gen_stack_protect_set_1.
25690 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25691 (stack_protect_test): Use gen_stack_protect_test_1.
25692 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25693 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25694 Remove indirect function.
25695 (*ix86_gen_adjust_stack_and_probe): Ditto.
25696 (*ix86_gen_probe_stack_range): Ditto.
25697 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25698 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25699 (ix86_adjust_stack_and_probe_stack_clash): Use
25700 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25701 (ix86_adjust_stack_and_probe): Ditto.
25702 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25703 of ix86_gen_probe_stack_range.
25704 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25705 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25706 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25707 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25708 CODE_FOR_stack_protect_test_{si,di}.
25709 * config/i386/i386-options.c (ix86_option_override_internal):
25710 Do not initialize ix86_gen_allocate_stack_worker,
25711 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25712
25713 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25714
25715 * doc/invoke.texi (Link Options): Many editorial changes around
25716 -flinker-output.
25717
25718 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25719
25720 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25721 pre-Solaris 11 referene and most Studio compiler details.
25722
25723 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25724
25725 PR target/90530
25726 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25727 DImode to SImode in floating-point registers on 64-bit target.
25728 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25729 register_operand in xmpyu patterns.
25730
25731 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25732
25733 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25734 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25735 OMP_CLAUSE__REDUCTEMP_.
25736 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25737 OMP_CLAUSE__CONDTEMP_.
25738 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25739 * tree-pretty-print.c (dump_omp_clause): Likewise.
25740 * tree-nested.c (convert_nonlocal_omp_clauses,
25741 convert_local_omp_clauses): Likewise.
25742 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25743 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25744 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25745 on OMP_FOR.
25746 (gimplify_omp_for): Warn and disable conditional modifier from
25747 lastprivate on loop iterators.
25748 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25749 member.
25750 * omp-general.c (omp_extract_for_data): Initialize it.
25751 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25752 member.
25753 (delete_omp_context): Delete it.
25754 (lower_lastprivate_conditional_clauses): New function.
25755 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25756 handle lastprivate conditional clauses.
25757 (lower_reduction_clauses): Add CLIST argument, emit it into
25758 the critical section if any.
25759 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25760 lower_reduction_clauses callers.
25761 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25762 to lower_lastprivate_clauses.
25763 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25764 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25765 clist into a critical section if not emitted there already by
25766 lower_reduction_clauses.
25767 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25768 callers.
25769 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25770 conditional variables.
25771 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25772 clause is present.
25773 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25774 expand_omp_for_static_chunk): Handle lastprivate conditional.
25775 (expand_omp_for): Handle fd.lastprivate_conditional like
25776 fd.have_reductemp.
25777
25778 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25779
25780 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25781 kernel does not exit cleanly.
25782 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25783
25784 2019-05-24 Jason Merrill <jason@redhat.com>
25785
25786 Revert:
25787 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25788
25789 2019-05-24 Richard Biener <rguenther@suse.de>
25790
25791 PR testsuite/90607
25792 * tree-loop-distribution.c (struct partition): Add location
25793 member.
25794 (partition_alloc): Initialize all fields.
25795 (generate_memset_builtin): Use the location recorded in the
25796 partition for the generated call.
25797 (generate_memcpy_builtin): Likewise.
25798 (classify_partition): Record the location of a single store
25799 as location for the partition.
25800
25801 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25802
25803 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25804 for lo-part.
25805
25806 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25807
25808 PR target/90588
25809 * common/config/aarch64/aarch64-common.c
25810 (aarch64_rewrite_selected_cpu): Change local temporary variable
25811 type from unsigned long to uint64_t.
25812 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25813 aarch64_get_extension_string_for_isa_flags): Change declaration to
25814 match new definition by replacing unsigned long with uint64_t.
25815
25816 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25817
25818 PR target/90568
25819 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25820 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25821 Handle stack_protect_test_<mode> codegen similarly to corresponding
25822 sub instruction.
25823
25824 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25825
25826 * config/i386/darwin.h: Reject -mfentry*.
25827 * doc/sourcebuild.texi: Document mfentry target support.
25828
25829 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25830
25831 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25832 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25833 false for PC-relative functions.
25834 (rs6000_output_function_prologue): Change called function name to
25835 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25836 name,1" for PC-relative functions.
25837 (rs6000_elf_declare_function_name): Change called function name to
25838 rs6000_global_entry_point_prologue_needed_p.
25839
25840 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25841
25842 PR target/90552
25843 * config/i386/i386.c (gen_rtx_cost):
25844 Use ix86_tune_cost instead of ix86_cost.
25845
25846 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25847 Michael Meissner <meissner@linux.ibm.com>
25848 Segher Boessenkool <segher@kernel.crashing.org>
25849
25850 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25851 OPTION_MASK_PCREL.
25852 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25853 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25854 (rs6000_fndecl_pcrel_p): Likewise.
25855 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25856 error if -mpcrel is requested without -mcpu=future.
25857 (rs6000_opt_masks): Add entry for pcrel.
25858 (rs6000_fndecl_pcrel_p): New function.
25859 (rs6000_pcrel_p): Likewise.
25860 * config/rs6000/rs6000.opt (mpcrel): New option.
25861 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25862
25863 2019-05-23 Jan Hubicka <jh@suse.cz>
25864 Martin Liska <mliska@suse.cz>
25865
25866 PR tree-optimization/90576
25867 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25868 poly_int_tree_p.
25869 (aliasing_component_refs_p): Fix three way size compare conditional;
25870 give up earlier in case we can not decide on equivalence.
25871
25872 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25873 Michael Meissner <meissner@linux.ibm.com>
25874 Segher Boessenkool <segher@kernel.crashing.org>
25875
25876 * config.gcc: Add future cpu.
25877 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25878 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25879 #define.
25880 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25881 (RS6000_CPU): New instantiation for future cpu.
25882 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25883 PROCESSOR_FUTURE.
25884 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25885 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25886 * config/rs6000/rs6000-tables.opt: Regenerate.
25887 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25888 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25889 (rs6000_machine_from_flags): Handle future cpu.
25890 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25891 PROCESSOR_POWER9 for now.
25892 (rs6000_adjust_cost): Likewise.
25893 (rs6000_issue_rate): Likewise.
25894 (rs6000_register_move_cost): Likewise.
25895 (rs6000_opt_masks): Add entry for future.
25896 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25897 (MASK_FUTURE): New #define.
25898 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25899 * config/rs6000/rs6000.opt (mfuture): New target option.
25900 * doc/invoke.texi (mcpu): Add future cpu.
25901
25902 2019-05-23 Martin Liska <mliska@suse.cz>
25903
25904 PR c++/90587
25905 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25906 operation points to a temporary (pointed via tree_to_wide_ref)
25907 that is out of scope after the &.
25908
25909 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25910
25911 PR c++/90592
25912 * doc/extend.texi (Function Names): Add missing word.
25913
25914 2019-05-23 Richard Biener <rguenther@suse.de>
25915
25916 PR tree-optimization/88440
25917 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25918 at -O[2s]+.
25919 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25920 generated call.
25921 (generate_memcpy_builtin): Likewise.
25922 (distribute_loop): Pass in whether to only distribute patterns.
25923 (prepare_perfect_loop_nest): Also allow size optimization.
25924 (pass_loop_distribution::execute): When optimizing a loop
25925 nest for size allow pattern replacement.
25926
25927 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25928
25929 PR target/90568
25930 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25931 of xor.
25932
25933 2019-05-23 Martin Liska <mliska@suse.cz>
25934
25935 PR sanitizer/90570
25936 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25937 expression similarly to gimplify_decl_expr.
25938
25939 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25940
25941 * cse.c (cse_dump_path): s/dump_file/f.
25942
25943 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25944
25945 PR c++/90462
25946 * diagnostic-format-json.cc: Include "selftest.h".
25947 (json_from_expanded_location): Only add "file" key for non-NULL
25948 file strings.
25949 (json_from_location_range): Don't add "start" and "finish"
25950 children if they are UNKNOWN_LOCATION.
25951 (selftest::test_unknown_location): New selftest.
25952 (selftest::test_bad_endpoints): New selftest.
25953 (selftest::diagnostic_format_json_cc_tests): New function.
25954 * json.cc (json::object::get): New function.
25955 (selftest::test_object_get): New selftest.
25956 (selftest::json_cc_tests): Call it.
25957 * json.h (json::object::get): New decl.
25958 * selftest-run-tests.c (selftest::run_tests): Call
25959 selftest::diagnostic_format_json_cc_tests.
25960 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25961 decl.
25962
25963 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25964 Andrew Stubbs <amd@codesourcery.com>
25965
25966 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25967 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25968 (kernel): Rename to...
25969 (main_kernel): ... this.
25970 (load_image): Load _init_array and _fini_array kernels.
25971 (run): Add argument for kernel to run.
25972 (main): Run init_array_kernel before main_kernel, and
25973 fini_array_kernel after.
25974 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25975 amdgpu_hsa_kernel attribute on functions.
25976 (gcn_disable_constructors): Delete.
25977 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25978 * config/gcn/crt0.c (size_t): Define.
25979 (_init_array, _fini_array): New.
25980 (__preinit_array_start, __preinit_array_end,
25981 __init_array_start, __init_array_end,
25982 __fini_array_start, __fini_array_end): Declare weak references.
25983
25984 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25985
25986 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25987
25988 2019-05-22 Jason Merrill <jason@redhat.com>
25989
25990 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25991
25992 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25993
25994 PR target/88483
25995 * config/i386/i386-options.c (ix86_init_machine_status): Set
25996 stack_frame_required to true.
25997 * config/i386/i386.c (ix86_get_frame_size): New function.
25998 (ix86_frame_pointer_required): Replace get_frame_size with
25999 ix86_get_frame_size.
26000 (ix86_compute_frame_layout): Likewise.
26001 (ix86_find_max_used_stack_alignment): Changed to void. Set
26002 stack_frame_required.
26003 (ix86_finalize_stack_frame_flags): Always call
26004 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26005 ix86_get_frame_size.
26006 * config/i386/i386.h (machine_function): Add stack_frame_required.
26007
26008 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26009
26010 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26011
26012 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26013
26014 * common/config/aarch64/aarch64-common.c
26015 (struct aarch64_option_extension, struct processor_name_to_arch,
26016 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26017 aarch64_contains_opt,
26018 aarch64_get_extension_string_for_isa_flags): Change type of
26019 variables storing flags to uint64_t.
26020 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26021 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26022 * config/aarch64/aarch64.c (struct processor,
26023 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26024 aarch64_validate_march, aarch64_override_options,
26025 aarch64_option_print, aarch64_handle_attr_isa_flags,
26026 aarch64_declare_function_name, aarch64_start_file): Make flag
26027 variables uint64_t.
26028 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26029 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26030 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26031 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26032 * config/aarch64/driver-aarch64.c
26033 (struct aarch64_arch_extension, struct aarch64_core_data,
26034 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26035 flag variables uint64_t.
26036 * doc/invoke.texi: Add documentation for new arguments.
26037
26038 2019-05-22 Richard Biener <rguenther@suse.de>
26039
26040 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26041 rewrite ...
26042 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26043
26044 2019-05-22 Martin Liska <mliska@suse.cz>
26045
26046 PR lto/90500
26047 * doc/extend.texi: Document the change.
26048
26049 2019-05-22 Richard Biener <rguenther@suse.de>
26050
26051 PR tree-optimization/90450
26052 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26053 (mem_ref_hasher::equal): Check it.
26054 (mem_ref_alloc): Initialize it.
26055 (gather_mem_refs_stmt): Set it.
26056
26057 2019-05-22 Richard Biener <rguenther@suse.de>
26058
26059 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26060 Add ABS_EXPR.
26061 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26062 as ABSU_EXPR.
26063
26064 2019-05-22 Alan Modra <amodra@gmail.com>
26065
26066 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26067 (ASM_CPU_SPEC): Conditionally add -many.
26068 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26069 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26070 (rs6000_file_start): ..extracted from here, and modified to
26071 test all ISA bits.
26072 (rs6000_output_function_prologue): Emit .machine as necessary.
26073
26074 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26075
26076 PR middle-end/90553
26077 * ira-lives.c (process_bb_node_lives): Consider defs
26078 for a call insn to be die before the call, not after.
26079
26080 * function.c (assign_parm_setup_block): Raise alignment of
26081 stacked parameter only for STRICT_ALIGNMENT targets.
26082
26083 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26084
26085 * config/rs6000/constraints.md (define_register_constraint "wz"):
26086 Delete.
26087 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26088 RS6000_CONSTRAINT_wz.
26089 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26090 (rs6000_init_hard_regno_mode_ok): Adjust.
26091 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26092 * doc/md.texi (Machine Constraints): Adjust.
26093
26094 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26095
26096 * config/rs6000/constraints.md (define_register_constraint "wl"):
26097 Delete.
26098 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26099 RS6000_CONSTRAINT_wl.
26100 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26101 (rs6000_init_hard_regno_mode_ok): Adjust.
26102 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26103 * doc/md.texi (Machine Constraints): Adjust.
26104
26105 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26106
26107 * config/rs6000/constraints.md (define_register_constraint "wm"):
26108 Delete.
26109 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26110 RS6000_CONSTRAINT_wm.
26111 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26112 (rs6000_init_hard_regno_mode_ok): Adjust.
26113 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26114 * doc/md.texi (Machine Constraints): Adjust.
26115
26116 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26117
26118 * config/rs6000/constraints.md (define_register_constraint "wk"):
26119 Delete.
26120 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26121 RS6000_CONSTRAINT_wk.
26122 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26123 (rs6000_init_hard_regno_mode_ok): Adjust.
26124 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26125 * doc/md.texi (Machine Constraints): Adjust.
26126
26127 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26128
26129 * config/rs6000/constraints.md (define_register_constraint "wj"):
26130 Delete.
26131 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26132 RS6000_CONSTRAINT_wj.
26133 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26134 (rs6000_init_hard_regno_mode_ok): Adjust.
26135 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26136 (VS_64dm): Delete.
26137 * config/rs6000/vsx.md: Ditto.
26138 * doc/md.texi (Machine Constraints): Adjust.
26139
26140 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26141
26142 * config/rs6000/constraints.md (define_register_constraint "wh"):
26143 Delete.
26144 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26145 RS6000_CONSTRAINT_wh.
26146 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26147 (rs6000_init_hard_regno_mode_ok): Adjust.
26148 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26149 * doc/md.texi (Machine Constraints): Adjust.
26150
26151 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26152
26153 PR target/90547
26154 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26155 Avoid calling gen_lowpart with CONST operand.
26156
26157 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26158
26159 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26160 field template_last_to_copy.
26161 (ssa_create_duplicates): Set it, and use it. Attempt to
26162 preserve more debug stmts.
26163
26164 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26165
26166 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26167 (signbit<mode>2): New expander
26168
26169 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26170
26171 PR bootstrap/87338
26172 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26173 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26174
26175 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26176
26177 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26178 %ebx and %ecx bafore calling cpuid with leaf 1 or
26179 non-constant leaf argument.
26180
26181 2019-05-21 Alan Modra <amodra@gmail.com>
26182
26183 PR target/90545
26184 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26185 power9 direct move cost.
26186
26187 2019-05-21 Richard Biener <rguenther@suse.de>
26188
26189 PR middle-end/90510
26190 * fold-const.c (fold_read_from_vector): New function.
26191 * fold-const.h (fold_read_from_vector): Declare.
26192 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26193 single-element insert permutations. Canonicalize selector
26194 further and fix issue with last commit.
26195
26196 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26197
26198 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26199 parameter with default value false to declaration.
26200 (split_edges_for_insertion): New inline function. Wrapper for
26201 split_critical_edges with for_edge_insertion_p = true.
26202 * tree-cfg.c (split_critical_edges): Don't split non-critical
26203 edges if for_edge_insertion_p is false. Fix whitespace.
26204 * tree-ssa-pre.c (pass_pre::execute): Call
26205 split_edges_for_insertion instead of split_critical_edges.
26206 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26207 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26208 (pass_data_sink_code): Update function name in the comment.
26209
26210 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26211
26212 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26213 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26214 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26215 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26216 positives.
26217
26218 2019-05-21 Martin Liska <mliska@suse.cz>
26219
26220 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26221 an extra newline.
26222 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26223 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26224 vec_lvsr.
26225 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26226 Quote a C type.
26227 (rs6000_function_arg): Likewise.
26228 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26229 (rs6000_expand_ternop_builtin): Use interval syntax.
26230 (get_element_number): Likewise.
26231 (altivec_expand_builtin): Likewise.
26232 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26233
26234 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26235
26236 PR c++/59813
26237 PR target/90418
26238 * function.h (struct function): Add calls_eh_return member.
26239 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26240 gimplifying __builtin_eh_return call.
26241 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26242 to cfun.
26243 (expand_call_inline): Or in src_cfun->calls_eh_return into
26244 dst_cfun->calls_eh_return.
26245 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26246 cfun->calls_eh_return.
26247 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26248 * lto-streamer-out.c (output_struct_function_base): Write
26249 calls_eh_return.
26250
26251 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26252
26253 PR rtl-optimization/43147
26254 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26255 IX86_BUILTIN_SHUFPD.
26256
26257 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26258
26259 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26260 (refs_may_alias_p_1): ... here; update stats.
26261 (refs_may_alias_p): Do not update stats here.
26262
26263 2019-05-20 Richard Biener <rguenther@suse.de>
26264
26265 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26266 doesn't produce pointers.
26267 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26268 the first operand points to.
26269
26270 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26271
26272 * tree-ssa-alias.c (compare_sizes): New function.
26273 (sompare_type_sizes): New function
26274 (aliasing_component_refs_p): Use it.
26275 (indirect_ref_may_alias_decl_p): Likewise.
26276
26277 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26278
26279 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26280
26281 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26282
26283 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26284 (LIBLSAN_EARLY_SPEC): Likewise.
26285 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26286
26287 2019-05-20 Martin Liska <mliska@suse.cz>
26288
26289 * config/i386/i386.c (ix86_libc_has_fast_function):
26290 Add ATTRIBUTE_UNUSED for the argument.
26291
26292 2019-05-20 Richard Biener <rguenther@suse.de>
26293
26294 * gimple-match-head.c: Include vec-perm-indices.h.
26295 * generic-match-head.c: Likewise.
26296 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26297 is included.
26298 * fold-const.c (fold_vec_perm): Export.
26299 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26300 (match.pd): ...here.
26301
26302 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26303
26304 * cfgloop.h (struct loop): Add simdlen member.
26305 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26306 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26307 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26308 as new argument to autovectorize_vector_sizes target hook. If
26309 loop->simdlen, pick up vector size where the vectorization factor
26310 is equal to loop->simd, and if there is none, fall back to the first
26311 successful one.
26312 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26313 caller.
26314 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26315 * omp-general.c (omp_max_vf): Likewise.
26316 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26317 * tree-vect-slp.c (vect_slp_bb): Likewise.
26318 * target.def (autovectorize_vector_sizes): Add ALL argument and
26319 document it.
26320 * doc/tm.texi: Adjust documentation.
26321 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26322 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26323 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26324 bool argument.
26325 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26326 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26327 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26328 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26329 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26330 preferred vector size is not 512-bit or 256-bit, just put those
26331 unpreferred ones last.
26332
26333 2019-05-20 Martin Liska <mliska@suse.cz>
26334
26335 * targhooks.c (default_libc_has_fast_function): New function.
26336 * targhooks.h (default_libc_has_fast_function): Likewise.
26337
26338 2019-05-20 Martin Liska <mliska@suse.cz>
26339
26340 PR middle-end/90263
26341 * builtins.c (expand_builtin_memory_copy_args): When having a
26342 target with fast mempcpy implementation do now use memcpy.
26343 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26344 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26345 * doc/tm.texi: Likewise.
26346 * doc/tm.texi.in: Likewise.
26347 * target.def:
26348 * expr.c (emit_block_move_hints): Add 2 new arguments.
26349 * expr.h (emit_block_move_hints): Bail out when libcall
26350 to memcpy would be used.
26351
26352 2019-05-20 Martin Liska <mliska@suse.cz>
26353
26354 * profile-count.c: Add vertical spacing in order
26355 to separate functions.
26356 * profile-count.h: Likewise.
26357
26358 2019-05-20 Martin Liska <mliska@suse.cz>
26359
26360 * profile-count.h: Do not use full qualified
26361 names if possible.
26362 * profile-count.c (profile_count::to_frequency): Likewise.
26363
26364 2019-05-20 Martin Liska <mliska@suse.cz>
26365
26366 * profile-count.h (enum profile_quality): Use capital letters
26367 for enum value names. Use the adjusted names.
26368 * profile-count.c: Use the adjusted names.
26369
26370 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26371
26372 * config/rs6000/constraints.md (define_register_constraint "wH"):
26373 Delete.
26374 (define_register_constraint "wI"): Delete.
26375 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26376 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26377 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26378 (rs6000_init_hard_regno_mode_ok): Adjust.
26379 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26380 resp. "d", or with "wa" as appropriate, all with "p8v".
26381 * config/rs6000/vsx.md: Ditto.
26382 * doc/md.texi (Machine Constraints): Adjust.
26383
26384 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26385
26386 * config/rs6000/constraints.md (define_register_constraint "wy"):
26387 Delete.
26388 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26389 RS6000_CONSTRAINT_wy.
26390 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26391 (rs6000_init_hard_regno_mode_ok): Adjust.
26392 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26393 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26394 (define_mode_attr Fisa): New.
26395 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26396 * doc/md.texi (Machine Constraints): Adjust.
26397
26398 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26399
26400 * config/rs6000/constraints.md (define_register_constraint "wu"):
26401 Delete.
26402 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26403 RS6000_CONSTRAINT_wu.
26404 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26405 (rs6000_init_hard_regno_mode_ok): Adjust.
26406 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26407 both with "p8v".
26408 (define_mode_attr Fa): Delete.
26409 * config/rs6000/vsx.md: Ditto.
26410 * doc/md.texi (Machine Constraints): Adjust.
26411
26412 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26413
26414 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26415 Delete.
26416 (define_register_constraint "wK"): Delete.
26417 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26418 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26419 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26420 (rs6000_init_hard_regno_mode_ok): Adjust.
26421 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26422 Replace "wK" constraint by "wH" with "p9v".
26423 * config/rs6000/vsx.md: Ditto.
26424 * doc/md.texi (Machine Constraints): Adjust.
26425
26426 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26427
26428 * config/rs6000/constraints.md (define_register_constraint "wb"):
26429 Delete.
26430 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26431 RS6000_CONSTRAINT_wb.
26432 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26433 (rs6000_init_hard_regno_mode_ok): Adjust.
26434 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26435 * config/rs6000/vsx.md: Ditto.
26436 * doc/md.texi (Machine Constraints): Adjust.
26437
26438 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26439
26440 * config/rs6000/constraints.md (define_register_constraint "wo"):
26441 Delete.
26442 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26443 RS6000_CONSTRAINT_wo.
26444 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26445 (rs6000_init_hard_regno_mode_ok): Adjust.
26446 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26447 * config/rs6000/altivec.md: Ditto.
26448 * doc/md.texi (Machine Constraints): Adjust.
26449
26450 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26451
26452 * config/darwin-c.c (darwin_register_objc_includes): Do not
26453 prepend the sysroot when building gnu-runtime header search
26454 paths.
26455
26456 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26457
26458 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26459 instead of direct output of the asm.
26460
26461 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26462
26463 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26464 argument to be type bool (was int before).
26465 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26466 at first use. Use type bool for some variables. Fix a theoretical
26467 eh_return bug for svr4.
26468
26469 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26470
26471 * config/rs6000/rs6000.md (isa): New attribute.
26472 (enabled): New attribute.
26473
26474 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26475
26476 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26477 assemble_start_function and assemble_end_function.
26478
26479 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26480
26481 PR middle-end/89433
26482 * omp-general.c (oacc_verify_routine_clauses): Change formal
26483 parameters. Add checking if already marked with an OpenACC
26484 'routine' directive. Adjust all users.
26485
26486 PR middle-end/89433
26487 * omp-general.c (oacc_build_routine_dims): Move some of its
26488 processing into...
26489 (oacc_verify_routine_clauses): ... this new function.
26490 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26491
26492 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26493
26494 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26495 formating of picbase labels to match other ports.
26496
26497 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26498
26499 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26500 in the generated code.
26501
26502 2019-05-16 Martin Sebor <msebor@redhat.com>
26503
26504 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26505 identifiers, keywords, operators, and types in diagnostics. Correct
26506 quoting, spelling, and sentence capitalization issues.
26507 (expand_builtin_atomic_is_lock_free): Same.
26508 (fold_builtin_next_arg): Same.
26509 * cfgexpand.c (expand_one_var): Same.
26510 (tree_conflicts_with_clobbers_p): Same.
26511 (expand_asm_stmt): Same.
26512 (verify_loop_structure): Same.
26513 * cgraphunit.c (process_function_and_variable_attributes): Same.
26514 * collect-utils.c (collect_execute): Same.
26515 * collect2.c (maybe_run_lto_and_relink): Same.
26516 (is_lto_object_file): Same.
26517 (scan_prog_file): Same.
26518 * convert.c (convert_to_real_1): Same.
26519 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26520 * except.c (verify_eh_tree): Same.
26521 * gcc.c (execute): Same.
26522 (eval_spec_function): Same.
26523 (run_attempt): Same.
26524 (driver::set_up_specs): Same.
26525 (compare_debug_auxbase_opt_spec_function): Same.
26526 * gcov-tool.c (unlink_gcda_file): Same.
26527 (do_merge): Same.
26528 (do_rewrite): Same.
26529 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26530 * gimplify.c (gimplify_asm_expr): Same.
26531 (gimplify_adjust_omp_clauses): Same.
26532 * hsa-gen.c (gen_hsa_addr_insns): Same.
26533 (gen_hsa_insns_for_load): Same.
26534 (gen_hsa_cmp_insn_from_gimple): Same.
26535 (gen_hsa_insns_for_operation_assignment): Same.
26536 (gen_get_level): Same.
26537 (gen_hsa_alloca): Same.
26538 (omp_simple_builtin::generate): Same.
26539 (gen_hsa_atomic_for_builtin): Same.
26540 (gen_hsa_insns_for_call): Same.
26541 * input.c (dump_location_info): Same.
26542 * ipa-devirt.c (compare_virtual_tables): Same.
26543 * ira.c (ira_setup_eliminable_regset): Same.
26544 * lra-assigns.c (lra_assign): Same.
26545 * lra-constraints.c (lra_constraints): Same.
26546 * lto-streamer-in.c (lto_input_mode_table): Same.
26547 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26548 (merge_and_complain): Same.
26549 (compile_offload_image): Same.
26550 (compile_images_for_offload_targets): Same.
26551 (debug_objcopy): Same.
26552 (run_gcc): Same.
26553 (main): Same.
26554 * opts.c (print_specific_help): Same.
26555 (parse_no_sanitize_attribute): Same.
26556 (print_help): Same.
26557 (handle_param): Same.
26558 * plugin.c (add_new_plugin): Same.
26559 (parse_plugin_arg_opt): Same.
26560 (try_init_one_plugin): Same.
26561 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26562 operators, and types in diagnostics. Correct quoting and spelling
26563 issues.
26564 * read-rtl-function.c (parse_edge_flag_token): Same.
26565 (function_reader::parse_enum_value): Same.
26566 * reg-stack.c (check_asm_stack_operands): Same.
26567 * regcprop.c (validate_value_data): Same.
26568 * sched-rgn.c (make_pass_sched_fusion): Same.
26569 * stmt.c (check_unique_operand_names): Same.
26570 * targhooks.c (default_target_option_pragma_parse): Same.
26571 * tlink.c (recompile_files): Same.
26572 * toplev.c (process_options): Same.
26573 (do_compile): Same.
26574 * trans-mem.c (diagnose_tm_1): Same.
26575 (ipa_tm_scan_irr_block): Same.
26576 (ipa_tm_diagnose_transaction): Same.
26577 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26578 format a tree code name in a diagnostic.
26579 (verify_types_in_gimple_min_lval): Same.
26580 (verify_types_in_gimple_reference): Same.
26581 (verify_gimple_call): Same.
26582 (verify_gimple_assign_unary): Same.
26583 (verify_gimple_assign_binary): Same.
26584 (verify_gimple_assign_ternary): Same.
26585 (verify_gimple_assign_single): Same.
26586 (verify_gimple_switch): Same.
26587 (verify_gimple_label): Same.
26588 (verify_gimple_phi): Same.
26589 (verify_gimple_in_seq): Same.
26590 (verify_eh_throw_stmt_node): Same.
26591 (collect_subblocks): Same.
26592 (gimple_verify_flow_info): Same.
26593 (do_warn_unused_result): Same.
26594 * tree-inline.c (expand_call_inline): Same.
26595 * tree-into-ssa.c (update_ssa): Same.
26596 * tree.c (tree_int_cst_elt_check_failed): Same.
26597 (tree_vec_elt_check_failed): Same.
26598 (omp_clause_operand_check_failed): Same.
26599 (verify_type_variant): Same.
26600 (verify_type): Same.
26601 * value-prof.c (verify_histograms): Same.
26602 * varasm.c (assemble_start_function): Same.
26603
26604 2019-05-16 Martin Sebor <msebor@redhat.com>
26605
26606 * config/i386/i386-expand.c (get_element_number): Quote keywords
26607 and other internal names in diagnostics. Adjust other diagnostic
26608 formatting issues noted by -Wformat-diag.
26609 * config/i386/i386-features.c
26610 (ix86_mangle_function_version_assembler_name): Same.
26611 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26612 * config/i386/i386.c (ix86_function_type_abi): Same.
26613 (ix86_function_ms_hook_prologue): Same.
26614 (classify_argument): Same.
26615 (ix86_expand_prologue): Same.
26616 (ix86_md_asm_adjust): Same.
26617 (ix86_memmodel_check): Same.
26618
26619 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26620
26621 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26622 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26623 and fpxx modes.
26624
26625 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26626
26627 PR target/90497
26628 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26629 intrinsics without SSE/SSE2/SSSE3.
26630 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26631 check.
26632 (*mmx_uavgv8qi3): Likewise.
26633
26634 2019-05-17 Richard Biener <rguenther@suse.de>
26635
26636 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26637 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26638
26639 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26640
26641 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26642 vec_sldw insn pattern.
26643
26644 2019-05-17 Richard Biener <rguenther@suse.de>
26645
26646 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26647
26648 2019-05-17 Martin Liska <mliska@suse.cz>
26649
26650 PR driver/90496
26651 * toplev.c (output_stack_usage): With LTO and sanitizer it
26652 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26653 has no file location.
26654
26655 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26656
26657 PR c++/90484
26658 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26659 sz0 is equal to sz1, instead return false in that case.
26660
26661 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26662 has non-constant expression, force sctx.lane and use two
26663 argument IFN_GOMP_SIMD_LANE instead of single argument.
26664 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26665 two argument IFN_GOMP_SIMD_LANE without lhs.
26666 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26667 member.
26668 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26669 Define.
26670 (LOOP_REQUIRES_VERSIONING): Or in
26671 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26672 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26673 simd_if_cond.
26674 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26675 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26676 from simd if clause if needed.
26677
26678 2019-05-16 Richard Biener <rguenther@suse.de>
26679
26680 * tree-affine.c (expr_to_aff_combination): New function split
26681 out from...
26682 (tree_to_aff_combination): ... here.
26683 (aff_combination_expand): Avoid building a GENERIC tree.
26684
26685 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26686
26687 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26688 assemble_start_function and assemble_end_function calls.
26689 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26690 assemble_start_function and assemble_end_function.
26691 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26692 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26693 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26694 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26695 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26696 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26697 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26698 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26699 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26700 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26701 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26702 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26703 Likewise.
26704 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26705 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26706 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26707 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26708 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26709 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26710 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26711 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26712 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26713 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26714 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26715 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26716 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26717 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26718 Likewise.
26719 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26720 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26721 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26722
26723 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26724
26725 * tree-ssa-alias.c (alias_stats): Add
26726 aliasing_component_refs_p_may_alias and
26727 aliasing_component_refs_p_no_alias.
26728 (dump_alias_stats): Print aliasing_component_refs_p stats.
26729 (aliasing_component_refs_p): Update stats.
26730
26731 2019-05-16 Martin Liska <mliska@suse.cz>
26732
26733 PR lto/90500
26734 * multiple_target.c (expand_target_clones): Do not allow
26735 target_clones being used with a symbol that is an alias.
26736
26737 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26738
26739 PR tree-optimization/90394
26740 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26741 positives rather than ICE for cases where (code2 == NE_EXPR
26742 && code1 == BIT_AND_EXPR).
26743
26744 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26745
26746 PR fortran/90329
26747 * tree-core.h (struct tree_decl_common): Document
26748 decl_nonshareable_flag for PARM_DECLs.
26749 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26750 * calls.c (expand_call): Don't try tail call if caller
26751 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26752 passed on the stack and callee needs to pass any arguments on the
26753 stack.
26754 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26755 else if instead of series of mutually exclusive ifs. Handle
26756 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26757 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26758
26759 * lto-streamer.h (LTO_major_version): Bump to 9.
26760
26761 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26762
26763 PR tree-optimization/90106
26764 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26765 new parameter as new internal function call, also move it to new
26766 basic block.
26767 (use_internal_fn): Pass internal function call to
26768 shrink_wrap_one_built_in_call_with_conds.
26769
26770 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26771
26772 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26773 max_vf to 1.
26774 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26775 safelen_int and set loop->dont_vectorize.
26776
26777 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26778
26779 PR target/89021
26780 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26781 SSE/SSE2/SSSE3.
26782 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26783 Likewise.
26784 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26785 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26786 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26787 is defined.
26788
26789 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26790
26791 PR target/89021
26792 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26793 define_insn_and_split to support SSE emulation.
26794 (*vec_extractv2sf_0): Likewise.
26795 (*vec_extractv2sf_1): Likewise.
26796 (*vec_extractv2si_0): Likewise.
26797 (*vec_extractv2si_1): Likewise.
26798 (*vec_extractv2si_zext_mem): Likewise.
26799 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26800 (vec_extractv2sf_1 splitter): Likewise.
26801 (vec_extractv2sfsf): Likewise.
26802 (vec_setv2si): Likewise.
26803 (vec_extractv2si_1 splitter): Likewise.
26804 (vec_extractv2sisi): Likewise.
26805 (vec_setv4hi): Likewise.
26806 (vec_extractv4hihi): Likewise.
26807 (vec_setv8qi): Likewise.
26808 (vec_extractv8qiqi): Likewise.
26809 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26810 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26811 (vec_extractv2sisi): Likewise.
26812 (vec_extractv4hihi): Likewise.
26813 (vec_extractv8qiqi): Likewise.
26814 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26815 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26816 (vec_initv2sisi): Likewise.
26817 (vec_initv4hihi): Likewise.
26818 (vec_initv8qiqi): Likewise.
26819 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26820 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26821 (vec_setv4hi): Likewise.
26822 (vec_setv8qi): Likewise.
26823
26824 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26825
26826 PR target/89021
26827 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26828 TARGET_MMX_WITH_SSE.
26829 (MMXMODE:*mov<mode>_internal): Likewise.
26830 (MMXMODE:movmisalign<mode>): Likewise.
26831
26832 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26833
26834 PR target/89021
26835 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26836 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26837 (sse2_cvtpd2pi): Ditto.
26838 (sse2_cvttpd2pi): Ditto.
26839 (*vec_concatv2sf_sse4_1): Ditto.
26840 (*vec_concatv2sf_sse): Ditto.
26841 (*vec_concatv2si_sse4_1): Ditto.
26842 (*vec_concatv2si): Ditto.
26843 (*vec_concatv4si_0): Ditto.
26844 (*vec_concatv2di_0): Ditto.
26845
26846 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26847
26848 PR target/89021
26849 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26850
26851 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26852
26853 PR target/89021
26854 * config/i386/sse.md (ssse3_palignrdi): Changed to
26855 define_insn_and_split to support SSE emulation.
26856
26857 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26858
26859 PR target/89021
26860 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26861
26862 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26863
26864 PR target/89021
26865 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26866 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26867 SSE emulation.
26868
26869 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26870
26871 PR target/89021
26872 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26873 or TARGET_MMX_WITH_SSE.
26874 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26875
26876 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26877
26878 PR target/89021
26879 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26880
26881 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26882
26883 PR target/89021
26884 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26885 Changed to define_insn_and_split to support SSE emulation.
26886
26887 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26888
26889 PR target/89021
26890 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26891 Changed to define_insn_and_split to support SSE emulation.
26892
26893 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26894
26895 PR target/89021
26896 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26897 (*mmx_<emms>): This.
26898 (mmx_<emms>): New expander.
26899
26900 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26901
26902 PR target/89021
26903 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26904 support.
26905 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26906
26907 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26908
26909 PR target/89021
26910 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26911
26912 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26913
26914 PR target/89021
26915 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26916
26917 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26918
26919 PR target/89021
26920 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26921 TARGET_MMX_WITH_SSE.
26922 (*mmx_uavgv4hi3): Add SSE emulation.
26923
26924 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26925
26926 PR target/89021
26927 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26928 and TARGET_MMX_WITH_SSE.
26929 (*mmx_uavgv8qi3): Add SSE emulation.
26930
26931 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26932
26933 PR target/89021
26934 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26935 maskmovdqu for __MMX_WITH_SSE__.
26936
26937 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26938
26939 PR target/89021
26940 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26941 TARGET_MMX and TARGET_MMX_WITH_SSE.
26942 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26943
26944 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26945
26946 PR target/89021
26947 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26948 define_insn_and_split to support SSE emulation.
26949
26950 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26951
26952 PR target/89021
26953 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26954 and TARGET_MMX_WITH_SSE.
26955 (mmx_<code>v8qi3): Likewise.
26956 (smaxmin:<code>v4hi3): New.
26957 (umaxmin:<code>v8qi3): Likewise.
26958 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26959 (umaxmin:*mmx_<code>v8qi3): Likewise.
26960
26961 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26962
26963 PR target/89021
26964 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26965 TARGET_MMX_WITH_SSE.
26966 (*mmx_pinsrw): Add SSE emulation.
26967
26968 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26969
26970 PR target/89021
26971 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26972
26973 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26974
26975 PR target/89021
26976 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26977 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26978 SSE emulation.
26979
26980 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26981
26982 PR target/89021
26983 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26984 (sse_cvttps2pi): Likewise.
26985
26986 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26987
26988 PR target/89021
26989 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26990 TARGET_MMX_WITH_SSE.
26991 (mmx_pshufw_1): Add SSE emulation.
26992 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26993 TARGET_MMX_WITH_SSE to support SSE emulation.
26994
26995 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26996
26997 PR target/89021
26998 * config/i386/constraints.md (Yw): New constraint.
26999 * config/i386/mmx.md (*vec_dupv2si): Changed to
27000 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27001 support SSE emulation.
27002
27003 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27004
27005 PR target/89021
27006 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27007 TARGET_MMX_WITH_SSE.
27008 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27009 support.
27010 (mmx_gt<mode>3): Likewise.
27011
27012 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27013
27014 PR target/89021
27015 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27016 TARGET_MMX_WITH_SSE. Add SSE support.
27017
27018 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27019
27020 PR target/89021
27021 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27022 TARGET_MMX_WITH_SSE.
27023 (any_logic:<code><mode>3): New.
27024 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27025 Add SSE support.
27026
27027 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27028
27029 PR target/89021
27030 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27031 TARGET_MMX_WITH_SSE. Add SSE emulation.
27032 (mmx_<shift_insn><mode>3): Likewise.
27033 (ashr<mode>3): New.
27034 (<shift_insn><mode>3): Likewise.
27035
27036 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27037
27038 PR target/89021
27039 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27040 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27041
27042 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27043
27044 PR target/89021
27045 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27046 TARGET_MMX_WITH_SSE.
27047 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27048 SSE support.
27049
27050 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27051
27052 PR target/89021
27053 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27054 TARGET_MMX_WITH_SSE.
27055 (mulv4hi3): New.
27056 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27057 support.
27058
27059 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27060
27061 PR target/89021
27062 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27063 (plusminus:mmx_<plusminus_insn><mode>3): Check
27064 TARGET_MMX_WITH_SSE.
27065 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27066 (<plusminus_insn><mode>3): New.
27067 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27068 (*mmx_<plusminus_insn><mode>3): Likewise.
27069
27070 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27071
27072 PR target/89021
27073 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27074 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27075 prototype.
27076 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27077 define_insn_and_split to support SSE emulation.
27078 (mmx_punpcklbw): Likewise.
27079 (mmx_punpckhwd): Likewise.
27080 (mmx_punpcklwd): Likewise.
27081 (mmx_punpckhdq): Likewise.
27082 (mmx_punpckldq): Likewise.
27083
27084 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27085 Uros Bizjak <ubizjak@gmail.com>
27086
27087 PR target/89021
27088 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27089 New function.
27090 (ix86_split_mmx_pack): Likewise.
27091 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27092 New prototype.
27093 (ix86_split_mmx_pack): Likewise.
27094 * config/i386/i386.md (mmx_isa): New.
27095 (enabled): Also check mmx_isa.
27096 * config/i386/mmx.md (any_s_truncate): New code iterator.
27097 (s_trunsuffix): New code attr.
27098 (mmx_packsswb): Removed.
27099 (mmx_packssdw): Likewise.
27100 (mmx_packuswb): Likewise.
27101 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27102 MMX packsswb/packuswb with SSE2.
27103 (mmx_packssdw): Likewise.
27104 * config/i386/predicates.md (register_mmxmem_operand): New.
27105
27106 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27107
27108 PR target/89021
27109 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27110 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27111 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27112 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27113 (ix86_vector_mode_supported_p): Likewise.
27114 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27115
27116 2019-05-15 Martin Liska <mliska@suse.cz>
27117
27118 PR middle-end/90478
27119 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27120 Check for overflow.
27121
27122 2019-05-15 Richard Biener <rguenther@suse.de>
27123
27124 * tree-into-ssa.c (pass_build_ssa::execute): Run
27125 update_address_taken before going into SSA.
27126
27127 2019-05-15 Richard Biener <rguenther@suse.de>
27128
27129 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27130 as __BIT_FIELD_REF with type with -gimple.
27131
27132 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27133
27134 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27135 semantically equivalent branches (left over after prior refactorings).
27136
27137 2019-05-15 Richard Biener <rguenther@suse.de>
27138
27139 PR tree-optimization/88828
27140 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27141 bogus check.
27142
27143 2019-05-14 Richard Biener <rguenther@suse.de>
27144
27145 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27146 as __VIEW_CONVERT with -gimple.
27147
27148 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27149
27150 PR target/82920
27151 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27152 Darwin.
27153
27154 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27155
27156 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27157 define_split to become a define_insn_and_split.
27158
27159 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27160
27161 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27162 arguments.
27163 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27164 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27165 (sibcall_epilogue): Adjust.
27166 (epilogue): Adjust.
27167
27168 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27169
27170 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27171 to unsupported ones.
27172 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27173 * config.host: Likewise.
27174 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27175 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27176 __svr4__]: Remove "brand" fallback.
27177 [!KSTAT_DATA_STRING]: Remove.
27178 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27179 to *-*-solaris2*.
27180 (comdat_group): Likewise.
27181 (set_have_as_tls): Likewise.
27182 (gcc_cv_target_dl_iterate_phdr): Likewise.
27183 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27184 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27185 * configure: Regenerate.
27186 * doc/install.texi: Simplify Solaris target triplets.
27187 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27188 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27189 Remove Solaris 10 references.
27190 Remove obsolete Solaris bug reference.
27191 (Specific, sparc-sun-solaris2.10): Remove.
27192
27193 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27194
27195 * config/i386/i386.md (any_div): New code iterator.
27196 (paired_mod): New code attribute.
27197 (sgnprefix): Handle DIV and UDIV RTXes.
27198 (u): Ditto.
27199 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27200 and udivmod<mode>4 patterns using any_div code iterator.
27201 (divmod splitters): Macroize splitters using any_div code iterator.
27202 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27203 (*udivmodsi4_pow2_zext_2): Ditto.
27204 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27205 and *udivmod<mode>4_noext patterns using any_div code iterator.
27206 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27207 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27208 patterns using any_div code iterator.
27209 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27210 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27211 patterns using any_div code iterator.
27212 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27213 udivmodhiqi3 patterns using any_extend code iterator.
27214
27215 2019-05-14 Richard Biener <rguenther@suse.de>
27216 H.J. Lu <hongjiu.lu@intel.com>
27217
27218 PR tree-optimization/88828
27219 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27220 permuting in a single non-constant element not extracted
27221 from a vector.
27222
27223 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27224
27225 * internal-fn.def (SIGNBIT): New.
27226 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27227 defined.
27228 (signbitv4sf2): Likewise.
27229
27230 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27231
27232 PR target/90357
27233 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27234 next insn when the SRC reg is dead.
27235
27236 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27237
27238 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27239 (alloc_cand_and_find_basis): Ditto.
27240 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27241 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27242 (create_add_imm_cand, slsr_process_cast): Ditto.
27243 (slsr_process_copy, replace_mult_candidate): Ditto.
27244 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27245 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27246 (pass_strength_reduction::execute): Init the first NULL element.
27247
27248 2019-05-13 Nathan Sidwell <nathan@acm.org>
27249
27250 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27251 (run_attempt): Reformat line break.
27252
27253 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27254
27255 PR target/90418
27256 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27257 data registers in sibcall epilogues.
27258 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27259
27260 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27261
27262 PR target/89221
27263 * configure.ac (--enable-frame-pointer):
27264 Disable by default for cygwin and mingw.
27265 * configure: Regenerate.
27266
27267 2019-05-13 Nathan Sidwell <nathan@acm.org>
27268
27269 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27270 piece of code.
27271 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27272 (gen_member_die): Move abstract origin check earlier. Only VARs
27273 can be static_inline_p. Simplify splicing control flow.
27274
27275 2019-05-13 Richard Biener <rguenther@suse.de>
27276
27277 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27278 VIEW_CONVERT_EXPR.
27279 (vect_build_slp_tree_1): Likewise.
27280
27281 2019-05-13 Richard Biener <rguenther@suse.de>
27282
27283 PR tree-optimization/90402
27284 * tree-if-conv.c (tree_if_conversion): Value number only
27285 the loop body by making the latch an exit of the region
27286 as well.
27287 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27288 processing PHIs.
27289 (do_rpo_vn): Deal with multiple edges into the entry block
27290 that are not backedges inside the region by skipping PHIs
27291 of the entry block.
27292
27293 2019-05-13 Richard Biener <rguenther@suse.de>
27294
27295 PR tree-optimization/90316
27296 * tree-ssa-pre.c (insert_aux): Fold into ...
27297 (insert): ... this function. Use a RPO walk to reduce the
27298 number of required iterations.
27299
27300 2019-05-13 Martin Liska <mliska@suse.cz>
27301
27302 PR tree-optimization/90416
27303 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27304 string instead of passing the second part as va_arg argument.
27305
27306 2019-05-13 Martin Liska <mliska@suse.cz>
27307
27308 PR gcov-profile/90380
27309 * gcov.c (handle_cycle): Do not support zero cycle count,
27310 it should not be possible.
27311 (path_contains_zero_cycle_arc): New function.
27312 (circuit): Ignore zero cycle arc counts.
27313
27314 2019-05-13 Martin Liska <mliska@suse.cz>
27315
27316 PR gcov-profile/90380
27317 * gcov.c (enum loop_type): Remove the enum and
27318 the operator.
27319 (handle_cycle): Assert that we should not reach
27320 a negative count.
27321 (circuit): Use loop_found instead of a tri-state loop_type.
27322 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27323 happen.
27324
27325 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27326
27327 PR target/82920
27328 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27329 (ix86_output_indirect_branch_via_reg): Use output mechanism
27330 accounting for __USER_LABEL_PREFIX__.
27331 (ix86_output_indirect_branch_via_push): Likewise.
27332 (ix86_output_function_return): Likewise.
27333 (ix86_output_indirect_function_return): Likewise.
27334
27335 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27336
27337 * doc/md.texi: Document use of code attributes in rtx patterns.
27338 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27339 * read-rtl.c (find_code): Split out search loops into...
27340 (maybe_find_code): ...this new function.
27341 (check_code_iterator): Make the error message more informative.
27342 (check_code_attribute): New function.
27343 (rtx_reader::rtx_alloc_for_name): Likewise.
27344 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27345 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27346 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27347 <max_opp> directly as an rtx code instead of via a match_operator.
27348 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27349 (<su>abd<mode>_3): Update accordingly.
27350
27351 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27352
27353 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27354 is given, print the state of the EH "save world" computation for
27355 Darwin.
27356
27357 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27358
27359 PR c++/59813
27360 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27361 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27362
27363 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27364
27365 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27366 Use pinsrd for TARGET_SSE4_1.
27367 * config/i386/sse.md (movdi_to_sse): Ditto.
27368
27369 2019-05-10 Richard Biener <rguenther@suse.de>
27370
27371 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27372 (do_rpo_vn): Initialize next_value_id.
27373
27374 2019-05-10 Martin Liska <mliska@suse.cz>
27375
27376 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27377 Fix plural form.
27378
27379 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27380
27381 PR tree-optimization/90385
27382 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27383 arguments of the exit phis.
27384
27385 PR c++/90383
27386 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27387 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27388 id->do_not_fold.
27389 (copy_tree_body_r): Likewise.
27390 (copy_fn): Set id.do_not_fold to true.
27391
27392 2019-05-10 Martin Liska <mliska@suse.cz>
27393
27394 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27395 Reapply changes from r269790.
27396
27397 2019-05-10 Martin Liska <mliska@suse.cz>
27398
27399 PR middle-end/90340
27400 * doc/invoke.texi: New params.
27401 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27402 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27403 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27404 Use it.
27405 * tree-switch-conversion.h (struct jump_table_cluster):
27406 Likewise.
27407
27408 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27409
27410 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27411
27412 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27413
27414 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27415
27416 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27417
27418 PR rtl-optimization/88879
27419 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27420
27421 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27422
27423 PR target/90405
27424 * config/arm/arm.c (callee_saved_reg_p): Move before
27425 thumb_find_work_register.
27426 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27427 thumb_find_work_register. Only call df_get_live_out once.
27428 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27429 (thumb_find_work_register): Use
27430 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27431 algorithms to locate a spare call clobbered reg.
27432
27433 2019-05-09 Martin Liska <mliska@suse.cz>
27434
27435 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27436 and MAX_EXPR in GIMPLE FE format.
27437
27438 2019-05-09 Martin Liska <mliska@suse.cz>
27439
27440 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27441 * gimple-pretty-print.c (dump_gimple_bb_header):
27442 Dump BB count.
27443 (pp_cfg_jump): Dump edge probability.
27444 * profile-count.c (profile_quality_as_string): Simplify
27445 with a static array.
27446 (parse_profile_quality): New function.
27447 (profile_count::dump): Simplify with a static array.
27448 (profile_count::from_gcov_type): Add new argument.
27449 * profile-count.h (parse_profile_quality): Likewise.
27450 * predict.h (set_hot_bb_threshold): New.
27451 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27452 New param.
27453 * predict.c (get_hot_bb_threshold): Set from the new param.
27454 (set_hot_bb_threshold): New.
27455
27456 2019-05-09 Richard Biener <rguenther@suse.de>
27457
27458 PR tree-optimization/90395
27459 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27460 rewrite vector stores that throw internally.
27461
27462 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27463
27464 * cif-code.def (CHKP): Remove.
27465
27466 PR target/89221
27467 * configure.ac (--enable-frame-pointer): Disable by default for
27468 GNU systems.
27469 * configure: Regenerate.
27470
27471 2019-05-09 Alan Modra <amodra@gmail.com>
27472
27473 PR target/89271
27474 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27475 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27476 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27477 cost for general <-> vsx when direct moves are available.
27478 Cost union classes at minimal cost for any reg in the class.
27479 Correct calculation for moves between vsx, float, and altivec.
27480 Don't return a low cost for moves between special regs. Don't
27481 use hard coded register numbers.
27482 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27483 (rs6000_ira_change_pseudo_allocno_class): New function.
27484 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27485 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27486 alternatives.
27487 (movsi_internal1): Don't disparage vector alternatives.
27488 (mov<mode>_internal): Likewise, excepting alternative that
27489 will be split.
27490 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27491 we <- b alternative.
27492
27493 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27494
27495 PR c++/59813
27496 PR tree-optimization/89060
27497 * tree-ssa-live.h (live_vars_map): New typedef.
27498 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27499 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27500 (struct compute_live_vars_data): New type.
27501 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27502 live_vars_at_stmt, destroy_live_vars): New functions.
27503 * tree-tailcall.c: Include tree-ssa-live.h.
27504 (live_vars, live_vars_vec): New global variables.
27505 (find_tail_calls): Perform variable life analysis before punting.
27506 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27507 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27508 member.
27509 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27510 Perform variable life analysis to select variables that really need
27511 clobbers added.
27512 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27513 instead set id->eh_landing_pad_dest and assert it is the same.
27514 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27515
27516 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27517 Richard Earnshaw <rearnsha@arm.com>
27518
27519 PR target/88167
27520 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27521 function.
27522 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27523 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27524 register if both the epilogue and prologue can use call-clobbered
27525 regs.
27526 (thumb1_unexpanded_epilogue): Use
27527 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27528 picking temporaries for restoring high regs to match that of the
27529 prologue where possible.
27530 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27531 the list of work registers. Detect if the return address is still live
27532 at the end of the prologue and avoid using it for a work register if so.
27533 If the return address is not live, add LR to the list of pushable regs
27534 after the first pass.
27535
27536 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27537
27538 PR tree-optimization/90078
27539 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27540 (INFTY): Increase the value for infinite cost.
27541 (struct comp_cost): Promote type of members to int64_t.
27542 (infinite_cost): Don't set complexity in initialization.
27543 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27544 overflows to infinite_cost.
27545 (adjust_setup_cost): Promote type of parameter and cost computation
27546 to int64_t.
27547 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27548 int64_t.
27549 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27550 cost computation to int64_t.
27551 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27552 int64_t's format specifier in dump.
27553
27554 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27555
27556 PR tree-optimization/90240
27557 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27558 with respect to scaling factor pre-computed for each basic block.
27559 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27560 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27561 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27562 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27563 live range for array of loop's basic blocks. Cleanup aux field of
27564 loop's basic blocks.
27565
27566 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27567
27568 PR tree-optimization/90356
27569 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27570
27571 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27572
27573 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27574 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27575 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27576 (ix86_handle_option): Handle -mavx512bf16.
27577 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27578 to extra_headers.
27579 * config/i386/avx512bf16vlintrin.h: New.
27580 * config/i386/avx512bf16intrin.h: New.
27581 * config/i386/cpuid.h (bit_AVX512BF16): New.
27582 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27583 * config/i386/i386-builtin-types.def: Add new types.
27584 * config/i386/i386-builtin.def: Add new builtins.
27585 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27586 __AVX512BF16__.
27587 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27588 (ix86_option_override_internal): Handle BF16.
27589 (ix86_valid_target_attribute_inner_p): Ditto.
27590 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27591 * config/i386/i386-builtin.c (enum processor_features): Add
27592 F_AVX512BF16.
27593 (static const _isa_names_table isa_names_table): Ditto.
27594 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27595 (PTA_AVX512BF16): Ditto.
27596 * config/i386/i386.opt: Add -mavx512bf16.
27597 * config/i386/immintrin.h: Include avx512bf16intrin.h
27598 and avx512bf16vlintrin.h.
27599 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27600 avx512f_cvtneps2bf16_<mode><mask_name>,
27601 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27602 * config/i386/subst.md (mask_half): Add new subst.
27603 * doc/invoke.texi: Document -mavx512bf16.
27604
27605 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27606
27607 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27608 Delete declaration.
27609 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27610 (rs6000_debug_legitimize_reload_address): Delete.
27611 (rs6000_legitimize_reload_address_ptr): Delete.
27612 (rs6000_option_override_internal): Adjust.
27613 (mem_operand_gpr): Adjust comment.
27614 (legitimate_lo_sum_address_p): Ditto.
27615 (rs6000_legitimize_reload_address): Delete.
27616 (rs6000_debug_legitimize_reload_address): Delete.
27617 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27618
27619 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27620
27621 PR target/89765
27622 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27623 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27624 to compute vector element selector for both constant and variable
27625 operands.
27626
27627 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27628
27629 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27630 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27631 ashrdi3_cvt using SWI48 mode iterator.
27632
27633 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27634
27635 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27636 (aarch64_<su>abd<mode>_3): Likewise.
27637 (*aarch64_<su>abd<mode>_3): New define_insn.
27638 (<sur>sad<vsi2qi>): New define_expand.
27639 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27640 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27641 (build_vect_cond_expr): Likewise.
27642
27643 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27644
27645 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27646 clobbers outside of accessible_reg_set.
27647 * config/i386/i386.c (ix86_conditional_register_usage):
27648 Disable register sets by clearing corresponding bits in
27649 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27650 call_used_regs and don't clear corresponding reg_names array members.
27651
27652 2019-05-07 Richard Biener <rguenther@suse.de>
27653
27654 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27655 not specified still compute a comp_vectype for invariant
27656 compares.
27657
27658 2019-05-07 Richard Biener <rguenther@suse.de>
27659
27660 PR tree-optimization/90316
27661 * tree-ssa-pre.c (translate_vuse_through_block): When
27662 same_valid is NULL do not bother to search for a virtual
27663 PHI continuation.
27664 (phi_translate_1): When operands changed we cannot keep
27665 the same value-number so do not bother to ask whether
27666 that's possible from translate_vuse_through_block.
27667
27668 2019-05-07 Martin Liska <mliska@suse.cz>
27669
27670 * bitmap.c (bitmap_register): Come up with
27671 alloc_descriptor_max_uid and assign it for
27672 a new bitmap.
27673 (register_overhead): Use get_descriptor as
27674 a descriptor.
27675 (release_overhead): New.
27676 (bitmap_elem_to_freelist): Call it.
27677 (bitmap_elt_clear_from): Likewise.
27678 (bitmap_obstack_free): Likewise.
27679 (bitmap_move): Sensitively release memory.
27680 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27681 (bitmap_initialize): Initialize alloc_descriptor to zero.
27682 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27683
27684 2019-05-07 Richard Biener <rguenther@suse.de>
27685
27686 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27687 we build a SLP node. Remove max_size and limiting.
27688 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27689
27690 2019-05-07 Richard Biener <rguenther@suse.de>
27691
27692 PR tree-optimization/90316
27693 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27694 limit by reference.
27695 (walk_non_aliased_vuses): Take walking limit argument.
27696 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27697 walking if it is reached instead of just counting.
27698 (get_continuation_for_phi): Likewise.
27699 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27700 limiting to the callback.
27701 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27702 (vn_reference_lookup_3): Likewise.
27703 (vn_reference_lookup_pieces): Likewise.
27704 (vn_reference_lookup): Likewise.
27705 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27706 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27707 (avail_exprs_stack::lookup_avail_expr): Likewise.
27708
27709 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27710
27711 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27712 for comparaible types in the second direction even if first one
27713 hits incomparable type.
27714
27715 2019-05-07 Richard Biener <rguenther@suse.de>
27716
27717 PR lto/90369
27718 * lto-wrapper.c (debug_objcopy): Use the original filename
27719 including archive offset for the filename used for -save-temps.
27720
27721 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27722
27723 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27724 detection.
27725
27726 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27727 Hongtao Liu <hongtao.liu@intel.com>
27728
27729 PR target/89750
27730 PR target/86444
27731 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27732 Modified, original implementation isn't correct.
27733
27734 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27735
27736 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27737 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27738 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27739 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27740 (FRAME_POINTER_REGNUM): Change numbering.
27741 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27742 (alt_reg_names): Adjust.
27743 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27744 fixed.
27745 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27746 (DWARF_FRAME_REGISTERS): Delete.
27747 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27748 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27749 Adjust.
27750 (REG_ALLOC_ORDER): Adjust.
27751 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27752 (REG_CLASS_CONTENTS): Adjust.
27753 (RETURN_ADDR_RTX): Change comment.
27754 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27755 instead of 67.
27756 (REGISTER_NAMES): Adjust.
27757 (ADDITIONAL_REGISTER_NAMES): Adjust.
27758 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27759
27760 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27761
27762 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27763 Delete.
27764 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27765 (DWARF_FRAME_REGISTERS): Adjust.
27766 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27767 Adjust.
27768 (REG_ALLOC_ORDER): Adjust.
27769 (enum reg_class): Delete SPR_REGS.
27770 (REG_CLASS_NAMES): Delete SPR_REGS.
27771 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27772 (REGISTER_NAMES): Adjust.
27773 (ADDITIONAL_REGISTER_NAMES): Adjust.
27774 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27775 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27776 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27777 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27778 (htm_spr_regno): Delete.
27779 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27780 argument.
27781 (rs6000_dbx_register_number): Adjust.
27782
27783 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27784
27785 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27786
27787 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27788
27789 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27790 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27791
27792 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27793
27794 PR tree-optimization/88709
27795 PR tree-optimization/90271
27796 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27797 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27798 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27799 variable.
27800 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27801 of the store merging group is larger than
27802 PARAM_STORE_MERGING_MAX_SIZE parameter.
27803 (split_group): Add bzero_first argument. If set, always emit first
27804 the first store which must be = {} of the whole area and then for the
27805 rest of the stores consider all zero bytes as paddings.
27806 (imm_store_chain_info::output_merged_store): Check if first store
27807 is = {} of the whole area and if yes, determine which setting of
27808 bzero_first for split_group gives smaller number of stores. Adjust
27809 split_group callers.
27810 (lhs_valid_for_store_merging_p): Allow decls.
27811 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27812 no elts.
27813 (pass_store_merging::process_store): Likewise.
27814
27815 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27816
27817 PR target/89424
27818 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27819 handling of V1TImode.
27820
27821 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27822
27823 PR target/89221
27824 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27825 and enable_frame_pointer ...
27826 * configure.ac: ... here. Update help strings for
27827 --enable-frame-pointer.
27828 * configure: Regenerate.
27829 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27830 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27831 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27832 (USE_X86_64_FRAME_POINTER): Ditto.
27833
27834 2019-05-06 Martin Liska <mliska@suse.cz>
27835
27836 * config.gcc: Append to target_gtfiles and fix indentation.
27837
27838 2019-05-06 Richard Biener <rguenther@suse.de>
27839
27840 PR tree-optimization/90358
27841 * tree-vect-stmts.c (get_group_load_store_type): Properly
27842 detect unused upper half of load.
27843 (vectorizable_load): Likewise.
27844
27845 2019-05-06 Richard Biener <rguenther@suse.de>
27846
27847 PR tree-optimization/88828
27848 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27849 (simplify_vector_constructor): ...here. Handle constants in
27850 the constructor.
27851
27852 2019-05-06 Richard Biener <rguenther@suse.de>
27853
27854 PR tree-optimization/90328
27855 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27856 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27857 is valid in the loop nest before using it.
27858 (initialize_data_dependence_relation): Adjust.
27859 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27860 loop as loop-nest to dr_may_alias_p.
27861
27862 2019-05-06 Richard Biener <rguenther@suse.de>
27863
27864 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27865
27866 2019-05-06 Richard Biener <rguenther@suse.de>
27867
27868 PR tree-optimization/90316
27869 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27870 compute target on demand.
27871 (get_continuation_for_phi): Remove code walking stmts to
27872 get to a target virtual operand which could end up being
27873 quadratic.
27874
27875 2019-05-06 Martin Liska <mliska@suse.cz>
27876
27877 PR sanitizer/90312
27878 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27879 when -mabi is selected to a non-default version.
27880
27881 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27882 Martin Liska <mliska@suse.cz>
27883
27884 * Makefile.in: Add lto-dump.texi.
27885 * cgraph.h: Add new functions get_visibility_string and
27886 get_symtab_type_string.
27887 * doc/gcc.texi: Include lto-dump section.
27888 * doc/lto-dump.texi: New file.
27889 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27890 (parse_dump_option): Factor out this function.
27891 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27892 (parse_dump_option): Export the function.
27893 * symtab.c (symtab_node::get_visibility_string): New function.
27894 (symtab_node::get_symtab_type_string): Likewise.
27895
27896 2019-05-06 Martin Liska <mliska@suse.cz>
27897
27898 * config/i386/i386-builtins.c: New file.
27899 * config/i386/i386-builtins.h: New file.
27900 * config/i386/i386-expand.c: New file.
27901 * config/i386/i386-expand.h: New file.
27902 * config/i386/i386-features.c: New file.
27903 * config/i386/i386-features.h: New file.
27904 * config/i386/i386-options.c: New file.
27905 * config/i386/i386-options.h: New file.
27906 * config.gcc: Add new files into extra_objs and
27907 target_gtfiles.
27908 * config/i386/i386.c: Split content of the file
27909 into newly introduced files.
27910 * config/i386/i386.h: Declare common variables
27911 and macros.
27912 * config/i386/t-i386: Define dependencies for new files.
27913
27914 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27915
27916 PR target/89400
27917 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27918 Restrict 'all' variant to 32-bit configurations.
27919 (unaligned_loadhiu): Likewise.
27920 (unaligned_storehi): Likewise.
27921 (unaligned_storesi): Likewise.
27922 (unaligned_loadhis): Disable when compiling for thumb1.
27923
27924 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27925
27926 PR tree-optimization/90269
27927 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27928 Ignore clobbers.
27929
27930 2019-05-03 Martin Liska <mliska@suse.cz>
27931
27932 * hash-map.h: Add is_empty function.
27933 * hash-set.h: Likewise.
27934 * hash-table.h: Likewise.
27935 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27936 elements () == 0 (and similar usages).
27937 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27938 * gimplify.c (gimplify_bind_expr): Likewise.
27939 (gimplify_switch_expr): Likewise.
27940 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27941 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27942 * postreload-gcse.c (dump_hash_table): Likewise.
27943 (gcse_after_reload_main): Likewise.
27944 * predict.c (combine_predictions_for_bb): Likewise.
27945 * tree-parloops.c (reduction_phi): Likewise.
27946 (separate_decls_in_region): Likewise.
27947 (transform_to_exit_first_loop): Likewise.
27948 (gen_parallel_loop): Likewise.
27949 (gather_scalar_reductions): Likewise.
27950 (try_create_reduction_list): Likewise.
27951 * var-tracking.c (dump_vars): Likewise.
27952 (emit_notes_for_changes): Likewise.
27953 (vt_emit_notes): Likewise.
27954
27955 2019-05-03 Richard Biener <rguenther@suse.de>
27956
27957 PR tree-optimization/90316
27958 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27959 before running VN.
27960
27961 2019-05-03 Richard Biener <rguenther@suse.de>
27962
27963 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27964 peeling for gaps by loading only lower halves of vectors
27965 if possible.
27966 (vectorizable_load): Likewise.
27967
27968 2019-05-03 Richard Biener <rguenther@suse.de>
27969
27970 PR middle-end/89518
27971 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27972
27973 2019-05-03 Richard Biener <rguenther@suse.de>
27974
27975 PR middle-end/87314
27976 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27977 Handle STRING_CST vs DECL or STRING_CST.
27978
27979 2019-05-03 Richard Biener <rguenther@suse.de>
27980
27981 PR tree-optimization/88963
27982 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27983 vector loads feeding only BIT_FIELD_REFs to component
27984 loads. Rewrite stores fed by CONSTRUCTORs to component
27985 stores.
27986
27987 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27988
27989 * opts.h (finish_options): Remove lang_mask argument.
27990 (print_help, help_option_argument): Declare.
27991 * opts.c (print_help): Remove forward declaration, no longer static.
27992 (finish_options): Remove lang_mask argument, don't call print_help
27993 here.
27994 * opts-global.c (decode_options): Adjust finish_option caller, call
27995 print_help here.
27996
27997 PR tree-optimization/90303
27998 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27999 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28000
28001 2019-05-03 Richard Biener <rguenther@suse.de>
28002
28003 PR tree-optimization/89698
28004 * gimple-fold.c (canonicalize_constructor_val): Early out
28005 for constants, handle unfolded INTEGER_CSTs as they appear in
28006 C++ virtual table ctors.
28007
28008 2019-05-03 Richard Biener <rguenther@suse.de>
28009
28010 * passes.c (execute_function_todo): Remove dead code.
28011
28012 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28013
28014 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28015 the internal register number, for any "real" register.
28016
28017 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28018
28019 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28020 correct numbers for TFHAR, TFIAR, TEXASR.
28021
28022 2019-05-02 Richard Biener <rguenther@suse.de>
28023
28024 PR tree-optimization/89653
28025 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28026 update-address-taken before the pass.
28027 * passes.def (pass_tree_loop_init): Put comment before it.
28028
28029 2019-05-02 Richard Biener <rguenther@suse.de>
28030
28031 PR tree-optimization/89509
28032 * tree-ssa-structalias.c (compute_dependence_clique): Look
28033 at the first subvar when determining whether it is restrict.
28034
28035 2019-05-02 Richard Biener <rguenther@suse.de>
28036
28037 PR tree-optimization/90273
28038 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28039 useless debug stmts.
28040
28041 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28042
28043 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28044 ACLE branch.
28045 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28046 SVE ACLE branch.
28047 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28048 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28049 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28050 (vectorizable_reduction): Use the functions above to vectorize in a
28051 fully masked loop codes that don't have a conditional internal
28052 function.
28053
28054 2019-05-02 Martin Liska <mliska@suse.cz>
28055
28056 * cgraphclones.c: Call valid_attribute_p with 1 for
28057 target_clone.
28058 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28059 it's for target attribute.
28060 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28061 Add new boolean argument.
28062 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28063 Likewise.
28064 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28065 to ix86_valid_target_attribute_inner_p.
28066 (ix86_valid_target_attribute_p): Pass flags argument to
28067 ix86_valid_target_attribute_inner_p.
28068 (get_builtin_code_for_version): Use 0 as it's target attribute.
28069
28070 2019-05-02 Martin Liska <mliska@suse.cz>
28071
28072 * gcc.c (process_command): Add dummy file only
28073 if n_infiles == 0.
28074 * opts-global.c (decode_options): Pass lang_mask.
28075 * opts.c (print_help): New function.
28076 (finish_options): Print --help if help_option_argument
28077 is set.
28078 (common_handle_option): Factor out content of OPT__help_
28079 into print_help.
28080 * opts.h (finish_options): Add new argument.
28081
28082 2019-05-02 Martin Liska <mliska@suse.cz>
28083
28084 PR target/88809
28085 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28086 With -minline-all-stringops use inline expansion using 4B loop.
28087 * doc/invoke.texi: Document the change of
28088 -minline-all-stringops.
28089
28090 2019-05-01 Jeff Law <law@redhat.com>
28091
28092 PR tree-optimization/88797
28093 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28094 PHI feeds a conditional on the RHS of an assignment.
28095
28096 2019-04-30 Andrew Waterman <andrew@sifive.com>
28097 Jim Wilson <jimw@sifive.com>
28098
28099 * config/riscv/constraints.md (L): New.
28100 * config/riscv/predicates.md (lui_operand): New.
28101 (sfb_alu_operand): New.
28102 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28103 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28104 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28105 * config/riscv/risc.md (type): Add sfb_alu.
28106 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28107 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28108 (branch_zero<mode>): Delete.
28109 (mov<mode>cc): New.
28110 (mov<GPR:mode><X:mode>cc): Likewise.
28111 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28112
28113 2019-04-30 Nathan Sidwell <nathan@acm.org>
28114
28115 * tree.h (MARK_TS_EXP): New.
28116
28117 2019-04-30 Martin Liska <mliska@suse.cz>
28118
28119 * opts.c (enable_warning_as_error): Provide hints
28120 for unknown options.
28121
28122 2019-04-30 Martin Liska <mliska@suse.cz>
28123
28124 PR debug/90288
28125 * doc/invoke.texi: Add missing dash for gas-locview-support
28126 and gno-as-locview-support.
28127
28128 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28129
28130 PR target/89093
28131 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28132 whitespace at the start of target attribute string.
28133
28134 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28135
28136 PR target/86538
28137 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28138 Define __ARM_FEATURE_ATOMICS.
28139
28140 2019-04-30 Martin Liska <mliska@suse.cz>
28141
28142 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28143 into built_in_function enum. Remove code for endp == 2 and
28144 use BUILT_IN_* constants.
28145 (gimple_fold_builtin): Call the function with fcode.
28146
28147 2019-04-30 Martin Liska <mliska@suse.cz>
28148
28149 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28150 DECL_FUNCTION_CODE into ix86_builtins enum before
28151 the switch statement.
28152
28153 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28154
28155 PR tree-optimization/89475
28156 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28157 calls.
28158
28159 2019-04-30 Martin Liska <mliska@suse.cz>
28160
28161 PR translation/90274
28162 * opts.c (print_filtered_help): Wrap string in _(...).
28163
28164 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28165
28166 PR tree-optimization/90240
28167 Revert:
28168 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28169
28170 PR tree-optimization/90078
28171 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28172 checks for infinite_cost overflow.
28173
28174 2019-04-29 Jeff Law <law@redhat.com>
28175
28176 * passes.def: Move -Wrestrict pass after copy propagation.
28177
28178 2019-04-29 Maya Rashish <coypu@sdf.org>
28179
28180 * config.gcc (default_gnu_indirect_function): Default to yes
28181 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28182 sparc*-*-netbsd*, x86_64-*-netbsd*.
28183
28184 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28185
28186 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28187 where cond2 is NE_EXPR.
28188 (is_value_included_in): Update comment.
28189
28190 2019-04-29 Richard Biener <rguenther@suse.de>
28191
28192 PR tree-optimization/90278
28193 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28194 EH on comparison simplification.
28195
28196 2019-04-29 Jason Merrill <jason@redhat.com>
28197
28198 PR c++/82081 - tail call optimization breaks noexcept
28199 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28200 nothrow function to a might-throw function into a tail call.
28201
28202 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28203
28204 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28205 (DDR_INNER_LOOP): Likewise.
28206 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28207 (initialize_data_dependence_relation): Likewise.
28208 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28209
28210 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28211
28212 PR rtl-optimization/90257
28213 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28214 return value.
28215
28216 Revert the revert:
28217 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28218
28219 PR target/90178
28220 Revert:
28221 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28222
28223 Revert the revert:
28224 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28225
28226 Revert:
28227 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28228
28229 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28230
28231 2019-04-29 Richard Biener <rguenther@suse.de>
28232
28233 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28234 rhs issue a reset.
28235
28236 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28237
28238 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28239 varasm.h, and netbsd-protos.h.
28240
28241 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28242
28243 PR target/89261
28244 * config/i386/i386-protos.h (ix86_data_alignment): Change
28245 the second argument type to unsigned int.
28246 * config/i386/i386.c (ix86_data_alignment): Change "align"
28247 argument type to unsigned int.
28248
28249 2019-04-27 Martin Liska <mliska@suse.cz>
28250
28251 PR middle-end/90258
28252 * opt-suggestions.c (option_proposer::build_option_suggestions):
28253 When get_valid_option_values returns empty values, add the
28254 misspelling candidate.
28255
28256 2019-04-26 Jim Wilson <jimw@sifive.com>
28257
28258 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28259 parameter.
28260 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28261 Pass orig_mode to riscv_build_integer.
28262 (riscv_split_integer): Pass mode to riscv_move_integer.
28263 (riscv_legitimize_const_move): Likewise.
28264 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28265 promoted_mode. Replace force_reg call with code to load constant into
28266 promoted reg and then subreg it for the store.
28267 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28268 riscv_move_integer.
28269
28270 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28271
28272 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28273 corrupt codes.
28274
28275 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28276
28277 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28278 commentary about the encoding of precision.
28279
28280 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28281
28282 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28283 * config/i386/t-freebsd64: New file.
28284 * config.gcc: Add the t-freebsd64 for multilib support.
28285
28286 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28287
28288 * doc/extend.texi (vector_size): Add missing comma after @xref.
28289
28290 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28291
28292 * BASE-VER: Set to 10.0.0.
28293
28294 2019-04-25 Richard Biener <rguenther@suse.de>
28295
28296 PR middle-end/89765
28297 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28298 VIEW_CONVERT_EXPR into one operating on an rvalue.
28299
28300 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28301
28302 PR target/89929
28303 * config/i386/i386.c (feature_priority): Moved to file scope.
28304 (processor_features): Likewise.
28305 (processor_model): Likewise.
28306 (_arch_names_table): Likewise.
28307 (arch_names_table): Likewise.
28308 (_feature_list): Removed.
28309 (feature_list): Likewise.
28310 (_isa_names_table): Moved to file scope. Add priority.
28311 (isa_names_table): Likewise.
28312 (get_builtin_code_for_version): Replace feature_list with
28313 isa_names_table. Update error message for P_ZERO priority.
28314
28315 2019-04-25 Richard Biener <rguenther@suse.de>
28316
28317 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28318 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28319
28320 2019-04-24 Jeff Law <law@redhat.com>
28321
28322 PR tree-optimization/90037
28323 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28324 * passes.def: Replace all instance of phi-only cprop with the
28325 lattice propagator. Move propagation pass from after erroneous
28326 path isolation to before erroneous path isolation.
28327 * tree-ssa-phionlycprop.c: Remove.
28328
28329 2019-04-24 Richard Biener <rguenther@suse.de>
28330
28331 PR middle-end/90213
28332 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28333 by size and BITS_PER_UNIT on poly-wide-ints.
28334
28335 2019-04-25 Richard Biener <rguenther@suse.de>
28336
28337 PR middle-end/90194
28338 * match.pd: Add pattern to simplify view-conversion of an
28339 empty constructor.
28340
28341 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28342
28343 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28344 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28345 for Go on 32 bit AIX.
28346 * config/rs6000/aix72.h: Likewise.
28347
28348 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28349
28350 PR target/90193
28351 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28352 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28353
28354 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28355
28356 PR target/89952
28357 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28358 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28359 for restored hard frame pointer.
28360 (s390_sched_dependencies_evaluation): Implement new target hook.
28361 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28362
28363 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28364
28365 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28366 * config/arc/arc.c (arc_init): Cleanup warning message.
28367 (arc_override_options): Likewise.
28368
28369 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28370
28371 PR target/90187
28372 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28373 a register if both if_true and if_false are MEMs.
28374
28375 PR tree-optimization/90208
28376 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28377 after labels of new_bb, not before them.
28378
28379 PR tree-optimization/90211
28380 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28381 which are not SSA_NAMEs.
28382
28383 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28384
28385 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28386 AArch64.
28387 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28388
28389 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28390
28391 PR rtl-optimization/87979
28392 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28393 not equal zero.
28394
28395 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28396
28397 PR rtl-optimization/84032
28398 * modulo-sched.c (ps_insn_find_column): Change condition so that
28399 branch will always be the last insn in a row inside partial
28400 schedule.
28401
28402 2019-04-23 Richard Biener <rguenther@suse.de>
28403
28404 PR debug/90131
28405 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28406 dest_single_pred_p argument.
28407 (remove_forwarder_block): Adjust.
28408 (remove_forwarder_block_with_phi): Likewise.
28409
28410 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28411 Bernd Edlinger <bernd.edlinger@hotmail.de>
28412 Jakub Jelinek <jakub@redhat.com>
28413
28414 PR target/89093
28415 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28416 if used with general-regs-only.
28417 (arm_conditional_register_usage): Don't add non-general regs if
28418 general-regs-only.
28419 (arm_valid_target_attribute_rec): Handle general-regs-only.
28420 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28421 general-regs-only.
28422 (TARGET_HARD_FLOAT_SUB): Define.
28423 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28424 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28425 (TARGET_REALLY_IWMMXT2): Likewise.
28426 * config/arm/arm.opt: Add -mgeneral-regs-only.
28427 * doc/extend.texi: Document ARM general-regs-only target.
28428 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28429
28430 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28431
28432 PR tree-optimization/90078
28433 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28434 checks for infinite_cost overflow.
28435
28436 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28437
28438 PR tree-optimization/90021
28439 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28440 and check univariate against it.
28441 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28442 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28443
28444 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28445
28446 PR target/90178
28447 Revert:
28448 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28449
28450 Revert the revert:
28451 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28452
28453 Revert:
28454 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28455
28456 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28457
28458 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28459
28460 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28461 names using operand format, rather than hard-wired.
28462 (speculation_barrier): Likewise.
28463
28464 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28465
28466 PR tree-optimization/88055
28467 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28468 (gen_one_condition): Use it if !HONOR_NANS.
28469
28470 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28471
28472 PR middle-end/90139
28473 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28474 assign_temp instead of gen_reg_rtx.
28475
28476 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28477
28478 PR translation/90118
28479 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28480 Add missing space before %<.
28481
28482 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28483
28484 PR rtl-optimization/87871
28485 * ira-lives.c (make_object_dead): Don't add conflicts to
28486 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28487
28488 2019-04-18 Martin Sebor <msebor@redhat.com>
28489
28490 PR middle-end/89797
28491 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28492 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28493 assuming type size fits in SHWI.
28494
28495 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28496
28497 PR ipa/85051
28498 * ipa-inline.c (flatten_function): New parameter UPDATE.
28499 (ipa_inline, early_inliner): Use it.
28500
28501 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28502
28503 * fold-const.c (int_const_binop): Return early on failure.
28504
28505 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28506
28507 PR middle-end/85164
28508 * combine.c (force_int_to_mode): Cast the argument rather than
28509 the result of known_alignment.
28510 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28511
28512 2019-04-18 Richard Biener <rguenther@suse.de>
28513
28514 PR debug/90131
28515 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28516 out from ...
28517 (remove_forwarder_block): ... here.
28518 (remove_forwarder_block_with_phi): Also move debug stmts here.
28519
28520 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28521
28522 PR translation/79183
28523 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28524 inform where appropriate.
28525
28526 2019-04-18 Richard Biener <rguenther@suse.de>
28527
28528 * tree.c (get_qualified_type): Put found type variants at the
28529 head of the variant list.
28530
28531 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28532
28533 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28534
28535 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28536
28537 PR target/90125
28538 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28539 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28540 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28541 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28542 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28543
28544 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28545
28546 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28547 even for allocno's with no conflicts.
28548 (print_conflicts): Print an extra newline.
28549
28550 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28551
28552 * auto-inc-dec.c (attempt_change): Set the alignment of the
28553 temporary memory to that of the original.
28554
28555 2019-04-17 Joao Moreira <jmoreira@suse.de>
28556
28557 * targhooks.c (default_print_patchable_function_entry): Emit
28558 __patchable_function_entries section with writable flags to allow
28559 relocation resolution.
28560
28561 2019-04-17 Jonny Grant <jg@jguk.org>
28562
28563 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28564
28565 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28566
28567 PR middle-end/90095
28568 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28569 on lowpart SUBREGs.
28570
28571 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28572
28573 * config/arc/arc.c (arc_init): Format diagnostic string.
28574 (arc_override_options): Likewise.
28575 (check_if_valid_regno_const): Likewise.
28576 (arc_reorg): Likewise.
28577
28578 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28579
28580 PR target/17108
28581 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28582 name.
28583 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28584 name.
28585 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28586 (*movdi_update1): Use Pmode.
28587 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28588 (movdi_<mode>_update_stack): Rename to ...
28589 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28590 use Pmode.
28591 (*movsi_update1): Use Pmode.
28592 (*movsi_update2): Use Pmode.
28593 (movsi_update): Rename to ...
28594 (movsi_<mode>_update): ... this. Use Pmode.
28595 (movsi_update_stack): Fix condition.
28596 (*movhi_update1): Use Pmode. Fix argument to
28597 avoiding_indexed_address_p.
28598 (*movhi_update2): Ditto.
28599 (*movhi_update3): Ditto.
28600 (*movhi_update4): Ditto.
28601 (*movqi_update1): Ditto.
28602 (*movqi_update2): Ditto.
28603 (*movqi_update3): Ditto.
28604 (*movsf_update1, *movdf_update1): Merge, rename to...
28605 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28606 avoiding_indexed_address_p. Add "size" attribute.
28607 (*movsf_update2, *movdf_update2): Merge, rename to...
28608 (*mov<mode>_update2): This. Ditto.
28609 (*movsf_update3): Use Pmode. Fix argument to
28610 avoiding_indexed_address_p.
28611 (*movsf_update4): Ditto.
28612 (allocate_stack): Simplify condition. Adjust pattern names.
28613
28614 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28615
28616 PR target/89093
28617 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28618 whitespace at the start of target attribute string.
28619
28620 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28621
28622 PR target/84369
28623 * config/rs6000/power9.md: Add store forwarding bypass.
28624
28625 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28626
28627 PR debug/89528
28628 * valtrack.c (dead_debug_insert_temp): Reset debug references
28629 to the return value of a call being removed.
28630
28631 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28632
28633 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28634 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28635 implement target hook.
28636 (arc_memory_move_cost): New function.
28637 (TARGET_REGISTER_MOVE_COST): Define.
28638 (TARGET_MEMORY_MOVE_COST): Likewise.
28639 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28640 (MEMORY_MOVE_COST): Likewise.
28641
28642 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28643
28644 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28645 (sibcall_value_insn): Likewise.
28646 * config/arc/constraints.md (Rs5): Remove.
28647
28648 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28649
28650 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28651 for last two fake registers.
28652 (arc_conditional_register_usage): Make sure fake frame and arg
28653 pointer regs are in general regs class.
28654 (FRAME_POINTER_MASK): Remove.
28655 (RETURN_ADDR_MASK): Remove.
28656 (arc_must_save_register): Use hard frame regnum.
28657 (frame_restore_reg): Use hard_frame_pointer_rtx.
28658 (arc_save_callee_saves): Likewise.
28659 (arc_restore_callee_saves): Likewise.
28660 (arc_save_callee_enter): Likewise.
28661 (arc_restore_callee_leave): Likewise.
28662 (arc_save_callee_milli): Likewise.
28663 (arc_eh_return_address_location): Likewise.
28664 (arc_check_multi): Use hard frame regnum.
28665 (arc_can_eliminate): Likewise.
28666 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28667 for register allocator.
28668 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28669 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28670 (FRAME_POINTER_REGNUM): Change it to a fake register.
28671 (HARD_FRAME_POINTER_REGNUM): Defined.
28672 (ARG_POINTER_REGNUM): Change it to a new fake register.
28673 (ELIMINABLE_REGS): Update.
28674 (REGISTER_NAMES): Update names.
28675 * config/arc/arc.md (LP_START): Remove.
28676 (LP_END): Likewise.
28677 (shift_si3_loop): Update pattern.
28678
28679 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28680
28681 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28682 to avoid delay slot scheduling.
28683 (arc_must_save_register): Don't save SP.
28684 * config/arc/arc.md (stack_tie): Remove.
28685 (UNSPEC_ARC_STKTIE): Likewise.
28686
28687 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28688 Shiva Chen <shiva0217@gmail.com>
28689
28690 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28691 code gen with large shift amount.
28692
28693 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28694
28695 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28696 subreg.
28697
28698 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28699
28700 PR target/90096
28701 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28702 print -m64/-mx32/-m32 if it is true.
28703 (ix86_debug_options, ix86_function_specific_print): Pass true as
28704 ADD_ABI_P to ix86_target_string.
28705 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28706 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28707 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28708
28709 PR rtl-optimization/90082
28710 * dce.c (can_delete_call): New function.
28711 (deletable_insn_p, mark_insn): Use it.
28712
28713 PR tree-optimization/90090
28714 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28715 throw internally.
28716 (is_division_by_square): Likewise. Formatting fix.
28717
28718 2019-04-16 Richard Biener <rguenther@suse.de>
28719
28720 PR tree-optimization/56049
28721 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28722 equality check if alias-set zero will prevail.
28723
28724 2019-04-15 Jeff Law <law@redhat.com>
28725
28726 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28727 size and alignment as unsigned.
28728
28729 2019-04-15 Richard Biener <rguenther@suse.de>
28730
28731 PR debug/90074
28732 * tree-loop-distribution.c (destroy_loop): Preserve correct
28733 debug info.
28734
28735 2019-04-15 Richard Biener <rguenther@suse.de>
28736
28737 PR tree-optimization/90071
28738 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28739 abnormal operands from def stmts.
28740
28741 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28742
28743 PR rtl-optimization/89794
28744 * combine.c (count_auto_inc): New function.
28745 (try_combine): Count how many auto_inc expressions there were in the
28746 original instructions. Ensure we have the same number in the new
28747 instructions. Remove the code that tried to ensure auto_inc side
28748 effects on i1 and i0 are not lost.
28749
28750 2019-04-15 Richard Biener <rguenther@suse.de>
28751
28752 PR ipa/88936
28753 * tree.h (auto_var_p): Declare.
28754 * tree.c (auto_var_p): New function, split out from ...
28755 (auto_var_in_fn_p): ... here.
28756 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28757 member.
28758 (new_var_info): Initialize it.
28759 (set_uids_in_ptset): Also set the shadow variable uid if required.
28760 (ipa_pta_execute): Postprocess points-to solutions assigning
28761 shadow variable uids for locals that may reach their containing
28762 function recursively.
28763 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28764 assert but instead check whether the points-to solution is
28765 a singleton.
28766
28767 2019-04-15 Martin Jambor <mjambor@suse.cz>
28768
28769 PR ipa/pr89693
28770 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28771 the thunk chain.
28772
28773 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28774
28775 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28776
28777 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28778 Kito Cheng <kito.cheng@gmail.com>
28779 Shiva Chen <shiva0217@gmail.com>
28780
28781 * config/nds32/nds32-md-auxiliary.c
28782 (nds32_legitimize_pic_address): Use new PIC pattern.
28783 (nds32_legitimize_tls_address): Use new TLS pattern.
28784 (nds32_output_symrel): New.
28785 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28786 (nds32_alloc_relax_group_id): Ditto.
28787 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28788 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28789 relax_group_id.
28790 (nds32_group_tls_insn): Ditto.
28791 (nds32_group_float_insns): Ditto.
28792 * config/nds32/nds32.md (tls_le): New.
28793 (sym_got): Ditto.
28794
28795 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28796
28797 * configure: Add nds32 target for dwarf2 debug_line checking.
28798 * configure.ac: Regenerated.
28799
28800 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28801
28802 PR lto/89358
28803 * ipa-devirt.c (skip_in_fields_list_p): New.
28804 (odr_types_equivalent_p): Use it.
28805
28806 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28807
28808 PR target/89093
28809 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28810 instead of strncmp when checking for thumb and arm. Formatting fixes.
28811
28812 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28813
28814 * doc/install.texi: Document --with-target-system-zlib.
28815
28816 2019-04-12 Martin Sebor <msebor@redhat.com>
28817
28818 PR c/88383
28819 PR c/89288
28820 PR c/89798
28821 PR c/89797
28822 * targhooks.c (default_vector_alignment): Avoid assuming
28823 argument fits in SHWI.
28824 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28825 a shift expression.
28826 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28827
28828 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28829
28830 PR rtl-optimization/89965
28831 * dce.c: Include rtl-iter.h.
28832 (struct check_argument_load_data): New type.
28833 (check_argument_load): New function.
28834 (find_call_stack_args): Check for loads from stack slots still tracked
28835 in sp_bytes and punt if any is found.
28836
28837 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28838
28839 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28840
28841 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28842 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28843
28844 2019-04-12 Martin Liska <mliska@suse.cz>
28845
28846 PR middle-end/89970
28847 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28848 in error message.
28849 (separate_attrs): Handle multiple 'default's.
28850 (expand_target_clones): Rework error handling code.
28851
28852 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28853
28854 PR target/87532
28855 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28856 mode of vector rather than mode of destination for move instruction.
28857 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28858 Use QI inner mode with V16QI vector mode.
28859
28860 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28861
28862 PR target/52726
28863 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28864 "invalid %%t operand" in output_operand_lossage message.
28865
28866 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28867
28868 * config/s390/predicates.md (permute_pattern_operand): New
28869 predicate.
28870 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28871 operand for the permute pattern.
28872 ("*vec_perm<mode>"): New insn definition.
28873 ("bswap<mode>"): Generate the permute pattern operand in the
28874 expander and perform the operand reloads for pre arch13 level
28875 already.
28876 ("*bswap<mode>_emu"): Rename to ...
28877 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28878 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28879 Add the USE operand for the permute pattern.
28880 ("*vec_set_bswap_vec<mode>"): Likewise.
28881
28882 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28883
28884 PR c/89946
28885 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28886 and gcc_unreachable if it fails, just call tree_to_uhwi which
28887 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28888 Start warning message with a lower-case letter. Formatting fixes.
28889
28890 PR rtl-optimization/90026
28891 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28892 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28893 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28894 in cfglayout mode, use emit_barrier_after_bb.
28895
28896 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28897
28898 PR rtl-optimization/87763
28899 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28900 New Instruction.
28901
28902 2019-04-11 Tom de Vries <tdevries@suse.de>
28903
28904 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28905 max macro using statement expression.
28906
28907 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28908
28909 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28910 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28911 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28912 read_only_private_data_section using xcoff_private_rodata_section_name.
28913 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28914
28915 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28916
28917 PR target/90016
28918 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28919
28920 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28921
28922 PR rtl-optimization/89965
28923 * dce.c (sp_based_mem_offset): New function.
28924 (find_call_stack_args): Use sp_based_mem_offset.
28925
28926 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28927
28928 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28929
28930 2019-04-11 Richard Biener <rguenther@suse.de>
28931
28932 PR tree-optimization/90020
28933 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28934 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28935 * tree-ssa-pre.c (compute_avail): Use it to not put
28936 possibly trapping references after a call that might not
28937 return into EXP_GEN.
28938 * gcse.c (compute_hash_table_work): Do not elide
28939 marking a block containing a call if the call might not
28940 return.
28941
28942 2019-04-11 Richard Biener <rguenther@suse.de>
28943
28944 PR tree-optimization/90018
28945 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28946 Test both SLP and interleaving variants.
28947
28948 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28949
28950 * config/s390/8561.md: New file.
28951 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28952 Add arch13 cpu model.
28953 * config/s390/s390-opts.h (enum processor_type): Likewise.
28954 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28955 (s390_get_unit_mask): Likewise.
28956 (s390_is_fpd): Likewise.
28957 (s390_is_fxd): Likewise.
28958 * config/s390/s390.h (s390_tune_attr): Likewise.
28959 * config/s390/s390.md: Include arch13 pipeline description.
28960 * config/s390/s390.opt: Add arch13.
28961
28962 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28963
28964 PR rtl-optimization/87763
28965 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28966 New prototype.
28967 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28968 New function.
28969 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28970 New instruction.
28971 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28972 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28973 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28974 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28975
28976 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28977
28978 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28979 "Although" in -fipa-icf documentation.
28980
28981 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28982 of using multiple -g options.
28983
28984 2019-04-10 Martin Liska <mliska@suse.cz>
28985
28986 PR gcov-profile/89959
28987 * doc/gcov.texi: Make documentation of -x option
28988 more precise.
28989
28990 2019-04-10 Richard Biener <rguenther@suse.de>
28991
28992 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28993 member.
28994 (DR_GROUP_SAME_DR_STMT): Remove.
28995 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28996 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28997 replace with assert.
28998 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28999 (vect_record_grouped_load_vectors): Remove unreachable code.
29000
29001 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29002
29003 PR target/90016
29004 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29005 obsolete reference to N.
29006
29007 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29008
29009 PR middle-end/90025
29010 * expr.c (store_expr): Set properly size on the MEM passed to
29011 clear_storage.
29012
29013 PR c++/90010
29014 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29015 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29016 translation is needed, and when translation is needed, only append
29017 ... if the string length is hostsz or more bytes long. Avoid using
29018 strncpy or strcat.
29019
29020 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29021
29022 PR target/90024
29023 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29024 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29025 into three.
29026 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29027 differences directly.
29028 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29029
29030 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29031
29032 PR translation/90011
29033 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29034 from diagnostics.
29035 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29036 diagnostics.
29037 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29038 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29039 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29040 trailing space from -gsplit-dwarf diagnostics.
29041
29042 PR tree-optimization/89998
29043 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29044 instead of integer_type_node if possible, don't add ranges if return
29045 type is not compatible with int.
29046 * gimple-fold.c (gimple_fold_builtin_sprintf,
29047 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29048 integer_type_node.
29049
29050 2019-04-09 Martin Liska <mliska@suse.cz>
29051
29052 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29053 * doc/install.texi: Document the new config.
29054
29055 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29056
29057 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29058 use gimple_expr_type for load and store calls. Skip over the
29059 condition argument in a conditional internal function.
29060 Protect use of TREE_INT_CST_LOW.
29061
29062 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29063
29064 PR target/90015
29065 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29066 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29067 trailing period from it too.
29068
29069 2019-04-08 wu yuan <wuyuan5@huawei.com>
29070
29071 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29072 * config/aarch64/aarch64.md: Add "tsv110.md".
29073 * config/aarch64/tsv110.md: New file.
29074
29075 2019-04-08 Richard Biener <rguenther@suse.de>
29076
29077 PR tree-optimization/90006
29078 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29079 calls like lrint.
29080
29081 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29082
29083 PR target/83033
29084 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29085 construction.
29086 (fma_root_node): Likewise.
29087 (func_fma_steering): Likewise.
29088
29089 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29090
29091 PR rtl-optimization/89865
29092 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29093
29094 PR rtl-optimization/89865
29095 * config/i386/i386.md
29096 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29097 numbers not to clash with the additional operands[4].
29098 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29099 with extra register copy in the middle.
29100
29101 2019-04-08 Martin Liska <mliska@suse.cz>
29102
29103 PR gcov-profile/89961
29104 * doc/gcov.texi: Document data_file.
29105 * gcov.c (generate_results): Add data_info into JSON output.
29106
29107 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29108
29109 PR tree-optimization/89725
29110 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29111 loop's chrec as invariant symbol.
29112 * tree-chrec.h (chrec_contains_symbols): New parameter.
29113 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29114 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29115 function of loops not in DDR's loop_nest.
29116 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29117
29118 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29119
29120 PR target/89623
29121 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29122 Mask.
29123
29124 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29125
29126 PR target/89945
29127 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29128 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29129
29130 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29131
29132 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29133 targetm.fixed_condition_code_regs.
29134
29135 2019-04-05 Richard Biener <rguenther@suse.de>
29136
29137 PR debug/89892
29138 PR debug/89905
29139 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29140 debug bind stmts but reset them if they are not valid at the
29141 destination.
29142
29143 2019-04-05 Martin Liska <mliska@suse.cz>
29144
29145 PR translation/89936
29146 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29147 order to wrap keywords or arguments.
29148 * collect2.c (main): Likewise.
29149 (scan_prog_file): Likewise.
29150 (scan_libraries): Likewise.
29151 * common/config/riscv/riscv-common.c
29152 (riscv_subset_list::parsing_subset_version): Likewise.
29153 (riscv_subset_list::parse_std_ext): Likewise.
29154 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29155 Likewise.
29156 * config/arm/arm.c (arm_option_override): Likewise.
29157 * config/cris/cris.c (cris_print_operand): Likewise.
29158 * config/darwin-c.c (darwin_pragma_options): Likewise.
29159 (darwin_pragma_unused): Likewise.
29160 (darwin_pragma_ms_struct): Likewise.
29161 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29162 * config/i386/i386.c (print_reg): Likewise.
29163 (ix86_print_operand): Likewise.
29164 * config/i386/xm-djgpp.h: Likewise.
29165 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29166 * config/m32c/m32c.c (m32c_option_override): Likewise.
29167 * config/msp430/msp430.c (msp430_option_override): Likewise.
29168 * config/nds32/nds32.c (nds32_option_override): Likewise.
29169 * config/nvptx/mkoffload.c (main): Likewise.
29170 * config/rx/rx.c (rx_print_operand): Likewise.
29171 (valid_psw_flag): Likewise.
29172 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29173 (vms_pragma_nomember_alignment): Likewise.
29174 (vms_pragma_extern_model): Likewise.
29175 * lto-wrapper.c (compile_offload_image): Likewise.
29176 * omp-offload.c (oacc_parse_default_dims): Likewise.
29177 * symtab.c (symtab_node::verify_base): Likewise.
29178 * tlink.c (recompile_files): Likewise.
29179 (start_tweaking): Likewise.
29180 * tree-profile.c (parse_profile_filter): Likewise.
29181
29182 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29183
29184 PR tree-optimization/89956
29185 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29186 multiple negates of the same value.
29187
29188 2019-04-04 Martin Sebor <msebor@redhat.com>
29189
29190 PR middle-end/89957
29191 PR middle-end/89911
29192 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29193 have the same precision since the function crashes otherwise.
29194 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29195 has non-zero arguments.
29196
29197 2019-04-04 Martin Sebor <msebor@redhat.com>
29198
29199 PR middle-end/89934
29200 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29201 out if the number of arguments is less than expected.
29202
29203 2019-04-04 Jeff Law <law@redhat.com>
29204
29205 PR rtl-optimization/89399
29206 * ree.c (combine_set_extension): Use single_set rather than
29207 digging into PATTERN for items on the candidate list.
29208 (combine_reaching_defs): Likewise.
29209
29210 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29211
29212 PR rtl-optimization/46590
29213 * loop-invariant.c (find_defs): Move df_remove_problem and
29214 df_process_deferred_rescans to move_invariants.
29215 Move df_live_add_problem and df_live_set_all_dirty calls
29216 to move_invariants.
29217 (move_invariants): Likewise.
29218 (move_loop_invariants): Likewise, making the df_live calls
29219 conditional on -O. Remove the problem again if we added it
29220 locally.
29221
29222 2019-04-03 qing zhao <qing.zhao@oracle.com>
29223
29224 PR tree-optimization/89730
29225 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29226 -flive-patching=inline-only-static.
29227 (can_inline_edge_by_limits_p): Add the checking for
29228 -flive-patching=inline-only-static and grant always_inline
29229 even when -flive-patching=inline-only-static is specified.
29230
29231 2019-04-03 Jeff Law <law@redhat.com>
29232
29233 PR rtl-optimization/81025
29234 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29235
29236 2019-04-03 Richard Biener <rguenther@suse.de>
29237
29238 PR tree-optimization/84101
29239 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29240 regs.h for hard_regno_nregs.
29241 (cfun_returns): New helper.
29242 (vect_model_store_cost): When vectorizing a store to a decl
29243 we return and the function ABI returns in a multi-reg location
29244 account for the possible spilling that will happen.
29245
29246 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29247
29248 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29249 displacement addresses for vector mode operands.
29250
29251 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29252
29253 * config/arc/arc.c (GMASK_LEN): Define.
29254 (arc_restore_callee_saves): Restore first blink when
29255 !optimize_size.
29256
29257 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29258
29259 * doc/extend.texi: Add deprecated comment on sign-return-address
29260 function attribute and add mbranch-protection.
29261 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29262
29263 2019-04-03 Richard Biener <rguenther@suse.de>
29264
29265 PR lto/89896
29266 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29267 the all target phony.
29268
29269 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29270
29271 PR target/89902
29272 PR target/89903
29273 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29274 Return false for variable DImode shifts.
29275 (dimode_scalar_chain::compute_convert_gain): Do not handle
29276 register count operand in variable DImode shifts.
29277 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29278 count argument of a variable shift instruction to a vector register.
29279 (dimode_scalar_chain::convert_reg): Remove support to convert
29280 count argument of a variable shift instruction.
29281
29282 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29283
29284 PR rtl-optimization/84206
29285 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29286 iterating over loop headers.
29287
29288 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29289
29290 PR rtl-optimization/85876
29291 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29292 beyond the original fence.
29293
29294 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29295
29296 * config.gcc: Mark spu* targets as deprecated/obsolete.
29297
29298 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29299
29300 * config/s390/s390-builtin-types.def: New builtin function type
29301 definitions. Remove unused types.
29302 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29303 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29304 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29305 overloaded builtins.
29306 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29307 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29308 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29309 (vec_double, vec_signed, vec_unsigned): Define to use the new
29310 overloaded builtins.
29311 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29312 Remove expanders.
29313
29314 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29315
29316 * config/s390/s390-builtin-types.def: New builtin function type
29317 definitions.
29318 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29319 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29320 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29321 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29322 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29323 constant definitions.
29324 * config/s390/vecintrin.h (vec_search_string_cc)
29325 (vec_search_string_until_zero_cc): New builtin name definitions.
29326 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29327 expanders.
29328 ("vec_vstrs<mode>"): New insn definition.
29329
29330 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29331
29332 * config/s390/s390-builtin-types.def: Add new builtin function
29333 types.
29334 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29335 New overloaded builtins.
29336 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29337 s390_vsrd.
29338 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29339 (UNSPEC_VEC_SLDBYTE): ... this.
29340 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29341 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29342 definitions.
29343 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29344 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29345 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29346
29347 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29348
29349 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29350 New insn definition.
29351 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29352 * config/s390/vector.md (V_HW_HSD): ... here.
29353
29354 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29355
29356 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29357 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29358 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29359 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29360 New insn definitions.
29361
29362 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29363
29364 * config/s390/s390-builtin-types.def: Add new builtin function type.
29365 * config/s390/s390-builtins.def: Add overloaded builtin
29366 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29367 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29368 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29369 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29370 ("eltswap<mode>"): New expander.
29371 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29372 insn definitions.
29373
29374 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29375
29376 * config/s390/s390-builtin-types.def: Add new builtin function types.
29377 * config/s390/s390-builtins.def: Add overloaded builtin
29378 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29379 instructions.
29380 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29381 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29382 ("bswap<mode>"): New expander.
29383 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29384
29385 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29386
29387 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29388 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29389 vector builtin version number in __VEC__.
29390
29391 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29392
29393 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29394 iterators.
29395 (SFSI): New mode attribute.
29396 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29397 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29398 rename to ...
29399 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29400 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29401 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29402 ("floatsi<mode>2"): Add wcefb instruction.
29403
29404 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29405
29406 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29407 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29408 mode iterators.
29409 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29410 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29411 support 32 bit fp-int conversions. Rename to ...
29412 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29413 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29414 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29415 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29416 ... to these.
29417
29418 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29419
29420 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29421 if-then-else constructs if we can use the select instruction.
29422 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29423
29424 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29425
29426 * config/s390/s390.md ("*popcountdi_arch13_cc")
29427 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29428 definition.
29429 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29430 Append _z196 to make it ...
29431 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29432 ("popcounthi2_z196"): ... this.
29433 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29434 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29435
29436 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29437
29438 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29439 certain compares for arch13 in order to make use of the condition
29440 code result produced by the new instructions.
29441 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29442 nxrk, and nxgrk instruction patterns.
29443 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29444 (inv_no): Add new code iterator together with some attributes.
29445 ("*andc_split_<mode>"): Disable splitter for arch13.
29446 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29447 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29448 ("*<ANDOR:bitops_name>c<GPR:mode>")
29449 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29450 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29451 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29452 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29453
29454 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29455
29456 * common/config/s390/s390-common.c (processor_flags_table): New
29457 entry for arch13.
29458 * config.gcc: Support arch13 with the --with-arch= configure flag.
29459 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29460 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29461 * config/s390/s390.c (s390_get_sched_attrmask)
29462 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29463 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29464 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29465 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29466 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29467 definitions.
29468 * config/s390/s390.opt: Support arch13 as processor type in
29469 command line options.
29470
29471 2019-04-02 Martin Liska <mliska@suse.cz>
29472
29473 PR translation/89912
29474 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29475 Fix param description of graphite-max-arrays-per-scop.
29476
29477 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29478
29479 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29480 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29481 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29482
29483 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29484
29485 PR rtl-optimization/85412
29486 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29487 sel_sched_region_1, not after.
29488
29489 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29490
29491 PR rtl-optimization/86928
29492 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29493 compute_live if necessary.
29494 (sel_redirect_edge_and_branch): Likewise.
29495
29496 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29497
29498 PR rtl-optimization/89865
29499 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29500 register if it is a part of small class.
29501
29502 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29503
29504 PR rtl-optimization/87273
29505 * sel-sched-ir.c (merge_fences): Remove assert.
29506
29507 2019-04-01 Richard Biener <rguenther@suse.de>
29508
29509 PR tree-optimization/46590
29510 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29511 (dom_walker::m_reachability): Add in place of...
29512 (dom_walker::m_skip_unreachable_blocks): ...this.
29513 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29514 Move complex initialization ...
29515 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29516 lazily and initialize edge flags on each invocation.
29517 (dom_walker::bb_reachable): Use m_reachability.
29518
29519 2019-04-01 Martin Liska <mliska@suse.cz>
29520
29521 PR driver/89861
29522 * opt-suggestions.c (option_proposer::build_option_suggestions):
29523 Add variant without any argument in order to provide better
29524 hints.
29525
29526 2019-04-01 Richard Biener <rguenther@suse.de>
29527
29528 PR c/71598
29529 * gimple.c: Include langhooks.h.
29530 (gimple_get_alias_set): Treat enumeral types as the underlying
29531 integer type.
29532
29533 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29534 Eric Botcazou <ebotcazou@adacore.com>
29535
29536 PR rtl-optimization/89862
29537 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29538 that operates on the full registers for WORD_REGISTER_OPERATIONS
29539 architectures.
29540
29541 2019-03-29 Jim Wilson <jimw@sifive.com>
29542
29543 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29544 Clear MASK_RVC and then set if C subset supported.
29545
29546 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29547
29548 PR c/89872
29549 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29550 non-addressable complit into its initializer if it is volatile.
29551
29552 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29553
29554 * opts-common.c (integral_argument): Set errno properly in one case.
29555
29556 2019-03-29 Martin Liska <mliska@suse.cz>
29557
29558 * doc/invoke.texi: Remove -Wchkp from documentation.
29559
29560 2019-03-29 Martin Liska <mliska@suse.cz>
29561
29562 * dbgcnt.c (print_limit_reach): New function.
29563 (dbg_cnt): Use it.
29564
29565 2019-03-29 Martin Liska <mliska@suse.cz>
29566
29567 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29568 (dbg_cnt_process_opt): Parse first tokens aas
29569 dbg_cnt_process_single_pair is also using strtok.
29570
29571 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29572
29573 PR rtl-optimization/87485
29574 * function.c (expand_function_end): Move stack_protect_epilogue
29575 before loading of return value into hard register(s).
29576
29577 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29578
29579 PR middle-end/89621
29580 * tree-inline.h (struct copy_body_data): Add
29581 dont_remap_vla_if_no_change flag.
29582 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29583 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29584 and remap_type_2 returns false.
29585 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29586 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29587 only from where it is copied to nested contexts.
29588
29589 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29590
29591 PR target/89865
29592 * config/i386/i386.md (RMW operation with LEA peephole):
29593 Use LEAMODE mode attribute instead of SWI mode iterator for
29594 LEA pattern.
29595
29596 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29597
29598 PR target/89848
29599 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29600 Also process XEXP (src, 0) of a shift insn.
29601
29602 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29603
29604 PR middle-end/89725
29605 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29606 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29607
29608 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29609
29610 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29611 test.
29612 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29613 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29614 immediately after first one with df_analyze in between, but rather
29615 process all bbs, queueing ones that need second pass in a worklist,
29616 df_analyze, process queued debug insn changes and if second pass is
29617 needed, process bbs from worklist, df_analyze, process queued debug
29618 insns again.
29619
29620 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29621 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29622 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29623
29624 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29625
29626 PR c/79022
29627 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29628 definition.
29629
29630 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29631
29632 PR target/85667
29633 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29634 function for 32-bit MS_ABI.
29635 (function_value_ms_32): New function.
29636
29637 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29638
29639 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29640 (movdi): Call gen_movdi_symbol_save_scc.
29641 (gen_movdi_symbol_save_scc): New insn and split.
29642
29643 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29644
29645 PR rtl-optimization/89313
29646 * function.c (matching_constraint_num): New static function.
29647 (match_asm_constraints_1): Use it. Fixup white space and comment.
29648 Don't replace inputs with non-matching constraints which conflict
29649 with early clobber outputs.
29650
29651 2019-03-27 Jeff Law <law@redhat.com>
29652
29653 PR rtl-optimization/87761
29654 PR rtl-optimization/89826
29655 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29656 slightly later.
29657 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29658 note problem to get REG_DEAD/REG_UNUSED notes updated.
29659
29660 2019-03-27 Richard Biener <rguenther@suse.de>
29661
29662 PR tree-optimization/89463
29663 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29664 queue edges to remove.
29665 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29666 dead stmts. Delay edge removal until PHIs are removed to
29667 make debug-stmt creation not confused by seemingly degenerate
29668 PHIs.
29669
29670 2019-03-27 Alan Modra <amodra@gmail.com>
29671
29672 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29673 throughout file.
29674 * config/rs6000/darwin.h: Likewise.
29675 * config/rs6000/rs6000.c: Likewise.
29676
29677 2019-03-27 Alan Modra <amodra@gmail.com>
29678
29679 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29680 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29681
29682 2019-03-26 Andrew Waterman <andrew@sifive.com>
29683 Jim Wilson <jimw@sifive.com>
29684
29685 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29686 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29687 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29688 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29689 (generic_alu): Add auipc to type list.
29690 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29691 (riscv_microarchitecture): Declare.
29692 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29693 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29694 field.
29695 (riscv_microarchitecture): New.
29696 (sifive_7_tune_info): New.
29697 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29698 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29699 entries.
29700 (riscv_store_data_bypass_p): New.
29701 (riscv_option_override): Set riscv_microarchitecture from
29702 cpu->microarchitecture.
29703 * config/riscv/riscv.md: Include sifive-7.md.
29704 (type): Add auipc.
29705 (tune): New.
29706 (auipc<mode>): Change type to auipc.
29707 (restore_stack_nonlocal): New.
29708 * config/riscv/sifive-7.md: New.
29709 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29710
29711 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29712
29713 PR target/89827
29714 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29715 Also process XEXP (src, 0) of a shift insn.
29716
29717 2019-03-26 Richard Biener <rguenther@suse.de>
29718
29719 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29720 (copy_debug_stmt): Likewise.
29721 (expand_call_inline): Likewise.
29722 (copy_bb): Avoid redundant lookup & set of gimple_block.
29723 * gimple-low.c (lower_gimple_return): Likewise.
29724 (lower_builtin_setjmp): Likewise.
29725
29726 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29727
29728 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29729 is constant 0, turn into static const data member initialized to false.
29730 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29731 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29732
29733 2019-03-26 Jason Merrill <jason@redhat.com>
29734 Jakub Jelinek <jakub@redhat.com>
29735
29736 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29737 method.
29738 (mem_alloc_description::release_object_overhead): Fix comment typos.
29739 * hash-table.h (hash_table::~hash_table): Call
29740 release_instance_overhead only if m_entries is non-NULL, otherwise
29741 call unregister_descriptor.
29742
29743 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29744
29745 PR tree-optimization/81740
29746 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29747 In case of outer loop vectorization, check for backward dependence
29748 at the inner loop if outer loop dependence is reversed.
29749
29750 2019-03-26 Alan Modra <amodra@gmail.com>
29751
29752 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29753 rs6000_vector_mem init. Correct wI and wJ comment.
29754
29755 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29756
29757 PR rtl-optimization/88347
29758 PR rtl-optimization/88423
29759 * sched-deps.c (sched_analyze_insn): Take into account that for
29760 tablejumps the barrier appears after a label and a jump_table_data.
29761
29762 2019-03-25 Martin Sebor <msebor@redhat.com>
29763
29764 PR c/89812
29765 * c-common.c (check_user_alignment): Rename local. Correct maximum
29766 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29767 convert it to UHWI when it fits.
29768
29769 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29770
29771 PR debug/86964
29772 * dwarf2out.c (premark_used_variables): New function.
29773 (prune_unused_types_walk): Do not mark not premarked external
29774 variables.
29775 (prune_unused_types): Call premark_used_variables.
29776
29777 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29778
29779 PR rtl-optimization/89676
29780 * lra-constraints.c (curr_insn_transform): Do match reload for
29781 early clobbers when the match was successful only for different
29782 registers.
29783
29784 2019-03-25 Martin Sebor <msebor@redhat.com>
29785
29786 * doc/extend.texi (Common Type Attributes): Document vector_size.
29787 (Common Variable Attributes): Mention size constraint. Correct
29788 quoting and typos.
29789 (Vector Extensions): Use @dfn when defining bas type. Clarify
29790 base type and size constraints.
29791
29792 2019-03-25 Richard Biener <rguenther@suse.de>
29793
29794 PR tree-optimization/89789
29795 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29796 changes from non-undefined back to undefined.
29797
29798 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29799
29800 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29801 heap string and a gc string, but since this variable is unknown to
29802 ggc the gc string might get reused and corrupted. Fixed by always
29803 using a heap string.
29804
29805 2019-03-25 Richard Biener <rguenther@suse.de>
29806
29807 PR tree-optimization/89779
29808 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29809 to remove IV defs, delay actual removal.
29810 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29811 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29812 very end, properly also reset loop control IV information.
29813
29814 2019-03-25 Richard Biener <rguenther@suse.de>
29815
29816 PR tree-optimization/89802
29817 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29818 move EH data to folded stmt.
29819
29820 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29821
29822 * config/s390/s390-builtin-types.def: Remove few unused types and
29823 fix sort order for others.
29824
29825 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29826
29827 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29828 expected and found types with -mdebug during builtin matching.
29829
29830 2019-03-25 Richard Biener <rguenther@suse.de>
29831
29832 PR middle-end/89790
29833 * fold-const.c (operand_equal_p): Revert last change with
29834 updated comment.
29835
29836 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29837
29838 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29839 notes for the result of the __tls_get_addr calls.
29840 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29841
29842 2019-03-24 Jeff Law <law@redhat.com>
29843
29844 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29845
29846 PR rtl-optimization/87761
29847 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29848 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29849 as needed.
29850 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29851 rescans. Reprocess blocks as needed, calling df_analyze before
29852 reprocessing. Always call df_analyze before fixing up debug bind
29853 insns.
29854
29855 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29856
29857 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29858 big endian.
29859
29860 2019-03-22 Andrew Pinski <apinski@marvell.com>
29861
29862 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29863 attrribute for uxtw.
29864
29865 2019-03-26 Jeff Law <law@redhat.com>
29866
29867 PR rtl-optimization/87761
29868 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29869 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29870 (mips_split_move): Accept new INSN argument. Try to forward SRC
29871 into the next instruction.
29872 (mips_split_move_insn): Pass INSN through to mips_split_move.
29873
29874 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29875
29876 PR rtl-optimization/89676
29877 * lra-constraints.c (curr_insn_transform): Do match reload for
29878 early clobbers even if the match was successful.
29879
29880 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29881
29882 PR c++/87481
29883 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29884
29885 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29886
29887 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29888
29889 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29890
29891 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29892 <avx512>_fmsub_<mode>_mask3<round_name>,
29893 <avx512>_fnmadd_<mode>_mask3<round_name>,
29894 <avx512>_fnmsub_<mode>_mask3<round_name>,
29895 avx512f_vmfmadd_<mode>_mask3<round_name>,
29896 avx512f_vmfmsub_<mode>_mask3<round_name>,
29897 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29898 instead of register_operand and %v instead of v for match_operand 1.
29899 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29900 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29901 <round_nimm_predicate> instead of register_operand and %v instead of v
29902 for match_operand 1.
29903
29904 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29905 <avx512>_fmadd_<mode>_mask3<round_name>,
29906 <avx512>_fmsub_<mode>_mask<round_name>,
29907 <avx512>_fmsub_<mode>_mask3<round_name>,
29908 <avx512>_fnmadd_<mode>_mask<round_name>,
29909 <avx512>_fnmadd_<mode>_mask3<round_name>,
29910 <avx512>_fnmsub_<mode>_mask<round_name>,
29911 <avx512>_fnmsub_<mode>_mask3<round_name>,
29912 <avx512>_fmaddsub_<mode>_mask<round_name>,
29913 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29914 <avx512>_fmsubadd_<mode>_mask<round_name>,
29915 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29916 <round_nimm_predicate> instead of nonimmediate_operand.
29917 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29918 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29919 Use register_operand instead of <round_nimm_predicate> for the
29920 operand that needs to match output.
29921 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29922 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29923 Likewise. Formatting fixes.
29924
29925 PR target/89784
29926 * config/i386/i386.c (enum ix86_builtins): Remove
29927 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29928 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29929 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29930 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29931 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29932 __builtin_ia32_vfmsubss3_mask3): New builtins.
29933 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29934 avx512f_vmfmadd_<mode>_mask3<round_name>,
29935 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29936 *avx512f_vmfmsub_<mode>_mask<round_name>,
29937 avx512f_vmfmsub_<mode>_mask3<round_name>,
29938 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29939 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29940 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29941 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29942 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29943 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29944 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29945 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29946 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29947 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29948 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29949 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29950 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29951 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29952 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29953 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29954 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29955 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29956 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29957 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29958 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29959 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29960 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29961 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29962 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29963 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29964 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29965 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29966
29967 2019-03-21 Martin Sebor <msebor@redhat.com>
29968
29969 PR tree-optimization/89350
29970 * builtins.c (compute_objsize): Also ignore offsets whose upper
29971 bound is negative.
29972 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29973 (builtin_memref::builtin_memref): Initialize new member.
29974 Allow EXPR to be null.
29975 (builtin_memref::extend_offset_range): Replace local with a member.
29976 Avoid assuming pointer offsets are unsigned.
29977 (builtin_memref::set_base_and_offset): Determine base object
29978 before computing offset range.
29979 (builtin_access::builtin_access): Handle memset.
29980 (builtin_access::generic_overlap): Replace local with a member.
29981 (builtin_access::strcat_overlap): Same.
29982 (builtin_access::overlap): Same.
29983 (maybe_diag_overlap): Same.
29984 (maybe_diag_access_bounds): Same.
29985 (wrestrict_dom_walker::check_call): Handle memset.
29986 (check_bounds_or_overlap): Same.
29987
29988 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29989 Jakub Jelinek <jakub@redhat.com>
29990
29991 PR lto/89692
29992 * tree.c (fld_type_variant, fld_incomplete_type_of,
29993 fld_process_array_type): Call fld->pset.add and don't call
29994 add_tree_to_fld_list if it returns true.
29995 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29996 non-marked types from TYPE_NEXT_VARIANT list.
29997 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29998
29999 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30000
30001 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30002 to false, if true, don't alloc_entries during construction, but defer
30003 it to the first method that needs m_entries allocated.
30004 (hash_table::hash_table, hash_table::~hash_table,
30005 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30006 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30007 hash_table::clear_slot, hash_table::traverse_noresize,
30008 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30009 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30010 false.
30011 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30012 NO_INSERT instead of find_with_hash.
30013 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30014 hash_set::m_table): Add Lazy to template params of hash_table.
30015 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30016 * attribs.c (test_attribute_exclusions): Likewise.
30017 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30018 hash_set. Add tests for hash_set with Lazy = true.
30019
30020 2019-03-21 Richard Biener <rguenther@suse.de>
30021
30022 PR tree-optimization/89779
30023 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30024 checks with respect to released SSA names now having error_mark_node
30025 type.
30026 * fold-const.c (operand_equal_p): Likewise.
30027
30028 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30029
30030 PR target/89775
30031 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30032 available to ...
30033 (s390_optimize_register_info): Use global_not_special_regno_p to
30034 check for global regs.
30035
30036 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30037
30038 PR target/89752
30039 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30040 update this_alternative nor this_alternative_set.
30041
30042 2019-03-19 Jim Wilson <jimw@sifive.com>
30043
30044 PR target/89411
30045 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30046 align, size, offset. Use them to handle a BLKmode reference. Update
30047 comment.
30048 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30049
30050 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30051
30052 PR rtl-optimization/89768
30053 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30054 instead of GEN_INT.
30055 (unroll_loop_runtime_iterations): Likewise.
30056
30057 2019-03-19 Martin Sebor <msebor@redhat.com>
30058
30059 PR tree-optimization/89644
30060 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30061 rather than endptr as an indicator of nul-termination.
30062
30063 PR tree-optimization/89644
30064 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30065 arrays in determining sequence sizes in strncpy and stpncpy.
30066
30067 2019-03-19 Martin Liska <mliska@suse.cz>
30068
30069 PR middle-end/89737
30070 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30071 unlikely_edges if there's an edge that belongs to both these sets.
30072
30073 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30074
30075 PR target/89746
30076 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30077 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30078 go via a stack temporary.
30079
30080 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30081
30082 PR target/89378
30083 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30084 instead of gen_rtx_SUBREG.
30085 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30086
30087 2019-03-19 Richard Biener <rguenther@suse.de>
30088
30089 PR debug/88389
30090 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30091
30092 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30093
30094 PR lto/87809
30095 PR lto/89335
30096 * tree.c (free_lang_data_in_decl): Do not free context of C++
30097 destrutors.
30098
30099 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30100
30101 PR target/89506
30102 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30103 subs for the first alternative except when operands[3] is 1.
30104
30105 PR target/89752
30106 * gimplify.c (gimplify_asm_expr): For output argument with
30107 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30108 diagnose error.
30109
30110 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30111
30112 PR rtl-optimization/89753
30113 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30114 explicit unrolling factor even more robust.
30115
30116 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30117
30118 PR target/89726
30119 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30120 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30121 signed zeros, do another copysign after the compensation.
30122
30123 2019-03-18 Martin Sebor <msebor@redhat.com>
30124
30125 PR tree-optimization/89720
30126 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30127 more conservatively, the same as anti-range.
30128
30129 2019-03-18 Richard Biener <rguenther@suse.de>
30130
30131 PR middle-end/88945
30132 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30133 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30134 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30135 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30136
30137 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30138
30139 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30140 Extend queue to 1024 entries.
30141 Add "consumed" field.
30142 (gomp_print_output): Remove print_index parameter.
30143 Add final parameter.
30144 Change limit to unsigned.
30145 Use consumed field to implement circular buffer.
30146 Detect interrupted print in final pass.
30147 Flush output at the end.
30148 (run): Update gomp_print_output usage.
30149 (main): Initialize kernargs->output_data.consumed.
30150
30151 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30152
30153 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30154 calculation of the minimum number of scalar iterations for
30155 fully-predicated loops.
30156
30157 2019-03-18 Martin Jambor <mjambor@suse.cz>
30158
30159 PR tree-optimization/89546
30160 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30161 any propagation to its children took place.
30162
30163 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30164
30165 PR target/89627
30166 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30167 parameter, and make use of it.
30168 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30169
30170 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30171
30172 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30173 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30174 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30175 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30176 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30177 match what the ops is doing.
30178 (push_multi_fp_blink): Likewise.
30179 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30180 compiling for size and elf target.
30181 (arc_save_callee_enter): Adjust note to match what enter/leave
30182 operation does.
30183
30184 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30185
30186 * config/arc/arc.md (tst_movb): Fix constraint.
30187
30188 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30189
30190 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30191
30192 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30193
30194 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30195 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30196 reg_alloc_order references.
30197 (size_alloc_order): Define.
30198 (arc_adjust_reg_alloc_order): New function.
30199 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30200 order.
30201 (ADJUST_REG_ALLOC_ORDER): Define.
30202 (HONOR_REG_ALLOC_ORDER): Likewise.
30203
30204 2019-03-18 Richard Biener <rguenther@suse.de>
30205
30206 PR target/87561
30207 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30208 loads and stores a bit more.
30209
30210 2019-03-18 Richard Biener <rguenther@suse.de>
30211
30212 PR target/87561
30213 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30214 load pessimization to stores as well.
30215
30216 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30217
30218 PR middle-end/86979
30219 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30220 successor, use NULL as its av set.
30221
30222 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30223
30224 PR rtl-optimization/89721
30225 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30226
30227 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30228
30229 PR target/87532
30230 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30231 When handling vec_extract, use modular arithmetic to allow
30232 constant selectors greater than vector length.
30233 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30234 V1TImode vectors to have constant selector values greater than 0.
30235 Use modular arithmetic to compute vector index.
30236 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30237 index for in-memory vectors. Correct code generation for
30238 in-register vectors.
30239 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30240 compute index.
30241
30242 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30243
30244 PR c++/88534
30245 PR c++/88537
30246 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30247 VAR_DECL args.
30248
30249 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30250
30251 PR c++/89709
30252 * tree.c (inchash::add_expr): Strip any location wrappers.
30253 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30254 after hash verification.
30255
30256 PR debug/89704
30257 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30258 SIGN_EXTEND and ZERO_EXTEND.
30259
30260 2019-03-14 Jason Merrill <jason@redhat.com>
30261 Jakub Jelinek <jakub@redhat.com>
30262
30263 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30264 than if is_empty (*slot).
30265 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30266 existing elt and for elt removal.
30267 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30268 of already removed elt.
30269
30270 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30271
30272 PR target/89650
30273 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30274 REG_EH_REGION note.
30275
30276 2019-03-14 Martin Liska <mliska@suse.cz>
30277
30278 PR other/89712
30279 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30280
30281 2019-03-14 Richard Biener <rguenther@suse.de>
30282
30283 PR target/89711
30284 * config/i386/i386.c (make_resolver_func): Properly set
30285 DECL_CONTEXT on the RESULT_DECL.
30286 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30287
30288 2019-03-14 Richard Biener <rguenther@suse.de>
30289
30290 * gimple-pretty-print.c: Include cfgloop.h.
30291 (dump_gimple_phi): Adjust.
30292 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30293 (pp_cfg_jump): Adjust.
30294 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30295 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30296 (lower_phi_internal_fn): Remove.
30297 (verify_gimple_call): Remove IFN_PHI special-casing.
30298 (dump_function_to_file): Dump IL state.
30299 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30300 done to deal with PHI nodes being present in non-SSA state.
30301
30302 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30303
30304 PR ipa/89684
30305 * multiple_target.c (create_dispatcher_calls): Change
30306 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30307 In the node->iterate_referring loop, push *ref rather than ref, call
30308 ref->remove_reference () and always pass 0 to iterate_referring.
30309
30310 PR rtl-optimization/89679
30311 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30312 would contain a paradoxical SUBREG.
30313
30314 2019-03-14 Richard Biener <rguenther@suse.de>
30315
30316 PR tree-optimization/89710
30317 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30318 safe_dyn_cast.
30319
30320 2019-03-14 Martin Liska <mliska@suse.cz>
30321
30322 * coverage.c (coverage_begin_function): Stream also
30323 end_column.
30324 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30325 documentation about function declaration location.
30326 * gcov-dump.c (tag_function): Print whole range
30327 of function declaration.
30328 * gcov.c (struct function_info): Add end_column field.
30329 (function_info::function_info): Initialize it.
30330 (output_json_intermediate_file): Output {start,end}_column
30331 fields.
30332 (read_graph_file): Read end_column.
30333
30334 2019-03-14 Richard Biener <rguenther@suse.de>
30335
30336 PR middle-end/89698
30337 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30338 that the access types are similar.
30339
30340 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30341
30342 PR tree-optimization/89703
30343 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30344 aren't compatible also with builtin_decl_explicit. Check pure
30345 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30346 and BUILT_IN_STPNCPY{,_CHK}.
30347
30348 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30349
30350 PR target/89523
30351 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30352 addr32 prefix to VSIB address for X32.
30353 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30354 "%M2" to opcode.
30355 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30356 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30357 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30358 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30359 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30360 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30361 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30362 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30363 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30364 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30365 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30366 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30367 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30368 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30369 (*avx512f_scatterdi<mode>): Likewise.
30370
30371 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30372
30373 PR target/85860
30374 * lra-constraints.c (inherit_in_ebb): Update
30375 potential_reload_hard_regs along with live_hard_regs.
30376
30377 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30378
30379 PR debug/89498
30380 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30381 DWARF_OFFSET_SIZE.
30382 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30383
30384 2019-03-13 Martin Sebor <msebor@redhat.com>
30385
30386 PR tree-optimization/89662
30387 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30388 has a size.
30389
30390 2019-03-13 Richard Biener <rguenther@suse.de>
30391
30392 PR middle-end/89677
30393 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30394 throw FP expressions at tree-affine.
30395
30396 2019-03-14 Richard Biener <rguenther@suse.de>
30397
30398 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30399 dump negative integer constants using _Literal (type) -num.
30400
30401 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30402
30403 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30404 nonlocal_value member.
30405
30406 PR middle-end/88588
30407 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30408 (ipa_simd_modify_function_body): Handle PHIs.
30409
30410 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30411
30412 * config/s390/s390.c (s390_option_override_internal): Use more
30413 aggressive inlining parameters.
30414
30415 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30416
30417 * config/s390/3906.md: New file.
30418 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30419 (LONGRUNNING_THRESHOLD): Remove.
30420 (MAX_SCHED_MIX_SCORE): Decrease.
30421 (MAX_SCHED_MIX_DISTANCE): Decrease.
30422 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30423 (struct s390_sched_state): New struct to hold scheduling state.
30424 (S390_SCHED_STATE_NORMAL): Remove.
30425 (S390_SCHED_STATE_CRACKED): Remove.
30426 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30427 (s390_get_sched_attrmask): Use new attribute.
30428 (s390_get_unit_mask): Use new units.
30429 (s390_is_fpd): New function.
30430 (s390_is_fxd): New function.
30431 (s390_is_longrunning): New function.
30432 (s390_sched_score): Use new functions.
30433 (s390_sched_reorder): Likewise.
30434 (s390_sched_variable_issue): Rework and use new functions.
30435 (s390_sched_init): Use new functions.
30436 * config/s390/s390.h (s390_tune_attr): Add z14.
30437 * config/s390/s390.md: Add z14.
30438
30439 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30440
30441 * config/s390/2964.md: Update pipeline description.
30442 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30443 (LONGRUNNING_THRESHOLD): Remove.
30444 (LATENCY_FACTOR): Remove.
30445 (s390_get_unit_mask): Add unit.
30446 (s390_sched_score): Use fxd/fpd.
30447 (s390_sched_variable_issue): Use fxd/fpd.
30448
30449 2019-03-12 Martin Liska <mliska@suse.cz>
30450
30451 * config/i386/i386.c: Reword an error message.
30452
30453 2019-03-12 Martin Jambor <mjambor@suse.cz>
30454
30455 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30456 terminate with newline.
30457
30458 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30459
30460 PR target/52726
30461 * config/s390/s390.md (tabort): Use %wd instead of
30462 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30463 letters and periods.
30464 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30465 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30466 's with %< and %>.
30467
30468 PR middle-end/89663
30469 * builtins.c (expand_builtin_int_roundingfn,
30470 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30471 gcc_unreachable if validate_arglist fails.
30472
30473 2019-03-12 Richard Biener <rguenther@suse.de>
30474
30475 PR tree-optimization/89664
30476 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30477 free the occurance tree after the early out.
30478
30479 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30480
30481 PR middle-end/89655
30482 PR bootstrap/89656
30483 * vr-values.c (vr_values::update_value_range): If
30484 old_vr->varying_p (), don't update it, make new_vr also VARYING
30485 and return false.
30486
30487 2019-03-11 Martin Liska <mliska@suse.cz>
30488
30489 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30490 Fix double string quoting.
30491
30492 2019-03-11 Martin Liska <mliska@suse.cz>
30493
30494 * collect-utils.c (collect_wait): Wrap apostrophes
30495 in gcc internal format with %'.
30496 * collect2.c (main): Likewise.
30497 (scan_prog_file): Likewise.
30498 (scan_libraries): Likewise.
30499 * config/i386/i386.c (ix86_expand_call): Likewise.
30500 (ix86_handle_interrupt_attribute): Likewise.
30501 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30502 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30503 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30504 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30505 * symtab.c (symtab_node::verify_base): Likewise.
30506 * tree-cfg.c (verify_gimple_label): Likewise.
30507 * tree.c (verify_type_variant): Likewise.
30508
30509 2019-03-11 Martin Liska <mliska@suse.cz>
30510
30511 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30512 in a string format message and fix GNU coding style.
30513 (expand_builtin_set_thread_pointer): Likewise.
30514 * common/config/aarch64/aarch64-common.c
30515 (aarch64_rewrite_selected_cpu): Likewise.
30516 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30517 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30518 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30519 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30520 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30521 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30522 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30523 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30524 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30525 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30526 Likewise.
30527 * common/config/riscv/riscv-common.c
30528 (riscv_subset_list::parsing_subset_version): Likewise.
30529 (riscv_subset_list::parse_std_ext): Likewise.
30530 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30531 (riscv_subset_list::parse): Likewise.
30532 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30533 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30534 (aarch64_override_options_internal): Likewise.
30535 (aarch64_validate_mcpu): Likewise.
30536 (aarch64_validate_march): Likewise.
30537 (aarch64_validate_mtune): Likewise.
30538 (aarch64_override_options): Likewise.
30539 * config/alpha/alpha.c (alpha_option_override): Likewise.
30540 * config/arc/arc.c (arc_init): Likewise.
30541 (parse_mrgf_banked_regs_option): Likewise.
30542 (arc_override_options): Likewise.
30543 (arc_expand_builtin_aligned): Likewise.
30544 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30545 (arm_expand_builtin): Likewise.
30546 * config/arm/arm.c (arm_option_check_internal): Likewise.
30547 (arm_configure_build_target): Likewise.
30548 (arm_option_override): Likewise.
30549 (arm_options_perform_arch_sanity_checks): Likewise.
30550 (arm_handle_cmse_nonsecure_entry): Likewise.
30551 (arm_handle_cmse_nonsecure_call): Likewise.
30552 (arm_tls_referenced_p): Likewise.
30553 (thumb1_expand_prologue): Likewise.
30554 * config/avr/avr.c (avr_option_override): Likewise.
30555 * config/bfin/bfin.c (bfin_option_override): Likewise.
30556 * config/c6x/c6x.c (c6x_option_override): Likewise.
30557 * config/cr16/cr16.c (cr16_override_options): Likewise.
30558 * config/cris/cris.c (cris_option_override): Likewise.
30559 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30560 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30561 * config/darwin.c (darwin_override_options): Likewise.
30562 * config/frv/frv.c (frv_expand_builtin): Likewise.
30563 * config/h8300/h8300.c (h8300_option_override): Likewise.
30564 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30565 (ix86_option_override_internal): Likewise.
30566 (warn_once_call_ms2sysv_xlogues): Likewise.
30567 (ix86_expand_prologue): Likewise.
30568 (split_stack_prologue_scratch_regno): Likewise.
30569 (ix86_warn_parameter_passing_abi): Likewise.
30570 * config/ia64/ia64.c (fix_range): Likewise.
30571 * config/m68k/m68k.c (m68k_option_override): Likewise.
30572 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30573 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30574 (mips_set_compression_mode): Likewise.
30575 * config/mmix/mmix.c (mmix_option_override): Likewise.
30576 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30577 * config/msp430/msp430.c (msp430_option_override): Likewise.
30578 * config/nds32/nds32.c (nds32_option_override): Likewise.
30579 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30580 (nios2_option_override): Likewise.
30581 (nios2_expand_custom_builtin): Likewise.
30582 * config/nvptx/mkoffload.c (main): Likewise.
30583 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30584 * config/pa/pa.c (fix_range): Likewise.
30585 (pa_option_override): Likewise.
30586 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30587 (riscv_option_override): Likewise.
30588 * config/rl78/rl78.c (rl78_option_override): Likewise.
30589 * config/rs6000/aix61.h: Likewise.
30590 * config/rs6000/aix71.h: Likewise.
30591 * config/rs6000/aix72.h: Likewise.
30592 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30593 * config/rs6000/freebsd64.h: Likewise.
30594 * config/rs6000/linux64.h: Likewise.
30595 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30596 (rs6000_expand_zeroop_builtin): Likewise.
30597 (rs6000_expand_mtfsb_builtin): Likewise.
30598 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30599 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30600 (rs6000_invalid_builtin): Likewise.
30601 (rs6000_expand_split_stack_prologue): Likewise.
30602 * config/rs6000/rtems.h: Likewise.
30603 * config/rx/rx.c (valid_psw_flag): Likewise.
30604 (rx_expand_builtin): Likewise.
30605 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30606 * config/s390/s390.c (s390_expand_builtin): Likewise.
30607 (s390_function_profiler): Likewise.
30608 (s390_option_override_internal): Likewise.
30609 (s390_option_override): Likewise.
30610 * config/sh/sh.c (sh_option_override): Likewise.
30611 (sh_builtin_saveregs): Likewise.
30612 (sh_fix_range): Likewise.
30613 * config/sh/vxworks.h: Likewise.
30614 * config/sparc/sparc.c (sparc_option_override): Likewise.
30615 * config/spu/spu.c (spu_option_override): Likewise.
30616 (fix_range): Likewise.
30617 * config/visium/visium.c (visium_option_override): Likewise.
30618 (visium_handle_interrupt_attr): Likewise.
30619 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30620 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30621 (dbg_cnt_process_opt): Likewise.
30622 * dwarf2out.c (output_dwarf_version): Likewise.
30623 * except.c (expand_eh_return): Likewise.
30624 * gcc.c (defined): Likewise.
30625 (driver_handle_option): Likewise.
30626 (process_command): Likewise.
30627 (compare_files): Likewise.
30628 (driver::prepare_infiles): Likewise.
30629 (driver::do_spec_on_infiles): Likewise.
30630 (driver::maybe_run_linker): Likewise.
30631 * omp-offload.c (oacc_parse_default_dims): Likewise.
30632 * opts-global.c (handle_common_deferred_options): Likewise.
30633 * opts.c (parse_sanitizer_options): Likewise.
30634 (common_handle_option): Likewise.
30635 (enable_warning_as_error): Likewise.
30636 * passes.c (enable_disable_pass): Likewise.
30637 * plugin.c (parse_plugin_arg_opt): Likewise.
30638 (default_plugin_dir_name): Likewise.
30639 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30640 (default_pch_valid_p): Likewise.
30641 * toplev.c (init_asm_output): Likewise.
30642 (process_options): Likewise.
30643 (toplev::run_self_tests): Likewise.
30644 * tree-cfg.c (verify_gimple_call): Likewise.
30645 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30646 (tree_inlinable_function_p): Likewise.
30647 * var-tracking.c (vt_find_locations): Likewise.
30648
30649 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30650
30651 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30652 only on the else branch.
30653
30654 2019-03-11 Martin Liska <mliska@suse.cz>
30655
30656 * gcov.c (output_intermediate_json_line): Print function
30657 name of each line.
30658 (output_json_intermediate_file): Add new argument.
30659 * doc/gcov.texi: Document the change.
30660
30661 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30662
30663 PR rtl-optimization/89588
30664 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30665 explicit unrolling factor more robust.
30666
30667 2019-03-11 Richard Biener <rguenther@suse.de>
30668
30669 PR tree-optimization/89649
30670 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30671 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30672 on the prolog and epilog loops.
30673 (vect_loop_versioning): Return copy of loop.
30674 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30675 on the non-vectorized version of the loop.
30676
30677 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30678
30679 PR target/68924
30680 * config/i386/sse.md (*vec_extractv2di_0_sse):
30681 Add (=r,x) alternative and corresponding splitter.
30682
30683 2019-03-10 Martin Jambor <mjambor@suse.cz>
30684
30685 PR tree-optimization/85762
30686 PR tree-optimization/87008
30687 PR tree-optimization/85459
30688 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30689 it points to if there is a type changing MEM_REF. Adjust all callers.
30690 (build_accesses_from_assign): Disable total scalarization if
30691 contains_vce_or_bfcref_p returns true through the new parameter, for
30692 both rhs and lhs.
30693
30694 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30695
30696 PR c/88568
30697 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30698 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30699
30700 PR target/79645
30701 * common.opt (fdiagnostics-show-labels,
30702 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30703 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30704 gas-locview-support, ginline-points, ginternal-reset-location-views):
30705 Terminate description text with a dot.
30706 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30707 * config/mcore/mcore.opt (m210, m340): Likewise.
30708 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30709 mnops=): Start description text with a capital letter.
30710 * config/arc/arc.opt (msize-level=): Likewise.
30711 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30712 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30713 mnewlib): Likewise.
30714 * config/ft32/ft32.opt (msim): Likewise.
30715 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30716 (mnodiv, mnopm): Terminate description text with a dot.
30717 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30718 a colon.
30719 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30720 Likewise.
30721 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30722 text.
30723
30724 PR rtl-optimization/89634
30725 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30726 are modified in BB_END (e->src) instruction.
30727
30728 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30729
30730 PR target/79926
30731 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30732 messages more amenable to translation, and improve wording.
30733
30734 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30735
30736 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30737 ud- and du-chains between phases.
30738
30739 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30740
30741 PR debug/89631
30742 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30743 instead of POLY_INT_CST.
30744
30745 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30746
30747 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30748 requirement.
30749
30750 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30751
30752 PR target/68924
30753 PR target/78782
30754 PR target/87558
30755 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30756 (_mm_storeu_si64): Ditto.
30757
30758 2019-03-08 Martin Liska <mliska@suse.cz>
30759
30760 PR target/86952
30761 * config/i386/i386.c (ix86_option_override_internal): Disable
30762 jump tables when retpolines are used.
30763
30764 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30765
30766 PR go/63560
30767 * ipa-split.c (execute_split_functions): Do not split
30768 'noinline' or 'section' function.
30769
30770 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30771
30772 PR target/79846
30773 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30774 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30775 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30776
30777 PR ipa/80000
30778 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30779 from diagnostics. Formatting fixes.
30780
30781 PR target/85665
30782 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30783 warn_odr diagnostics.
30784
30785 PR other/80058
30786 * lra-constraints.c (process_alt_operands): Avoid one space before
30787 " at the end of line and another after " on another line in a string
30788 literal.
30789 * attribs.c (handle_dll_attribute): Likewise.
30790 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30791
30792 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30793 warning_at or inform messages in G_() if there is no ?:.
30794
30795 PR tree-optimization/89550
30796 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30797 returned true. Formatting fixes.
30798 (expand_builtin_strnlen): Formatting fixes.
30799 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30800 if warning_at returned true.
30801 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30802
30803 2019-03-08 Richard Biener <rguenther@suse.de>
30804
30805 PR middle-end/89578
30806 * cfgloop.h (struct loop): Add owned_clique field.
30807 * cfgloopmanip.c (copy_loop_info): Copy it.
30808 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30809 cliques.
30810 * tree-inline.c (copy_loops): Remap owned_clique.
30811 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30812 * lto-streamer-out.c (output_cfg): Likewise.
30813
30814 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30815
30816 PR target/80190
30817 * config/darwin.c: Include intl.h.
30818 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30819 composing the message out of two separate parts.
30820
30821 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30822
30823 PR target/80003
30824 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30825 doesn't start with a capital letter and doesn't end with a dot.
30826 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30827 with a capital letter.
30828 (ix86_mangle_function_version_assembler_name): Likewise.
30829 (ix86_generate_version_dispatcher_body): Likewise.
30830 (fold_builtin_cpu): Likewise.
30831 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30832 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30833 translators, wrap full type name in %qs.
30834
30835 PR translation/79999
30836 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30837 depend clause with source (or sink) modifier.
30838 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30839
30840 PR target/89602
30841 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30842 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30843 (avx512f_load<mode>_mask): New define_expand.
30844 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30845 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30846 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30847 __builtin_ia32_movess_mask): New builtins.
30848 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30849 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30850 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30851 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30852
30853 2019-03-07 Martin Jambor <mjambor@suse.cz>
30854
30855 PR lto/87525
30856 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30857 for extern inline functions.
30858
30859 2019-03-07 Martin Jambor <mjambor@suse.cz>
30860
30861 PR ipa/88235
30862 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30863 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30864 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30865 have multiple callees. At the end check if declarations match as
30866 opposed to cgraph_nodes.
30867
30868 2019-03-07 Martin Liska <mliska@suse.cz>
30869
30870 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30871 which is equivalent to searching for this in clones chain.
30872 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30873 names with a neighbour and special case first node in a chain.
30874
30875 2019-01-25 Jason Merrill <jason@redhat.com>
30876
30877 PR c++/80916 - spurious "static but not defined" warning.
30878 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30879 for an internal symbol with DECL_EXTERNAL.
30880
30881 2019-04-07 Richard Biener <rguenther@suse.de>
30882
30883 PR middle-end/89618
30884 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30885 * tree-inline.c (copy_loops): Simplify.
30886
30887 2019-03-07 Martin Liska <mliska@suse.cz>
30888
30889 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30890
30891 2019-03-07 Richard Biener <rguenther@suse.de>
30892
30893 PR tree-optimization/89595
30894 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30895 stmt iterator as reference, take boolean output parameter to
30896 indicate whether the stmt was removed and thus the iterator
30897 already advanced.
30898 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30899 stmts created by folding.
30900
30901 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30902
30903 PR c++/89585
30904 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30905 at toplevel.
30906
30907 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30908
30909 PR rtl-optimization/88845
30910 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30911 LRA.
30912 * lra.c (remove_scratches_1): New function.
30913 (remove_scratches): Use it.
30914 (lra_emit_move): Likewise.
30915
30916 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30917
30918 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30919 unaligned_access variable.
30920 * config/arc/arc.c (arc_override_options): Set unaligned access
30921 default on for HS CPUs.
30922 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30923
30924 2019-03-06 Martin Liska <mliska@suse.cz>
30925
30926 PR gcov-profile/89577
30927 * doc/gcov.texi: Prefer to use --coverage.
30928 * doc/sourcebuild.texi: Likewise.
30929
30930 2019-03-02 Jason Merrill <jason@redhat.com>
30931
30932 PR c++/86485 - -Wmaybe-unused with empty class ?:
30933 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30934
30935 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30936
30937 PR target/89587
30938 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30939 if_multiarch.
30940
30941 PR middle-end/89590
30942 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30943 exactly one argument.
30944
30945 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30946 Richard Sandiford <richard.sandiford@arm.com>
30947
30948 PR tree-optimization/89570
30949 * match.pd (vec_cond into cond_op simplification): Don't use
30950 get_conditional_internal_fn, use as_internal_fn (cond_op).
30951
30952 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30953
30954 PR target/89222
30955 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30956 to decide when to split off a non-zero offset from a symbol.
30957 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30958 in function symbols.
30959
30960 2019-03-05 Richard Biener <rguenther@suse.de>
30961
30962 PR tree-optimization/89594
30963 * tree-if-conv.c (pass_if_conversion::execute): Handle
30964 case where .LOOP_VECTORIZED_FUNCTION was removed.
30965
30966 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30967
30968 PR bootstrap/89560
30969 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30970 instead alloca it only when needed with the needed size.
30971
30972 PR tree-optimization/89570
30973 * match.pd (vec_cond into cond_op simplification): Guard with
30974 vectorized_internal_fn_supported_p test and #if GIMPLE.
30975
30976 PR tree-optimization/89566
30977 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30978 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30979 Punt if get_user_idx_format succeeds, but idx_format argument is
30980 not provided or doesn't have pointer type, or if idx_args is above
30981 number of provided arguments.
30982
30983 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30984
30985 PR tree-optimization/89437
30986 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30987
30988 2019-03-04 Richard Biener <rguenther@suse.de>
30989
30990 PR middle-end/89572
30991 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30992 safe_dyn_cast.
30993
30994 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30995
30996 PR tree-optimization/89487
30997 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30998 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30999 (distribute_loop): Don't do runtime alias check if there is non-
31000 addressable data reference.
31001 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31002 is a register variable.
31003
31004 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31005
31006 PR target/89506
31007 * config/arm/arm.md (cmpsi2_addneg): Use
31008 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31009 If operands[2] is 0 or INT_MIN, force use of subs.
31010 (*compare_scc splitter): Use gen_int_mode.
31011 (*negscc): Likewise.
31012 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31013
31014 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31015 Monk Chiang <sh.chiang04@gmail.com>
31016
31017 * common/config/riscv/riscv-common.c: Include sstream.
31018 (riscv_subset_list::to_string): New.
31019 (riscv_arch_str): Likewise.
31020 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31021 * config.in: Regen.
31022 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31023 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31024 (riscv_emit_attribute): New.
31025 (riscv_file_start): Emit attribute if needed.
31026 (riscv_option_override): Init riscv_emit_attribute_p.
31027 * config/riscv/riscv.opt (mriscv-attribute): New option.
31028 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31029 * configure: Regen.
31030 * doc/install.texi: Document --with-riscv-attribute.
31031 * doc/invoke.texi: Document -mriscv-attribute.
31032
31033 * common/config/riscv/riscv-common.c:
31034 Include config/riscv/riscv-protos.h.
31035 (INCLUDE_STRING): Defined.
31036 (RISCV_DONT_CARE_VERSION): Defined.
31037 (riscv_subset_t): Declare.
31038 (riscv_subset_t::riscv_subset_t): New.
31039 (riscv_subset_list): Declare.
31040 (riscv_subset_list::riscv_subset_list): New.
31041 (riscv_subset_list::~riscv_subset_list): Likewise.
31042 (riscv_subset_list::parsing_subset_version): Likewise.
31043 (riscv_subset_list::parse_std_ext): Likewise.
31044 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31045 (riscv_subset_list::add): Likewise.
31046 (riscv_subset_list::lookup): Likewise.
31047 (riscv_subset_list::xlen): Likewise.
31048 (riscv_subset_list::parse): Likewise.
31049 (riscv_supported_std_ext): Likewise.
31050 (current_subset_list): Likewise.
31051 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31052 parse.
31053
31054 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31055
31056 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31057 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31058 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31059
31060 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31061
31062 PR rtl-optimization/85899
31063 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31064 fallthru edges leading to the exit block.
31065
31066 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31067
31068 PR target/89517
31069 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31070 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31071
31072 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31073
31074 PR tree-optimization/89535
31075 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31076 for each operand. Calculate the fallback choice for mask operands
31077 and pass it to vect_get_vec_def_for_operand.
31078
31079 2019-03-01 Richard Biener <rguenther@suse.de>
31080
31081 PR middle-end/89541
31082 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31083 get virtual operands.
31084 (get_expr_operands): Handle CONST_DECL like other decls.
31085
31086 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31087
31088 PR middle-end/89503
31089 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31090 on DECL_P and EXPR_P.
31091
31092 2019-03-01 Richard Biener <rguenther@suse.de>
31093
31094 PR middle-end/89497
31095 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31096 argument, defaulted to zero.
31097 * passes.c (execute_function_todo): Pass down SSA update flags
31098 to cleanup_tree_cfg.
31099 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31100 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31101 form if requested.
31102 (cleanup_tree_cfg): Get and pass down SSA update flags.
31103
31104 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31105
31106 PR bootstrap/89539
31107 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31108 early_lto_debug argument.
31109
31110 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31111
31112 PR tree-optimization/89536
31113 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31114 only whether bit #0 of the value is 0 instead of the entire value.
31115
31116 2019-02-28 Marek Polacek <polacek@redhat.com>
31117
31118 PR c++/87068 - missing diagnostic with fallthrough statement.
31119 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31120 at the end of a seq, save its location to walk_stmt_info.
31121 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31122 a switch.
31123
31124 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31125
31126 PR lto/88585
31127 * tree.c (find_atomic_core_type): Move ahead in file.
31128 (check_base_type): Correctly compare alignments of atomic types.
31129
31130 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31131
31132 PR target/89455
31133 * config/i386/i386.c (get_builtin_code_for_version): Identify
31134 Westmere from PCLMUL, instead of AES.
31135
31136 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31137
31138 PR target/89434
31139 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31140 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31141 -UINTVAL (...).
31142
31143 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31144
31145 PR target/88530
31146 * config/aarch64/aarch64-option-extensions.def: Document it.
31147 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31148 if empty hwcaps.
31149
31150 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31151
31152 PR c/89520
31153 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31154 builtins if they don't have a single scalar floating point argument.
31155 Formatting fixes.
31156
31157 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31158
31159 PR rtl-optimization/89490
31160 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31161 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31162 block section is not mergeable.
31163
31164 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31165
31166 PR target/70341
31167 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31168 old define_insn to ...
31169 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31170 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31171 Rename old define_insn to ...
31172 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31173 (thumb2_casesi_internal_pic): New define_expand. Rename old
31174 define_insn to ...
31175 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31176 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31177 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31178
31179 2019-02-27 Richard Biener <rguenther@suse.de>
31180
31181 PR debug/88878
31182 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31183
31184 2019-02-27 Richard Biener <rguenther@suse.de>
31185
31186 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31187 building.
31188
31189 2019-02-27 Richard Biener <rguenther@suse.de>
31190
31191 PR debug/88878
31192 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31193 parameter, prefix section name with .gnu.debuglto_ if true.
31194 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31195 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31196
31197 2019-02-27 Richard Biener <rguenther@suse.de>
31198
31199 PR debug/89514
31200 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31201 rather than on use_debug_types, doing what output_die does.
31202 (value_format): Likewise.
31203
31204 2019-02-27 Martin Jambor <mjambor@suse.cz>
31205 Martin Sebor <msebor@redhat.com>
31206
31207 * doc/invoke.texi (Warning Options): Reword description of
31208 -Wno-absolute-value.
31209
31210 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31211
31212 PR tree-optimization/89280
31213 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31214 builtin_setjmp_setup_bb): New functions.
31215 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31216 When visiting __builtin_setjmp_setup block, queue in special
31217 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31218 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31219 from visited after the loop if they don't have any visited successor
31220 blocks.
31221
31222 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31223
31224 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31225 New function.
31226 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31227
31228 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31229
31230 PR c++/89507
31231 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31232 with types other than sizetype/ssizetype.
31233
31234 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31235
31236 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31237 (enum sparc_processor_type): ...this.
31238 (enum sparc_code_model_type): New enumeration type.
31239 (enum sparc_memory_model_type): Tweak comments.
31240 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31241 (mtune): Likewise.
31242 (mcmodel): Use sparc_code_model enumeration and variable.
31243 (sparc_code_model): New enumeration.
31244 (mdebug): Add Undocumented marker.
31245 * config/sparc/sparc.h (enum cmodel): Delete.
31246 (sparc_cmodel): Likewise.
31247 (TARGET_CM_MEDLOW): Adjust to above renaming.
31248 (TARGET_CM_MEDMID): Likewise.
31249 (TARGET_CM_MEDANY): Likewise.
31250 (TARGET_CM_EMBMEDANY): Likewise.
31251 * config/sparc/sparc.c (sparc_cmodel): Delete.
31252 (sparc_option_override): Remove string/value mapping support for the
31253 code model. Move code and memory model support to after the handling
31254 of target flags. Do private machine setup last.
31255 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31256 (sparc_legitimize_reload_address): Likewise.
31257 (sparc_output_mi_thunk): Likewise.
31258 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31259
31260 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31261
31262 PR tree-optimization/89500
31263 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31264 (handle_builtin_strlen): Remove noncst_bound variable. Always
31265 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31266 cst if the first cst bytes starting at x are known to be non-zero,
31267 even if the string is not zero terminated. Don't try to modify
31268 *si for strnlen. Update strlen_to_stridx only for strlen or if
31269 we can prove strnlen returns the same value as strlen would.
31270
31271 2019-02-26 Martin Liska <mliska@suse.cz>
31272
31273 * alloc-pool.h (struct pool_usage): Remove extra
31274 print_dash_line.
31275 * bitmap.h (struct bitmap_usage): Likewise.
31276 * ggc-common.c (struct ggc_usage): Likewise.
31277 * mem-stats.h (struct mem_usage): Likewise.
31278 (mem_alloc_description::dump): Print dash lines
31279 here and repeat header at the end of a table report.
31280 It's then more readable.
31281 * tree-phinodes.c (phinodes_print_statistics): Make
31282 horizontal alignment.
31283 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31284 * vec.c (struct vec_usage): Remove extra print_dash_line.
31285 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31286
31287 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31288
31289 * doc/extend.texi (__builtin_object_size):
31290 Use @pxref instead of @xref inside parenthesis.
31291 (__builtin_has_attribute): Add missing comma after @xref.
31292 (__builtin_object_size): Ditto.
31293 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31294
31295 2019-02-26 Jeff Law <law@redhat.com>
31296
31297 PR rtl-optimization/87761
31298 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31299 detect obviously dead insns and delete them.
31300
31301 2019-02-26 Richard Biener <rguenther@suse.de>
31302
31303 PR tree-optimization/89505
31304 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31305 to handle restrict pointed-to vars with multiple subvars
31306 correctly.
31307
31308 2019-02-26 Richard Biener <rguenther@suse.de>
31309
31310 PR tree-optimization/89489
31311 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31312
31313 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31314
31315 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31316 and move around comment.
31317 <BIT_AND_EXPR>: Likewise.
31318 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31319
31320 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31321
31322 PR target/89474
31323 * config/i386/i386.c (remove_partial_avx_dependency): Call
31324 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31325 after changing possibly many instructions to use that pseudo. Fix up
31326 insertion of v4sf_const0 setter at the start of bb.
31327
31328 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31329
31330 PR c/80409
31331 * doc/extend.texi (Variadic Pointer Args): New section.
31332
31333 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31334 Martin Sebor <msebor@gmail.com>
31335
31336 * common.opt (Wattribute-alias): Likewise.
31337 * doc/invoke.texi (Option Summary): List general form of
31338 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31339 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31340 Add cross-references.
31341 (-Wattribute-alias): Rewrite and correct default. Mention
31342 considered attributes (same as for -Wmissing-attributes).
31343
31344 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31345
31346 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31347 (_mm_cvtpd_ps): Likewise.
31348 (_mm_cvttpd_epi32): Likewise.
31349
31350 PR target/89338
31351 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31352 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31353
31354 PR target/89339
31355 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31356
31357 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31358
31359 PR target/88530
31360 * common/config/aarch64/aarch64-common.c
31361 (struct aarch64_option_extension): Add is_synthetic.
31362 (all_extensions): Use it.
31363 (TARGET_OPTION_INIT_STRUCT): Define hook.
31364 (struct gcc_targetm_common): Moved to end.
31365 (all_extensions_by_on): New.
31366 (opt_ext_cmp, typedef opt_ext): New.
31367 (aarch64_option_init_struct): New.
31368 (aarch64_contains_opt): New.
31369 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31370 * config/aarch64/aarch64-option-extensions.def
31371 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31372 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31373 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31374 Set is_synthetic to false.
31375 (crypto): Set is_synthetic to true.
31376 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31377 SYNTHETIC.
31378
31379 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31380
31381 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31382 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31383 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31384 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31385 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31386 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31387 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31388 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31389 Rename ...
31390 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31391 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31392 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31393 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31394 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31395 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31396 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31397 vfmlsl_laneq_high_f16): ... To this.
31398 * config/arm/neon.md: Update comments.
31399
31400 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31401
31402 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31403 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31404 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31405 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31406 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31407 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31408 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31409 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31410 Rename ...
31411 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31412 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31413 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31414 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31415 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31416 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31417 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31418 vfmlslq_laneq_high_f16): ... To this.
31419
31420 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31421
31422 PR rtl-optimization/86096
31423 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31424 comparing mw_order values.
31425
31426 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31427
31428 PR target/89434
31429 * config/arm/arm.md (*subsi3_carryin_const): Use
31430 arm_neg_immediate_operand predicate instead of
31431 arm_not_immediate_operand, "L" constraint instead of "K" and
31432 print it using %n2 instead of %B2.
31433 (*subsi3_carryin_const0): New define_insn.
31434 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31435 instead of arm_not_operand and "I" constraint instead of "K" and
31436 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31437 another match_operand and in the condition check that it is negation
31438 of operands[2].
31439 (*subsi3_carryin_compare_const0): New define_ins.
31440 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31441 *subsi3_carryin_const.
31442 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31443 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31444
31445 PR target/89438
31446 * config/arm.vfp.md (*negdf2_vfp): Use
31447 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31448 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31449
31450 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31451
31452 PR rtl-optimization/89445
31453 * simplify-rtx.c (simplify_ternary_operation): Don't use
31454 simplify_merge_mask on operands that may trap.
31455 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31456 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31457 second operand is CONST_VECTOR, check if any element could be zero.
31458 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31459 their operands can trap.
31460
31461 2019-02-23 Martin Sebor <msebor@redhat.com>
31462
31463 * gimple-ssa-sprintf.c (target_strtol): Rename...
31464 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31465 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31466 check for range error.
31467
31468 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31469
31470 PR driver/69471
31471 * opts-common.c (prune_options): Also prune joined switches
31472 with Negative and RejectNegative.
31473 * config/i386/i386.opt (march=): Add Negative(march=).
31474 (mtune=): Add Negative(mtune=).
31475 * doc/options.texi: Document Negative used together with Joined
31476 and RejectNegative.
31477
31478 2019-02-22 Martin Sebor <msebor@redhat.com>
31479
31480 * doc/extend.texi (Other Builtins): Add
31481 __builtin_is_constant_evaluated.
31482
31483 2019-02-22 Richard Biener <rguenther@suse.de>
31484
31485 PR tree-optimization/87609
31486 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31487
31488 2019-02-22 Jeff Law <law@redhat.com>
31489
31490 PR rtl-optimization/87761
31491 * config/mips/mips.md: Add new combiner pattern to recognize
31492 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31493
31494 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31495
31496 PR target/89324
31497 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31498 destination register in peepholes generating patterns for ADDS/SUBS.
31499 (add<mode>3_compare0,
31500 *addsi3_compare0_uxtw, add<mode>3_compareC,
31501 add<mode>3_compareV_imm, add<mode>3_compareV,
31502 *adds_<optab><ALLX:mode>_<GPI:mode>,
31503 *subs_<optab><ALLX:mode>_<GPI:mode>,
31504 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31505 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31506 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31507 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31508 sub<mode>3_compare1): Allow stack pointer for source register.
31509 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31510
31511 2019-02-22 Martin Sebor <msebor@redhat.com>
31512
31513 PR tree-optimization/88993
31514 PR tree-optimization/88853
31515 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31516 New helper.
31517 (sprintf_dom_walker::call_info::is_string_func): New helper.
31518 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31519 for formatted string functions.
31520 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31521
31522 2019-02-22 Martin Sebor <msebor@redhat.com>
31523
31524 PR c/89425
31525 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31526 unreachable subexpressions.
31527
31528 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31529 Hongtao Liu <hongtao.liu@intel.com>
31530 Sunil K Pandey <sunil.k.pandey@intel.com>
31531
31532 PR target/87007
31533 * config/i386/i386-passes.def: Add
31534 pass_remove_partial_avx_dependency.
31535 * config/i386/i386-protos.h
31536 (make_pass_remove_partial_avx_dependency): New.
31537 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31538 New function.
31539 (pass_data_remove_partial_avx_dependency): New.
31540 (pass_remove_partial_avx_dependency): Likewise.
31541 (make_pass_remove_partial_avx_dependency): Likewise.
31542 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31543 (*extendsfdf2): Add avx_partial_xmm_update.
31544 (truncdfsf2): Likewise.
31545 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31546 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31547
31548 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31549
31550 PR middle-end/85598
31551 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31552 analysis for pass.
31553
31554 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31555
31556 PR target/89444
31557 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31558 (PTA_SKYLAKE): Add PTA_AES.
31559 (PTA_GOLDMONT): Likewise.
31560
31561 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31562
31563 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31564 instruction if enabled.
31565 (aarch64_override_options): Remove reference to return address key.
31566
31567 2019-02-22 Richard Biener <rguenther@suse.de>
31568
31569 PR tree-optimization/89440
31570 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31571 not necessary assert.
31572
31573 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31574
31575 PR fortran/72741
31576 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31577 (oacc_replace_fn_attrib_attr): ... this new function.
31578 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31579 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31580
31581 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31582
31583 * config/arm/arm-cpus.in (ares): Rename to...
31584 (neoverse-n1): ... This. Add ares as alias.
31585 * config/arm/arm-tables.opt: Regenerate.
31586 * config/arm/arm-tune.md: Likewise.
31587 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31588
31589 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31590
31591 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31592 * config/aarch64/aarch64-tune.md: Regenerate.
31593 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31594
31595 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31596
31597 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31598 (neoversen1_tunings): ... This.
31599 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31600 (neoverse-n1): New CPU.
31601 * config/aarch64/aarch64-tune.md: Regenerate.
31602 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31603
31604 2019-02-22 Richard Biener <rguenther@suse.de>
31605
31606 PR middle-end/87609
31607 * cfghooks.h (dependence_hash): New typedef.
31608 (struct copy_bb_data): New type.
31609 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31610 (duplicate_block): Likewise.
31611 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31612 (copy_bbs): Create and pass down copy_bb_data.
31613 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31614 (rtl_duplicate_bb): Likewise.
31615 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31616 remap dependence info.
31617
31618 2019-02-22 Richard Biener <rguenther@suse.de>
31619
31620 PR tree-optimization/87609
31621 * tree-core.h (tree_base): Document special clique values.
31622 * tree-inline.c (remap_dependence_clique): Do not use the
31623 special clique value of one.
31624 (maybe_set_dependence_info): Use clique one.
31625 (clear_dependence_clique): New callback.
31626 (compute_dependence_clique): Clear clique one from all refs
31627 before assigning it (again).
31628
31629 2019-02-21 Martin Sebor <msebor@redhat.com>
31630
31631 * doc/extend.texi (__clear_cache): Correct signature.
31632
31633 2019-02-21 Ian Lance Taylor <iant@golang.org>
31634
31635 PR go/89170
31636 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31637 than output_constant_def.
31638 (add_constant_to_table): New static function.
31639 (output_constant_def): Call add_constant_to_table.
31640 (tree_output_constant_def): Likewise.
31641
31642 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31643
31644 PR c++/89285
31645 * builtins.c (fold_builtin_arith_overflow): If first two args are
31646 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31647 to ifn.
31648
31649 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31650
31651 PR target/87412
31652 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31653 error for -mindirect-branch/-mfunction-return with incompatible
31654 -fcf-protection.
31655
31656 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31657
31658 PR bootstrap/88714
31659 * constraints.md (q): Remove.
31660 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31661 instead of q.
31662
31663 2019-02-21 Martin Jambor <mjambor@suse.cz>
31664
31665 PR hsa/89302
31666 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31667 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31668 (omp_adjust_for_condition): ...here. Added necessary parameters.
31669 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31670 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31671 proper values to new parameters of omp_adjust_for_condition.
31672
31673 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31674
31675 PR middle-end/89412
31676 * expr.c (expand_assignment): If result is a MEM, use change_address
31677 instead of simplify_gen_subreg.
31678
31679 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31680 David Malcolm <dmalcolm@redhat.com>
31681
31682 PR middle-end/89091
31683 * fold-const.c (decode_field_reference): Return NULL_TREE if
31684 lang_hooks.types.type_for_size returns NULL. Check it before
31685 overwriting *exp_. Use return NULL_TREE instead of return 0.
31686
31687 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31688
31689 PR middle-end/88074
31690 PR middle-end/89415
31691 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31692 buggy mpc_norm.
31693
31694 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31695
31696 PR target/89397
31697 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31698 TARGET_SSE in addition to TARGET_SSE_MATH.
31699
31700 (ix86_excess_precision): Ditto.
31701 (ix86_float_exceptions_rounding_supported_p): Ditto.
31702 (use_rsqrt_p): Ditto.
31703 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31704
31705 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31706
31707 PR c/89410
31708 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31709 linenum_arith_t when determining if two adjacent line spans are
31710 close enough to merge.
31711 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31712 lines within each line_span.
31713
31714 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31715
31716 PR target/86487
31717 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31718 paradoxical SUBREGS.
31719
31720 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31721
31722 PR target/88100
31723 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31724 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31725 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31726 range checking it.
31727
31728 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31729
31730 * config/gcn/gcn.c (print_operand): Fix typo.
31731
31732 2019-02-19 Richard Biener <rguenther@suse.de>
31733
31734 PR middle-end/88074
31735 * toplev.c (do_compile): Initialize mpfr's exponent range
31736 based on available float modes.
31737
31738 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31739
31740 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31741 as long as the epilogue isn't completed.
31742
31743 2019-02-18 Martin Sebor <msebor@redhat.com>
31744
31745 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31746 __has_cpp_attribute, and __has_include.
31747
31748 2019-02-18 Martin Sebor <msebor@redhat.com>
31749
31750 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31751
31752 2019-02-18 Martin Sebor <msebor@redhat.com>
31753
31754 PR middle-end/89294
31755 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31756 expression.
31757 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31758
31759 2019-02-18 Richard Biener <rguenther@suse.de>
31760
31761 PR tree-optimization/89296
31762 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31763 of no-warning flag to cases that might emit the bogus warning.
31764
31765 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31766
31767 PR bootstrap/88714
31768 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31769 "q" constraint.
31770 * config/arm/vfp.md (*movdi_vfp): Likewise.
31771 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31772 "q" constraint for operands[0].
31773
31774 PR target/89369
31775 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31776 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31777 pattern in a temporary buffer.
31778 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31779 than 64-operands[2].
31780
31781 PR target/89361
31782 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31783 s390_indirect_branch_settings): Define unconditionally.
31784 (s390_set_current_function): Likewise, but guard the whole body except
31785 the s390_indirect_branch_settings call with
31786 #if S390_USE_TARGET_ATTRIBUTE.
31787 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31788
31789 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31790 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31791 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31792 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31793 HOST_WIDE_INT_1U instead of 1ULL.
31794 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31795 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31796 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31797 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31798 instead of 1UL.
31799 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31800 instead of 1ul.
31801
31802 2019-02-18 Martin Jambor <mjambor@suse.cz>
31803
31804 PR tree-optimization/89209
31805 * tree-sra.c (create_access_replacement): New optional parameter
31806 reg_tree. Use it as a type if non-NULL and access type is not of
31807 a register type.
31808 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31809 to create_access_replacement.
31810 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31811 Check lacc is non-NULL before attempting to re-create it on the RHS.
31812
31813 2019-02-18 Martin Liska <mliska@suse.cz>
31814
31815 PR ipa/89306
31816 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31817 by default.
31818 (symbol_table::free_edge): Recycle m_summary_id.
31819 * cgraph.h (get_summary_id): New.
31820 (symbol_table::release_symbol): Set m_summary_id to -1
31821 by default.
31822 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31823 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31824 function_summary to fast_function_summary.
31825 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31826 * ipa-pure-const.c (class funct_state_summary_t):
31827 Switch from function_summary to fast_function_summary.
31828 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31829 (class ipa_ref_opt_summary_t): Switch from function_summary
31830 to fast_function_summary.
31831 * symbol-summary.h (class function_summary_base): New class
31832 that is created from base of former function_summary.
31833 (function_summary_base::unregister_hooks): New.
31834 (class function_summary): Inherit from function_summary_base.
31835 (class call_summary_base): New class
31836 that is created from base of former call_summary.
31837 (class call_summary): Inherit from call_summary_base.
31838 (struct is_same): New.
31839 (class fast_function_summary): New summary class.
31840 (class fast_call_summary): New summary class.
31841 * vec.h (vec_safe_grow_cleared): New function.
31842
31843 2019-02-18 Martin Liska <mliska@suse.cz>
31844
31845 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31846 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31847 * doc/tm.texi: Document new target hook.
31848 * doc/tm.texi.in: Likewise.
31849 * target.def: Add new target macro.
31850 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31851 suffixes.
31852
31853 2019-02-17 Alan Modra <amodra@gmail.com>
31854
31855 PR target/89271
31856 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31857 output reg on add insn.
31858 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31859
31860 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31861
31862 PR target/89372
31863 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31864 (PMULHRSW): Likewise.
31865 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31866 TARGET_AVX2.
31867 (ssse3_pmulhrswv4hi3): New expander.
31868
31869 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31870
31871 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31872 MMX. Add isa attribute.
31873
31874 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31875
31876 PR rtl-optimization/66152
31877 * builtins.h (c_readstr): Declare.
31878 * builtins.c (c_readstr): Remove forward declaration. Add
31879 null_terminated_p argument, if false, read all bytes from the
31880 string instead of stopping after '\0'.
31881 * expr.c (string_cst_read_str): New function.
31882 (store_expr): Use string_cst_read_str instead of
31883 builtin_strncpy_read_str. Try to store by pieces the whole
31884 exp_len first, and only if that fails, split it up into
31885 store by pieces followed by clear_storage. Formatting fix.
31886
31887 * config/i386/i386.md (*movqi_internal): Remove static from
31888 buf variable. Use output_asm_insn (buf, operands); return "";
31889 instead of return buf;.
31890 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31891 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31892 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31893
31894 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31895
31896 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31897 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31898 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31899 (CC1_SPEC): Likewise.
31900 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31901
31902 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31903
31904 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31905 the base address on 64-bit strict-alignment platforms.
31906
31907 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31908
31909 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31910
31911 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31912
31913 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31914
31915 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31916
31917 PR rtl-optimization/88308
31918 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31919 on copied instruction.
31920
31921 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31922
31923 * final.c (insn_current_reference_address): Replace test on JUMP_P
31924 with test on jump_to_label_p.
31925 * config/visium/visium-passes.def: New file.
31926 * config/visium/t-visium (PASSES_EXTRA): Define.
31927 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31928 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31929 (TRAMPOLINE_ALIGNMENT): Define.
31930 * config/visium/visium.c (visium_option_override): Do not register
31931 the machine-specific reorg pass here.
31932 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31933 for the GR6.
31934 (output_branch): Adjust threshold for long branch instruction.
31935 * config/visium/visium.md (cpu): Move around.
31936 (length): Adjust for the GR6.
31937
31938 2019-02-15 Richard Biener <rguenther@suse.de>
31939 Jakub Jelinek <jakub@redhat.com>
31940
31941 PR tree-optimization/89278
31942 * tree-loop-distribution.c: Include tree-eh.h.
31943 (generate_memset_builtin, generate_memcpy_builtin): Call
31944 rewrite_to_non_trapping_overflow on builtin->size before passing it
31945 to force_gimple_operand_gsi.
31946
31947 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31948
31949 PR other/89342
31950 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31951 optimize_debug.
31952 * opth-gen.awk: Likewise.
31953
31954 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31955
31956 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31957 Enable MMX, SSE and SSE2 by default.
31958 * config/i386/i386.c (ix86_option_override_internal): Do not
31959 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31960
31961 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31962
31963 PR rtl-optimization/89354
31964 * combine.c (make_extraction): Punt if extraction_mode is narrower
31965 than len bits.
31966
31967 2019-02-14 Maya Rashish <coypu@sdf.org>
31968
31969 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31970 * config/netbsd-d.c: New file.
31971 * config/t-netbsd: Add netbsd-d.o
31972
31973 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31974
31975 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31976 affects_type_identity to true for aarch64_vector_pcs.
31977 (aarch64_comp_type_attributes): New function.
31978 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31979
31980 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31981
31982 PR target/88850
31983 * config/arm/iterators.md (ANY64): Add V4HF.
31984
31985 2019-02-14 Martin Liska <mliska@suse.cz>
31986
31987 PR rtl-optimization/89242
31988 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31989 process a transformation.
31990
31991 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31992
31993 PR tree-optimization/89314
31994 * fold-const.c (fold_binary_loc): Cast strlen argument to
31995 const char * before dereferencing it. Formatting fixes.
31996
31997 PR middle-end/89284
31998 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31999
32000 2019-02-13 Ian Lance Taylor <iant@golang.org>
32001
32002 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32003 and set current index for other optimizations.
32004
32005 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32006
32007 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32008 nonimmediate_operand as operand 2 predicate.
32009 (vec_set<VF2_512_256:mode>_0): Ditto.
32010 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32011 (*vec_concatv2si): Remove alternative 2.
32012 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32013 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32014 (vec_concatv2di): Split alternatives 4,5,6 to ...
32015 (*vec_concatv2di_0) ... new pattern.
32016
32017 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32018
32019 PR target/89190
32020 * config/arm/arm.c (ldm_stm_operation_p) Set
32021 addr_reg_in_reglist correctly for first register.
32022 (load_multiple_sequence): Remove dead base check.
32023 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32024
32025 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32026
32027 PR target/88847
32028 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32029 Expose as @aarch64_pred_mov.
32030 * config/aarch64/aarch64.c (aarch64_classify_address):
32031 Use expand_insn which legitimizes operands.
32032
32033 2019-02-13 Martin Liska <mliska@suse.cz>
32034
32035 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32036 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32037 and pointer_offset fields.
32038 (initialize_argument_information): Remove usage of dead
32039 fields.
32040 * cgraph.h (struct cgraph_thunk_info): Remove
32041 add_pointer_bounds_args.
32042 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32043 fields.
32044 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32045 fields.
32046 * config/i386/i386.c (ix86_function_arg_advance): Remove
32047 unrelated comment.
32048 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32049 (def_builtin): Remove usage of dead fields.
32050 (ix86_add_new_builtins): Likewise.
32051 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32052 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32053 (sem_function::init): Likewise.
32054 (sem_variable::merge): Likewise.
32055 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32056 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32057 * lto-cgraph.c (lto_output_node): Likewise.
32058 (lto_output_varpool_node): Likewise.
32059 (input_node): Likewise.
32060 (input_varpool_node): Likewise.
32061 * lto-streamer-out.c (lto_output): Likewise.
32062 * tree-inline.c (expand_call_inline): Remove usage of
32063 assign_stmts.
32064 * tree-inline.h (struct copy_body_data): Likewise.
32065 * varpool.c (varpool_node::dump): Likewise.
32066
32067 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32068
32069 PR middle-end/89303
32070 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32071 into pt->vars_contains_escaped_heap instead of setting
32072 pt->vars_contains_escaped_heap to it.
32073
32074 PR middle-end/89281
32075 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32076 INTVAL (size), compare it to GET_MODE_MASK instead of
32077 1 << GET_MODE_BITSIZE.
32078
32079 PR target/89290
32080 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32081 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32082 -mcmodel=large.
32083
32084 2019-02-13 Martin Liska <mliska@suse.cz>
32085
32086 PR lto/88858
32087 * cfgrtl.c (remove_barriers_from_footer): New function.
32088 (try_redirect_by_replacing_jump): Use it.
32089 (cfg_layout_redirect_edge_and_branch): Likewise.
32090
32091 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32092
32093 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32094 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32095 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32096 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32097 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32098 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32099 New BU_CRYPTO_2.
32100 * config/rs6000/rs6000.c (builtin_function_type)
32101 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32102 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32103 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32104 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32105 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32106
32107 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32108
32109 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32110 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32111
32112 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32113
32114 PR target/89229
32115 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32116 268678 and revision 268657.
32117 (*movti_internal): Likewise.
32118
32119 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32120
32121 PR target/89233
32122 * config/s390/s390.c (s390_decompose_address): Update comment.
32123 (s390_check_qrst_address): Reject invalid address forms after
32124 LRA.
32125
32126 2019-02-12 Martin Liska <mliska@suse.cz>
32127
32128 PR lto/88876
32129 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32130 we need default values of funct_state for a function that
32131 is not optimized.
32132
32133 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32134
32135 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32136 the object to pick the size of stores on strict-alignment platforms.
32137
32138 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32139 (*movdi_insn_sp32): Likewise.
32140 (*movdi_insn_sp64): Likewise.
32141
32142 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32143
32144 PR lto/88677
32145 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32146 types that needs constructiong.
32147 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32148
32149 2019-02-12 Richard Biener <rguenther@suse.de>
32150
32151 PR tree-optimization/89253
32152 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32153 duplicate the loop.
32154
32155 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32156
32157 PR lto/88147
32158 * input.c (selftest::test_line_offset_overflow): New selftest.
32159 (selftest::input_c_tests): Call it.
32160
32161 2019-02-11 Martin Sebor <msebor@redhat.com>
32162
32163 PR tree-optimization/88771
32164 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32165 when -Wstringop-overflow is set.
32166 (builtin_memref::builtin_memref): Adjust excessive upper bound
32167 only when lower bound is not excessive.
32168 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32169 -Wstringop-ovefflow.
32170 (maybe_diag_offset_bounds): Rename...
32171 (maybe_diag_access_bounds): ...to this.
32172 (check_bounds_or_overlap): Adjust for name change above.
32173
32174 2019-02-11 Martin Sebor <msebor@redhat.com>
32175
32176 PR c++/87996
32177 * builtins.c (max_object_size): Move from here...
32178 * builtins.h (max_object_size): ...and here...
32179 * tree.c (max_object_size): ...to here...
32180 * tree.h (max_object_size): ...and here.
32181
32182 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32183
32184 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32185 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32186 for correct semantics.
32187
32188 2019-02-11 Alan Modra <amodra@gmail.com>
32189
32190 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32191 -mlongcall and -mpltseq.
32192 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32193 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32194 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32195 * config/rs6000/sysv4.opt (mpltseq): New option.
32196 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32197 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32198 support is lacking. Don't allow -mpltseq with -mbss-plt.
32199 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32200 -mpltseq given for ELFv1.
32201 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32202 Only use UNSPEC_PLTSEQ for inline PLT calls.
32203 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32204 use UNSPEC_PLTSEQ for inline PLT calls.
32205 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32206 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32207 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32208 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32209 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32210 (pltseq_mtctr_<mode>): Likewise.
32211
32212 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32213
32214 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32215 Solaris ld.
32216 * configure: Regenerate.
32217
32218 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32219
32220 PR bootstrap/88714
32221 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32222 instead of r.
32223
32224 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32225
32226 * function.c (assign_parm_setup_block): Use the stored
32227 size, not the passed size, when allocating stack-space,
32228 also for a parameter with alignment larger than
32229 MAX_SUPPORTED_STACK_ALIGNMENT.
32230
32231 2019-02-11 Martin Liska <mliska@suse.cz>
32232
32233 PR ipa/89009
32234 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32235 * ipa-inline.c (inline_small_functions): Likewise.
32236 * ipa-pure-const.c (propagate_pure_const): Likewise.
32237 (propagate_nothrow): Likewise.
32238 * ipa-reference.c (propagate): Likewise.
32239 * ipa-utils.c (struct searchc_env): Remove unused field.
32240 (searchc): Always search across AVAIL_INTERPOSABLE.
32241 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32242 the only called IPA pure const can properly not propagate
32243 across interposable boundary.
32244 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32245
32246 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32247
32248 * config/nds32/nds32.md (call_internal, call_value_internal,
32249 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32250
32251 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32252
32253 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32254 typo.
32255
32256 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32257
32258 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32259 in comments
32260
32261 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32262
32263 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32264
32265 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32266
32267 PR tree-optimization/89268
32268 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32269 if preds is non-NULL.
32270
32271 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32272
32273 PR lto/89272
32274 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32275 polymorphic types.
32276
32277 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32278
32279 * config/nds32/nds32.md (trap): New pattern.
32280
32281 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32282
32283 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32284 dwarf span.
32285
32286 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32287
32288 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32289 to split POST_INC.
32290
32291 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32292
32293 * ipa-visibility.c (localize_node): Also do not localize
32294 LDPR_PREVAILING_DEF_IRONLY_EXP.
32295
32296 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32297
32298 PR lto/87957
32299 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32300 instead of type_with_linkage.
32301
32302 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32303
32304 PR ipa/88755
32305 * params.def (uninlined-function-insns, uninlined-function-time,
32306 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32307 bound so we don't get overflows.
32308
32309 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32310
32311 * config/rs6000/rs6000-string.c (expand_compare_loop,
32312 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32313 memcmp/strncmp.
32314
32315 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32316
32317 PR middle-end/89246
32318 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32319 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32320 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32321
32322 2019-02-09 Alan Modra <amodra@gmail.com>
32323
32324 PR target/88343
32325 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32326 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32327 setup.
32328
32329 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32330
32331 PR middle-end/88560
32332 * lra-constraints.c (process_alt_operands): Don't increase reject
32333 for memory when offset memory is required.
32334
32335 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32336
32337 * config/s390/vector.md: Implement vector copysign.
32338
32339 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32340
32341 * expr.c (expand_constructor): Correct indentations.
32342
32343 2019-02-08 Richard Biener <rguenther@suse.de>
32344
32345 PR tree-optimization/89247
32346 * tree-if-conv.c: Include tree-cfgcleanup.h.
32347 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32348 (tree_if_conversion): Pass through predicate vector.
32349 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32350 inline, see if any if-converted loops we refrece in
32351 LOOP_VECTORIZED calls vanished and fixup.
32352 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32353
32354 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32355
32356 * config/s390/constraints.md (jdd): New constraint.
32357
32358 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32359
32360 PR target/89229
32361 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32362 upper 16 vector registers without TARGET_AVX512VL.
32363 (*movti_internal): Likewise.
32364
32365 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32366
32367 PR rtl-optimization/89234
32368 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32369 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32370 (copy_reg_eh_region_note_backward): Likewise.
32371
32372 2019-02-08 Richard Biener <rguenther@suse.de>
32373
32374 PR middle-end/89223
32375 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32376 doesn't fit in HWI.
32377 (analyze_subscript_affine_affine): Handle failure from
32378 initialize_matrix_A.
32379
32380 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32381
32382 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32383 cfun everywhere.
32384
32385 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32386
32387 PR tree-optimization/86637
32388 PR tree-optimization/89235
32389 * tree-vect-loop.c (optimize_mask_stores): Add an
32390 auto_purge_vect_location sentinel to ensure that vect_location is
32391 purged on exit.
32392 * tree-vectorizer.c
32393 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32394 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32395 to ensure that vect_location is purged on exit.
32396 (pass_slp_vectorize::execute): Likewise, replacing the manual
32397 reset.
32398 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32399
32400 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32401
32402 * config/aarch64/iterators.md (max_opp): New code_attr.
32403 (USMAX): New code iterator.
32404 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32405 (aarch64_smax): Likewise.
32406 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32407 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32408 MINUS (MAX MIN).
32409
32410 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32411
32412 PR target/89229
32413 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32414 for TARGET_AVX512VL.
32415 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32416
32417 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32418
32419 * config/s390/s390-builtin-types.def: Add new types.
32420 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32421 (s390_vec_xlw4): Make the memory operand into a const pointer.
32422 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32423 float.
32424 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32425 a new vector type with the alignment of the scalar memory operand.
32426
32427 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32428 Jakub Jelinek <jakub@redhat.com>
32429
32430 PR bootstrap/88714
32431 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32432 arm_count_ldrdstrd_insns): New declarations.
32433 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32434 MINUS.
32435 (valid_operands_ldrd_strd): New function.
32436 (arm_count_ldrdstrd_insns): New function.
32437 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32438 sets instead of single DImode set and define new insns to match this.
32439
32440 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32441
32442 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32443 Make it a C initializer.
32444
32445 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32446
32447 PR/target 88850
32448 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32449
32450 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32451
32452 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32453 Use neon_dot<q> for type.
32454 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32455
32456 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32457
32458 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32459 Use neon_dot<q> for type.
32460 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32461 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32462
32463 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32464
32465 PR rtl-optimization/89225
32466 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32467 sizes check.
32468
32469 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32470
32471 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32472 after restoring registers saved to allocate the frame on Windows.
32473
32474 2019-02-06 Richard Biener <rguenther@suse.de>
32475
32476 PR tree-optimization/89182
32477 * graphite.h (cached_scalar_evolution_in_region): Declare.
32478 * graphite.c (struct seir_cache_key): New.
32479 (struct sese_scev_hash): Likewise.
32480 (seir_cache): New global.
32481 (cached_scalar_evolution_in_region): New function.
32482 (graphite_transform_loops): Allocate and release seir_cache.
32483 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32484 cached_scalar_evolution_in_region.
32485 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32486 Simplify.
32487 (scop_detection::graphite_can_represent_expr: Use
32488 cached_scalar_evolution_in_region.
32489 (scop_detection::stmt_simple_for_scop_p): Likewise.
32490 (find_params_in_bb): Likewise.
32491 (gather_bbs::before_dom_children): Likewise.
32492 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32493 (add_loop_constraints): Likewise.
32494
32495 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32496
32497 PR middle-end/89210
32498 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32499 operand to new_unary_operation only if both element types are integral
32500 and it isn't a widening conversion. Return NULL_TREE if
32501 new_unary_operation failed.
32502
32503 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32504
32505 PR target/88856
32506 * config/s390/s390.md: Remove load and test FP splitter.
32507
32508 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32509
32510 PR target/89112
32511 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32512 expand_compare_loop, expand_block_compare_gpr,
32513 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32514 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32515 #include "profile-count.h" and "predict.h" for types and functions
32516 needed to work with REG_BR_PROB notes.
32517
32518 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32519
32520 PR target/89112
32521 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32522 for the long branch case.
32523
32524 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32525
32526 PR target/89188
32527 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32528 can throw, non-call exceptions are enabled and we can't delete
32529 dead exceptions or alter cfg. Set must_clean if
32530 delete_insn_and_edges returns true, don't set it blindly for calls.
32531 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32532
32533 PR rtl-optimization/89195
32534 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32535 of the original MEM.
32536
32537 2019-02-05 Martin Liska <mliska@suse.cz>
32538
32539 PR gcov-profile/89000
32540 * gcov.c (function_summary): Remove argument.
32541 (file_summary): New function.
32542 (print_usage): Replace tabs with spaces.
32543 (generate_results): Use new function file_summary.
32544
32545 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32546
32547 PR target/89186
32548 * optabs.c (prepare_cmp_insn): Pass x and y to
32549 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32550
32551 2019-02-05 Richard Biener <rguenther@suse.de>
32552
32553 PR middle-end/89150
32554 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32555 (struct bitmap_element): Drop chain_prev so we properly recurse on
32556 the prev member, supporting tree views.
32557 (struct bitmap_head): GTY skip the obstack member.
32558
32559 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32560
32561 PR c/88698
32562 * doc/extend.texi (Vector Extensions): Add an example of using vector
32563 types together with x86 intrinsics.
32564
32565 2019-02-04 Alan Modra <amodra@gmail.com>
32566
32567 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32568 str[] size to 160, and comment.
32569
32570 2019-02-04 Alan Modra <amodra@gmail.com>
32571
32572 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32573 (rs6000_pltseq_template): Guard output of TLS markers with
32574 TARGET_TLS_MARKERS.
32575 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32576 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32577 to use inline PLT sequences.
32578 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32579 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32580 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32581
32582 2019-02-04 Martin Liska <mliska@suse.cz>
32583
32584 PR ipa/88985
32585 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32586 out when ipa_fn_summaries does not contain entry for callee.
32587
32588 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32589
32590 * config/sparc/sparc.h: Remove superfluous blank lines.
32591 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32592 (got_register_rtx): ...this.
32593 (sparc_got): Adjust to above renaming.
32594 (sparc_tls_got): Likewise.
32595 (sparc_delegitimize_address): Likewise.
32596 (sparc_output_mi_thunk): Likewise.
32597 (sparc_init_pic_reg): Likewise.
32598 (save_local_or_in_reg_p): Fix test on the GOT register.
32599 (USE_HIDDEN_LINKONCE): Move around.
32600 (get_pc_thunk_name): Likewise.
32601 (gen_load_pcrel_sym): Likewise.
32602 (load_got_register): Likewise.
32603
32604 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32605
32606 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32607 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32608
32609 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32610
32611 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32612 into consideration.
32613
32614 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32615
32616 * config.gcc (with_nds32_lib, glibc):
32617 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32618 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32619 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32620
32621 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32622
32623 PR target/89071
32624 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32625 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32626 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32627 (*rcpsf2_sse): Ditto.
32628 (*rsqrtsf2_sse): Ditto.
32629 (sse4_1_round<mode<2): Ditto.
32630
32631 2019-02-03 Richard Biener <rguenther@suse.de>
32632
32633 PR debug/87295
32634 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32635 orig.
32636
32637 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32638
32639 PR middle-end/87887
32640 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32641 Punt with warning on aggregate return or argument types. Ignore
32642 type/mode checking for uniform arguments.
32643
32644 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32645
32646 * combine.c (try_combine): Do not print "Can't combine" messages unless
32647 printing failed combination attempts.
32648
32649 2019-02-01 Martin Jambor <mjambor@suse.cz>
32650
32651 PR hsa/87863
32652 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32653 segment and global segment variables before making them static.
32654
32655 2019-02-01 Martin Jambor <mjambor@suse.cz>
32656
32657 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32658 missed optimization dump with dump_enabled_p.
32659
32660 2019-02-01 Richard Biener <rguenther@suse.de>
32661
32662 PR middle-end/88597
32663 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32664 the instantiate cache.
32665 (instantiate_scev_binary): Elide second operand procesing
32666 if equal to the first.
32667 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32668 (chrec_contains_undetermined): Likewise.
32669 (tree_contains_chrecs): Likewise.
32670
32671 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32672
32673 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32674
32675 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32676
32677 PR tree-optimization/89143
32678 * wide-int-range.h (wide_int_range_absu): Declare.
32679 * wide-int-range.cc (wide_int_range_absu): New function.
32680 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32681
32682 PR tree-optimization/88107
32683 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32684 instead of assertion that eh_region_outermost is non-NULL, if it
32685 is NULL, set *ALL to true and return NULL.
32686 (move_sese_region_to_fn): Adjust caller, if all is set, call
32687 duplicate_eh_regions with NULL region.
32688
32689 2019-02-01 Richard Biener <rguenth@suse.de>
32690
32691 PR rtl-optimization/88593
32692 * mode-switching.c (optimize_mode_switching): Free dominators before
32693 calling cleanup_cfg.
32694
32695 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32696
32697 PR tree-optimization/88932
32698 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32699
32700 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32701
32702 PR middle-end/89137
32703 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32704 bogus clang warning.
32705
32706 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32707
32708 PR target/89071
32709 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32710 alternative to avoid partial SSE register stall for TARGET_AVX.
32711 (truncdfsf2): Ditto.
32712 (sse4_1_round<mode>2): Ditto.
32713
32714 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32715
32716 PR tree-optimization/89008
32717 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32718 process anything of the form X * 0.
32719
32720 2019-01-31 Richard Biener <rguenther@suse.de>
32721
32722 PR tree-optimization/89135
32723 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32724 with abnormal preds.
32725
32726 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32727
32728 PR sanitizer/89124
32729 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32730 always_inline callees into no_sanitize_address callers.
32731
32732 2019-01-31 Richard Biener <rguenther@suse.de>
32733
32734 PR rtl-optimization/89115
32735 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32736
32737 2019-01-30 Martin Sebor <msebor@redhat.com>
32738
32739 PR other/89106
32740 * doc/extend.texi (cast to a union): Correct and expand.
32741
32742 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32743
32744 PR rtl-optimization/87246
32745 * lra-constraints.c (simplify_operand_subreg): Reload memory
32746 in subreg if the address became invalid.
32747
32748 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32749
32750 PR target/87064
32751 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32752 Disable for little-endian.
32753
32754 2019-01-30 Richard Biener <rguenther@suse.de>
32755
32756 PR rtl-optimization/89115
32757 * opts.c (default_options_optimization): Reduce
32758 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32759 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32760 to the default.
32761
32762 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32763
32764 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32765 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32766 type of vector element when vec_extract is implemented by direct
32767 move.
32768
32769 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32770
32771 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32772
32773 2019-01-30 Richard Biener <rguenther@suse.de>
32774
32775 PR tree-optimization/89111
32776 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32777 canonicalization to appropriately sized access types.
32778
32779 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32780
32781 PR c++/89105
32782 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32783 for arguments to functions that are TU-local and shouldn't be
32784 referenced by assembly.
32785
32786 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32787
32788 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32789 after '='.
32790
32791 2019-01-29 Martin Sebor <msebor@redhat.com>
32792
32793 PR c/88956
32794 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32795
32796 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32797
32798 PR c++/66676
32799 PR ipa/89104
32800 * omp-simd-clone.c (simd_clone_clauses_extract)
32801 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32802 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32803
32804 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32805
32806 * config.gcc: Force .init_array for ARC.
32807
32808 2019-01-29 Richard Biener <rguenther@suse.de>
32809
32810 PR debug/87295
32811 * dwarf2out.c (collect_skeleton_dies): New helper.
32812 (copy_decls_for_unworthy_types): Call it.
32813 (build_abbrev_table): Assert we do not try to replace
32814 DW_AT_signature refs with local refs.
32815
32816 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32817
32818 PR middle-end/89002
32819 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32820 for lastprivate/linear IV, push gimplify context around gimplify_assign
32821 and, if it needed any temporaries, pop it into a gimple bind around the
32822 sequence.
32823
32824 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32825
32826 * common.opt (-Wattribute-alias): Remove "no-" from name.
32827 Make -Wattribute-alias command line option and
32828 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32829
32830 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32831
32832 PR target/89073
32833 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32834 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32835 x86 ISA options.
32836 (bmi2): Add missing @opindex.
32837 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32838 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32839 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32840 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32841 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32842 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32843 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32844 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32845 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32846 xsavec, xsaveopt and xsaves options.
32847
32848 2019-01-28 Richard Biener <rguenther@suse.de>
32849
32850 PR debug/89076
32851 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32852 support removal.
32853
32854 2019-01-28 Richard Biener <rguenther@suse.de>
32855
32856 PR tree-optimization/88739
32857 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32858 BIT_FIELD_REFs only are applied to mode-precision operands
32859 when they are integral.
32860 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32861 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32862 BIT_FIELD_REFs of non-mode-precision integral operands.
32863
32864 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32865
32866 PR target/87214
32867 * config/i386/sse.md
32868 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32869 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32870 first constants in pairs are multiples of 2. Formatting fixes.
32871 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32872 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32873 first constants in each quadruple are multiples of 4. Formatting fixes.
32874
32875 2019-01-26 Martin Jambor <mjambor@suse.cz>
32876
32877 PR ipa/88933
32878 * tree-inline.c: Include tree-cfgcleanup.h.
32879 (delete_unreachable_blocks_update_callgraph): Move...
32880 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32881 ...here, make externally visible, make second argument bool, adjust
32882 all callers.
32883 * tree-cfgcleanup.c: Include cgraph.h.
32884 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32885 Declare.
32886 * ipa-prop.c: Include tree-cfgcleanup.h.
32887 (ipcp_transform_function): Call
32888 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32889
32890 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32891
32892 PR rtl-optimization/88846
32893 * ira.c (process_set_for_memref_referenced_p): New.
32894 (memref_referenced_p): Add new param. Use
32895 process_set_for_memref_referenced_p. Add new switch cases.
32896 (memref_used_between_p): Pass new arg to memref_referenced_p.
32897
32898 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32899
32900 PR target/88469
32901 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32902 argument ABI_BREAK. Set to true if the calculated alignment has
32903 changed in gcc-9. Check bit-fields for their base type alignment.
32904 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32905 (aarch64_function_arg_boundary): Likewise.
32906 (aarch64_gimplify_va_arg_expr): Likewise.
32907
32908 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32909
32910 PR middle-end/89037
32911 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32912 instead of accessing TREE_INT_CST_ELT directly.
32913
32914 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32915
32916 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32917 fenv_exceptions description.
32918
32919 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32920
32921 PR rtl-optimization/87763
32922 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32923 Allow SUBREG when matching CC_NZmode compare.
32924
32925 2019-01-25 Richard Biener <rguenther@suse.de>
32926
32927 PR tree-optimization/89049
32928 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32929 Look at the pattern stmt to determine if the stmt is vectorized.
32930
32931 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32932
32933 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32934 (pred_mov<mode>): Handle all-register forms using both a new
32935 alternative and a split.
32936
32937 2019-01-25 Richard Biener <rguenther@suse.de>
32938
32939 PR tree-optimization/86865
32940 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32941 Reject non-do-while loops.
32942
32943 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32944
32945 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32946 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32947 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32948 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32949 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32950 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32951 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32952 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32953 vlogical_operand, gpc_reg_operand, int_reg_operand,
32954 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32955 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32956 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32957 (save_world_operation, restore_world_operation, lmw_operation,
32958 stmw_operation): Use MEM_P and REG_P.
32959 (tie_operand): Use MEM_P.
32960 (vrsave_operation, crsave_operation): Use REG_P.
32961 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32962 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32963 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32964 (call_operand): Use HARD_REGISTER_P.
32965 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32966 Use CONST_INT_P.
32967 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32968 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32969 quad_aligned_load_p, replace_swapped_aligned_store,
32970 recombine_lvx_pattern, replace_swapped_aligned_load,
32971 recombine_stvx_pattern): Use MEM_P.
32972 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32973 Use MEM_P and SYMBOL_REF_P.
32974 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32975 (insn_is_swappable_p): Use REG_P and MEM_P.
32976 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32977 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32978 Use CONST_INT_P.
32979 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32980 Use CONST_DOUBLE_P.
32981 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32982 CONST_WIDE_INT_P.
32983 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32984 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32985 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32986 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32987 reg_or_subregno:
32988 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32989 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32990 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32991 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32992 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32993 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32994 rs6000_split_logical_di): Use CONST_INT_P.
32995 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32996 REG_P and SYMBOL_REF_P.
32997 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32998 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32999 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33000 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33001 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33002 (small_data_operand, print_operand_address): Use CONST_INT_P and
33003 SYMBOL_REF_P.
33004 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33005 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33006 Use HARD_REGISTER_NUM_P.
33007 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33008 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33009 SUBREG_P and SYMBOL_REF_P.
33010 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33011 and HARD_REGISTER_NUM_P.
33012 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33013 reg_or_subregno.
33014 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33015 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33016 MEM_P and REG_P.
33017 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33018 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33019 find_addr_reg): Use REG_P.
33020 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33021 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33022 (offsettable_ok_by_alignment, constant_pool_expr_p,
33023 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33024 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33025 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33026 rs6000_assemble_integer, create_TOC_reference,
33027 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33028 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33029 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33030 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33031 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33032 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33033 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33034 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33035 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33036 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33037 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33038 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33039 and cbranch<mode>4): Use CONST_INT_P.
33040 (multiple define_splits): Use REG_P and SUBREG_P.
33041 (define_expands call, call_value): Use MEM_P.
33042 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33043 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33044 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33045 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33046 and HARD_REGISTER_NUM_P.
33047 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33048
33049 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33050
33051 PR rtl-optimization/88948
33052 * rtl.h (prepare_copy_insn): New prototype.
33053 * gcse.c (prepare_copy_insn): New function, split out from
33054 process_insert_insn.
33055 (process_insert_insn): Use prepare_copy_insn.
33056 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33057 instead of gen_move_insn.
33058
33059 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33060
33061 PR debug/89006
33062 * config/i386/i386.c (ix86_pic_register_p): Return true for
33063 UNSPEC_SET_GOT too.
33064
33065 PR tree-optimization/88964
33066 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33067 punt if HONOR_SNANS (chrec).
33068
33069 PR middle-end/89015
33070 * tree-nested.c (convert_nonlocal_reference_stmt,
33071 convert_local_reference_stmt, convert_tramp_reference_stmt,
33072 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33073 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33074 or GIMPLE_OMP_TASK.
33075
33076 PR tree-optimization/89027
33077 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33078 for "omp simd array" variables.
33079
33080 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33081
33082 PR target/88469
33083 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33084 force the alignment of m_val.
33085
33086 2019-01-24 Richard Biener <rguenther@suse.de>
33087
33088 PR lto/87187
33089 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33090 When in "legacy" debug mode make sure to reset self-origins.
33091
33092 2019-01-24 Martin Liska <mliska@suse.cz>
33093
33094 PR gcov-profile/88994
33095 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33096 result will be always smaller or equal to the original.
33097 * gcov.c (mangle_name): Fix else branch where we should
33098 also copy to PTR and shift the pointer.
33099
33100 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33101
33102 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33103 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33104
33105 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33106
33107 * common/config/i386/i386-common.c
33108 (OPTION_MASK_ISA_ENQCMD_SET,
33109 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33110 (ix86_handle_option): Handle -menqcmd.
33111 * config.gcc (enqcmdintrin.h): New header file.
33112 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33113 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33114 -menqcmd.
33115 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33116 function type.
33117 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33118 __builtin_ia32_enqcmds): New builtins.
33119 * config/i386/i386-c.c (__ENQCMD__): New macro.
33120 * config/i386/i386-option.c (ix86_target_string): Add
33121 -menqcmd.
33122 (ix86_valid_target_attribute_inner_p): Likewise.
33123 * config/i386/i386-expand.c
33124 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33125 IX86_BUILTIN_ENQCMDS.
33126 * config/i386/i386.h (TARGET_ENQCMD): New.
33127 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33128 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33129 (movdir64b_<mode>): Parameterize to enable share expansion code
33130 with ENQCMD in function ix86_expand_builtin.
33131 * config/i386/i386.opt: Add -menqcmd.
33132 * config/i386/immintrin.h: Include enqcmdintrin.h.
33133 * config/i386/enqcmdintrin.h: New intrinsic file.
33134 * doc/invoke.texi: Add -menqcmd.
33135
33136 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33137 Steve Ellcey <sellcey@marvell.com>
33138
33139 PR target/85711
33140 * recog.c (address_operand): Return false on wrong mode for address.
33141 (constrain_operands): Check for mode with 'p' constraint.
33142
33143 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33144
33145 PR target/88998
33146 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33147 Disparage MMX alternative.
33148 (sse2_cvtpd2pi): Ditto.
33149 (sse2_cvttpd2pi): Ditto.
33150
33151 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33152
33153 PR driver/89014
33154 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33155 use-after-free of the result of
33156 aarch64_get_extension_string_for_isa_flags.
33157
33158 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33159
33160 PR c/44715
33161 * doc/extend.texi: Document break and continue behavior in
33162 statement expressions.
33163
33164 2019-01-23 Richard Biener <rguenther@suse.de>
33165
33166 PR tree-optimization/89008
33167 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33168 not leave another stray operand.
33169
33170 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33171
33172 * BASE-VER: Bump to 9.0.1.
33173
33174 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33175
33176 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33177 thunk that returns by reference, use the type of the return object
33178 of the thunk instead of that of the alias to build the dereference.
33179
33180 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33181
33182 * config/arc/atomic.md: Add operand to DMB instruction.
33183
33184 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33185
33186 PR tree-optimization/88964
33187 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33188 build_zero_cst instead of build_int_cst. Return false for loop
33189 invariants which honor signed zeros.
33190
33191 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33192
33193 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33194
33195 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33196
33197 PR target/88965
33198 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33199 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33200 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33201
33202 PR middle-end/88968
33203 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33204 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33205
33206 PR target/87064
33207 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33208 Disable for little endian.
33209
33210 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33211
33212 PR target/88469
33213 * config/arm/arm.c (arm_needs_double_word_align): Check
33214 DECL_BIT_FIELD_TYPE.
33215
33216 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33217 H.J. Lu <hongjiu.lu@intel.com>
33218
33219 PR target/88909
33220 * config/i386/i386-builtin.def: Add mask2 to all builtin
33221 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33222 SPECIAL_ARGS.
33223 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33224 (BDESC_FIRST): Likewise.
33225 (define_builtin): Add an argument for mask2. Updated to handle
33226 both ix86_isa_flags and ix86_isa_flags2.
33227 (define_builtin_const): Likewise.
33228 (define_builtin_pure): Likewise.
33229 (define_builtin2): Deleted.
33230 (define_builtin_const2): Likewise.
33231 (builtin_description): Add a member, mask2.
33232 (bdesc_*): Add mask2 to builtin initializations.
33233 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33234 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33235 support.
33236 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33237
33238 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33239
33240 PR target/88954
33241 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33242 noplt attribute.
33243
33244 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33245
33246 PR target/88469
33247 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33248 alignment is dominated by a bitfield with 64-bit aligned base type.
33249 (arm_function_arg): Emit a warning if the alignment has changed since
33250 earlier GCC releases.
33251 (arm_function_arg_boundary): Likewise.
33252 (arm_setup_incoming_varargs): Likewise.
33253
33254 2019-01-22 Richard Biener <rguenther@suse.de>
33255
33256 PR tree-optimization/88862
33257 * graphite-scop-detection.c
33258 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33259
33260 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33261
33262 * doc/extend.tex (AMD GCN Function Attributes): New section.
33263 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33264 * doc/invoke.texi (AMD GCN Options): New section.
33265 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33266
33267 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33268
33269 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33270 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33271
33272 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33273
33274 PR tree-optimization/88044
33275 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33276 is false in the first iteration, but !every_iteration, return false
33277 instead of true with niter->niter zero.
33278
33279 PR rtl-optimization/88904
33280 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33281 any nonequal registers before processing BB_END (b).
33282
33283 PR target/88905
33284 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33285 GET_MODE (op0).
33286 (expand_binop_directly, expand_doubleword_clz,
33287 expand_doubleword_popcount, expand_ctz, expand_ffs,
33288 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33289
33290 PR rtl-optimization/49429
33291 PR target/49454
33292 PR rtl-optimization/86334
33293 PR target/88906
33294 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33295 addressable from here...
33296 (emit_block_op_via_libcall): ... to here.
33297
33298 2019-01-22 Richard Biener <rguenther@suse.de>
33299
33300 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33301 auto_vec for cost vector to fix memleak.
33302 (vectorize_fold_left_reduction): Properly gather SLP defs.
33303 (vectorizable_comparison): Do not swap operands to properly
33304 gather SLP defs.
33305
33306 2019-01-22 Alan Modra <amodra@gmail.com>
33307
33308 PR target/88614
33309 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33310 stays a reg. Allow a const_int.
33311 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33312 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33313 (IS_NOMARK_TLSGETADDR): Define.
33314 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33315 (rs6000_output_tlsargs): New function.
33316 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33317 __tls_get_addr call takes an arg.
33318 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33319 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33320 delete split..
33321 (call_value_nonlocal_sysv): ..or here, delete split.
33322 (tls_gdld_nomark): Delete.
33323 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33324 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33325 (call_value_nonlocal_sysv): Likewise.
33326 (call_value_nonlocal_sysv_secure): Likewise.
33327 (call_value_nonlocal_aix): Likewise.
33328 (call_value_indirect_aix): Likewise.
33329 (call_value_indirect_elfv2): Likewise.
33330 (call_value_local32, call_value_local64): Disable for no-mark tls.
33331 (call_value_local_aix): Likewise.
33332
33333 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33334
33335 PR target/88938
33336 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33337 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33338
33339 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33340
33341 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33342 string contents as hash_map keys.
33343
33344 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33345
33346 PR c/88928
33347 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33348 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33349 instead of TYPE_ALIGN.
33350 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33351 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33352 pointer from TYPE_STUB_DECL.
33353
33354 2019-01-21 Richard Biener <rguenther@suse.de>
33355
33356 PR tree-optimization/88934
33357 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33358 at the possibly non-constant operand.
33359 (vect_get_constant_vectors): Adjust.
33360
33361 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33362
33363 PR target/71659
33364 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33365 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33366 instead of _X86INTRIN_H_INCLUDED.
33367 * onfig/i386/clwbintrin.h: Likewise.
33368 * config/i386/pkuintrin.h: Likewise.
33369 * config/i386/prfchwintrin.h: Likewise.
33370 * config/i386/rdseedintrin.h: Likewise.
33371 * config/i386/wbnoinvdintrin.h: Likewise.
33372 * config/i386/xsavecintrin.h: Likewise.
33373 * config/i386/xsavesintrin.h: Likewise.
33374 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33375 * config/i386/xsaveintrin.h: Likewise.
33376 * config/i386/xsaveoptintrin.h: Likewise.
33377 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33378 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33379 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33380 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33381 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33382 * config/i386/immintrin.h: Here.
33383
33384 2019-01-20 Martin Jambor <mjambor@suse.cz>
33385
33386 PR ipa/87615
33387 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33388 with aa_walk_budget.
33389 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33390 aa_walk_budget_p parameter.
33391 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33392 walk. Updated all callers.
33393 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33394 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33395 unmodified_parm.
33396 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33397 parameter info. Extract info from fbi. Pass fbi to recursive calls
33398 and to unmodified_parm.
33399 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33400 info, updated call to will_be_nonconstant_expr_predicate.
33401 (param_change_prob): New parameter fbi, limit AA walking.
33402 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33403 calls to various above functions.
33404 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33405 parameter. Use it to limit AA walking.
33406 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33407 fbi, limit AA walk.
33408 (detect_type_change): New parameter fbi, pass it on to
33409 detect_type_change_from_memory_writes.
33410 (detect_type_change_ssa): Likewise.
33411 (aa_overwalked): Removed.
33412 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33413 accordingly, adjust to the neew AA limiting scheme.
33414 (parm_ref_data_preserved_p): Likewise.
33415 (ipa_compute_jump_functions_for_edge): Adjust call to
33416 get_dynamic_type.
33417 (ipa_analyze_call_uses): Likewise.
33418 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33419 (ipa_analyze_node): Initialize aa_walk_budget.
33420 (ipcp_transform_function): Likewise.
33421 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33422 to get_dynamic_type.
33423
33424 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33425
33426 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33427 outside of #if CHECKING_P code.
33428
33429 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33430
33431 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33432 New function, split out from...
33433 (loop_versioning::analyze_stride): ...here.
33434 (loop_versioning::find_per_loop_multiplication): Use gassign.
33435 (loop_versioning::analyze_term_using_scevs): Return a success code.
33436 (loop_versioning::analyze_arbitrary_term): New function.
33437 (loop_versioning::analyze_address_fragment): Use
33438 analyze_arbitrary_term if all else fails.
33439
33440 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33441
33442 PR target/88892
33443 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33444 operands.
33445
33446 2019-01-18 Richard Biener <rguenther@suse.de>
33447
33448 PR tree-optimization/88903
33449 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33450 scalar stmts a SLP shift amount is composed of when detecting
33451 shifts by scalars.
33452
33453 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33454
33455 PR target/88799
33456 * config/arm/arm-cpus.in (mp): New feature.
33457 (sec): New feature.
33458 (fgroup ARMv7ve): Add mp and sec features.
33459 (arch armv7-a): Add options to allow mp and sec extensions.
33460 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33461 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33462 extenstions to the base architecture.
33463 (cpu cortex-a8): Add sec extension to the base architecture.
33464 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33465 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33466 variants down to the base v7-a varaint.
33467 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33468 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33469 of permitted extensions for -march=armv7-a and for
33470 -mcpu=generic-armv7-a.
33471
33472 2019-01-18 Martin Liska <mliska@suse.cz>
33473
33474 * params.def: Fix comment.
33475 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33476 name.
33477 (gimple_gen_ic_func_profiler): Likewise.
33478
33479 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33480
33481 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33482 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33483 and put in error checks for stack protector guard options.
33484 (aarch64_stack_protect_guard): New.
33485 (TARGET_STACK_PROTECT_GUARD): Define.
33486 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33487 (reg_stack_protect_address<mode>): New.
33488 (stack_protect_set): Adjust for SSP_GLOBAL.
33489 (stack_protect_test): Likewise.
33490 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33491 (-mstack-protector-guard): Likewise.
33492 (-mstack-protector-guard-offset): Likewise.
33493
33494 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33495
33496 PR tree-optimization/86214
33497 * tree-inline.h (struct copy_body_data): Add
33498 add_clobbers_to_eh_landing_pads member.
33499 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33500 (copy_edges_for_bb): Call it if EH edge destination is <
33501 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33502 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33503 if flag_stack_reuse != SR_NONE and clear it afterwards.
33504
33505 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33506
33507 PR target/85596
33508 * doc/install.texi (with-multilib-list): Document for aarch64.
33509
33510 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33511
33512 PR target/88734
33513 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33514 (("..."))) with ("...").
33515
33516 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33517
33518 * doc/extend.texi (Built-in Functions for Memory Model Aware
33519 Atomic Operations): Document atomic fetch and nand.
33520
33521 2019-01-18 Martin Liska <mliska@suse.cz>
33522 Richard Biener <rguenther@suse.de>
33523
33524 PR middle-end/88587
33525 * cgraph.h (create_version_clone_with_body): Add new argument
33526 with attributes.
33527 * cgraphclones.c (cgraph_node::create_version_clone): Add
33528 DECL_ATTRIBUTES to a newly created decl. And call
33529 valid_attribute_p so that proper cl_target_optimization_node
33530 is set for the newly created declaration.
33531 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33532 for declaration.
33533 (expand_target_clones): Do not call valid_attribute_p, it must
33534 be already done.
33535 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33536 vector types.
33537
33538 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33539
33540 PR target/88734
33541 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33542 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33543 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33544
33545 2019-01-17 Martin Sebor <msebor@redhat.com>
33546
33547 PR middle-end/88273
33548 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33549 Handle anti-ranges the same as no range at all.
33550
33551 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33552
33553 * config/aarch64/aarch64.c (cgraph.h): New include.
33554 (intl.h): New include.
33555 (supported_simd_type): New function.
33556 (currently_supported_simd_type): Ditto.
33557 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33558 (aarch64_simd_clone_adjust): Ditto.
33559 (aarch64_simd_clone_usable): Ditto.
33560 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33561 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33562 (TARGET_SIMD_CLONE_USABLE): Ditto.
33563 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33564 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33565 call.
33566
33567 2019-01-17 Martin Sebor <msebor@redhat.com>
33568
33569 PR tree-optimization/88800
33570 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33571 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33572 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33573 redundant argument. Add new argument and issue diagnostics under
33574 its control. Detect out-of-bounds access even with warnings
33575 disabled.
33576 (check_bounds_or_overlap): Change return type. Add argument.
33577 (wrestrict_dom_walker::check_call): Adjust.
33578 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33579 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33580 check_bounds_or_overlap's return value.
33581 (handle_builtin_stxncpy): Same.
33582 (handle_builtin_strcat): Same.
33583
33584 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33585 Kwok Cheung Yeung <kcy@codesourcery.com>
33586 Julian Brown <julian@codesourcery.com>
33587 Tom de Vries <tom@codesourcery.com>
33588
33589 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33590
33591 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33592
33593 * doc/sourcebuild.texi: Document dg-require-effective-target
33594 llvm_binutils and offload_gcn.
33595
33596 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33597 Kwok Cheung Yeung <kcy@codesourcery.com>
33598 Julian Brown <julian@codesourcery.com>
33599 Tom de Vries <tom@codesourcery.com>
33600
33601 * doc/sourcebuild.texi: Document dg-required-effective-target
33602 exceptions.
33603
33604 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33605 Kwok Cheung Yeung <kcy@codesourcery.com>
33606 Julian Brown <julian@codesourcery.com>
33607 Tom de Vries <tom@codesourcery.com>
33608 Jan Hubicka <hubicka@ucw.cz>
33609 Martin Jambor <mjambor@suse.cz>
33610
33611 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33612 * configure.ac: Check for dlopen.
33613 * configure: Regenerate.
33614
33615 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33616 Kwok Cheung Yeung <kcy@codesourcery.com>
33617 Julian Brown <julian@codesourcery.com>
33618 Tom de Vries <tom@codesourcery.com>
33619 Jan Hubicka <hubicka@ucw.cz>
33620 Martin Jambor <mjambor@suse.cz>
33621
33622 * common/config/gcn/gcn-common.c: New file.
33623 * config/gcn/driver-gcn.c: New file.
33624 * config/gcn/gcn-builtins.def: New file.
33625 * config/gcn/gcn-hsa.h: New file.
33626 * config/gcn/gcn-modes.def: New file.
33627 * config/gcn/gcn-opts.h: New file.
33628 * config/gcn/gcn-passes.def: New file.
33629 * config/gcn/gcn-protos.h: New file.
33630 * config/gcn/gcn-run.c: New file.
33631 * config/gcn/gcn-tree.c: New file.
33632 * config/gcn/gcn.c: New file.
33633 * config/gcn/gcn.h: New file.
33634 * config/gcn/gcn.opt: New file.
33635 * config/gcn/t-gcn-hsa: New file.
33636
33637 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33638 Kwok Cheung Yeung <kcy@codesourcery.com>
33639 Julian Brown <julian@codesourcery.com>
33640 Tom de Vries <tom@codesourcery.com>
33641 Jan Hubicka <hubicka@ucw.cz>
33642 Martin Jambor <mjambor@suse.cz>
33643
33644 * config/gcn/constraints.md: New file.
33645 * config/gcn/gcn-valu.md: New file.
33646 * config/gcn/gcn.md: New file.
33647 * config/gcn/predicates.md: New file.
33648
33649 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33650
33651 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33652 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33653 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33654 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33655
33656 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33657
33658 PR target/88851
33659 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33660 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33661 it and document registers.
33662
33663 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33664
33665 * config/aarch64/aarch64.c (ares_tunings): Define.
33666 * config/aarch64/aarch64-cores.def (ares): Use the above.
33667
33668 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33669
33670 PR target/88794
33671 Revert:
33672 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33673
33674 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33675 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33676 (_mm512_maskz_fixupimm_round_pd): Ditto.
33677 (_mm512_fixupimm_round_ps): Ditto.
33678 (_mm512_maskz_fixupimm_round_ps): Ditto.
33679 (_mm_fixupimm_round_sd): Ditto.
33680 (_mm_maskz_fixupimm_round_sd): Ditto.
33681 (_mm_fixupimm_round_ss): Ditto.
33682 (_mm_maskz_fixupimm_round_ss): Ditto.
33683 (_mm512_fixupimm_pd): Ditto.
33684 (_mm512_maskz_fixupimm_pd): Ditto.
33685 (_mm512_fixupimm_ps): Ditto.
33686 (_mm512_maskz_fixupimm_ps): Ditto.
33687 (_mm_fixupimm_sd): Ditto.
33688 (_mm_maskz_fixupimm_sd): Ditto.
33689 (_mm_fixupimm_ss): Ditto.
33690 (_mm_maskz_fixupimm_ss): Ditto.
33691 (_mm512_mask_fixupimm_round_pd): Update builtin.
33692 (_mm512_mask_fixupimm_round_ps): Ditto.
33693 (_mm_mask_fixupimm_round_sd): Ditto.
33694 (_mm_mask_fixupimm_round_ss): Ditto.
33695 (_mm512_mask_fixupimm_pd): Ditto.
33696 (_mm512_mask_fixupimm_ps): Ditto.
33697 (_mm_mask_fixupimm_sd): Ditto.
33698 (_mm_mask_fixupimm_ss): Ditto.
33699 * config/i386/avx512vlintrin.h:
33700 (_mm256_fixupimm_pd): Update parameters and builtin.
33701 (_mm256_maskz_fixupimm_pd): Ditto.
33702 (_mm256_fixupimm_ps): Ditto.
33703 (_mm256_maskz_fixupimm_ps): Ditto.
33704 (_mm_fixupimm_pd): Ditto.
33705 (_mm_maskz_fixupimm_pd): Ditto.
33706 (_mm_fixupimm_ps): Ditto.
33707 (_mm_maskz_fixupimm_ps): Ditto.
33708 (_mm256_mask_fixupimm_pd): Update builtin.
33709 (_mm256_mask_fixupimm_ps): Ditto.
33710 (_mm_mask_fixupimm_pd): Ditto.
33711 (_mm_mask_fixupimm_ps): Ditto.
33712 * config/i386/i386-builtin-types.def: Add new types and remove
33713 useless ones.
33714 * config/i386/i386-builtin.def: Update builtin definitions.
33715 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33716 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33717 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33718 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33719 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33720 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33721 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33722 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33723 * config/i386/subst.md:
33724 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33725 (round_saeonly_sd_mask_op4): Ditto.
33726 (round_saeonly_expand_operand5): Ditto.
33727 (round_saeonly_expand): Update.
33728
33729 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33730
33731 PR target/88794
33732 Revert:
33733 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33734
33735 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33736 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33737 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33738 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33739 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33740 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33741 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33742
33743 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33744
33745 PR target/88794
33746 Revert:
33747 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33748
33749 PR target/88489
33750 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33751 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33752 instead of UNSPEC_FIXUPIMM.
33753
33754 2019-01-17 Richard Biener <rguenther@suse.de>
33755
33756 PR lto/86736
33757 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33758 and friends for the LTO part of debug info.
33759
33760 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33761
33762 PR tree-optimization/86214
33763 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33764 if x == y.
33765
33766 PR rtl-optimization/88870
33767 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33768 throw if we can't alter the cfg or delete dead exceptions.
33769 (mark_insn): Don't call find_call_stack_args for such calls.
33770
33771 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33772
33773 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33774 prototypes for vec_st.
33775 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33776 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33777 mainly on signed/unsigned long long and double.
33778
33779 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33780
33781 PR target/88861
33782 * combine.c (delete_noop_moves): Convert to "bool" return,
33783 returning true if any edges are eliminated.
33784 (combine_instructions): Also return true if delete_noop_moves
33785 returns true.
33786
33787 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33788
33789 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33790 correct max nunits for endian swap.
33791 (aarch64_expand_fcmla_builtin): Correct subreg code.
33792 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33793 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33794 lane endianness.
33795
33796 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33797
33798 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33799 Handle split indirect COMPLEX_TYPE arguments.
33800
33801 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33802
33803 PR target/86891
33804 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33805 bit is set by add and compare.
33806 (CC_ADC): New CC_MODE.
33807 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33808 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33809 comparison. Add detection for CC_ADCmode.
33810 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33811 CC_ADCmode.
33812 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33813 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33814 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33815 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33816 to eliminate the need for zero-extending the operands.
33817 (add<mode>3_compareC_imm): Delete. Merge into ...
33818 (add<mode>3_compareC): ... this. Restructure the comparison to
33819 eliminate the need for zero-extending the operands.
33820 (add<mode>3_carryin): Use LTU for the overflow detection.
33821 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33822 Reexpress comparison for overflow.
33823 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33824 (add<mode>3_carryinC): Likewise.
33825 (add<mode>3_carryinV): Use LTU for carry between partials.
33826 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33827 handling of CC_Cmode and add CC_ADCmode.
33828 (aarch64_borrow_operation): Likewise.
33829
33830 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33831
33832 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33833 Remove patternmode.
33834 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33835 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33836 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33837 Remove endianness conversion.
33838
33839 2019-01-16 Martin Liska <mliska@suse.cz>
33840
33841 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33842 for GCC driver.
33843 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33844 a new argument.
33845 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33846 (path_prefix_reset): Move up in the source file.
33847 (find_fortran_preinclude_file): Make complex search for the
33848 fortran header files.
33849
33850 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33851
33852 * godump.c (go_output_typedef): When outputting a typedef, refer
33853 to the underlying type by its name and not its structure.
33854
33855 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33856
33857 PR c++/88795
33858 * tree.c (build_function_type): Assert that arg_types is not
33859 error_mark_node.
33860
33861 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33862
33863 PR inline-asm/52813
33864 * doc/extend.texi: Document that listing the stack pointer in the
33865 clobber list of an asm is a deprecated feature.
33866 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33867 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33868 warning instead of an error for clobbers of the stack pointer.
33869 Add a note explaining why.
33870
33871 2019-01-15 Richard Biener <rguenther@suse.de>
33872
33873 PR debug/88046
33874 * dwarf2out.c (gen_member_die): Do not generate inheritance
33875 DIEs late.
33876
33877 2019-01-15 Richard Biener <rguenther@suse.de>
33878
33879 PR tree-optimization/88855
33880 * tree-if-conv.c (combine_blocks): Collect
33881 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33882
33883 2019-01-15 Tom de Vries <tdevries@suse.de>
33884
33885 PR target/80547
33886 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33887 lhs == NULL_TREE for gang-level reduction.
33888
33889 2019-01-15 Richard Biener <rguenther@suse.de>
33890 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33891
33892 PR ipa/88788
33893 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33894 return true if SSA_NAME is already marked in visited bitmap.
33895 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33896
33897 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33898
33899 PR tree-optimization/88775
33900 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33901 equal == 0 equality pointer comparisons some more if compared in
33902 integral types and either one points to an automatic var and the
33903 other to a global, or we can prove at least one points to the middle
33904 or both point to start or both point to end.
33905
33906 2019-01-14 Andi Kleen <ak@linux.intel.com>
33907
33908 * Makefile.in: Lower autofdo sampling rate by 10x.
33909 * Makefile.tpl: Dito.
33910
33911 2019-01-14 Tom Honermann <tom@honermann.net>
33912
33913 * defaults.h: Define CHAR8_TYPE.
33914
33915 2019-01-14 Martin Sebor <msebor@redhat.com>
33916
33917 PR target/88638
33918 * doc/extend.texi (Darwin Format Checks): Clarify.
33919
33920 2019-01-14 Richard Biener <rguenther@suse.de>
33921
33922 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33923 whether we are in (simplify ...) or (match ...) context.
33924
33925 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33926
33927 PR rtl-optimization/88796
33928 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33929 * cfgexpand.c (stack_protect_prologue): Initialize
33930 crtl->stack_protect_guard_decl.
33931 * function.c (stack_protect_epilogue): Use it instead of calling
33932 targetm.stack_protect_guard again.
33933 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33934 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33935 crtl->stack_protect_guard_decl.
33936 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33937 on the returned MEM_EXPR.
33938
33939 2019-01-12 Tom de Vries <tdevries@suse.de>
33940
33941 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33942 vector length using -fopenacc-dim.
33943
33944 2019-01-12 Tom de Vries <tdevries@suse.de>
33945
33946 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33947 lengths into account.
33948
33949 2019-01-12 Svante Signell <svante.signell@gmail.com>
33950
33951 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33952 (TARGET_CAN_SPLIT_STACK): Define.
33953 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33954
33955 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33956
33957 * params.def (inline-unit-growth): Set to 40.
33958
33959 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33960
33961 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33962
33963 2019-01-12 Tom de Vries <tdevries@suse.de>
33964
33965 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33966 region calling vector-partitionable routine, set default_vector_length
33967 to WARP_SIZE.
33968
33969 2019-01-12 Tom de Vries <tdevries@suse.de>
33970
33971 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33972 variable default_vector_length.
33973
33974 2019-01-12 Tom de Vries <tdevries@suse.de>
33975
33976 PR middle-end/88703
33977 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33978 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33979 dimensions limits.
33980
33981 2019-01-12 Tom de Vries <tdevries@suse.de>
33982
33983 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33984 (nvptx_goacc_validate_dims): Add used parameter.
33985 * doc/tm.texi: Regenerate.
33986 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33987 argument to call to targetm.goacc.validate_dims.
33988 (default_goacc_validate_dims): Add used
33989 parameter.
33990 * target.def (validate_dims): Add used parameter in DEFHOOK.
33991 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33992
33993 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33994
33995 PR middle-end/85956
33996 PR lto/88733
33997 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33998 field.
33999 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34000 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34001 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34002 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34003
34004 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34005
34006 PR rtl-optimization/87305
34007 * lra-assigns.c
34008 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34009 for little endian pseudos used as paradoxical subreg.
34010
34011 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34012
34013 PR tree-optimization/88693
34014 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34015 for STRING_CSTs that don't contain any NUL characters in the first
34016 TREE_STRING_LENGTH bytes.
34017
34018 2019-01-11 Alan Modra <amodra@gmail.com>
34019
34020 PR 88777
34021 PR 88614
34022 * genattrtab.c (min_fn): Don't translate values.
34023 (min_attr_value): Return INT_MAX when the value can't be calculated.
34024 Return minimum among any values that can be calculated.
34025 (max_attr_value): Adjust.
34026
34027 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34028
34029 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34030
34031 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34032
34033 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34034 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34035 (aarch64_return_call_with_max_clobbers): New function.
34036 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34037 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34038 argument.
34039 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34040 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34041 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34042 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34043 * cselib.c (cselib_process_insn): Add argument to
34044 targetm.hard_regno_call_part_clobbered call.
34045 * ira-conflicts.c (ira_build_conflicts): Ditto.
34046 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34047 * lra-constraints.c (inherit_reload_reg): Ditto.
34048 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34049 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34050 argument. Call targetm.return_call_with_max_clobbers.
34051 Add argument to targetm.hard_regno_call_part_clobbered call.
34052 (calls_have_same_clobbers_p): New function.
34053 (process_bb_lives): Add call_insn and last_call_insn variables.
34054 Pass call_insn to check_pseudos_live_through_calls.
34055 Modify if stmt to check targetm.return_call_with_max_clobbers.
34056 Update setting of flush variable.
34057 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34058 to false.
34059 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34060 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34061 targetm.hard_regno_call_part_clobbered call.
34062 * reginfo.c (choose_hard_reg_mode): Ditto.
34063 * regrename.c (check_new_reg_p): Ditto.
34064 * reload.c (find_equiv_reg): Ditto.
34065 * reload1.c (emit_reload_insns): Ditto.
34066 * sched-deps.c (deps_analyze_insn): Ditto.
34067 * sel-sched.c (init_regs_for_mode): Ditto.
34068 (mark_unavailable_hard_regs): Ditto.
34069 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34070 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34071 (return_call_with_max_clobbers): New target function.
34072 * doc/tm.texi: Regenerate.
34073 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34074 * hooks.c (hook_bool_uint_mode_false): Change to
34075 hook_bool_insn_uint_mode_false.
34076 * hooks.h (hook_bool_uint_mode_false): Ditto.
34077
34078 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34079
34080 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34081 (aarch64_remove_extra_call_preserved_regs): New function.
34082 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34083 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34084 * doc/tm.texi: Regenerate.
34085 * final.c (get_call_reg_set_usage): Call new hook.
34086 * target.def (remove_extra_call_preserved_regs): New hook.
34087 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34088 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34089
34090 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34091
34092 PR bootstrap/88714
34093 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34094 inside of pass_combine_1 dump rather than pass_profile_1.
34095
34096 2019-01-11 Tom de Vries <tdevries@suse.de>
34097
34098 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34099 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34100 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34101 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34102 num_workers 16.
34103
34104 2019-01-11 Tom de Vries <tdevries@suse.de>
34105
34106 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34107
34108 2019-01-11 Jan Beulich <jbeulich@suse.com>
34109
34110 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34111 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34112 sse2_cvtsi2sd): Add {l}.
34113 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34114 syntax.
34115
34116 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34117
34118 PR target/88785
34119 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34120 define_expand.
34121 (*float<floatunssuffix>v2div2sf2): New define_insn.
34122 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34123 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34124 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34125 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34126 match_operands with "const0_operand" "C".
34127
34128 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34129
34130 * config/aarch64/aarch64-builtins.c
34131 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34132 (aarch64_init_simd_builtins): ...Here
34133
34134 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34135
34136 PR rtl-optimization/87305
34137 * lra-assigns.c
34138 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34139 allocation for big endian pseudos used as paradoxical subregs and
34140 spill them if it is wrong.
34141 * lra-constraints.c (lra_constraints): Add a comment.
34142
34143 2019-01-10 Richard Biener <rguenther@suse.de>
34144
34145 PR tree-optimization/88792
34146 * tree-ssa-pre.c (get_representative_for): Do not return a
34147 value-number here.
34148
34149 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34150
34151 PR middle-end/84877
34152 PR bootstrap/88450
34153 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34154 (assign_parm_setup_block): Do the argument slot realignment here
34155 instead.
34156
34157 2019-01-10 Stefan Agner <stefan@agner.ch>
34158
34159 PR target/88648
34160 * config/arm/arm.c (arm_option_override_internal): Force
34161 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34162
34163 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34164
34165 PR c/88568
34166 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34167 DECL_EXTERNAL.
34168
34169 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34170
34171 * config/arm/arm-builtins.c
34172 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34173 (MAC_LANE_PAIR_QUALIFIERS): New.
34174 (arm_expand_builtin_args): Use it.
34175 (arm_expand_builtin_1): Likewise.
34176 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34177 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34178 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34179 * config/arm/arm_neon.h:
34180 (vcadd_rot90_f16): New.
34181 (vcaddq_rot90_f16): New.
34182 (vcadd_rot270_f16): New.
34183 (vcaddq_rot270_f16): New.
34184 (vcmla_f16): New.
34185 (vcmlaq_f16): New.
34186 (vcmla_lane_f16): New.
34187 (vcmla_laneq_f16): New.
34188 (vcmlaq_lane_f16): New.
34189 (vcmlaq_laneq_f16): New.
34190 (vcmla_rot90_f16): New.
34191 (vcmlaq_rot90_f16): New.
34192 (vcmla_rot90_lane_f16): New.
34193 (vcmla_rot90_laneq_f16): New.
34194 (vcmlaq_rot90_lane_f16): New.
34195 (vcmlaq_rot90_laneq_f16): New.
34196 (vcmla_rot180_f16): New.
34197 (vcmlaq_rot180_f16): New.
34198 (vcmla_rot180_lane_f16): New.
34199 (vcmla_rot180_laneq_f16): New.
34200 (vcmlaq_rot180_lane_f16): New.
34201 (vcmlaq_rot180_laneq_f16): New.
34202 (vcmla_rot270_f16): New.
34203 (vcmlaq_rot270_f16): New.
34204 (vcmla_rot270_lane_f16): New.
34205 (vcmla_rot270_laneq_f16): New.
34206 (vcmlaq_rot270_lane_f16): New.
34207 (vcmlaq_rot270_laneq_f16): New.
34208 (vcadd_rot90_f32): New.
34209 (vcaddq_rot90_f32): New.
34210 (vcadd_rot270_f32): New.
34211 (vcaddq_rot270_f32): New.
34212 (vcmla_f32): New.
34213 (vcmlaq_f32): New.
34214 (vcmla_lane_f32): New.
34215 (vcmla_laneq_f32): New.
34216 (vcmlaq_lane_f32): New.
34217 (vcmlaq_laneq_f32): New.
34218 (vcmla_rot90_f32): New.
34219 (vcmlaq_rot90_f32): New.
34220 (vcmla_rot90_lane_f32): New.
34221 (vcmla_rot90_laneq_f32): New.
34222 (vcmlaq_rot90_lane_f32): New.
34223 (vcmlaq_rot90_laneq_f32): New.
34224 (vcmla_rot180_f32): New.
34225 (vcmlaq_rot180_f32): New.
34226 (vcmla_rot180_lane_f32): New.
34227 (vcmla_rot180_laneq_f32): New.
34228 (vcmlaq_rot180_lane_f32): New.
34229 (vcmlaq_rot180_laneq_f32): New.
34230 (vcmla_rot270_f32): New.
34231 (vcmlaq_rot270_f32): New.
34232 (vcmla_rot270_lane_f32): New.
34233 (vcmla_rot270_laneq_f32): New.
34234 (vcmlaq_rot270_lane_f32): New.
34235 (vcmlaq_rot270_laneq_f32): New.
34236 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34237 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34238 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34239 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34240 vcmlaq_lane270): New.
34241 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34242 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34243 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34244 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34245 (arm_option_reconfigure_globals): Use them.
34246 * config/arm/iterators.md (VDF, VQ_HSF): New.
34247 (VCADD, VCMLA): New.
34248 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34249 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34250 New.
34251 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34252 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34253
34254 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34255
34256 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34257 Add qualifier_lane_pair_index.
34258 (emit-rtl.h): Include.
34259 (TYPES_QUADOP_LANE_PAIR): New.
34260 (aarch64_simd_expand_args): Use it.
34261 (aarch64_simd_expand_builtin): Likewise.
34262 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34263 New.
34264 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34265 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34266 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34267 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34268 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34269 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34270 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34271 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34272 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34273 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34274 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34275 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34276 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34277 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34278 Add __ARM_FEATURE_COMPLEX.
34279 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34280 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34281 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34282 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34283 fcmlaq_lane270): New.
34284 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34285 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34286 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34287 * config/aarch64/arm_neon.h:
34288 (vcadd_rot90_f16): New.
34289 (vcaddq_rot90_f16): New.
34290 (vcadd_rot270_f16): New.
34291 (vcaddq_rot270_f16): New.
34292 (vcmla_f16): New.
34293 (vcmlaq_f16): New.
34294 (vcmla_lane_f16): New.
34295 (vcmla_laneq_f16): New.
34296 (vcmlaq_lane_f16): New.
34297 (vcmlaq_rot90_lane_f16): New.
34298 (vcmla_rot90_laneq_f16): New.
34299 (vcmla_rot90_lane_f16): New.
34300 (vcmlaq_rot90_f16): New.
34301 (vcmla_rot90_f16): New.
34302 (vcmlaq_laneq_f16): New.
34303 (vcmla_rot180_laneq_f16): New.
34304 (vcmla_rot180_lane_f16): New.
34305 (vcmlaq_rot180_f16): New.
34306 (vcmla_rot180_f16): New.
34307 (vcmlaq_rot90_laneq_f16): New.
34308 (vcmlaq_rot270_laneq_f16): New.
34309 (vcmlaq_rot270_lane_f16): New.
34310 (vcmla_rot270_laneq_f16): New.
34311 (vcmlaq_rot270_f16): New.
34312 (vcmla_rot270_f16): New.
34313 (vcmlaq_rot180_laneq_f16): New.
34314 (vcmlaq_rot180_lane_f16): New.
34315 (vcmla_rot270_lane_f16): New.
34316 (vcadd_rot90_f32): New.
34317 (vcaddq_rot90_f32): New.
34318 (vcaddq_rot90_f64): New.
34319 (vcadd_rot270_f32): New.
34320 (vcaddq_rot270_f32): New.
34321 (vcaddq_rot270_f64): New.
34322 (vcmla_f32): New.
34323 (vcmlaq_f32): New.
34324 (vcmlaq_f64): New.
34325 (vcmla_lane_f32): New.
34326 (vcmla_laneq_f32): New.
34327 (vcmlaq_lane_f32): New.
34328 (vcmlaq_laneq_f32): New.
34329 (vcmla_rot90_f32): New.
34330 (vcmlaq_rot90_f32): New.
34331 (vcmlaq_rot90_f64): New.
34332 (vcmla_rot90_lane_f32): New.
34333 (vcmla_rot90_laneq_f32): New.
34334 (vcmlaq_rot90_lane_f32): New.
34335 (vcmlaq_rot90_laneq_f32): New.
34336 (vcmla_rot180_f32): New.
34337 (vcmlaq_rot180_f32): New.
34338 (vcmlaq_rot180_f64): New.
34339 (vcmla_rot180_lane_f32): New.
34340 (vcmla_rot180_laneq_f32): New.
34341 (vcmlaq_rot180_lane_f32): New.
34342 (vcmlaq_rot180_laneq_f32): New.
34343 (vcmla_rot270_f32): New.
34344 (vcmlaq_rot270_f32): New.
34345 (vcmlaq_rot270_f64): New.
34346 (vcmla_rot270_lane_f32): New.
34347 (vcmla_rot270_laneq_f32): New.
34348 (vcmlaq_rot270_lane_f32): New.
34349 (vcmlaq_rot270_laneq_f32): New.
34350 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34351 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34352 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34353 (FCADD, FCMLA): New.
34354 (rot): New.
34355 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34356
34357 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34358
34359 PR other/16615
34360
34361 * config/pa/pa.c: Change "can not" to "cannot".
34362 * gimple-ssa-evrp-analyze.c: Likewise.
34363 * ipa-icf.c: Likewise.
34364 * ipa-polymorphic-call.c: Likewise.
34365 * ipa-pure-const.c: Likewise.
34366 * lra-constraints.c: Likewise.
34367 * lra-remat.c: Likewise.
34368 * reload1.c: Likewise.
34369 * reorg.c: Likewise.
34370 * tree-ssa-uninit.c: Likewise.
34371
34372 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34373
34374 PR other/16615
34375
34376 * Makefile.in: Mechanically replace "can not" with "cannot".
34377 * alias.c: Likewise.
34378 * builtins.c: Likewise.
34379 * calls.c: Likewise.
34380 * cgraph.c: Likewise.
34381 * cgraph.h: Likewise.
34382 * cgraphclones.c: Likewise.
34383 * cgraphunit.c: Likewise.
34384 * combine-stack-adj.c: Likewise.
34385 * combine.c: Likewise.
34386 * common/config/i386/i386-common.c: Likewise.
34387 * config/aarch64/aarch64.c: Likewise.
34388 * config/alpha/sync.md: Likewise.
34389 * config/arc/arc.c: Likewise.
34390 * config/arc/predicates.md: Likewise.
34391 * config/arm/arm-c.c: Likewise.
34392 * config/arm/arm.c: Likewise.
34393 * config/arm/arm.h: Likewise.
34394 * config/arm/arm.md: Likewise.
34395 * config/arm/cortex-r4f.md: Likewise.
34396 * config/csky/csky.c: Likewise.
34397 * config/csky/csky.h: Likewise.
34398 * config/darwin-f.c: Likewise.
34399 * config/epiphany/epiphany.md: Likewise.
34400 * config/i386/i386.c: Likewise.
34401 * config/i386/sol2.h: Likewise.
34402 * config/m68k/m68k.c: Likewise.
34403 * config/mcore/mcore.h: Likewise.
34404 * config/microblaze/microblaze.md: Likewise.
34405 * config/mips/20kc.md: Likewise.
34406 * config/mips/sb1.md: Likewise.
34407 * config/nds32/nds32.c: Likewise.
34408 * config/nds32/predicates.md: Likewise.
34409 * config/pa/pa.c: Likewise.
34410 * config/rs6000/e300c2c3.md: Likewise.
34411 * config/rs6000/rs6000.c: Likewise.
34412 * config/s390/s390.h: Likewise.
34413 * config/sh/sh.c: Likewise.
34414 * config/sh/sh.md: Likewise.
34415 * config/spu/vmx2spu.h: Likewise.
34416 * cprop.c: Likewise.
34417 * dbxout.c: Likewise.
34418 * df-scan.c: Likewise.
34419 * doc/cfg.texi: Likewise.
34420 * doc/extend.texi: Likewise.
34421 * doc/fragments.texi: Likewise.
34422 * doc/gty.texi: Likewise.
34423 * doc/invoke.texi: Likewise.
34424 * doc/lto.texi: Likewise.
34425 * doc/md.texi: Likewise.
34426 * doc/objc.texi: Likewise.
34427 * doc/rtl.texi: Likewise.
34428 * doc/tm.texi: Likewise.
34429 * dse.c: Likewise.
34430 * emit-rtl.c: Likewise.
34431 * emit-rtl.h: Likewise.
34432 * except.c: Likewise.
34433 * expmed.c: Likewise.
34434 * expr.c: Likewise.
34435 * fold-const.c: Likewise.
34436 * genautomata.c: Likewise.
34437 * gimple-fold.c: Likewise.
34438 * hard-reg-set.h: Likewise.
34439 * ifcvt.c: Likewise.
34440 * ipa-comdats.c: Likewise.
34441 * ipa-cp.c: Likewise.
34442 * ipa-devirt.c: Likewise.
34443 * ipa-fnsummary.c: Likewise.
34444 * ipa-icf.c: Likewise.
34445 * ipa-inline-transform.c: Likewise.
34446 * ipa-inline.c: Likewise.
34447 * ipa-polymorphic-call.c: Likewise.
34448 * ipa-profile.c: Likewise.
34449 * ipa-prop.c: Likewise.
34450 * ipa-pure-const.c: Likewise.
34451 * ipa-reference.c: Likewise.
34452 * ipa-split.c: Likewise.
34453 * ipa-visibility.c: Likewise.
34454 * ipa.c: Likewise.
34455 * ira-build.c: Likewise.
34456 * ira-color.c: Likewise.
34457 * ira-conflicts.c: Likewise.
34458 * ira-costs.c: Likewise.
34459 * ira-int.h: Likewise.
34460 * ira-lives.c: Likewise.
34461 * ira.c: Likewise.
34462 * ira.h: Likewise.
34463 * loop-invariant.c: Likewise.
34464 * loop-unroll.c: Likewise.
34465 * lower-subreg.c: Likewise.
34466 * lra-assigns.c: Likewise.
34467 * lra-constraints.c: Likewise.
34468 * lra-eliminations.c: Likewise.
34469 * lra-lives.c: Likewise.
34470 * lra-remat.c: Likewise.
34471 * lra-spills.c: Likewise.
34472 * lra.c: Likewise.
34473 * lto-cgraph.c: Likewise.
34474 * lto-streamer-out.c: Likewise.
34475 * postreload-gcse.c: Likewise.
34476 * predict.c: Likewise.
34477 * profile-count.h: Likewise.
34478 * profile.c: Likewise.
34479 * recog.c: Likewise.
34480 * ree.c: Likewise.
34481 * reload.c: Likewise.
34482 * reload1.c: Likewise.
34483 * reorg.c: Likewise.
34484 * resource.c: Likewise.
34485 * rtl.def: Likewise.
34486 * rtl.h: Likewise.
34487 * rtlanal.c: Likewise.
34488 * sched-deps.c: Likewise.
34489 * sched-ebb.c: Likewise.
34490 * sched-rgn.c: Likewise.
34491 * sel-sched-ir.c: Likewise.
34492 * sel-sched.c: Likewise.
34493 * shrink-wrap.c: Likewise.
34494 * simplify-rtx.c: Likewise.
34495 * symtab.c: Likewise.
34496 * target.def: Likewise.
34497 * toplev.c: Likewise.
34498 * tree-call-cdce.c: Likewise.
34499 * tree-cfg.c: Likewise.
34500 * tree-complex.c: Likewise.
34501 * tree-core.h: Likewise.
34502 * tree-eh.c: Likewise.
34503 * tree-inline.c: Likewise.
34504 * tree-loop-distribution.c: Likewise.
34505 * tree-nrv.c: Likewise.
34506 * tree-profile.c: Likewise.
34507 * tree-sra.c: Likewise.
34508 * tree-ssa-alias.c: Likewise.
34509 * tree-ssa-dce.c: Likewise.
34510 * tree-ssa-dom.c: Likewise.
34511 * tree-ssa-forwprop.c: Likewise.
34512 * tree-ssa-loop-im.c: Likewise.
34513 * tree-ssa-loop-ivcanon.c: Likewise.
34514 * tree-ssa-loop-ivopts.c: Likewise.
34515 * tree-ssa-loop-niter.c: Likewise.
34516 * tree-ssa-phionlycprop.c: Likewise.
34517 * tree-ssa-phiopt.c: Likewise.
34518 * tree-ssa-propagate.c: Likewise.
34519 * tree-ssa-threadedge.c: Likewise.
34520 * tree-ssa-threadupdate.c: Likewise.
34521 * tree-ssa-uninit.c: Likewise.
34522 * tree-ssanames.c: Likewise.
34523 * tree-streamer-out.c: Likewise.
34524 * tree.c: Likewise.
34525 * tree.h: Likewise.
34526 * vr-values.c: Likewise.
34527
34528 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34529
34530 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34531 (ix86_split_xorsign): Ditto.
34532 * config/i386/i386.c (ix86_expand_xorsign): New function.
34533 (ix86_split_xorsign): Ditto.
34534 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34535 (xorsign<mode>3): New expander.
34536 (xorsign<mode>3_1): New insn_and_split pattern.
34537 * config/i386/sse.md (xorsign<mode>3): New expander.
34538
34539 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34540
34541 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34542 (*tablejump_sp64): Likewise.
34543 (*tablejump<P:mode>): ...this.
34544 (*call_address_sp32): Merge into...
34545 (*call_address_sp64): Likewise.
34546 (*call_address<P:mode>): ...this.
34547 (*call_symbolic_sp32): Merge into...
34548 (*call_symbolic_sp64): Likewise.
34549 (*call_symbolic<P:mode>): ...this.
34550 (call_value): Remove constraint and add predicate.
34551 (*call_value_address_sp32): Merge into...
34552 (*call_value_address_sp64): Likewise.
34553 (*call_value_address<P:mode>): ...this.
34554 (*call_value_symbolic_sp32): Merge into...
34555 (*call_value_symbolic_sp64): Likewise.
34556 (*call_value_symbolic<P:mode>): ...this.
34557 (*sibcall_symbolic_sp32): Merge into...
34558 (*sibcall_symbolic_sp64): Likewise.
34559 (*sibcall_symbolic<P:mode>): ...this.
34560 (sibcall_value): Remove constraint and add predicate.
34561 (*sibcall_value_symbolic_sp32): Merge into...
34562 (*sibcall_value_symbolic_sp64): Likewise.
34563 (*sibcall_value_symbolic<P:mode>): ...this.
34564 (window_save): Minor tweak.
34565 (*branch_sp32): Merge into...
34566 (*branch_sp64): Likewise.
34567 (*branch<P:mode>): ...this.
34568
34569 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34570 James Clarke <jrtc27@jrtc27.com>
34571
34572 PR target/84010
34573 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34574 consistently in TLS address generation and adjust code to the renaming
34575 of patterns. Mark calls to __tls_get_addr as const.
34576 * config/sparc/sparc.md (tgd_hi22): Turn into...
34577 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34578 (tgd_lo10): Turn into...
34579 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34580 (tgd_add32): Merge into...
34581 (tgd_add64): Likewise.
34582 (tgd_add<P:mode>): ...this and use Pmode throughout.
34583 (tldm_hi22): Turn into...
34584 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34585 (tldm_lo10): Turn into...
34586 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34587 (tldm_add32): Merge into...
34588 (tldm_add64): Likewise.
34589 (tldm_add<P:mode>): ...this and use Pmode throughout.
34590 (tldm_call32): Merge into...
34591 (tldm_call64): Likewise.
34592 (tldm_call<P:mode>): ...this and use Pmode throughout.
34593 (tldo_hix22): Turn into...
34594 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34595 (tldo_lox10): Turn into...
34596 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34597 (tldo_add32): Merge into...
34598 (tldo_add64): Likewise.
34599 (tldo_add<P:mode>): ...this and use Pmode throughout.
34600 (tie_hi22): Turn into...
34601 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34602 (tie_lo10): Turn into...
34603 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34604 (tie_ld64): Use DImode throughout.
34605 (tie_add32): Merge into...
34606 (tie_add64): Likewise.
34607 (tie_add<P:mode>): ...this and use Pmode throughout.
34608 (tle_hix22_sp32): Merge into...
34609 (tle_hix22_sp64): Likewise.
34610 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34611 (tle_lox22_sp32): Merge into...
34612 (tle_lox22_sp64): Likewise.
34613 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34614 (*tldo_ldub_sp32): Merge into...
34615 (*tldo_ldub_sp64): Likewise.
34616 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34617 (*tldo_ldub1_sp32): Merge into...
34618 (*tldo_ldub1_sp64): Likewise.
34619 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34620 (*tldo_ldub2_sp32): Merge into...
34621 (*tldo_ldub2_sp64): Likewise.
34622 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34623 (*tldo_ldsb1_sp32): Merge into...
34624 (*tldo_ldsb1_sp64): Likewise.
34625 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34626 (*tldo_ldsb2_sp32): Merge into...
34627 (*tldo_ldsb2_sp64): Likewise.
34628 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34629 (*tldo_ldub3_sp64): Use DImode throughout.
34630 (*tldo_ldsb3_sp64): Likewise.
34631 (*tldo_lduh_sp32): Merge into...
34632 (*tldo_lduh_sp64): Likewise.
34633 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34634 (*tldo_lduh1_sp32): Merge into...
34635 (*tldo_lduh1_sp64): Likewise.
34636 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34637 (*tldo_ldsh1_sp32): Merge into...
34638 (*tldo_ldsh1_sp64): Likewise.
34639 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34640 (*tldo_lduh2_sp64): Use DImode throughout.
34641 (*tldo_ldsh2_sp64): Likewise.
34642 (*tldo_lduw_sp32): Merge into...
34643 (*tldo_lduw_sp64): Likewise.
34644 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34645 (*tldo_lduw1_sp64): Use DImode throughout.
34646 (*tldo_ldsw1_sp64): Likewise.
34647 (*tldo_ldx_sp64): Likewise.
34648 (*tldo_stb_sp32): Merge into...
34649 (*tldo_stb_sp64): Likewise.
34650 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34651 (*tldo_sth_sp32): Merge into...
34652 (*tldo_sth_sp64): Likewise.
34653 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34654 (*tldo_stw_sp32): Merge into...
34655 (*tldo_stw_sp64): Likewise.
34656 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34657 (*tldo_stx_sp64): Use DImode throughout.
34658
34659 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34660
34661 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34662 check configure option to set BTI and Return Address Signing.
34663 * configure.ac: Add --enable-standard-branch-protection and
34664 --disable-standard-branch-protection.
34665 * configure: Regenerated.
34666 * doc/install.texi: Document the same.
34667
34668 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34669 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34670
34671 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34672 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34673 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34674 if bti is enabled.
34675 * config/aarch64/aarch64-bti-insert.c: New file.
34676 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34677 pass.
34678 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34679 new bti pass.
34680 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34681 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34682 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34683 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34684
34685 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34686
34687 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34688 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34689 Disable bti for -mbranch-protection=none.
34690 (aarch64_handle_standard_branch_protection): Enable bti for
34691 -mbranch-protection=standard.
34692 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34693 -mbranch-protection.
34694 (aarch64_bti_enabled): Check if bti is enabled.
34695 * config/aarch64/aarch64.opt: Declare target variable.
34696 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34697
34698 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34699
34700 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34701 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34702 (aarch64_expand_epilogue): Likewise.
34703 (aarch64_output_mi_thunk): Likewise.
34704 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34705 TAILCALL_ADDR_REGS to x16 and x17.
34706 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34707
34708 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34709
34710 * config/aarch64/aarch64-option-extensions.def: Define
34711 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34712 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34713 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34714 (AARCH64_FL_PREDRES): New.
34715 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34716 AARCH64_FL_PREDRES by default.
34717 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34718
34719 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34720
34721 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34722 ARMv8.5-A.
34723 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34724 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34725 * doc/invoke.texi: Document ARMv8.5-A.
34726
34727 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34728
34729 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34730 (xorsign<mode>3): Likewise.
34731
34732 2019-01-09 Jelinek <jakub@redhat.com>
34733
34734 PR middle-end/88758
34735 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34736 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34737
34738 PR rtl-optimization/88331
34739 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34740 not currently_expanding_to_rtl.
34741
34742 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34743
34744 * doc/invoke.texi (-Os): Remove trailing spaces.
34745 (-finline-functions): Remove reference to -O2.
34746
34747 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34748
34749 PR rtl-optimization/79593
34750 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34751
34752 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34753 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34754
34755 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34756
34757 PR bootstrap/88721
34758 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34759 to -1 on entry.
34760
34761 PR debug/88723
34762 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34763 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34764
34765 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34766
34767 PR target/88717
34768 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34769 ix86_avx_u128_mode_entry.
34770
34771 2019-01-08 Martin Liska <mliska@suse.cz>
34772
34773 PR tree-optimization/88753
34774 * tree-switch-conversion.c (switch_conversion::build_one_array):
34775 Come up with local variable constructor. Convert first to
34776 type of constructor values.
34777
34778 2019-01-08 Richard Biener <rguenther@suse.de>
34779
34780 PR tree-optimization/86554
34781 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34782 rpo_avail): Move earlier.
34783 (visit_nary_op): When value-numbering to expressions
34784 with different overflow behavior make sure there's an
34785 available expression on the path.
34786
34787 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34788
34789 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34790 aarch64_parse_branch_protection,
34791 struct aarch64_branch_protect_type,
34792 aarch64_handle_no_branch_protection,
34793 aarch64_handle_standard_branch_protection,
34794 aarch64_validate_mbranch_protection,
34795 aarch64_handle_pac_ret_protection,
34796 aarch64_handle_attr_branch_protection,
34797 accepted_branch_protection_string,
34798 aarch64_pac_ret_subtypes,
34799 aarch64_branch_protect_types,
34800 aarch64_handle_pac_ret_leaf): Define.
34801 (aarch64_override_options_after_change_1, aarch64_override_options):
34802 Add check for accepted_branch_protection_string.
34803 (aarch64_option_save): Save accepted_branch_protection_string.
34804 (aarch64_option_restore): Save accepted_branch_protection_string.
34805 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34806 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34807 msign-return-address.
34808 * doc/invoke.texi: Add mbranch-protection.
34809
34810 2019-01-08 Alan Modra <amodra@gmail.com>
34811
34812 PR target/88614
34813 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34814 Delete "unknownp" parameter. Adjust callers. Handle
34815 CONST_INT, PLUS, MINUS, and MULT.
34816 (attr_value_aligned): Renamed from or_attr_value.
34817 (min_attr_value): Return INT_MIN for unhandled rtl case..
34818 (min_fn): ..and translate to INT_MAX here.
34819 (write_length_unit_log): Modify to cope without "unknown".
34820 (write_attr_value): Handle IF_THEN_ELSE.
34821
34822 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34823
34824 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34825 optimization for masked stores.
34826
34827 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34828
34829 PR middle-end/88567
34830 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34831 output vector directly to duplicate_and_interleave instead of
34832 going through a temporary. Postpone insertion of ctor_seq to
34833 the end of the loop.
34834
34835 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34836
34837 PR target/86891
34838 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34839 unsigned_p. Handle signed and unsigned overflow correction as
34840 required.
34841 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34842 prototype.
34843 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34844 for operand 2.
34845 (add<mode>3_compareV_imm): Make this callable for expanding.
34846 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34847 aarch64_plus_operand for operand 2.
34848 (subv<GPI:mode>_insn): New insn pattern.
34849 (subv<GPI:mode>_imm): Likewise.
34850 (negv<GPI:mode>3): New expand pattern.
34851 (negv<GPI:mode>_insn): New insn pattern.
34852 (negv<GPI:mode>_cmp_only): Likewise.
34853 (cmpv<GPI:mode>_insn): Likewise.
34854 (subvti4): Use register_operand for operand 1. Update call to
34855 aarch64_expand_subvti.
34856 (usubvti4): Likewise.
34857 (negvti3): New expand pattern.
34858 (negdi_carryout): New insn pattern.
34859 (negvdi_carryinV): New insn pattern.
34860 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34861 version the named version.
34862 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34863 operands.
34864 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34865 patterns.
34866 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34867 patterns.
34868 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34869 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34870 (sub<mode>3_carryinCV): Delete.
34871 (sub<GPI:mode>3_carryinV): New expand pattern.
34872 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34873
34874 2019-01-07 Richard Biener <rguenther@suse.de>
34875
34876 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34877 of tree_operand_hash.
34878
34879 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34880
34881 PR tree-optimization/88598
34882 * tree.h (single_nonzero_element): Declare.
34883 * tree.c (single_nonzero_element): New function.
34884 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34885 if I is the only nonzero element of CST.
34886
34887 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34888
34889 PR tree-optimization/88598
34890 * tree.h (initializer_each_zero_or_onep): Declare.
34891 * tree.c (initializer_each_zero_or_onep): New function.
34892 (signed_or_unsigned_type_for): Handle float types too.
34893 (unsigned_type_for, signed_type_for): Update comments accordingly.
34894 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34895 x & { 0 or -1, 0 or -1, ... }.
34896
34897 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34898
34899 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34900 with x86_64-pc-linux-gnu.
34901
34902 2019-01-07 Tom de Vries <tdevries@suse.de>
34903
34904 PR target/85486
34905 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34906 function.
34907 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34908 routines.
34909
34910 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34911
34912 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34913 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34914 TARGET_AVX512F as condition.
34915
34916 PR debug/88723
34917 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34918 const_not_ok_for_debug_p target hook.
34919 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34920 on UNSPEC and subexpressions thereof if all subexpressions of the
34921 UNSPEC are CONSTANT_P.
34922
34923 PR tree-optimization/88676
34924 * tree-ssa-phiopt.c (two_value_replacement): New function.
34925 (tree_ssa_phiopt_worker): Call it.
34926
34927 PR sanitizer/88619
34928 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34929 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34930
34931 PR c++/85052
34932 * tree-vect-generic.c: Include insn-config.h and recog.h.
34933 (expand_vector_piecewise): Add defaulted ret_type argument,
34934 if non-NULL, use that in preference to type for the result type.
34935 (expand_vector_parallel): Formatting fix.
34936 (do_vec_conversion, do_vec_narrowing_conversion,
34937 expand_vector_conversion): New functions.
34938 (expand_vector_operations_1): Call expand_vector_conversion
34939 for VEC_CONVERT ifn calls.
34940 * internal-fn.def (VEC_CONVERT): New internal function.
34941 * internal-fn.c (expand_VEC_CONVERT): New function.
34942 * fold-const-call.c (fold_const_vec_convert): New function.
34943 (fold_const_call): Use it for CFN_VEC_CONVERT.
34944 * doc/extend.texi (__builtin_convertvector): Document.
34945
34946 2019-01-07 Tom de Vries <tdevries@suse.de>
34947
34948 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34949 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34950 vector_red_partition, vector_red_sym): New global variables.
34951 (nvptx_option_override): Initialize vector_red_sym.
34952 (nvptx_declare_function_name): Restore red_partition register.
34953 (nvptx_file_end): Emit code to declare the vector reduction variables.
34954 (nvptx_output_red_partition): New function.
34955 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34956 large vector reductions.
34957 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34958 (nvptx_init_builtins): Add VECTOR_ADDR.
34959 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34960 Handle nvptx_expand_shared_addr.
34961 (nvptx_get_shared_red_addr): Add vector argument and handle large
34962 vectors.
34963 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34964 large vectors.
34965 (nvptx_goacc_reduction_init): Likewise.
34966 (nvptx_goacc_reduction_fini): Likewise.
34967 (nvptx_goacc_reduction_teardown): Likewise.
34968 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34969 init,fini,teardown}.
34970 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34971 (nvptx_set_current_function): Init vector_red_partition.
34972 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34973 (nvptx_red_partition): New insn.
34974 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34975
34976 2019-01-07 Tom de Vries <tdevries@suse.de>
34977
34978 PR target/85381
34979 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34980 empty loops.
34981
34982 2019-01-07 Tom de Vries <tdevries@suse.de>
34983
34984 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34985 (nvptx_option_override): Init oacc_bcast_partition.
34986 (nvptx_init_oacc_workers): New function.
34987 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34988 (nvptx_needs_shared_bcast): New function.
34989 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34990 to propagate state.
34991 (nvptx_shared_propagate): Initialize vector bcast partition and
34992 synchronization state.
34993 (nvptx_single): Generalize to enable vectors to use shared-memory
34994 to propagate state.
34995 (nvptx_process_pars): Likewise.
34996 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34997 * config/nvptx/nvptx.h (struct machine_function): Add
34998 bcast_partition and sync_bar members.
34999
35000 2019-01-07 Tom de Vries <tdevries@suse.de>
35001
35002 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35003 (nvptx_apply_dim_limits): New function.
35004 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35005 PTX_WARP_SIZE.
35006
35007 2019-01-07 Tom de Vries <tdevries@suse.de>
35008
35009 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35010 as late as possible.
35011
35012 2019-01-07 Tom de Vries <tdevries@suse.de>
35013
35014 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35015 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35016 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35017 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35018 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35019
35020 2019-01-07 Tom de Vries <tdevries@suse.de>
35021
35022 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35023
35024 2019-01-07 Tom de Vries <tdevries@suse.de>
35025
35026 * omp-offload.c (oacc_get_min_dim): New function.
35027 * omp-offload.h (oacc_get_min_dim): Declare.
35028
35029 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35030
35031 PR target/88521
35032 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35033 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35034
35035 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35036
35037 PR tree-opt/86020
35038 Revert:
35039 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35040
35041 * ipa-inline.c (edge_badness): Use inlined_time instead of
35042 inline_summaries->get.
35043
35044 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35045
35046 * opts.c (enable_fdo_optimizations): Enable
35047 version-loops-for-strides, loop-interchange, unrol-and-jam
35048 and tree-loop-distribution.
35049 * invoke.texi: Document newly enabled options.
35050
35051 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35052
35053 * doc/invoke.texi (max-inline-insns-small): New parameters.
35054 * ipa-inline.c (want_early_inline_function_p): simplify.
35055 (want_inline_small_function_p): Fix pasto from previous patch;
35056 use max-inline-insns-small bound.
35057 * params.def (max-inline-insns-small): New param.
35058 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35059 variables correctly.
35060
35061 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35062
35063 * doc/invoke.texi: Document max-inline-insns-size,
35064 uninlined-function-insns, uninlined-function-time,
35065 uninlined-thunk-insns and uninlined-thunk-time.
35066 * params.def: Add max-inline-insns-size,
35067 uninlined-function-insns, uninlined-function-time,
35068 uninlined-thunk-insns and uninlined-thunk-time.
35069 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35070 new parameters.
35071 * ipa-inline.c (can_inline_edge_by_limits_p,
35072 want_inline_small_function_p): Use new parameters.
35073
35074 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35075
35076 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35077
35078 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35079
35080 PR middle-end/82564
35081 PR target/88620
35082 * expr.c (expand_assignment): For calls returning VLA structures
35083 if to_rtx is not a MEM, force it into a stack temporary.
35084
35085 PR debug/88635
35086 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35087 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35088 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35089 subexpressions of both operands.
35090 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35091 subrtxes are CONSTANT_P.
35092 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35093 2018-11-09 changes.
35094
35095 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35096
35097 * params.def (hot-bb-count-ws-permille): Set to 990.
35098
35099 2019-01-04 Martin Sebor <msebor@redhat.com>
35100
35101 PR c/88546
35102 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35103 leaf.
35104
35105 2019-01-04 Martin Sebor <msebor@redhat.com>
35106
35107 PR c/88363
35108 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35109
35110 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35111
35112 * gdbinit.in: Turn off pagination for the skip commands, restore
35113 it to previous state afterwards.
35114
35115 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35116
35117 PR target/88594
35118 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35119 of GET_MODE (opN) as modes of the libcall arguments.
35120
35121 2019-01-04 Jan Beulich <jbeulich@suse.com>
35122
35123 * config/i386/sse.md
35124 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35125 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35126 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35127 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35128 avx512f_vmcmp<mode>3<round_saeonly_name>,
35129 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35130 avx512f_maskcmp<mode>3,
35131 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35132 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35133 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35134 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35135 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35136 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35137 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35138 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35139 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35140 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35141 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35142 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35143 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35144 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35145 avx512cd_maskb_vec_dup<mode>,
35146 avx512cd_maskw_vec_dup<mode>,
35147 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35148 avx512dq_vmfpclass<mode>,
35149 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35150 instead of =Yk.
35151
35152 2019-01-03 Martin Sebor <msebor@redhat.com>
35153
35154 PR tree-optimization/88659
35155 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35156
35157 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35158
35159 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35160 unaligned vsx and avoid lxvd2x/stxvd2x.
35161 (gen_lvx_v4si_move): New function.
35162
35163 2019-01-03 Tom de Vries <tdevries@suse.de>
35164
35165 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35166 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35167 function.
35168 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35169
35170 2019-01-03 Tom de Vries <tdevries@suse.de>
35171
35172 * config/nvptx/nvptx.c (struct offload_attrs): New.
35173 (populate_offload_attrs): New function. Factor mask extraction out of
35174 nvptx_reorg. Add extraction of dimensions.
35175 (nvptx_reorg): Use populate_offload_attrs.
35176
35177 2019-01-03 Tom de Vries <tdevries@suse.de>
35178
35179 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35180 cases for oacc_min_dims_p and routine_p. Add asserts for
35181 oacc_default_dims_p and offload_region_p.
35182
35183 2019-01-03 Tom de Vries <tdevries@suse.de>
35184
35185 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35186 factored out of ...
35187 (nvptx_goacc_validate_dims): ... here.
35188
35189 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35190
35191 PR tree-optimization/85574
35192 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35193 structure.
35194 (struct ssa_equip_hash_traits): Declare.
35195 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35196
35197 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35198
35199 PR debug/88644
35200 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35201 change it to qualified_type.
35202
35203 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35204
35205 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35206 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35207
35208 2019-01-02 Martin Sebor <msebor@redhat.com>
35209 Jeff Law <law@redhat.com>
35210
35211 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35212 (get_range_strlen_tree): Update appropriately.
35213 (get_range_strlen)
35214 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35215
35216 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35217 rather than set_range_info.
35218 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35219 maybe_set_strlen_range. Handle potentially boundary crossing
35220 cases more conservatively.
35221 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35222 Call set_strlen_range.
35223 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35224
35225 PR middle-end/88663
35226 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35227 need the flexp argument.
35228 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35229 from calls to get_range_strlen. Update comments. Just update
35230 VAL for an unterminated const char array and let the reset of the
35231 code handle it normally. No longer try to set *flexp. Adjust
35232 return value.
35233 (get_range_strlen): Update for the new get_range_strlen API.
35234 (get_maxval_strlen): Similarly.
35235 (gimple_fold_builtin_strlen): Handle update meaning of return value
35236 from get_range_strlen.
35237 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35238 get_range_strlen API.
35239
35240 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35241
35242 PR lto/88130
35243 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35244 false at WPA time when body was removed.
35245
35246 2019-01-02 Martin Liska <mliska@suse.cz>
35247
35248 PR tree-optimization/88650
35249 * predict.c (set_even_probabilities): Calculate probability
35250 remainer only when really used.
35251
35252 2019-01-02 Richard Biener <rguenther@suse.de>
35253
35254 PR middle-end/88651
35255 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35256 widest_ints when mangling max_stmt_execution results.
35257
35258 2019-01-02 Richard Biener <rguenther@suse.de>
35259
35260 PR tree-optimization/88621
35261 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35262 bitfields when canoncalizing.
35263
35264 2019-01-02 Richard Biener <rguenther@suse.de>
35265
35266 PR target/87545
35267 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35268 cost of cheap SSE instruction.
35269
35270 2019-01-02 Richard Biener <rguenther@suse.de>
35271
35272 PR ipa/85574
35273 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35274 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35275 function.
35276 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35277 set after UIDs before splitting them.
35278
35279 2019-01-01 Martin Sebor <msebor@redhat.com>
35280 Jeff Law <law@redhat.com>
35281
35282 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35283 length is optimistic. If it is, then arrange to compute the
35284 conservative length as well.
35285
35286 * gimple-fold.h (get_range_strlen): Update prototype.
35287 * builtins.c (check_access): Update call to get_range_strlen to use
35288 c_strlen_data pointer. Change various variable accesses to instead
35289 pull data from the c_strlen_data structure.
35290 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35291 * calls.c (maybe_warn_nonstring_arg): Likewise.
35292 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35293 minimum length if maximum lengh is unknown.
35294 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35295 that used c_strlen, it's no longer needed. Restructure slightly.
35296 (format_string): Set unlikely range appropriately.
35297 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35298 formatting issues.
35299 (get_range_strlen): Accept c_strlen_data pointer for external
35300 call sites as well. Pass through to call to internal get_range_strlen.
35301 Adjust minlen, maxlen and maxbound as needed.
35302 (get_maxval_strlen): Update comments.
35303 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35304 to use c_strlen_data pointer. Change variable accesses to instead
35305 use c_strlen_data data members.
35306
35307 * gimple-fold.c (get_range_strlen): Update prototype.
35308 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35309 local variables. Use pdata to return information to caller.
35310 Update calls to get_range_strlen. Update pdata->maxbound.
35311 (get_range_strlen -- static version): Similarly.
35312 (get_range_strlen -- extern version): Update for internal
35313 get_range_strlen API change. Convert to external data format.
35314 (get_maxval_strlen): Similarly.
35315
35316 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35317
35318 * coverage.c (get_coverage_counts): Use current_function_decl.
35319 * profile.c (read_thunk_profile): New function.
35320 (branch_prob): Add THUNK parameter.
35321 * tree-profile.c (tree_profiling): Handle thunks.
35322 * value-prof.c (init_node_map): Handle thunks.
35323 * value-prof.h (branch_prob): Upate prototype.
35324 (read_thunk_profile): Declare.
35325
35326 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35327
35328 Update copyright years.
35329
35330 * gcc.c (process_command): Update copyright notice dates.
35331 * gcov-dump.c (print_version): Ditto.
35332 * gcov.c (print_version): Ditto.
35333 * gcov-tool.c (print_version): Ditto.
35334 * gengtype.c (create_file): Ditto.
35335 * doc/cpp.texi: Bump @copying's copyright year.
35336 * doc/cppinternals.texi: Ditto.
35337 * doc/gcc.texi: Ditto.
35338 * doc/gccint.texi: Ditto.
35339 * doc/gcov.texi: Ditto.
35340 * doc/install.texi: Ditto.
35341 * doc/invoke.texi: Ditto.
35342 \f
35343 Copyright (C) 2019 Free Software Foundation, Inc.
35344
35345 Copying and distribution of this file, with or without modification,
35346 are permitted in any medium without royalty provided the copyright
35347 notice and this notice are preserved.